diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 09:45:30 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 09:45:30 +0100 |
commit | 8cff71890f72d619162b4b8fac6f96f268deabd6 (patch) | |
tree | b4c94d7455bcc44b0b607198984134e81b0797a0 /makefiles/gmake/sub.mk | |
parent | 6a4d7e4836dc9e4b7dba4a39dd0a51e0bea0d1c5 (diff) | |
download | wolfbones-8cff71890f72d619162b4b8fac6f96f268deabd6.tar.gz wolfbones-8cff71890f72d619162b4b8fac6f96f268deabd6.tar.bz2 |
made the GNU make NMAKE switch as we go to Windows now, also fixed small bugs in the makefiles
Diffstat (limited to 'makefiles/gmake/sub.mk')
-rw-r--r-- | makefiles/gmake/sub.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makefiles/gmake/sub.mk b/makefiles/gmake/sub.mk new file mode 100644 index 0000000..4279696 --- /dev/null +++ b/makefiles/gmake/sub.mk @@ -0,0 +1,26 @@ +# makefile for a sub package +# +# requires: +# - TOPDIR +# - SUBDIRS +# - INCLUDE_DIRS +# +# provides: +# - target: all targets + +-include $(TOPDIR)/makefiles/gmake/platform.mk +-include $(TOPDIR)/makefiles/gmake/compiler.mk + +.PHONY: all $(SUBDIRS) local_all +all: $(OBJS) $(CPPOBJS) $(BIN_OBJS) $(CPP_BIN_OBJS) $(BINS) $(CPP_BINS) $(CMODULES) $(CPPMODULES) local_all + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d all || exit 1); done) + +.PHONY: test local_test +test: $(OBJS) $(TEST_OBJS) $(CPPOBJS) $(BIN_OBJS) $(BINS) $(CPP_BINS) $(TEST_BINS) $(TEST_CPP_BINS) $(CMODULES) $(CPPMODULES) local_test + @test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \ + (set -e; $(MAKE) -C $$d test || exit 1); done) + +-include $(TOPDIR)/makefiles/gmake/depend.mk +-include $(TOPDIR)/makefiles/gmake/clean.mk +-include $(TOPDIR)/makefiles/gmake/install.mk |