increment version number
[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 ifneq ($(PWG4JetCorrel_INCLUDE),)
73   ALICEINC += -I../$(PWG4JetCorrel_INCLUDE)
74 endif
75
76 ifneq ($(PWG4JCORRAN_INCLUDE),)
77   ALICEINC += -I../$(PWG4JCORRAN_INCLUDE)
78 endif
79
80 # only if no par file was loaded before
81 #ifeq ($(ALICEINC),-I.)
82   ifneq ($(ALICE_ROOT),)
83     ALICEINC += -I$(ALICE_ROOT)/include
84     ALICEINC += -I$(ALICE_ROOT)/JETAN   # some extra includes
85     ALICEINC += -I$(ALICE_ROOT)/PHOS
86     ALICEINC += -I$(ALICE_ROOT)/EMCAL
87   endif
88 #endif
89
90 CXXFLAGS += $(ALICEINC) -g
91
92 SRCS         += G__$(PACKAGE).cxx
93 OBJS          = $(SRCS:.cxx=.o)
94
95 lib$(PACKAGE).so: $(OBJS)
96         @echo "Linking" $@ ...
97         @/bin/rm -f $@
98 ifeq ($(ARCH),macosx)
99         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
100 else
101         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
102 endif
103         @chmod a+x $@
104         @echo "done"
105
106 %.o:    %.cxx %.h
107         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
108
109 clean:
110         @rm -f $(OBJS) *.so G__$(PACKAGE).*
111
112 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
113         @echo "Generating dictionaries ..." $(ALICEINC)
114         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
115