Changes to fast embedding and jetresponse: QA plot for delta AOD, Jet eta phi selecti...
[u/mrichter/AliRoot.git] / PWG4 / 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
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
54ifneq ($(PWG4PartCorrBase_INCLUDE),)
55 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
56endif
57
58ifneq ($(PWG4PartCorrDep_INCLUDE),)
59 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
60 ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
e989c76a 61endif
62
7a0d68dc 63ifneq ($(PWG4GammaConv_INCLUDE),)
64 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
65endif
66
e989c76a 67ifneq ($(PWG4JetTasks_INCLUDE),)
68 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
69endif
f9cea31c 70
edfd02fd 71ifneq ($(JETAN_INCLUDE),)
72 ALICEINC += -I../$(JETAN_INCLUDE)
73endif
74
2f4cac02 75ifneq ($(PWG4JCORRAN_INCLUDE),)
76 ALICEINC += -I../$(PWG4JCORRAN_INCLUDE)
77endif
f9cea31c 78
e989c76a 79# only if no par file was loaded before
2e557d1c 80#ifeq ($(ALICEINC),-I.)
e989c76a 81 ifneq ($(ALICE_ROOT),)
82 ALICEINC += -I$(ALICE_ROOT)/include
ec3847a1 83 ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
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
958d9d26 93SRCS = $(wildcard $(subst PWG4,,$(PACKAGE))/*.cxx)
94HDRS = $(SRCS:.cxx=.h)
95DHDR = $(PACKAGE)LinkDef.h
f9cea31c 96
ec3847a1 97DHDR_PWG4 := $(DHDR)
98HDRS_PWG4 := $(HDRS)
99SRCS_PWG4 := $(SRCS) G__$(PACKAGE).cxx
100OBJS_PWG4 := $(SRCS_PWG4:.cxx=.o)
101
102PARFILE = $(PACKAGE).par
103
104lib$(PACKAGE).so: $(OBJS_PWG4)
f9cea31c 105 @echo "Linking" $@ ...
106 @/bin/rm -f $@
10dc066e 107ifeq ($(ARCH),macosx)
f9cea31c 108 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
109else
110 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
111endif
112 @chmod a+x $@
113 @echo "done"
114
115%.o: %.cxx %.h
e989c76a 116 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 117
118clean:
e989c76a 119 @rm -f $(OBJS) *.so G__$(PACKAGE).*
f9cea31c 120
121G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 122 @echo "Generating dictionaries ..." $(ALICEINC)
123 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^