Removing obsolete module
[u/mrichter/AliRoot.git] / PWGJE / Makefile
CommitLineData
ec3847a1 1PACKAGE = PWG4JetTasks
f9cea31c 2
ec3847a1 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
cfff6259 36ifneq ($(JETAN_INCLUDE),)
37 ALICEINC += -I../$(JETAN_INCLUDE)
38endif
39
a0b94e5c 40ifneq ($(CORRFW_INCLUDE),)
41 ALICEINC += -I../$(CORRFW_INCLUDE)
42endif
43
d89b8229 44ifneq ($(PWGBase_INCLUDE),)
45 ALICEINC += -I../$(PWGBase_INCLUDE)
46endif
47
1c5acb87 48ifneq ($(PHOSUtils_INCLUDE),)
49 ALICEINC += -I../$(PHOSUtils_INCLUDE)
591cc579 50 CXXFLAGS+=-D__PHOSUTIL__
51endif
52
53ifneq ($(EMCALUtils_INCLUDE),)
54 ALICEINC += -I../$(EMCALUtils_INCLUDE)
55 CXXFLAGS+=-D__EMCALUTIL__
1c5acb87 56endif
57
8b8c876e 58ifneq ($(EMCALbase_INCLUDE),)
59 ALICEINC += -I../$(EMCALbase_INCLUDE)
60endif
61
62ifneq ($(EMCALsim_INCLUDE),)
63 ALICEINC += -I../$(EMCALsim_INCLUDE)
64endif
65
66ifneq ($(EMCALrec_INCLUDE),)
67 ALICEINC += -I../$(EMCALrec_INCLUDE)
68endif
69
1c5acb87 70ifneq ($(PWG4PartCorrBase_INCLUDE),)
71 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
72endif
73
74ifneq ($(PWG4PartCorrDep_INCLUDE),)
75 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
76 ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
e989c76a 77endif
78
7a0d68dc 79ifneq ($(PWG4GammaConv_INCLUDE),)
80 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
81endif
82
e989c76a 83ifneq ($(PWG4JetTasks_INCLUDE),)
84 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
85endif
f9cea31c 86
edfd02fd 87ifneq ($(JETAN_INCLUDE),)
88 ALICEINC += -I../$(JETAN_INCLUDE)
89endif
90
d89b8229 91ifneq ($(JETANDEV_INCLUDE),)
92 ALICEINC += -I../$(JETANDEV_INCLUDE)
93endif
94
2f4cac02 95ifneq ($(PWG4JCORRAN_INCLUDE),)
96 ALICEINC += -I../$(PWG4JCORRAN_INCLUDE)
97endif
f9cea31c 98
e989c76a 99# only if no par file was loaded before
2e557d1c 100#ifeq ($(ALICEINC),-I.)
e989c76a 101 ifneq ($(ALICE_ROOT),)
102 ALICEINC += -I$(ALICE_ROOT)/include
ec3847a1 103 ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
cfff6259 104 ALICEINC += -I$(ALICE_ROOT)/JETAN # some extra includes
591cc579 105 ALICEINC += -I$(ALICE_ROOT)/PHOS
106 ALICEINC += -I$(ALICE_ROOT)/EMCAL
54769bc0 107 ALICEINC += -I$(ALICE_ROOT)/PWG4/PartCorrBase
e989c76a 108 endif
2e557d1c 109#endif
f9cea31c 110
e989c76a 111CXXFLAGS += $(ALICEINC) -g
f9cea31c 112
958d9d26 113SRCS = $(wildcard $(subst PWG4,,$(PACKAGE))/*.cxx)
114HDRS = $(SRCS:.cxx=.h)
115DHDR = $(PACKAGE)LinkDef.h
f9cea31c 116
ec3847a1 117DHDR_PWG4 := $(DHDR)
118HDRS_PWG4 := $(HDRS)
119SRCS_PWG4 := $(SRCS) G__$(PACKAGE).cxx
120OBJS_PWG4 := $(SRCS_PWG4:.cxx=.o)
121
122PARFILE = $(PACKAGE).par
123
124lib$(PACKAGE).so: $(OBJS_PWG4)
f9cea31c 125 @echo "Linking" $@ ...
126 @/bin/rm -f $@
d86acb69 127ifeq ($(PLATFORM),macosx)
128# We need to make both the .dylib and the .so
129 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
130ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
131ifeq ($(MACOSX_MINOR),4)
132 ln -sf $@ $(subst .$(DllSuf),.so,$@)
f9cea31c 133else
d86acb69 134 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
135 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
136endif
137endif
138else
139ifeq ($(PLATFORM),win32)
140 bindexplib $* $^ > $*.def
141 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
142 $(OutPutOpt)$(EVENTLIB)
143 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
144 $(OutPutOpt)$@
145else
146 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
147endif
f9cea31c 148endif
149 @chmod a+x $@
150 @echo "done"
151
152%.o: %.cxx %.h
e989c76a 153 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 154
155clean:
d89b8229 156 @rm -f $(OBJS_PWG4) *.so G__$(PACKAGE).*
f9cea31c 157
158G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 159 @echo "Generating dictionaries ..." $(ALICEINC)
160 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^