Restored PAR file functionallity: make test-par-all works
[u/mrichter/AliRoot.git] / PWGGA / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 ifndef PACKCXXFLAGS
6    PACKCXXFLAGS = $(CXXFLAGS)
7 endif
8
9 ALICEINC = -I.
10
11 ### define include dir for local case and par case
12
13 ifneq ($(PWGGACaloTasks_INCLUDE),)
14   ALICEINC += -I../$(PWGGACaloTasks_INCLUDE)
15 endif
16
17 ifneq ($(PWGGACaloTrackCorrelations_INCLUDE),)
18   ALICEINC += -I../$(PWGGACaloTrackCorrelations_INCLUDE)
19 endif
20
21 ifneq ($(PWGGAEMCALTasks_INCLUDE),)
22   ALICEINC += -I../$(PWGGAEMCALTasks_INCLUDE)
23 endif
24
25 ifneq ($(PWGGAGammaConv_INCLUDE),)
26   ALICEINC += -I../$(PWGGAGammaConv_INCLUDE)
27 endif
28
29 ifneq ($(PWGGAPHOSTasks_INCLUDE),)
30   ALICEINC += -I../$(PWGGAPHOSTasks_INCLUDE)
31 endif
32
33 # only if no par file was loaded before
34 #ifeq ($(ALICEINC),-I.)
35   ifneq ($(ALICE_ROOT),)
36     ALICEINC += -I$(ALICE_ROOT)/include
37     ALICEINC += -I$(ALICE_ROOT)/ANALYSIS
38     ALICEINC += -I$(ALICE_ROOT)/PHOS
39     ALICEINC += -I$(ALICE_ROOT)/EMCAL
40   endif
41 #endif
42
43 CXXFLAGS += $(ALICEINC) -g
44
45 SRCS     = $(wildcard $(subst PWGGA,,$(PACKAGE))/*.cxx)
46 HDRS     = $(SRCS:.cxx=.h)
47 DHDR     = $(PACKAGE)LinkDef.h
48
49 DHDR_PWGGA := $(DHDR)
50 HDRS_PWGGA := $(HDRS)
51 SRCS_PWGGA := $(SRCS) G__$(PACKAGE).cxx
52 OBJS_PWGGA := $(SRCS_PWGGA:.cxx=.o)
53
54 PARFILE       = $(PACKAGE).par
55
56 lib$(PACKAGE).so: $(OBJS_PWGGA)
57         @echo "Linking" $@ ...
58         @/bin/rm -f $@
59         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
60         @chmod a+x $@
61         @echo "done"
62
63 %.o:    %.cxx %.h
64         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
65
66 clean:
67         @rm -f $(OBJS) *.so G__$(PACKAGE).*
68
69 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
70         @echo "Generating dictionaries ..." $(ALICEINC)
71         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^