Commit 6354a278 authored by Natanael Copa's avatar Natanael Copa
Browse files

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

parent 7a50aa61
...@@ -41,10 +41,13 @@ DOCDIR=/usr/share/doc/apk ...@@ -41,10 +41,13 @@ DOCDIR=/usr/share/doc/apk
.PHONY: compile install clean all .PHONY: compile install clean all static
all: compile all: compile
$(MAKE) $(MFLAGS) -C src apk.static
compile install clean:: compile install clean::
@for i in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$i $(MAKECMDGOALS); done @for i in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$i $(MAKECMDGOALS); done
...@@ -36,6 +36,9 @@ all: $(TARGETS) ...@@ -36,6 +36,9 @@ all: $(TARGETS)
apk: $(apk_OBJS) apk: $(apk_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
apk.static: $(apk_OBJS)
$(CC) $(LDFLAGS) -static -o $@ $^ $(LIBS)
clean:: clean::
@rm -f $(TARGETS) $(ALL_OBJS) @rm -f $(TARGETS) $(ALL_OBJS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment