Makefile: added 'make static' target to build apk.static

cute-signatures
Natanael Copa 2009-01-16 10:10:29 +00:00
parent 7a50aa61b2
commit 6354a27888
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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)