additional PID cases for AliFemtoESDTrack
[u/mrichter/AliRoot.git] / PWGCF / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 SRCS     = $(wildcard *.cxx)
6 HDRS     = $(SRCS:.cxx=.h)
7 DHDR     = $(PACKAGE)LinkDef.h
8
9
10 ifndef PACKCXXFLAGS
11    PACKCXXFLAGS = $(CXXFLAGS)
12 endif
13
14 ALICEINC = -I.
15 ALICEINC += -I./$(PACKAGE)/
16
17 ifneq ($(ESD_INCLUDE),)
18    ALICEINC += -I../$(ESD_INCLUDE)
19 endif
20
21 ifneq ($(AOD_INCLUDE),)
22    ALICEINC += -I../$(AOD_INCLUDE)
23 endif
24
25 ifneq ($(STEERBase_INCLUDE),)
26    ALICEINC += -I../$(STEERBase_INCLUDE)
27 endif
28
29 ifneq ($(ANALYSIS_INCLUDE),)
30    ALICEINC += -I../$(ANALYSIS_INCLUDE)
31 endif
32
33 ifneq ($(OADB_INCLUDE),)
34    ALICEINC += -I../$(OADB_INCLUDE)
35 endif
36
37 ifneq ($(ANALYSISalice_INCLUDE),)
38    ALICEINC += -I../$(ANALYSISalice_INCLUDE)
39 endif
40
41 ifneq ($(CORRFW_INCLUDE),)
42    ALICEINC += -I../$(CORRFW_INCLUDE)
43 endif
44
45 ifneq ($(PWGTools_INCLUDE),)
46    ALICEINC += -I../$(PWGTools_INCLUDE)
47 endif
48
49 ifneq ($(PWGCFebye_INCLUDE),)
50    ALICEINC += -I../$(PWGCFebye_INCLUDE) -I../$(PWGCFebye_INCLUDE)/LRC 
51 else
52    ALICEINC += -I$(ALICE_ROOT)/PWGCF/EBYE -I$(ALICE_ROOT)/PWGCF/EBYE/LRC
53 endif
54
55 ifneq ($(PWGCFfemtoscopy_INCLUDE),)
56    ALICEINC += -I../$(PWGCFfemtoscopy_INCLUDE) -I../$(PWGCFfemtoscopy_INCLUDE)/AliFemto
57 else
58    ALICEINC += -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY/AliFemto
59 endif
60
61 ifneq ($(PWGCFfemtoscopyUser_INCLUDE),)
62    ALICEINC += -I../$(PWGCFfemtoscopyUser_INCLUDE)
63 endif
64
65 ifneq ($(PWGCFunicor_INCLUDE),)
66    ALICEINC += -I../$(PWGCFunicor_INCLUDE)
67 endif
68
69 ifneq ($(PWGCFCorrelationsBase_INCLUDE),)
70    ALICEINC += -I../$(PWGCFCorrelationsBase_INCLUDE)
71 endif
72
73 ifneq ($(PWGCFCorrelationsDPhi_INCLUDE),)
74    ALICEINC += -I../$(PWGCFCorrelationsDPhi_INCLUDE)
75 endif
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   endif
82 #endif
83
84
85
86
87 CXXFLAGS += $(ALICEINC) -g
88
89 SRCS         += G__$(PACKAGE).cxx
90 OBJS          = $(SRCS:.cxx=.o)
91
92 lib$(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
102 clean:
103         @rm -f $(OBJS) *.so G__$(PACKAGE).*
104
105 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
106         @echo "Generating dictionaries ..." $(ALICEINC)
107         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
108