From 7b8a2e13edc40ebda0e53c064f4744fb822c7d67 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 7 Jan 2013 08:24:11 -0300 Subject: [PATCH] ubbctl/Makefile: make default build shared; add target "static" --- ubbctl/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: