1 PACKAGE = PWGLFresonances
10 PACKCXXFLAGS = $(CXXFLAGS)
13 ALIARCH := $(shell $(RC) --arch)
14 PARPATH := $(shell pwd)
17 ALICEINC += -I$(PACKAGE) -I$(PACKAGE)/RESONANCES
19 # ALIPARLIBS = -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser -lVMC -lMinuit -lEG -lGeom
21 # ALICELIBS += -L$(ALICE_ROOT)/lib/tgt_$(shell $(RC) --arch)
23 ifneq ($(STEERBase_INCLUDE),)
24 ALICEINC += -I../$(STEERBase_INCLUDE)
25 ALIPARLIBS += $(STEERBase_LIBS)
27 ifneq ($(PACKAGE),STEERBase)
28 ALICELIBS += -lSTEERBase
30 ALIPARLIBS += -L$(PARPATH) -lSTEERBase
34 ifneq ($(ESD_INCLUDE),)
35 ALICEINC += -I../$(ESD_INCLUDE)
36 ALIPARLIBS += $(ESD_LIBS)
38 ifneq ($(PACKAGE),ESD)
41 ALIPARLIBS += -L$(PARPATH) -lESD
45 ifneq ($(AOD_INCLUDE),)
46 ALICEINC += -I../$(AOD_INCLUDE)
47 ALIPARLIBS += $(AOD_LIBS)
49 ifneq ($(PACKAGE),AOD)
52 ALIPARLIBS += -L$(PARPATH) -lAOD
56 ifneq ($(ANALYSIS_INCLUDE),)
57 ALICEINC += -I../$(ANALYSIS_INCLUDE)
58 ALIPARLIBS += $(ANALYSIS_LIBS)
60 ifneq ($(PACKAGE),ANALYSIS)
61 ALICELIBS += -lANALYSIS
63 ALIPARLIBS += -L$(PARPATH) -lANALYSIS
67 ifneq ($(ANALYSISalice_INCLUDE),)
68 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
69 ALIPARLIBS += $(ANALYSISalice_LIBS)
71 ifneq ($(PACKAGE),ANALYSISalice)
72 ALICELIBS += -lANALYSISalice
74 ALIPARLIBS += -L$(PARPATH) -lANALYSISalice
78 ifneq ($(EventMixing_INCLUDE),)
79 ALICEINC += -I../$(EventMixng_INCLUDE)
80 ALIPARLIBS += $(EventMixing_LIBS)
82 ifneq ($(PACKAGE),EventMixing)
83 ALICELIBS += -lEventMixing
85 ALIPARLIBS += -L$(PARPATH) -lEventMixing
89 ifneq ($(CORRFW_INCLUDE),)
90 ALICEINC += -I../$(CORRFW_INCLUDE)
91 ALIPARLIBS += $(CORRFW_LIBS)
93 ifneq ($(PACKAGE),CORRFW)
96 ALIPARLIBS += -L$(PARPATH) -lCORRFW
100 ifneq ($(PWGLFresonances_INCLUDE),)
101 ALICEINC += -I../$(PWGLFresonances_INCLUDE)
102 ALIPARLIBS += $(PWGLFresonances_LIBS)
104 ifneq ($(PACKAGE),PWGLFresonances)
105 ALICELIBS += -lPWGLFresonances
107 ALIPARLIBS += -L$(PARPATH) -lPWGLFresonances
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)
119 ALICEINC += -I$(ALICE_ROOT)/include
120 ALIPARLIBS += -L$(ALICE_ROOT)/lib/tgt_$(ALIARCH) $(ALICELIBS)
122 # ifeq ($(PLATFORM),macosx)
123 ROOTLIBDIR := $(shell $(RC) --libdir)
124 # ALIROOTLIBDIR := $(ALICE_ROOT)/lib/tgt_$(shell $(RC) --arch)
126 PACKLDFLAGS := $(ALIPARLIBS) -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser -lVMC -lMinuit -lEG -lGeom
128 CXXFLAGS += $(ALICEINC) -g
130 SRCS += G__$(PACKAGE).cxx
131 OBJS = $(SRCS:.cxx=.o)
133 lib$(PACKAGE).so: $(OBJS)
134 @echo "Linking" $@ ...
136 ifeq ($(PLATFORM),macosx)
137 $(LD) $(SOFLAGS) -flat_namespace -undefined suppress $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
139 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
145 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
148 @rm -f $(OBJS) *.so G__$(PACKAGE).*
150 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
151 @echo "Generating dictionaries ..." $(ALICEINC)
152 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^