diff options
Diffstat (limited to 'makefiles/nmake/sub.mk')
-rw-r--r-- | makefiles/nmake/sub.mk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/makefiles/nmake/sub.mk b/makefiles/nmake/sub.mk new file mode 100644 index 0000000..056031d --- /dev/null +++ b/makefiles/nmake/sub.mk @@ -0,0 +1,28 @@ +# makefile for a sub package +# +# requires: +# - TOPDIR +# - SUBDIRS +# - INCLUDE_DIRS +# +# provides: +# - target: all +# - target 'test' +# - target 'longtest' +# indirectly (via clean.mk): +# - target 'clean' +# - target 'distclean' + +!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk +!INCLUDE $(TOPDIR)\makefiles\nmake\compiler.mk + +all: local_all + @if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 all & cd .. + +test: $(OBJS) $(TEST_OBJS) $(CPPOBJS) $(BIN_OBJS) $(BINS) $(CPP_BINS) $(TEST_BIN_OBJS) $(TEST_BINS) $(TEST_CPP_BINS) local_test + @if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 test & cd .. + +longtest: $(OBJS) $(TEST_OBJS) $(CPPOBJS) $(BIN_OBJS) $(BINS) $(CPP_BINS) $(TEST_BIN_OBJS) $(TEST_BINS) $(TEST_CPP_BINS) local_test + @if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 longtest & cd .. + +!INCLUDE $(TOPDIR)\makefiles\nmake\clean.mk |