AMPT header included
[u/mrichter/AliRoot.git] / PWGCF / Makefile
CommitLineData
f4545ac7 1PACKAGE = invalid-only-for-proof
2
3include Makefile.arch
4
5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
8
9
10ifndef PACKCXXFLAGS
11 PACKCXXFLAGS = $(CXXFLAGS)
12endif
13
14ALICEINC = -I.
15ALICEINC += -I./$(PACKAGE)/
16
17ifneq ($(PWGCFebye_INCLUDE),)
18 ALICEINC += -I../$(PWGCFebye_INCLUDE) -I../$(PWGCFebye_INCLUDE)/LRC
19else
20 ALICEINC += -I$(ALICE_ROOT)/PWGCF/EBYE -I$(ALICE_ROOT)/PWGCF/EBYE/LRC
21endif
22
23ifneq ($(PWGCFfemtoscopy_INCLUDE),)
24 ALICEINC += -I../$(PWGCFfemtoscopy_INCLUDE) -I../$(PWGCFfemtoscopy_INCLUDE)/AliFemto
25else
26 ALICEINC += -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY/AliFemto
27endif
28
29ifneq ($(PWGCFfemtoscopyUser_INCLUDE),)
30 ALICEINC += -I../$(PWGCFfemtoscopyUser_INCLUDE)
31endif
32
33ifneq ($(PWGCFunicor_INCLUDE),)
34 ALICEINC += -I../$(PWGCFunicor_INCLUDE)
35endif
36
37# only if no par file was loaded before
38#ifeq ($(ALICEINC),-I.)
39 ifneq ($(ALICE_ROOT),)
40 ALICEINC += -I$(ALICE_ROOT)/include
41 endif
42#endif
43
44
45
46
47CXXFLAGS += $(ALICEINC) -g
48
49SRCS += G__$(PACKAGE).cxx
50OBJS = $(SRCS:.cxx=.o)
51
52lib$(PACKAGE).so: $(OBJS)
53 @echo "Linking" $@ ...
54 @/bin/rm -f $@
55 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
56 @chmod a+x $@
57 @echo "done"
58
59%.o: %.cxx %.h
60 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
61
62clean:
63 @rm -f $(OBJS) *.so G__$(PACKAGE).*
64
65G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
66 @echo "Generating dictionaries ..." $(ALICEINC)
67 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
68