From: Oliver Schmidt Date: Tue, 7 May 2013 15:49:35 +0000 (+0200) Subject: Allow to build just the binaries or just the libraries from the top level Makefile. X-Git-Tag: V2.14~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=969c3b748816e690255d189e662e4102099d1e9d;p=cc65 Allow to build just the binaries or just the libraries from the top level Makefile. --- diff --git a/Makefile b/Makefile index 336ecc85d..0233e042b 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/libsrc/Makefile b/libsrc/Makefile index 39a5e497e..4f8c622fe 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -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 $@ diff --git a/src/Makefile b/src/Makefile index d5401e087..959478901 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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: