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