Added PID task, some fixes for coding conventions
[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 ($(PHOSUtils_INCLUDE),)
38   ALICEINC += -I../$(PHOSUtils_INCLUDE)
39   CXXFLAGS+=-D__PHOSGEO__
40 endif
41
42 ifneq ($(PWG4PartCorrBase_INCLUDE),)
43   ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
44 endif
45
46 ifneq ($(PWG4PartCorrDep_INCLUDE),)
47  ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE) 
48  ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
49 endif
50
51 ifneq ($(PWG4GammaConv_INCLUDE),)
52   ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
53 endif
54
55 ifneq ($(PWG4JetTasks_INCLUDE),)
56   ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
57 endif
58
59 ifneq ($(JETAN_INCLUDE),)
60   ALICEINC += -I../$(JETAN_INCLUDE)
61 endif
62
63
64 # only if no par file was loaded before
65 #ifeq ($(ALICEINC),-I.)
66   ifneq ($(ALICE_ROOT),)
67     ALICEINC += -I$(ALICE_ROOT)/include
68     ALICEINC += -I$(ALICE_ROOT)/JETAN   # some extra includes
69   endif
70 #endif
71
72 CXXFLAGS += $(ALICEINC) -g
73
74 SRCS         += G__$(PACKAGE).cxx
75 OBJS          = $(SRCS:.cxx=.o)
76
77 lib$(PACKAGE).so: $(OBJS)
78         @echo "Linking" $@ ...
79         @/bin/rm -f $@
80 ifeq ($(ARCH),macosx)
81         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
82 else
83         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
84 endif
85         @chmod a+x $@
86         @echo "done"
87
88 %.o:    %.cxx %.h
89         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
90
91 clean:
92         @rm -f $(OBJS) *.so G__$(PACKAGE).*
93
94 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
95         @echo "Generating dictionaries ..." $(ALICEINC)
96         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
97