Allow to build just the binaries or just the libraries from the top level Makefile.

This commit is contained in:
Oliver Schmidt 2013-05-07 17:49:35 +02:00
parent 5ddf9e0878
commit 969c3b7488
3 changed files with 11 additions and 8 deletions

View File

@ -2,15 +2,18 @@ all mostlyclean clean:
@$(MAKE) -C src --no-print-directory $@
@$(MAKE) -C libsrc --no-print-directory $@
install uninstall:
install uninstall bin:
@$(MAKE) -C src --no-print-directory $@
lib:
@$(MAKE) -C libsrc --no-print-directory $@
%65:
@$(MAKE) -C src --no-print-directory $@
%:
@$(MAKE) -C libsrc --no-print-directory $@
.PHONY: all mostlyclean clean install uninstall
.PHONY: all mostlyclean clean install uninstall bin lib
.SUFFIXES:

View File

@ -47,11 +47,11 @@ endif
.SUFFIXES:
.PHONY: all $(TARGETS) mostlyclean clean
.PHONY: all lib $(TARGETS) mostlyclean clean
ifndef TARGET
all: $(TARGETS)
all lib: $(TARGETS)
$(TARGETS):
@$(MAKE) --no-print-directory $@

View File

@ -26,9 +26,9 @@ LDLIBS += -lm
.SUFFIXES:
.PHONY: all $(PROGS) mostlyclean clean install uninstall
.PHONY: all bin $(PROGS) mostlyclean clean install uninstall
all: $(PROGS)
all bin: $(PROGS)
mostlyclean:
$(RM) -r ../wrk
@ -107,9 +107,9 @@ else # cmd.exe
.SUFFIXES:
.PHONY: all mostlyclean clean
.PHONY: all bin mostlyclean clean
all:
all bin:
msbuild cc65.sln /p:configuration=release /consoleloggerparameters:disableconsolecolor
mostlyclean: