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