Fixed striong (Svein)
[u/mrichter/AliRoot.git] / PWG4 / Makefile
CommitLineData
e989c76a 1PACKAGE = invalid-only-for-proof
f9cea31c 2
e989c76a 3include $(ROOTSYS)/test/Makefile.arch
4include lib$(PACKAGE).pkg
f9cea31c 5
e989c76a 6ifndef PACKCXXFLAGS
7 PACKCXXFLAGS = $(CXXFLAGS)
8endif
f9cea31c 9
e989c76a 10ALICEINC = -I.
f9cea31c 11
12### define include dir for local case and par case
e989c76a 13ifneq ($(STEERBase_INCLUDE),)
14 ALICEINC += -I../$(STEERBase_INCLUDE)
15endif
16
17ifneq ($(ESD_INCLUDE),)
18 ALICEINC += -I../$(ESD_INCLUDE)
19endif
20
21ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
23endif
24
f61d9588 25ifneq ($(ANALYSIS_INCLUDE),)
e989c76a 26 ALICEINC += -I../$(ANALYSIS_INCLUDE)
f9cea31c 27endif
28
e989c76a 29ifneq ($(ANALYSISalice_INCLUDE),)
30 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
f9cea31c 31endif
32
ae484789 33ifneq ($(EventMixing_INCLUDE),)
34 ALICEINC += -I../$(EventMixing_INCLUDE)
35endif
36
cfff6259 37ifneq ($(JETAN_INCLUDE),)
38 ALICEINC += -I../$(JETAN_INCLUDE)
39endif
40
a0b94e5c 41ifneq ($(CORRFW_INCLUDE),)
42 ALICEINC += -I../$(CORRFW_INCLUDE)
43endif
44
1c5acb87 45ifneq ($(PHOSUtils_INCLUDE),)
46 ALICEINC += -I../$(PHOSUtils_INCLUDE)
591cc579 47 CXXFLAGS+=-D__PHOSUTIL__
48endif
49
50ifneq ($(EMCALUtils_INCLUDE),)
51 ALICEINC += -I../$(EMCALUtils_INCLUDE)
52 CXXFLAGS+=-D__EMCALUTIL__
1c5acb87 53endif
54
55ifneq ($(PWG4PartCorrBase_INCLUDE),)
56 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
57endif
58
59ifneq ($(PWG4PartCorrDep_INCLUDE),)
60 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
61 ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
e989c76a 62endif
63
7a0d68dc 64ifneq ($(PWG4GammaConv_INCLUDE),)
65 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
66endif
67
e989c76a 68ifneq ($(PWG4JetTasks_INCLUDE),)
69 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
70endif
f9cea31c 71
edfd02fd 72ifneq ($(JETAN_INCLUDE),)
73 ALICEINC += -I../$(JETAN_INCLUDE)
74endif
75
2f4cac02 76ifneq ($(PWG4JCORRAN_INCLUDE),)
77 ALICEINC += -I../$(PWG4JCORRAN_INCLUDE)
78endif
f9cea31c 79
e989c76a 80# only if no par file was loaded before
2e557d1c 81#ifeq ($(ALICEINC),-I.)
e989c76a 82 ifneq ($(ALICE_ROOT),)
83 ALICEINC += -I$(ALICE_ROOT)/include
cfff6259 84 ALICEINC += -I$(ALICE_ROOT)/JETAN # some extra includes
591cc579 85 ALICEINC += -I$(ALICE_ROOT)/PHOS
86 ALICEINC += -I$(ALICE_ROOT)/EMCAL
54769bc0 87 ALICEINC += -I$(ALICE_ROOT)/PWG4/PartCorrBase
e989c76a 88 endif
2e557d1c 89#endif
f9cea31c 90
e989c76a 91CXXFLAGS += $(ALICEINC) -g
f9cea31c 92
e989c76a 93SRCS += G__$(PACKAGE).cxx
94OBJS = $(SRCS:.cxx=.o)
f9cea31c 95
e989c76a 96lib$(PACKAGE).so: $(OBJS)
f9cea31c 97 @echo "Linking" $@ ...
98 @/bin/rm -f $@
10dc066e 99ifeq ($(ARCH),macosx)
f9cea31c 100 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
101else
102 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
103endif
104 @chmod a+x $@
105 @echo "done"
106
107%.o: %.cxx %.h
e989c76a 108 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 109
110clean:
e989c76a 111 @rm -f $(OBJS) *.so G__$(PACKAGE).*
f9cea31c 112
113G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 114 @echo "Generating dictionaries ..." $(ALICEINC)
115 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
f9cea31c 116