add flexibility for main trigger
[u/mrichter/AliRoot.git] / PWGJE / Makefile
CommitLineData
222034d3 1PACKAGE = invalid-only-for-proof
f9cea31c 2
41f671ab 3include Makefile.arch
f9cea31c 4
e989c76a 5ifndef PACKCXXFLAGS
6 PACKCXXFLAGS = $(CXXFLAGS)
7endif
f9cea31c 8
e989c76a 9ALICEINC = -I.
f9cea31c 10
11### define include dir for local case and par case
e989c76a 12ifneq ($(STEERBase_INCLUDE),)
13 ALICEINC += -I../$(STEERBase_INCLUDE)
14endif
15
16ifneq ($(ESD_INCLUDE),)
17 ALICEINC += -I../$(ESD_INCLUDE)
18endif
19
20ifneq ($(AOD_INCLUDE),)
21 ALICEINC += -I../$(AOD_INCLUDE)
22endif
23
f61d9588 24ifneq ($(ANALYSIS_INCLUDE),)
e989c76a 25 ALICEINC += -I../$(ANALYSIS_INCLUDE)
f9cea31c 26endif
27
e989c76a 28ifneq ($(ANALYSISalice_INCLUDE),)
29 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
f9cea31c 30endif
31
ae484789 32ifneq ($(EventMixing_INCLUDE),)
33 ALICEINC += -I../$(EventMixing_INCLUDE)
34endif
35
a0b94e5c 36ifneq ($(CORRFW_INCLUDE),)
37 ALICEINC += -I../$(CORRFW_INCLUDE)
38endif
39
d3aa6a6d 40ifneq ($(PWGTools_INCLUDE),)
41 ALICEINC += -I../$(PWGTools_INCLUDE)
d89b8229 42endif
43
1c5acb87 44ifneq ($(PHOSUtils_INCLUDE),)
45 ALICEINC += -I../$(PHOSUtils_INCLUDE)
591cc579 46 CXXFLAGS+=-D__PHOSUTIL__
47endif
48
49ifneq ($(EMCALUtils_INCLUDE),)
50 ALICEINC += -I../$(EMCALUtils_INCLUDE)
51 CXXFLAGS+=-D__EMCALUTIL__
1c5acb87 52endif
53
8b8c876e 54ifneq ($(EMCALbase_INCLUDE),)
55 ALICEINC += -I../$(EMCALbase_INCLUDE)
56endif
57
58ifneq ($(EMCALsim_INCLUDE),)
59 ALICEINC += -I../$(EMCALsim_INCLUDE)
60endif
61
62ifneq ($(EMCALrec_INCLUDE),)
63 ALICEINC += -I../$(EMCALrec_INCLUDE)
64endif
65
222034d3 66ifneq ($(PWGCaloTrackCorrBase_INCLUDE),)
67 ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
1c5acb87 68endif
69
70ifneq ($(PWG4PartCorrDep_INCLUDE),)
222034d3 71 ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
72 ALICEINC += -I../$(PWGGACaloTrackCorrelations_INCLUDE)
e989c76a 73endif
74
222034d3 75ifneq ($(PWGGACaloTrackCorrelations_INCLUDE),)
7a0d68dc 76 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
77endif
78
edfd02fd 79ifneq ($(JETAN_INCLUDE),)
80 ALICEINC += -I../$(JETAN_INCLUDE)
81endif
82
d89b8229 83ifneq ($(JETANDEV_INCLUDE),)
84 ALICEINC += -I../$(JETANDEV_INCLUDE)
85endif
86
d1473de8 87ifneq ($(PWGEMCAL_INCLUDE),)
88 ALICEINC += -I../$(PWGEMCAL_INCLUDE)
2f4cac02 89endif
f9cea31c 90
81064496 91ifneq ($(PWGJEEMCALJetTasks_INCLUDE),)
92 ALICEINC += -I../$(PWGJEEMCALJetTasks_INCLUDE)
93endif
94
e989c76a 95# only if no par file was loaded before
2e557d1c 96#ifeq ($(ALICEINC),-I.)
e989c76a 97 ifneq ($(ALICE_ROOT),)
98 ALICEINC += -I$(ALICE_ROOT)/include
ec3847a1 99 ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
591cc579 100 ALICEINC += -I$(ALICE_ROOT)/PHOS
101 ALICEINC += -I$(ALICE_ROOT)/EMCAL
222034d3 102 ALICEINC += -I$(ALICE_ROOT)/JETAN
6211f1b7 103 ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet
104 ALICEINC += -I$(ALICE_ROOT)/PWGJE/EMCALJetTasks
222034d3 105 ALICEINC += -I$(ALICE_ROOT)/PWG/CaloTrackCorrBase
da2d9515 106 ALICEINC += -I$(ALICE_ROOT)/PWGHF/vertexingHF
e989c76a 107 endif
2e557d1c 108#endif
f9cea31c 109
e989c76a 110CXXFLAGS += $(ALICEINC) -g
f9cea31c 111
222034d3 112SRCS = $(wildcard *.cxx)
113HDRS = $(SRCS:.cxx=.h)
114DHDR = $(PACKAGE)LinkDef.h
f9cea31c 115
222034d3 116DHDR_PWGJE := $(DHDR)
117HDRS_PWGJE := $(HDRS)
118SRCS_PWGJE := $(SRCS) G__$(PACKAGE).cxx
119OBJS_PWGJE := $(SRCS_PWGJE:.cxx=.o)
ec3847a1 120
121PARFILE = $(PACKAGE).par
122
222034d3 123lib$(PACKAGE).so: $(OBJS_PWGJE)
f9cea31c 124 @echo "Linking" $@ ...
125 @/bin/rm -f $@
41f671ab 126 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
f9cea31c 127 @chmod a+x $@
128 @echo "done"
129
130%.o: %.cxx %.h
e989c76a 131 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 132
133clean:
222034d3 134 @rm -f $(OBJS_PWGJE) *.so G__$(PACKAGE).*
f9cea31c 135
136G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 137 @echo "Generating dictionaries ..." $(ALICEINC)
138 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^