Update EbyEPR: drathee
[u/mrichter/AliRoot.git] / PWGCF / Makefile
CommitLineData
f4545ac7 1PACKAGE = invalid-only-for-proof
2
3include Makefile.arch
4
5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
8
9
10ifndef PACKCXXFLAGS
11 PACKCXXFLAGS = $(CXXFLAGS)
12endif
13
14ALICEINC = -I.
15ALICEINC += -I./$(PACKAGE)/
16
34fe53ec 17ifneq ($(ESD_INCLUDE),)
18 ALICEINC += -I../$(ESD_INCLUDE)
19endif
20
21ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
23endif
24
25ifneq ($(STEERBase_INCLUDE),)
26 ALICEINC += -I../$(STEERBase_INCLUDE)
27endif
28
29ifneq ($(ANALYSIS_INCLUDE),)
30 ALICEINC += -I../$(ANALYSIS_INCLUDE)
31endif
32
33ifneq ($(OADB_INCLUDE),)
34 ALICEINC += -I../$(OADB_INCLUDE)
35endif
36
37ifneq ($(ANALYSISalice_INCLUDE),)
38 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
39endif
40
41ifneq ($(CORRFW_INCLUDE),)
42 ALICEINC += -I../$(CORRFW_INCLUDE)
43endif
44
45ifneq ($(PWGTools_INCLUDE),)
46 ALICEINC += -I../$(PWGTools_INCLUDE)
47endif
48
f4545ac7 49ifneq ($(PWGCFebye_INCLUDE),)
50 ALICEINC += -I../$(PWGCFebye_INCLUDE) -I../$(PWGCFebye_INCLUDE)/LRC
51else
52 ALICEINC += -I$(ALICE_ROOT)/PWGCF/EBYE -I$(ALICE_ROOT)/PWGCF/EBYE/LRC
53endif
54
55ifneq ($(PWGCFfemtoscopy_INCLUDE),)
56 ALICEINC += -I../$(PWGCFfemtoscopy_INCLUDE) -I../$(PWGCFfemtoscopy_INCLUDE)/AliFemto
57else
58 ALICEINC += -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY/AliFemto
59endif
60
61ifneq ($(PWGCFfemtoscopyUser_INCLUDE),)
62 ALICEINC += -I../$(PWGCFfemtoscopyUser_INCLUDE)
63endif
64
65ifneq ($(PWGCFunicor_INCLUDE),)
66 ALICEINC += -I../$(PWGCFunicor_INCLUDE)
67endif
68
9b143719 69ifneq ($(PWGCFCorrelationsBase_INCLUDE),)
70 ALICEINC += -I../$(PWGCFCorrelationsBase_INCLUDE)
71endif
72
73ifneq ($(PWGCFCorrelationsDPhi_INCLUDE),)
74 ALICEINC += -I../$(PWGCFCorrelationsDPhi_INCLUDE)
75endif
76
f4545ac7 77# only if no par file was loaded before
78#ifeq ($(ALICEINC),-I.)
79 ifneq ($(ALICE_ROOT),)
80 ALICEINC += -I$(ALICE_ROOT)/include
81 endif
82#endif
83
84
85
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 $@
95 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
96 @chmod a+x $@
97 @echo "done"
98
99%.o: %.cxx %.h
100 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
101
102clean:
103 @rm -f $(OBJS) *.so G__$(PACKAGE).*
104
105G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
106 @echo "Generating dictionaries ..." $(ALICEINC)
107 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
108