summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-10-19 15:14:19 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-10-19 15:14:19 +0000
commitdaf48e8a89f04cadd10636ddc58a53282a0f5a1d (patch)
treebea024b8cfa8668aae9f273c4b5e1d549a2cf88e /examples
parent96b9d46128d53fd1834a58a176c954980c5e2ea2 (diff)
downloadATCD-daf48e8a89f04cadd10636ddc58a53282a0f5a1d.tar.gz
ChangeLogTag: Sat Oct 19 10:09:38 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'examples')
-rw-r--r--examples/C++NPv2/Makefile62
1 files changed, 28 insertions, 34 deletions
diff --git a/examples/C++NPv2/Makefile b/examples/C++NPv2/Makefile
index 6342690b045..09a5dd6b41a 100644
--- a/examples/C++NPv2/Makefile
+++ b/examples/C++NPv2/Makefile
@@ -9,42 +9,36 @@
# Local macros
#----------------------------------------------------------------------------
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-MAKEFILE=Makefile
-
# These examples don't require SSL support... those that do are below.
-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
+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
ifneq ($(ssl),)
- MKLIST += Makefile.AC_CLD Makefile.AIO_CLD Makefile.TPCLS
+ EXAMPLES += AC_CLD AIO_CLD TPCLS
endif # ssl
-## 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
-
+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