1-New correlation analysis for particle and jet-JETAN correlation; 2-Change GetEntrie...
[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 ($(PWG4PartCorr_INCLUDE),)
38   ALICEINC += -I../$(PWG4PartCorr_INCLUDE)
39 endif
40
41
42 ifneq ($(PWG4JetTasks_INCLUDE),)
43   ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
44 endif
45
46
47 # only if no par file was loaded before
48 ifeq ($(ALICEINC),-I.)
49   ifneq ($(ALICE_ROOT),)
50     ALICEINC += -I$(ALICE_ROOT)/include
51     ALICEINC += -I$(ALICE_ROOT)/JETAN   # some extra includes
52   endif
53 endif
54
55 CXXFLAGS += $(ALICEINC) -g
56
57 SRCS         += G__$(PACKAGE).cxx
58 OBJS          = $(SRCS:.cxx=.o)
59
60 lib$(PACKAGE).so: $(OBJS)
61         @echo "Linking" $@ ...
62         @/bin/rm -f $@
63 ifeq ($(ARCH),macosx)
64         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
65 else
66         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
67 endif
68         @chmod a+x $@
69         @echo "done"
70
71 %.o:    %.cxx %.h
72         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
73
74 clean:
75         @rm -f $(OBJS) *.so G__$(PACKAGE).*
76
77 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
78         @echo "Generating dictionaries ..." $(ALICEINC)
79         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
80