]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/Makefile
Small things
[u/mrichter/AliRoot.git] / PWGLF / Makefile
CommitLineData
365c717a 1PACKAGE = PWGLFresonances
0a0f6d45 2
365c717a 3include Makefile.arch
0a0f6d45 4
365c717a 5SRCS =
6HDRS =
7DHDR =
b63dbf69 8
365c717a 9ifndef PACKCXXFLAGS
10 PACKCXXFLAGS = $(CXXFLAGS)
b63dbf69 11endif
12
365c717a 13ALIARCH := $(shell $(RC) --arch)
14PARPATH := $(shell pwd)
0a0f6d45 15
365c717a 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)
483c140c 22
b63dbf69 23ifneq ($(STEERBase_INCLUDE),)
24 ALICEINC += -I../$(STEERBase_INCLUDE)
365c717a 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),)
0a0f6d45 35 ALICEINC += -I../$(ESD_INCLUDE)
365c717a 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),)
0a0f6d45 46 ALICEINC += -I../$(AOD_INCLUDE)
365c717a 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),)
0a0f6d45 57 ALICEINC += -I../$(ANALYSIS_INCLUDE)
365c717a 58 ALIPARLIBS += $(ANALYSIS_LIBS)
b63dbf69 59else
365c717a 60 ifneq ($(PACKAGE),ANALYSIS)
61 ALICELIBS += -lANALYSIS
62 else
63 ALIPARLIBS += -L$(PARPATH) -lANALYSIS
b63dbf69 64 endif
0a0f6d45 65endif
66
365c717a 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
0a0f6d45 76endif
77
365c717a 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
07c50b03 87endif
88
365c717a 89ifneq ($(CORRFW_INCLUDE),)
90 ALICEINC += -I../$(CORRFW_INCLUDE)
91 ALIPARLIBS += $(CORRFW_LIBS)
b63dbf69 92else
365c717a 93 ifneq ($(PACKAGE),CORRFW)
94 ALICELIBS += -lCORRFW
95 else
96 ALIPARLIBS += -L$(PARPATH) -lCORRFW
b63dbf69 97 endif
0a0f6d45 98endif
99
365c717a 100ifneq ($(PWGLFresonances_INCLUDE),)
101 ALICEINC += -I../$(PWGLFresonances_INCLUDE)
102 ALIPARLIBS += $(PWGLFresonances_LIBS)
0a0f6d45 103else
365c717a 104 ifneq ($(PACKAGE),PWGLFresonances)
105 ALICELIBS += -lPWGLFresonances
106 else
107 ALIPARLIBS += -L$(PARPATH) -lPWGLFresonances
b63dbf69 108 endif
0a0f6d45 109endif
110
111# only if no par file was loaded before
b63dbf69 112ifeq ($(ALICEINC),-I.)
0a0f6d45 113 ifneq ($(ALICE_ROOT),)
114 ALICEINC += -I$(ALICE_ROOT)/include
365c717a 115 ALIPARLIBS += -L$(ALICE_ROOT)/lib/tgt_$(ALIARCH) $(ALICELIBS)
0a0f6d45 116 endif
b63dbf69 117endif
0a0f6d45 118
365c717a 119ALICEINC += -I$(ALICE_ROOT)/include
120ALIPARLIBS += -L$(ALICE_ROOT)/lib/tgt_$(ALIARCH) $(ALICELIBS)
0a0f6d45 121
365c717a 122# ifeq ($(PLATFORM),macosx)
123ROOTLIBDIR := $(shell $(RC) --libdir)
124# ALIROOTLIBDIR := $(ALICE_ROOT)/lib/tgt_$(shell $(RC) --arch)
0a0f6d45 125
365c717a 126PACKLDFLAGS := $(ALIPARLIBS) -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser -lVMC -lMinuit -lEG -lGeom
0a0f6d45 127
365c717a 128CXXFLAGS += $(ALICEINC) -g
0a0f6d45 129
365c717a 130SRCS += G__$(PACKAGE).cxx
131OBJS = $(SRCS:.cxx=.o)
0a0f6d45 132
365c717a 133lib$(PACKAGE).so: $(OBJS)
0a0f6d45 134 @echo "Linking" $@ ...
135 @/bin/rm -f $@
b63dbf69 136ifeq ($(PLATFORM),macosx)
365c717a 137 $(LD) $(SOFLAGS) -flat_namespace -undefined suppress $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
b63dbf69 138else
365c717a 139 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
b63dbf69 140endif
0a0f6d45 141 @chmod a+x $@
142 @echo "done"
143
144%.o: %.cxx %.h
365c717a 145 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
0a0f6d45 146
147clean:
365c717a 148 @rm -f $(OBJS) *.so G__$(PACKAGE).*
0a0f6d45 149
365c717a 150G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
151 @echo "Generating dictionaries ..." $(ALICEINC)
152 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
0a0f6d45 153