diff options
author | crodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-20 13:47:53 +0000 |
---|---|---|
committer | crodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-20 13:47:53 +0000 |
commit | e9939e086d664bbe089881dba54b80a97fd2276e (patch) | |
tree | 35fee2bef79cfc7fc4da865eeff37699f224f6cd /examples | |
parent | b78569525577c99576cf4856f0691b0724cb7588 (diff) | |
download | ATCD-e9939e086d664bbe089881dba54b80a97fd2276e.tar.gz |
ChangeLogTag: Sun Oct 20 13:34:45 UTC 2002 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/C++NPv2/Makefile | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/examples/C++NPv2/Makefile b/examples/C++NPv2/Makefile index 09a5dd6b41a..ea66da5ab97 100644 --- a/examples/C++NPv2/Makefile +++ b/examples/C++NPv2/Makefile @@ -9,36 +9,46 @@ # Local macros #---------------------------------------------------------------------------- +#---------------------------------------------------------------------------- +# Local macros +#---------------------------------------------------------------------------- +MAKEFILE=Makefile + # These examples don't require SSL support... those that do are below. -EXAMPLES = Reactor_Logging_Server \ - Select_Reactor_Logging_Server \ - TP_Reactor_Logging_Server \ - Configurable_Logging_Server \ - SLD \ - SLDex \ - CLD \ - TPLS \ - SR_Configurable_Logging_Server \ - display_logfile +MKLIST = Makefile.Reactor_Logging_Server \ + Makefile.Select_Reactor_Logging_Server \ + Makefile.TP_Reactor_Logging_Server \ + Makefile.Configurable_Logging_Server \ + Makefile.SLD \ + Makefile.SLDex \ + Makefile.CLD \ + Makefile.TPLS \ + Makefile.SR_Configurable_Logging_Server \ + Makefile.display_logfile ifneq ($(ssl),) - EXAMPLES += AC_CLD AIO_CLD TPCLS + MKLIST += Makefile.AC_CLD Makefile.AIO_CLD Makefile.TPCLS endif # ssl -all: - @for ex in $(EXAMPLES); \ - do \ - $(MAKE) -f Makefile.$$ex; \ - done - -clean: - @for ex in $(EXAMPLES); \ - do \ - $(MAKE) -f Makefile.$$ex clean; \ - done - -realclean: - @for ex in $(EXAMPLES); \ - do \ - $(MAKE) -f Makefile.$$ex realclean; \ - done +## Ensure that Makefiles in MKLIST are executed in sequence during a +## parallel build because we share some files between multiple libraries. +.NOTPARALLEL: + +## Makefile.Reactive_Logging_Server.mkfile is a dummy target which will cause +## $(MAKE) -f Makefile.Reactive_Logging_Server to be invoked +%.mkfile: % + @echo $(MAKE) -f $< $(MKFILE_TARGET) + @$(MAKE) -f $< $(MKFILE_TARGET) + +# This rule invokes make again with the list of .mkfile targets as a +# parameter. For example, if the all target is being made, make is invoked +# as follows: +# +# make -f Makefile MKFILE_TARGET=all Makefile.Reactive_Logging_Server_Ex + +all clean depend realclean: +ifneq ($(MKLIST),) + @echo $(MAKE) -f $(MAKEFILE) MKFILE_TARGET=$@ $(addsuffix .mkfile, $(MKLIST)) + @$(MAKE) -f $(MAKEFILE) MKFILE_TARGET=$@ $(addsuffix .mkfile, $(MKLIST)) +endif + |