From 6354a278883161704c7f8650a3bdde77f163c6ad Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 16 Jan 2009 10:10:29 +0000 Subject: [PATCH] Makefile: added 'make static' target to build apk.static --- Makefile | 5 ++++- src/Makefile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b7bb063..68ff9c1 100644 --- a/Makefile +++ b/Makefile @@ -41,10 +41,13 @@ DOCDIR=/usr/share/doc/apk SUBDIRS=src -.PHONY: compile install clean all +.PHONY: compile install clean all static all: compile +static: + $(MAKE) $(MFLAGS) -C src apk.static + compile install clean:: @for i in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$i $(MAKECMDGOALS); done diff --git a/src/Makefile b/src/Makefile index e6bf9ad..30fa0c7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -36,6 +36,9 @@ all: $(TARGETS) apk: $(apk_OBJS) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +apk.static: $(apk_OBJS) + $(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS) + clean:: @rm -f $(TARGETS) $(ALL_OBJS)