1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-27 16:17:12 +02:00

ubbctl/Makefile: make default build shared; add target "static"

This commit is contained in:
Werner Almesberger 2013-01-07 08:24:11 -03:00
parent 64c14fb709
commit 7b8a2e13ed

View File

@ -1,15 +1,18 @@
CC = mipsel-openwrt-linux-gcc CC = mipsel-openwrt-linux-gcc
CFLAGS = -g -Wall -O9 -I../libubb/include CFLAGS = -g -Wall -O9 -I../libubb/include
LDFLAGS = -static LDFLAGS =
LDLIBS = -L../libubb -lubb LDLIBS = -L../libubb -lubb
MAIN = ubbctl MAIN = ubbctl
OBJS = ubbctl.o OBJS = ubbctl.o
.PHONY: all clean spotless .PHONY: all static clean spotless
all: $(MAIN) all: $(MAIN)
static:
$(MAKE) LDFLAGS=-static
$(MAIN): $(OBJS) $(MAIN): $(OBJS)
clean: clean: