Restored PAR file functionallity: make test-par-all works
[u/mrichter/AliRoot.git] / PWG / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include 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     ALICEINC += -I$(ALICE_ROOT)/PWG/FLOW/Base
65     ALICEINC += -I$(ALICE_ROOT)/MUON
66   endif
67 #endif
68
69 CXXFLAGS += $(ALICEINC) -g
70
71 SRCS = $(wildcard *.cxx)
72 HDRS = $(SRCS:.cxx=.h)
73 DHDR = $(PACKAGE)LinkDef.h
74
75 DHDR_PWG := $(DHDR)
76 HDRS_PWG := $(HDRS)
77 SRCS_PWG := $(SRCS) G__$(PACKAGE).cxx
78 OBJS_PWG := $(SRCS_PWG:.cxx=.o)
79
80 PARFILE       = $(PACKAGE).par
81
82 lib$(PACKAGE).so: $(OBJS_PWG)
83         @echo "Linking" $@ ...
84         @/bin/rm -f $@
85         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
86         @chmod a+x $@
87         @echo "done"
88
89 %.o:    %.cxx %.h
90         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
91
92 clean:
93         @rm -f $(OBJS_PWG) *.so G__$(PACKAGE).*
94
95 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
96         @echo "Generating dictionaries ..." $(ALICEINC)
97         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^