]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/Makefile
Fix to make the analysis for multiple isolation cuts parameters work again
[u/mrichter/AliRoot.git] / PWG / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4
5 ifndef PACKCXXFLAGS
6    PACKCXXFLAGS = $(CXXFLAGS)
7 endif
8
9 ALICEINC = -I.
10
11 ### define include dir for local case and par case
12 ifneq ($(STEERBase_INCLUDE),)
13   ALICEINC += -I../$(STEERBase_INCLUDE)
14 endif
15
16 ifneq ($(ESD_INCLUDE),)
17   ALICEINC += -I../$(ESD_INCLUDE)
18 endif
19
20 ifneq ($(AOD_INCLUDE),)
21   ALICEINC += -I../$(AOD_INCLUDE)
22 endif
23
24 ifneq ($(ANALYSIS_INCLUDE),)
25   ALICEINC += -I../$(ANALYSIS_INCLUDE)
26 endif
27
28 ifneq ($(ANALYSISalice_INCLUDE),)
29   ALICEINC += -I../$(ANALYSISalice_INCLUDE)
30 endif
31
32 ifneq ($(EventMixing_INCLUDE),)
33   ALICEINC += -I../$(EventMixing_INCLUDE)
34 endif
35
36 ifneq ($(JETAN_INCLUDE),)
37   ALICEINC += -I../$(JETAN_INCLUDE)
38 endif
39
40 ifneq ($(JETANDEV_INCLUDE),)
41   ALICEINC += -I../$(JETANDEV_INCLUDE)
42 endif
43
44 ifneq ($(CORRFW_INCLUDE),)
45   ALICEINC += -I../$(CORRFW_INCLUDE)
46 endif
47
48 ifneq ($(PWGflowBase_INCLUDE),)
49   ALICEINC += -I../$(PWGflowBase_INCLUDE)
50 endif
51
52 #needed by flowTasks
53 ALICEINC += -I$(ALICE_ROOT)/TOF
54
55 ifneq ($(PWGflowTasks_INCLUDE),)
56   ALICEINC += -I../$(PWGflowTasks_INCLUDE)
57 endif
58
59 # only if no par file was loaded before
60 #ifeq ($(ALICEINC),-I.)
61   ifneq ($(ALICE_ROOT),)
62     ALICEINC += -I$(ALICE_ROOT)/include
63     ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
64   endif
65 #endif
66
67 CXXFLAGS += $(ALICEINC) -g
68
69 SRCS = $(wildcard *.cxx)
70 HDRS = $(SRCS:.cxx=.h)
71 DHDR = $(PACKAGE)LinkDef.h
72
73 DHDR_PWG := $(DHDR)
74 HDRS_PWG := $(HDRS)
75 SRCS_PWG := $(SRCS) G__$(PACKAGE).cxx
76 OBJS_PWG := $(SRCS_PWG:.cxx=.o)
77
78 PARFILE       = $(PACKAGE).par
79
80 lib$(PACKAGE).so: $(OBJS_PWG)
81         @echo "Linking" $@ ...
82         @/bin/rm -f $@
83 ifeq ($(PLATFORM),macosx)
84 # We need to make both the .dylib and the .so
85                 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
86 ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
87 ifeq ($(MACOSX_MINOR),4)
88                 ln -sf $@ $(subst .$(DllSuf),.so,$@)
89 else
90                 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
91                    $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
92 endif
93 endif
94 else
95 ifeq ($(PLATFORM),win32)
96                 bindexplib $* $^ > $*.def
97                 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
98                    $(OutPutOpt)$(EVENTLIB)
99                 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
100                    $(OutPutOpt)$@
101 else
102                 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
103 endif
104 endif
105         @chmod a+x $@
106         @echo "done"
107
108 %.o:    %.cxx %.h
109         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
110
111 clean:
112         @rm -f $(OBJS_PWG) *.so G__$(PACKAGE).*
113
114 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
115         @echo "Generating dictionaries ..." $(ALICEINC)
116         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^