fix to read the AliESDfriends with AliRoot trunk (Raphaelle)
[u/mrichter/AliRoot.git] / PWG4 / Makefile
... / ...
CommitLineData
1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
4include lib$(PACKAGE).pkg
5
6ifndef PACKCXXFLAGS
7 PACKCXXFLAGS = $(CXXFLAGS)
8endif
9
10ALICEINC = -I.
11
12### define include dir for local case and par case
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 ($(JETAN_INCLUDE),)
34 ALICEINC += -I../$(JETAN_INCLUDE)
35endif
36
37ifneq ($(CORRFW_INCLUDE),)
38 ALICEINC += -I../$(CORRFW_INCLUDE)
39endif
40
41ifneq ($(PHOSUtils_INCLUDE),)
42 ALICEINC += -I../$(PHOSUtils_INCLUDE)
43 CXXFLAGS+=-D__PHOSUTIL__
44endif
45
46ifneq ($(EMCALUtils_INCLUDE),)
47 ALICEINC += -I../$(EMCALUtils_INCLUDE)
48 CXXFLAGS+=-D__EMCALUTIL__
49endif
50
51ifneq ($(PWG4PartCorrBase_INCLUDE),)
52 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
53endif
54
55ifneq ($(PWG4PartCorrDep_INCLUDE),)
56 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
57 ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
58endif
59
60ifneq ($(PWG4GammaConv_INCLUDE),)
61 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
62endif
63
64ifneq ($(PWG4JetTasks_INCLUDE),)
65 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
66endif
67
68ifneq ($(JETAN_INCLUDE),)
69 ALICEINC += -I../$(JETAN_INCLUDE)
70endif
71
72ifneq ($(PWG4JetCorrel_INCLUDE),)
73 ALICEINC += -I../$(PWG4JetCorrel_INCLUDE)
74endif
75
76
77# only if no par file was loaded before
78#ifeq ($(ALICEINC),-I.)
79 ifneq ($(ALICE_ROOT),)
80 ALICEINC += -I$(ALICE_ROOT)/include
81 ALICEINC += -I$(ALICE_ROOT)/JETAN # some extra includes
82 ALICEINC += -I$(ALICE_ROOT)/PHOS
83 ALICEINC += -I$(ALICE_ROOT)/EMCAL
84 endif
85#endif
86
87CXXFLAGS += $(ALICEINC) -g
88
89SRCS += G__$(PACKAGE).cxx
90OBJS = $(SRCS:.cxx=.o)
91
92lib$(PACKAGE).so: $(OBJS)
93 @echo "Linking" $@ ...
94 @/bin/rm -f $@
95ifeq ($(ARCH),macosx)
96 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
97else
98 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
99endif
100 @chmod a+x $@
101 @echo "done"
102
103%.o: %.cxx %.h
104 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
105
106clean:
107 @rm -f $(OBJS) *.so G__$(PACKAGE).*
108
109G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
110 @echo "Generating dictionaries ..." $(ALICEINC)
111 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
112