Added monitoring
[u/mrichter/AliRoot.git] / PWGLF / Makefile
1 PACKAGE = PWGLFresonances
2
3 include Makefile.arch
4
5 SRCS = 
6 HDRS = 
7 DHDR = 
8
9 ifndef PACKCXXFLAGS
10    PACKCXXFLAGS = $(CXXFLAGS)
11 endif
12
13 ALIARCH := $(shell $(RC) --arch)
14 PARPATH := $(shell pwd)
15
16 ALICEINC = -I.
17 ALICEINC += -I$(PACKAGE) -I$(PACKAGE)/RESONANCES
18
19 # ALIPARLIBS = -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser -lVMC -lMinuit -lEG -lGeom
20 ALIPARLIBS = 
21 # ALICELIBS += -L$(ALICE_ROOT)/lib/tgt_$(shell $(RC) --arch) 
22
23 ifneq ($(STEERBase_INCLUDE),)
24    ALICEINC += -I../$(STEERBase_INCLUDE)
25    ALIPARLIBS += $(STEERBase_LIBS)
26 else
27    ifneq ($(PACKAGE),STEERBase)
28      ALICELIBS += -lSTEERBase
29    else
30      ALIPARLIBS += -L$(PARPATH) -lSTEERBase
31    endif
32 endif
33
34 ifneq ($(ESD_INCLUDE),)
35    ALICEINC += -I../$(ESD_INCLUDE)
36    ALIPARLIBS += $(ESD_LIBS)
37 else
38    ifneq ($(PACKAGE),ESD)
39      ALICELIBS += -lESD
40    else
41      ALIPARLIBS += -L$(PARPATH) -lESD
42    endif
43 endif
44
45 ifneq ($(AOD_INCLUDE),)
46    ALICEINC += -I../$(AOD_INCLUDE)
47    ALIPARLIBS += $(AOD_LIBS)
48 else
49    ifneq ($(PACKAGE),AOD)
50      ALICELIBS += -lAOD
51    else
52      ALIPARLIBS += -L$(PARPATH) -lAOD
53    endif
54 endif
55
56 ifneq ($(ANALYSIS_INCLUDE),)
57    ALICEINC += -I../$(ANALYSIS_INCLUDE)
58    ALIPARLIBS += $(ANALYSIS_LIBS)
59 else
60    ifneq ($(PACKAGE),ANALYSIS)
61      ALICELIBS += -lANALYSIS
62    else
63      ALIPARLIBS += -L$(PARPATH) -lANALYSIS
64    endif
65 endif
66
67 ifneq ($(ANALYSISalice_INCLUDE),)
68    ALICEINC += -I../$(ANALYSISalice_INCLUDE)
69    ALIPARLIBS += $(ANALYSISalice_LIBS)
70 else
71    ifneq ($(PACKAGE),ANALYSISalice)
72      ALICELIBS += -lANALYSISalice
73    else
74      ALIPARLIBS += -L$(PARPATH) -lANALYSISalice
75    endif
76 endif
77
78 ifneq ($(EventMixing_INCLUDE),)
79    ALICEINC += -I../$(EventMixng_INCLUDE)
80    ALIPARLIBS += $(EventMixing_LIBS)
81 else
82    ifneq ($(PACKAGE),EventMixing)
83      ALICELIBS += -lEventMixing
84    else
85      ALIPARLIBS += -L$(PARPATH) -lEventMixing
86    endif
87 endif
88
89 ifneq ($(CORRFW_INCLUDE),)
90    ALICEINC += -I../$(CORRFW_INCLUDE)
91    ALIPARLIBS += $(CORRFW_LIBS)
92 else
93    ifneq ($(PACKAGE),CORRFW)
94      ALICELIBS += -lCORRFW
95    else
96      ALIPARLIBS += -L$(PARPATH) -lCORRFW
97    endif
98 endif
99
100 ifneq ($(PWGLFresonances_INCLUDE),)
101    ALICEINC += -I../$(PWGLFresonances_INCLUDE)
102    ALIPARLIBS += $(PWGLFresonances_LIBS)
103 else
104    ifneq ($(PACKAGE),PWGLFresonances)
105      ALICELIBS += -lPWGLFresonances
106    else     
107      ALIPARLIBS += -L$(PARPATH) -lPWGLFresonances
108    endif
109 endif
110
111 # only if no par file was loaded before
112 ifeq ($(ALICEINC),-I.)
113   ifneq ($(ALICE_ROOT),)
114     ALICEINC += -I$(ALICE_ROOT)/include
115     ALIPARLIBS += -L$(ALICE_ROOT)/lib/tgt_$(ALIARCH) $(ALICELIBS)
116   endif
117 endif
118
119 ALICEINC += -I$(ALICE_ROOT)/include
120 ALIPARLIBS += -L$(ALICE_ROOT)/lib/tgt_$(ALIARCH) $(ALICELIBS)
121
122 # ifeq ($(PLATFORM),macosx)
123 ROOTLIBDIR     := $(shell $(RC) --libdir)
124 # ALIROOTLIBDIR  := $(ALICE_ROOT)/lib/tgt_$(shell $(RC) --arch)
125
126 PACKLDFLAGS := $(ALIPARLIBS) -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser -lVMC -lMinuit -lEG -lGeom
127
128 CXXFLAGS += $(ALICEINC) -g
129
130 SRCS         += G__$(PACKAGE).cxx
131 OBJS          = $(SRCS:.cxx=.o)
132
133 lib$(PACKAGE).so: $(OBJS)
134         @echo "Linking" $@ ...
135         @/bin/rm -f $@
136 ifeq ($(PLATFORM),macosx)
137         $(LD) $(SOFLAGS) -flat_namespace -undefined suppress $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
138 else
139         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
140 endif
141         @chmod a+x $@
142         @echo "done"
143
144 %.o:    %.cxx %.h
145         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
146
147 clean:
148         @rm -f $(OBJS) *.so G__$(PACKAGE).*
149
150 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
151         @echo "Generating dictionaries ..." $(ALICEINC)
152         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
153