Restored PAR file functionallity: make test-par-all works
[u/mrichter/AliRoot.git] / PWG / Makefile
CommitLineData
222034d3 1PACKAGE = invalid-only-for-proof
2
41f671ab 3include Makefile.arch
222034d3 4
5ifndef PACKCXXFLAGS
6 PACKCXXFLAGS = $(CXXFLAGS)
7endif
8
9ALICEINC = -I.
10
11### define include dir for local case and par case
12ifneq ($(STEERBase_INCLUDE),)
13 ALICEINC += -I../$(STEERBase_INCLUDE)
14endif
15
16ifneq ($(ESD_INCLUDE),)
17 ALICEINC += -I../$(ESD_INCLUDE)
18endif
19
20ifneq ($(AOD_INCLUDE),)
21 ALICEINC += -I../$(AOD_INCLUDE)
22endif
23
24ifneq ($(ANALYSIS_INCLUDE),)
25 ALICEINC += -I../$(ANALYSIS_INCLUDE)
26endif
27
28ifneq ($(ANALYSISalice_INCLUDE),)
29 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
30endif
31
32ifneq ($(EventMixing_INCLUDE),)
33 ALICEINC += -I../$(EventMixing_INCLUDE)
34endif
35
36ifneq ($(JETAN_INCLUDE),)
37 ALICEINC += -I../$(JETAN_INCLUDE)
38endif
39
40ifneq ($(JETANDEV_INCLUDE),)
41 ALICEINC += -I../$(JETANDEV_INCLUDE)
42endif
43
44ifneq ($(CORRFW_INCLUDE),)
45 ALICEINC += -I../$(CORRFW_INCLUDE)
46endif
47
60875c3c 48ifneq ($(PWGflowBase_INCLUDE),)
49 ALICEINC += -I../$(PWGflowBase_INCLUDE)
50endif
51
52#needed by flowTasks
53ALICEINC += -I$(ALICE_ROOT)/TOF
54
55ifneq ($(PWGflowTasks_INCLUDE),)
56 ALICEINC += -I../$(PWGflowTasks_INCLUDE)
57endif
58
222034d3 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
f4545ac7 64 ALICEINC += -I$(ALICE_ROOT)/PWG/FLOW/Base
65 ALICEINC += -I$(ALICE_ROOT)/MUON
222034d3 66 endif
67#endif
68
69CXXFLAGS += $(ALICEINC) -g
70
71SRCS = $(wildcard *.cxx)
72HDRS = $(SRCS:.cxx=.h)
73DHDR = $(PACKAGE)LinkDef.h
74
75DHDR_PWG := $(DHDR)
76HDRS_PWG := $(HDRS)
77SRCS_PWG := $(SRCS) G__$(PACKAGE).cxx
78OBJS_PWG := $(SRCS_PWG:.cxx=.o)
79
80PARFILE = $(PACKAGE).par
81
82lib$(PACKAGE).so: $(OBJS_PWG)
83 @echo "Linking" $@ ...
84 @/bin/rm -f $@
41f671ab 85 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
222034d3 86 @chmod a+x $@
87 @echo "done"
88
89%.o: %.cxx %.h
90 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
91
92clean:
93 @rm -f $(OBJS_PWG) *.so G__$(PACKAGE).*
94
95G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
96 @echo "Generating dictionaries ..." $(ALICEINC)
97 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^