AliTPCcalibCalib.cxx - use also alignmnet - not implemented yet
[u/mrichter/AliRoot.git] / PWG4 / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4 include lib$(PACKAGE).pkg
5
6 ifndef PACKCXXFLAGS
7    PACKCXXFLAGS = $(CXXFLAGS)
8 endif
9
10 ALICEINC = -I.
11
12 ### define include dir for local case and par case
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 ($(JETAN_INCLUDE),)
34   ALICEINC += -I../$(JETAN_INCLUDE)
35 endif
36
37 ifneq ($(CORRFW_INCLUDE),)
38   ALICEINC += -I../$(CORRFW_INCLUDE)
39 endif
40
41 ifneq ($(PHOSUtils_INCLUDE),)
42   ALICEINC += -I../$(PHOSUtils_INCLUDE)
43   CXXFLAGS+=-D__PHOSUTIL__
44 endif
45
46 ifneq ($(EMCALUtils_INCLUDE),)
47   ALICEINC += -I../$(EMCALUtils_INCLUDE)
48   CXXFLAGS+=-D__EMCALUTIL__
49 endif
50
51 ifneq ($(PWG4PartCorrBase_INCLUDE),)
52   ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
53 endif
54
55 ifneq ($(PWG4PartCorrDep_INCLUDE),)
56  ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE) 
57  ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
58 endif
59
60 ifneq ($(PWG4GammaConv_INCLUDE),)
61   ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
62 endif
63
64 ifneq ($(PWG4JetTasks_INCLUDE),)
65   ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
66 endif
67
68 ifneq ($(JETAN_INCLUDE),)
69   ALICEINC += -I../$(JETAN_INCLUDE)
70 endif
71
72
73 # only if no par file was loaded before
74 #ifeq ($(ALICEINC),-I.)
75   ifneq ($(ALICE_ROOT),)
76     ALICEINC += -I$(ALICE_ROOT)/include
77     ALICEINC += -I$(ALICE_ROOT)/JETAN   # some extra includes
78     ALICEINC += -I$(ALICE_ROOT)/PHOS
79     ALICEINC += -I$(ALICE_ROOT)/EMCAL
80   endif
81 #endif
82
83 CXXFLAGS += $(ALICEINC) -g
84
85 SRCS         += G__$(PACKAGE).cxx
86 OBJS          = $(SRCS:.cxx=.o)
87
88 lib$(PACKAGE).so: $(OBJS)
89         @echo "Linking" $@ ...
90         @/bin/rm -f $@
91 ifeq ($(ARCH),macosx)
92         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
93 else
94         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
95 endif
96         @chmod a+x $@
97         @echo "done"
98
99 %.o:    %.cxx %.h
100         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
101
102 clean:
103         @rm -f $(OBJS) *.so G__$(PACKAGE).*
104
105 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
106         @echo "Generating dictionaries ..." $(ALICEINC)
107         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
108