Corrected compilation options
[u/mrichter/AliRoot.git] / PWGJE / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 ifndef PACKCXXFLAGS
6    PACKCXXFLAGS = $(CXXFLAGS)
7 endif
8
9 ALICEINC = -I.
10
11 ### define include dir for local case and par case
12 ifneq ($(STEERBase_INCLUDE),)
13   ALICEINC += -I../$(STEERBase_INCLUDE)
14 endif
15
16 ifneq ($(ESD_INCLUDE),)
17   ALICEINC += -I../$(ESD_INCLUDE)
18 endif
19
20 ifneq ($(AOD_INCLUDE),)
21   ALICEINC += -I../$(AOD_INCLUDE)
22 endif
23
24 ifneq ($(ANALYSIS_INCLUDE),)
25   ALICEINC += -I../$(ANALYSIS_INCLUDE)
26 endif
27
28 ifneq ($(ANALYSISalice_INCLUDE),)
29   ALICEINC += -I../$(ANALYSISalice_INCLUDE)
30 endif
31
32 ifneq ($(EventMixing_INCLUDE),)
33   ALICEINC += -I../$(EventMixing_INCLUDE)
34 endif
35
36 ifneq ($(CORRFW_INCLUDE),)
37   ALICEINC += -I../$(CORRFW_INCLUDE)
38 endif
39
40 ifneq ($(PWGTools_INCLUDE),)
41   ALICEINC += -I../$(PWGTools_INCLUDE)
42 endif
43
44 ifneq ($(PHOSUtils_INCLUDE),)
45   ALICEINC += -I../$(PHOSUtils_INCLUDE)
46   CXXFLAGS+=-D__PHOSUTIL__
47 endif
48
49 ifneq ($(EMCALUtils_INCLUDE),)
50   ALICEINC += -I../$(EMCALUtils_INCLUDE)
51   CXXFLAGS+=-D__EMCALUTIL__
52 endif
53
54 ifneq ($(EMCALbase_INCLUDE),)
55   ALICEINC += -I../$(EMCALbase_INCLUDE)
56 endif
57
58 ifneq ($(EMCALsim_INCLUDE),)
59   ALICEINC += -I../$(EMCALsim_INCLUDE)
60 endif
61
62 ifneq ($(EMCALrec_INCLUDE),)
63   ALICEINC += -I../$(EMCALrec_INCLUDE)
64 endif
65
66 ifneq ($(PWGCaloTrackCorrBase_INCLUDE),)
67   ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
68 endif
69
70 ifneq ($(PWG4PartCorrDep_INCLUDE),)
71  ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
72  ALICEINC += -I../$(PWGGACaloTrackCorrelations_INCLUDE)
73 endif
74
75 ifneq ($(PWGGACaloTrackCorrelations_INCLUDE),)
76   ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
77 endif
78
79 ifneq ($(JETAN_INCLUDE),)
80   ALICEINC += -I../$(JETAN_INCLUDE)
81 endif
82
83 ifneq ($(JETANDEV_INCLUDE),)
84   ALICEINC += -I../$(JETANDEV_INCLUDE)
85 endif
86
87 ifneq ($(PWGEMCAL_INCLUDE),)
88   ALICEINC += -I../$(PWGEMCAL_INCLUDE)
89 endif
90
91 ifneq ($(PWGJEEMCALJetTasks_INCLUDE),)
92   ALICEINC += -I../$(PWGJEEMCALJetTasks_INCLUDE)
93 endif
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
110 CXXFLAGS += $(ALICEINC) -g
111
112 SRCS = $(wildcard *.cxx)
113 HDRS = $(SRCS:.cxx=.h)
114 DHDR = $(PACKAGE)LinkDef.h
115
116 DHDR_PWGJE := $(DHDR)
117 HDRS_PWGJE := $(HDRS)
118 SRCS_PWGJE := $(SRCS) G__$(PACKAGE).cxx
119 OBJS_PWGJE := $(SRCS_PWGJE:.cxx=.o)
120
121 PARFILE       = $(PACKAGE).par
122
123 lib$(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
133 clean:
134         @rm -f $(OBJS_PWGJE) *.so G__$(PACKAGE).*
135
136 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
137         @echo "Generating dictionaries ..." $(ALICEINC)
138         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^