adjustments in normal task & modifications in AddTasks
[u/mrichter/AliRoot.git] / PWGGA / Makefile
CommitLineData
f4545ac7 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
12
ce44bc7a 13ifneq ($(STEERBase_INCLUDE),)
14 ALICEINC += -I../$(STEERBase_INCLUDE)
15endif
16
17ifneq ($(ESD_INCLUDE),)
18 ALICEINC += -I../$(ESD_INCLUDE)
19endif
20
21ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
23endif
24
25ifneq ($(ANALYSIS_INCLUDE),)
26 ALICEINC += -I../$(ANALYSIS_INCLUDE)
27endif
28
29ifneq ($(ANALYSISalice_INCLUDE),)
30 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
31endif
32
33ifneq ($(PHOSUtils_INCLUDE),)
34 ALICEINC += -I../$(PHOSUtils_INCLUDE)
35 CXXFLAGS+=-D__PHOSUTIL__
36endif
37
38ifneq ($(EMCALUtils_INCLUDE),)
39 ALICEINC += -I../$(EMCALUtils_INCLUDE)
40 CXXFLAGS+=-D__EMCALUTIL__
41endif
42
f4545ac7 43ifneq ($(PWGGACaloTasks_INCLUDE),)
44 ALICEINC += -I../$(PWGGACaloTasks_INCLUDE)
45endif
46
ce44bc7a 47ifneq ($(PWGCaloTrackCorrBase_INCLUDE),)
48 ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
49endif
50
f4545ac7 51ifneq ($(PWGGACaloTrackCorrelations_INCLUDE),)
ce44bc7a 52 ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
f4545ac7 53 ALICEINC += -I../$(PWGGACaloTrackCorrelations_INCLUDE)
54endif
55
56ifneq ($(PWGGAEMCALTasks_INCLUDE),)
57 ALICEINC += -I../$(PWGGAEMCALTasks_INCLUDE)
58endif
59
60ifneq ($(PWGGAGammaConv_INCLUDE),)
61 ALICEINC += -I../$(PWGGAGammaConv_INCLUDE)
62endif
63
64ifneq ($(PWGGAPHOSTasks_INCLUDE),)
65 ALICEINC += -I../$(PWGGAPHOSTasks_INCLUDE)
66endif
67
68# only if no par file was loaded before
69#ifeq ($(ALICEINC),-I.)
70 ifneq ($(ALICE_ROOT),)
71 ALICEINC += -I$(ALICE_ROOT)/include
70923774 72 ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet
f4545ac7 73 ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
ce44bc7a 74 ALICEINC += -I$(ALICE_ROOT)/PWG
f4545ac7 75 ALICEINC += -I$(ALICE_ROOT)/PHOS
76 ALICEINC += -I$(ALICE_ROOT)/EMCAL
77 endif
78#endif
79
80CXXFLAGS += $(ALICEINC) -g
81
82SRCS = $(wildcard $(subst PWGGA,,$(PACKAGE))/*.cxx)
83HDRS = $(SRCS:.cxx=.h)
84DHDR = $(PACKAGE)LinkDef.h
85
86DHDR_PWGGA := $(DHDR)
87HDRS_PWGGA := $(HDRS)
88SRCS_PWGGA := $(SRCS) G__$(PACKAGE).cxx
89OBJS_PWGGA := $(SRCS_PWGGA:.cxx=.o)
90
91PARFILE = $(PACKAGE).par
92
93lib$(PACKAGE).so: $(OBJS_PWGGA)
94 @echo "Linking" $@ ...
95 @/bin/rm -f $@
96 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
97 @chmod a+x $@
98 @echo "done"
99
100%.o: %.cxx %.h
101 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
102
103clean:
104 @rm -f $(OBJS) *.so G__$(PACKAGE).*
105
106G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
107 @echo "Generating dictionaries ..." $(ALICEINC)
108 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^