]> git.sur5r.net Git - cc65/commitdiff
Allow to build just the binaries or just the libraries from the top level Makefile.
authorOliver Schmidt <ol.sc@web.de>
Tue, 7 May 2013 15:49:35 +0000 (17:49 +0200)
committerOliver Schmidt <ol.sc@web.de>
Tue, 7 May 2013 17:05:41 +0000 (19:05 +0200)
Makefile
libsrc/Makefile
src/Makefile

index 336ecc85d3bceb77045d482f4cfec393a0da2b4d..0233e042b55b431047c1e447edca615e6b060046 100644 (file)
--- 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:
index 39a5e497e890d290e116bcec5406663fa17921a1..4f8c622fe6f360ec13477ada67c96469e2d58298 100644 (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 $@
index d5401e087c6a31464b8e1fa128d139667e11faf8..959478901542fa3c803c70c80a28d3795fe5b0de 100644 (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: