[llvm-commits] CVS: llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile
Bill Wendling
isanbard at gmail.com
Thu Sep 7 16:17:37 PDT 2006
Changes in directory llvm-test/External/SPEC/CINT2006/471.omnetpp:
Makefile updated: 1.3 -> 1.4
---
Log message:
Added support for multi-directories: go benchmark and omnetpp (whatever
that is)
---
Diffs of the changes: (+50 -7)
Makefile | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 50 insertions(+), 7 deletions(-)
Index: llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile
diff -u llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile:1.3 llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile:1.4
--- llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile:1.3 Wed Sep 6 15:41:12 2006
+++ llvm-test/External/SPEC/CINT2006/471.omnetpp/Makefile Thu Sep 7 18:17:18 2006
@@ -9,7 +9,8 @@
FP_TOLERANCE = 0.00001
FP_ABSTOLERANCE = 0.000001
-Source = $(addprefix $(SPEC_BENCH_DIR)/src/, \
+TOPSources := \
+ $(addprefix $(SPEC_BENCH_DIR)/src/, \
EtherAppCli.cc EtherAppCli_n.cc EtherAppSrv.cc EtherAppSrv_n.cc \
EtherApp_m.cc EtherBus.cc EtherBus_n.cc EtherCtrl_m.cc \
EtherEncap.cc EtherEncap_n.cc EtherFrame_m.cc EtherHost_n.cc \
@@ -17,12 +18,15 @@
EtherMAC_n.cc EtherSwitch_n.cc LargeNet_n.cc MACAddress.cc \
MACAddress_m.cc MACRelayUnitBase.cc MACRelayUnitNP.cc \
MACRelayUnitNP_n.cc MACRelayUnitPP.cc MACRelayUnitPP_n.cc \
- MACRelayUnit_n.cc Networks_n.cc eth-index_n.cc utils.cc) \
+ MACRelayUnit_n.cc Networks_n.cc eth-index_n.cc utils.cc)
+CMDENVSources := \
$(addprefix $(SPEC_BENCH_DIR)/src/libs/cmdenv/, \
- cmdenv.cc enumstr.cc heap.cc) \
+ cmdenv.cc enumstr.cc heap.cc)
+ENVIRSources := \
$(addprefix $(SPEC_BENCH_DIR)/src/libs/envir/, \
akoutvectormgr.cc args.cc cenvir.cc cinifile.cc filemgrs.cc main.cc \
- omnetapp.cc patmatch.cc platdep.cc seeds.cc slaveapp.cc speedmtr.cc)\
+ omnetapp.cc patmatch.cc platdep.cc seeds.cc slaveapp.cc speedmtr.cc)
+SIMSources := \
$(addprefix $(SPEC_BENCH_DIR)/src/libs/sim/, \
carray.cc cexception.cc cmessage.cc cpar.cc ctypes.cc task.cc \
cchannel.cc cfsm.cc cmodule.cc cpsquare.cc cvarhist.cc util.cc \
@@ -30,12 +34,24 @@
chead.cc cnetmod.cc csimul.cc distrib.cc cdetect.cc chist.cc \
cobject.cc cstat.cc errmsg.cc cdispstr.cc cksplit.cc coutvect.cc \
cstruct.cc onstartup.cc cenum.cc cllist.cc cpacket.cc ctopo.cc \
- random.cc std/netpack.cc) \
- $(SPEC_BENCH_DIR)/src/libs/spec/spec_qsort.cc
+ random.cc std/netpack.cc)
+SPECSources := \
+ $(SPEC_BENCH_DIR)/src/libs/spec/spec_qsort.cc
+
+Source := $(notdir $(TOPSources)) \
+ $(addprefix cmdenv_,$(notdir $(CMDENVSources))) \
+ $(addprefix envir_,$(notdir $(ENVIRSources))) \
+ $(addprefix sim_,$(notdir $(SIMSources))) \
+ $(addprefix spec_,$(notdir $(SPECSources)))
CPPFLAGS += -DNDEBUG=1 \
-I$(SPEC_BENCH_DIR)/src/omnet_include \
- -I$(SPEC_BENCH_DIR)/src/libs/envir
+ -I$(SPEC_BENCH_DIR)/src/libs/cmdenv \
+ -I$(SPEC_BENCH_DIR)/src/libs/envir \
+ -I$(SPEC_BENCH_DIR)/src/libs/sim \
+ -I$(SPEC_BENCH_DIR)/src/libs/spec \
+ -I$(SPEC_BENCH_DIR)/src \
+ -I$(SPEC_BENCH_DIR)/src/include
include ../../Makefile.spec2006
@@ -44,3 +60,30 @@
LDFLAGS = -lstdc++ -lm
LIBS = -lstdc++ -lm
+
+##===----------------------------------------------------------------------===##
+# Copy the source files to the working directory. Some files may have
+# the same names but are in different directories, so we add a prefix
+# to the filenames to prevent overwriting files.
+##===----------------------------------------------------------------------===##
+
+$(notdir $(TOPSources)) : % : $(SPEC_BENCH_DIR)/src/%
+ cp $< $@
+$(addprefix cmdenv_,$(notdir $(CMDENVSources))) : cmdenv_% : \
+$(SPEC_BENCH_DIR)/src/libs/cmdenv/%
+ cp $< $@
+$(addprefix envir_,$(notdir $(ENVIRSources))) : envir_% : \
+$(SPEC_BENCH_DIR)/src/libs/envir/%
+ cp $< $@
+$(addprefix sim_,$(notdir $(SIMSources))) : sim_% : \
+$(SPEC_BENCH_DIR)/src/libs/sim/%
+ cp $< $@
+$(notdir $(SPECSources)) : % : $(SPEC_BENCH_DIR)/src/libs/spec/%
+ cp $< $@
+
+##===----------------------------------------------------------------------===##
+# Clean up all of the copied source files.
+##===----------------------------------------------------------------------===##
+
+clean::
+ $(RM) -f $(Source)
More information about the llvm-commits
mailing list