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