fix AliHLTGlobalEsdConverterComponent
[u/mrichter/AliRoot.git] / PWGGA / 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
13 ifneq ($(STEERBase_INCLUDE),)
14   ALICEINC += -I../$(STEERBase_INCLUDE)
15 endif
16
17 ifneq ($(ESD_INCLUDE),)
18   ALICEINC += -I../$(ESD_INCLUDE)
19 endif
20
21 ifneq ($(AOD_INCLUDE),)
22   ALICEINC += -I../$(AOD_INCLUDE)
23 endif
24
25 ifneq ($(ANALYSIS_INCLUDE),)
26   ALICEINC += -I../$(ANALYSIS_INCLUDE)
27 endif
28
29 ifneq ($(ANALYSISalice_INCLUDE),)
30   ALICEINC += -I../$(ANALYSISalice_INCLUDE)
31 endif
32
33 ifneq ($(PHOSUtils_INCLUDE),)
34   ALICEINC += -I../$(PHOSUtils_INCLUDE)
35   CXXFLAGS+=-D__PHOSUTIL__
36 endif
37
38 ifneq ($(EMCALUtils_INCLUDE),)
39   ALICEINC += -I../$(EMCALUtils_INCLUDE)
40   CXXFLAGS+=-D__EMCALUTIL__
41 endif
42
43 ifneq ($(PWGGACaloTasks_INCLUDE),)
44   ALICEINC += -I../$(PWGGACaloTasks_INCLUDE)
45 endif
46
47 ifneq ($(PWGCaloTrackCorrBase_INCLUDE),)
48   ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
49 endif
50
51 ifneq ($(PWGGACaloTrackCorrelations_INCLUDE),)
52   ALICEINC += -I../$(PWGCaloTrackCorrBase_INCLUDE)
53   ALICEINC += -I../$(PWGGACaloTrackCorrelations_INCLUDE)
54 endif
55
56 ifneq ($(PWGGAEMCALTasks_INCLUDE),)
57   ALICEINC += -I../$(PWGGAEMCALTasks_INCLUDE)
58 endif
59
60 ifneq ($(PWGGAGammaConv_INCLUDE),)
61   ALICEINC += -I../$(PWGGAGammaConv_INCLUDE)
62 endif
63
64 ifneq ($(PWGGAPHOSTasks_INCLUDE),)
65   ALICEINC += -I../$(PWGGAPHOSTasks_INCLUDE)
66 endif
67
68 # only if no par file was loaded before
69 #ifeq ($(ALICEINC),-I.)
70   ifneq ($(ALICE_ROOT),)
71     ALICEINC += -I$(ALICE_ROOT)/include
72     ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet
73     ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
74     ALICEINC += -I$(ALICE_ROOT)/PWG
75     ALICEINC += -I$(ALICE_ROOT)/PHOS
76     ALICEINC += -I$(ALICE_ROOT)/EMCAL
77   endif
78 #endif
79
80 CXXFLAGS += $(ALICEINC) -g
81
82 SRCS     = $(wildcard $(subst PWGGA,,$(PACKAGE))/*.cxx)
83 HDRS     = $(SRCS:.cxx=.h)
84 DHDR     = $(PACKAGE)LinkDef.h
85
86 DHDR_PWGGA := $(DHDR)
87 HDRS_PWGGA := $(HDRS)
88 SRCS_PWGGA := $(SRCS) G__$(PACKAGE).cxx
89 OBJS_PWGGA := $(SRCS_PWGGA:.cxx=.o)
90
91 PARFILE       = $(PACKAGE).par
92
93 lib$(PACKAGE).so: $(OBJS_PWGGA)
94         @echo "Linking" $@ ...
95         @/bin/rm -f $@
96         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
97         @chmod a+x $@
98         @echo "done"
99
100 %.o:    %.cxx %.h
101         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
102
103 clean:
104         @rm -f $(OBJS) *.so G__$(PACKAGE).*
105
106 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
107         @echo "Generating dictionaries ..." $(ALICEINC)
108         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^