3 include $(ROOTSYS)/test/Makefile.arch
5 default-target: libTTherminator.so
7 ALICEINC = -I. -I$(ALICE_ROOT)/include -ITherminator
9 ### define include dir for local case and par case
10 ifneq ($(ALICE_ROOT),)
11 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/PYTHIA6 -I$(ALICE_ROOT)/EVGEN -I$(ALICE_ROOT)/RAW -I$(ALICE_ROOT)/TPC
13 ifneq ($(STEERBase_INCLUDE),)
14 ALICEINC += -I../$(STEERBase_INCLUDE)
16 ifneq ($(ESD_INCLUDE),)
17 ALICEINC += -I../$(ESD_INCLUDE)
21 PACKAGE = TTherminator
22 include lib$(PACKAGE).pkg
24 DHDR_TTherminator := $(DHDR)
25 HDRS_TTherminator := $(HDRS)
26 SRCS_TTherminator := $(SRCS) G__$(PACKAGE).cxx
27 OBJS_TTherminator := $(SRCS_TTherminator:.cxx=.o)
29 PARFILE = $(PACKAGE).par
31 lib$(PACKAGE).so: $(OBJS_TTherminator)
32 @echo "Linking" $@ ...
35 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
37 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
43 $(CXX) $(CXXFLAGS) -c $< -o $@ $(ALICEINC)
45 G__TTherminator.cxx G__TTherminator.h: $(HDRS_TTherminator) $(DHDR_TTherminator)
46 @echo "Generating dictionary ..."
47 rootcint -f $@ -c $(ALICEINC) $^
50 @rm -f $(OBJS_TTherminator) *.so G__TTherminator.* $(PARFILE)
54 $(PARFILE): $(patsubst %,$(PACKAGE)/%,$(filter-out G__%, $(HDRS_TTherminator) $(SRCS_TTherminator) $(DHDR_TTherminator) Makefile Makefile.arch lib$(PACKAGE).pkg PROOF-INF))
55 @echo "Creating archive" $@ ...
56 @tar cfzh $@ $(PACKAGE)
60 $(PACKAGE)/Makefile: Makefile #.$(PACKAGE)
61 @echo Copying $< to $@ with transformations
62 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
63 @sed 's/include \$$(ROOTSYS)\/test\/Makefile.arch/include Makefile.arch/' < $^ > $@
65 $(PACKAGE)/Makefile.arch: $(ROOTSYS)/test/Makefile.arch
66 @echo Copying $< to $@
67 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
70 $(PACKAGE)/PROOF-INF: PROOF-INF.$(PACKAGE)
71 @echo Copying $< to $@
72 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
76 @echo Copying $< to $@
77 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
81 @echo "INFO: The file $< is now tested, in case of an error check in par-tmp."
83 @cd par-tmp; tar xfz ../$<; cd $(subst .par,,$<); PROOF-INF/BUILD.sh
85 @echo "INFO: Testing succeeded (already cleaned up)"