Gamma conversion analysis moved to its own subdirectory from PartCorr
[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 ifneq ($(PWG4GammaConv_INCLUDE),)
42   ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
43 endif
44
45 ifneq ($(PWG4JetTasks_INCLUDE),)
46   ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
47 endif
48
49 ifneq ($(JETAN_INCLUDE),)
50   ALICEINC += -I../$(JETAN_INCLUDE)
51 endif
52
53
54 # only if no par file was loaded before
55 ifeq ($(ALICEINC),-I.)
56   ifneq ($(ALICE_ROOT),)
57     ALICEINC += -I$(ALICE_ROOT)/include
58     ALICEINC += -I$(ALICE_ROOT)/JETAN   # some extra includes
59   endif
60 endif
61
62 CXXFLAGS += $(ALICEINC) -g
63
64 SRCS         += G__$(PACKAGE).cxx
65 OBJS          = $(SRCS:.cxx=.o)
66
67 lib$(PACKAGE).so: $(OBJS)
68         @echo "Linking" $@ ...
69         @/bin/rm -f $@
70 ifeq ($(ARCH),macosx)
71         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
72 else
73         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
74 endif
75         @chmod a+x $@
76         @echo "done"
77
78 %.o:    %.cxx %.h
79         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
80
81 clean:
82         @rm -f $(OBJS) *.so G__$(PACKAGE).*
83
84 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
85         @echo "Generating dictionaries ..." $(ALICEINC)
86         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
87