diff options
author | crodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-18 21:03:12 +0000 |
---|---|---|
committer | crodrigu <crodrigu@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-18 21:03:12 +0000 |
commit | 0404bec1859b7a587937ae8392406a67c61df451 (patch) | |
tree | 2bdc1c838fbdd8f782b28eb259eedc02b2d77ae2 /examples/C++NPv2 | |
parent | 75409abb825269f316dcafc72921d94c13196707 (diff) | |
download | ATCD-0404bec1859b7a587937ae8392406a67c61df451.tar.gz |
ChangeLogTag: Fri Oct 18 21:01:25 UTC 2002 Craig Rodrigues <crodrigu@bbn.com>
Diffstat (limited to 'examples/C++NPv2')
-rw-r--r-- | examples/C++NPv2/Makefile | 62 |
1 files changed, 34 insertions, 28 deletions
diff --git a/examples/C++NPv2/Makefile b/examples/C++NPv2/Makefile index 09a5dd6b41a..6342690b045 100644 --- a/examples/C++NPv2/Makefile +++ b/examples/C++NPv2/Makefile @@ -9,36 +9,42 @@ # 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 +## 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 + |