Changes in directory llvm-test/External/SPEC/CINT2006/445.gobmk:
Makefile updated: 1.2 -> 1.3 --- Log message: Added support for multi-directories: go benchmark and omnetpp (whatever that is) --- Diffs of the changes: (+55 -8) Makefile | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 55 insertions(+), 8 deletions(-) Index: llvm-test/External/SPEC/CINT2006/445.gobmk/Makefile diff -u llvm-test/External/SPEC/CINT2006/445.gobmk/Makefile:1.2 llvm-test/External/SPEC/CINT2006/445.gobmk/Makefile:1.3 --- llvm-test/External/SPEC/CINT2006/445.gobmk/Makefile:1.2 Fri Sep 1 20:31:50 2006 +++ llvm-test/External/SPEC/CINT2006/445.gobmk/Makefile Thu Sep 7 18:17:18 2006 @@ -6,30 +6,48 @@ LEVEL = ../../../.. -Source = $(addprefix $(SPEC_BENCH_DIR)/src/sgf/, \ - sgf_utils.c sgftree.c sgfnode.c) \ +include $(LEVEL)/Makefile.config + +SGFSources := \ + $(addprefix $(SPEC_BENCH_DIR)/src/sgf/, \ + sgf_utils.c sgftree.c sgfnode.c) +ENGINESources := \ $(addprefix $(SPEC_BENCH_DIR)/src/engine/, \ aftermath.c board.c cache.c combination.c dragon.c filllib.c \ fuseki.c genmove.c hash.c influence.c interface.c matchpat.c \ move_reasons.c movelist.c optics.c owl.c printutils.c readconnect.c \ reading.c score.c semeai.c sgfdecide.c sgffile.c shapes.c \ showbord.c utils.c value_moves.c worm.c globals.c persistent.c \ - handicap.c surround.c) \ + handicap.c surround.c) +INTERFACESources := \ $(addprefix $(SPEC_BENCH_DIR)/src/interface/, \ - gtp.c main.c play_ascii.c play_gtp.c play_solo.c play_test.c) \ + gtp.c main.c play_ascii.c play_gtp.c play_solo.c play_test.c) +PATTERNSSources := \ $(addprefix $(SPEC_BENCH_DIR)/src/patterns/, \ connections.c dfa.c helpers.c transform.c owl_attackpat.c conn.c \ patterns.c apatterns.c dpatterns.c owl_vital_apat.c eyes.c \ influence.c barriers.c endgame.c aa_attackpat.c owl_defendpat.c \ - fusekipat.c fuseki9.c fuseki13.c fuseki19.c josekidb.c handipat.c) \ + fusekipat.c fuseki9.c fuseki13.c fuseki19.c josekidb.c handipat.c) +UTILSSources := \ $(addprefix $(SPEC_BENCH_DIR)/src/utils/, \ getopt.c getopt1.c gg_utils.c random.c) -include ../../Makefile.spec2006 +Source := $(addprefix sgf_,$(notdir $(SGFSources))) \ + $(addprefix engine_,$(notdir $(ENGINESources))) \ + $(addprefix interface_,$(notdir $(INTERFACESources))) \ + $(addprefix patterns_,$(notdir $(PATTERNSSources))) \ + $(addprefix utils_,$(notdir $(UTILSSources))) -CPPFLAGS += -DHAVE_CONFIG_H +CPPFLAGS += -DHAVE_CONFIG_H \ + -I$(SPEC_BENCH_DIR)/src/sgf \ + -I$(SPEC_BENCH_DIR)/src/engine \ + -I$(SPEC_BENCH_DIR)/src/interface \ + -I$(SPEC_BENCH_DIR)/src/patterns \ + -I$(SPEC_BENCH_DIR)/src/utils \ + -I$(SPEC_BENCH_DIR)/src \ + -I$(SPEC_BENCH_DIR)/src/include -## FIXME: Multiple *.tst files +include ../../Makefile.spec2006 ifeq ($(RUN_TYPE),test) RUN_OPTIONS := --quiet --mode gtp @@ -40,3 +58,32 @@ STDIN_FILENAME := arb.tst STDOUT_FILENAME := arb.out endif + +##===----------------------------------------------------------------------===## +# Copy the source files to the working directory. Some files have the +# same names but are in different directories, so we add a prefix to +# the filenames to prevent overwriting files. +##===----------------------------------------------------------------------===## + +$(addprefix sgf_,$(notdir $(SGFSources))) : sgf_% : \ +$(SPEC_BENCH_DIR)/src/sgf/% + cp $< $@ +$(addprefix engine_,$(notdir $(ENGINESources))) : engine_% : \ +$(SPEC_BENCH_DIR)/src/engine/% + cp $< $@ +$(addprefix interface_,$(notdir $(INTERFACESources))) : interface_% : \ +$(SPEC_BENCH_DIR)/src/interface/% + cp $< $@ +$(addprefix patterns_,$(notdir $(PATTERNSSources))) : patterns_% : \ +$(SPEC_BENCH_DIR)/src/patterns/% + cp $< $@ +$(addprefix utils_,$(notdir $(UTILSSources))) : utils_% : \ +$(SPEC_BENCH_DIR)/src/utils/% + cp $< $@ + +##===----------------------------------------------------------------------===## +# Clean up all of the copied source files. +##===----------------------------------------------------------------------===## + +clean:: + $(RM) -f $(Source) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits