Restoring the functionallity of the PAR files: partial fix
[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   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         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
84         @chmod a+x $@
85         @echo "done"
86
87 %.o:    %.cxx %.h
88         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
89
90 clean:
91         @rm -f $(OBJS_PWG) *.so G__$(PACKAGE).*
92
93 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
94         @echo "Generating dictionaries ..." $(ALICEINC)
95         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^