]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Makefile
Fix OCDB induced problem in trigger calculation
[u/mrichter/AliRoot.git] / PWGCF / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 SRCS     = $(wildcard *.cxx)
6 HDRS     = $(SRCS:.cxx=.h)
7 DHDR     = $(PACKAGE)LinkDef.h
8
9
10 ifndef PACKCXXFLAGS
11    PACKCXXFLAGS = $(CXXFLAGS)
12 endif
13
14 ALICEINC = -I.
15 ALICEINC += -I./$(PACKAGE)/
16
17 ifneq ($(PWGCFebye_INCLUDE),)
18    ALICEINC += -I../$(PWGCFebye_INCLUDE) -I../$(PWGCFebye_INCLUDE)/LRC 
19 else
20    ALICEINC += -I$(ALICE_ROOT)/PWGCF/EBYE -I$(ALICE_ROOT)/PWGCF/EBYE/LRC
21 endif
22
23 ifneq ($(PWGCFfemtoscopy_INCLUDE),)
24    ALICEINC += -I../$(PWGCFfemtoscopy_INCLUDE) -I../$(PWGCFfemtoscopy_INCLUDE)/AliFemto
25 else
26    ALICEINC += -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY -I$(ALICE_ROOT)/PWGCF/FEMTOSCOPY/AliFemto
27 endif
28
29 ifneq ($(PWGCFfemtoscopyUser_INCLUDE),)
30    ALICEINC += -I../$(PWGCFfemtoscopyUser_INCLUDE)
31 endif
32
33 ifneq ($(PWGCFunicor_INCLUDE),)
34    ALICEINC += -I../$(PWGCFunicor_INCLUDE)
35 endif
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
47 CXXFLAGS += $(ALICEINC) -g
48
49 SRCS         += G__$(PACKAGE).cxx
50 OBJS          = $(SRCS:.cxx=.o)
51
52 lib$(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
62 clean:
63         @rm -f $(OBJS) *.so G__$(PACKAGE).*
64
65 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
66         @echo "Generating dictionaries ..." $(ALICEINC)
67         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
68