Material of muon filter ist Cast Iron
[u/mrichter/AliRoot.git] / PWGUD / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include Makefile.arch
4
5 SRCS     = $(wildcard *.cxx)
6 HDRS     = $(SRCS:.cxx=.h)
7 DHDR     = $(PACKAGE)LinkDef.h
8
9
10 ifndef PACKCXXFLAGS
11    PACKCXXFLAGS = $(CXXFLAGS)
12 endif
13
14 # For local includes in the PWGUDbase and PWGUDbase/base dirs (G.Ganis, July 2012)
15 ALICEINC = -I.
16 ALICEINC += -Ibase
17
18 ifneq ($(STEERBase_INCLUDE),)
19    ALICEINC += -I../$(STEERBase_INCLUDE) 
20 endif
21 ifneq ($(ESD_INCLUDE),)
22    ALICEINC += -I../$(ESD_INCLUDE) 
23 endif
24 ifneq ($(AOD_INCLUDE),)
25    ALICEINC += -I../$(AOD_INCLUDE) 
26 endif
27 ifneq ($(ANALYSIS_INCLUDE),)
28    ALICEINC += -I../$(ANALYSIS_INCLUDE) 
29 endif
30 ifneq ($(ANALYSISalice_INCLUDE),)
31    ALICEINC += -I../$(ANALYSISalice_INCLUDE) 
32 endif
33 ifneq ($(PWGUDdep_INCLUDE),)
34    ALICEINC += -I../$(PWGUDdep_INCLUDE) 
35 endif
36
37 # only if no par file was loaded before
38 #ifeq ($(ALICEINC),-I.)
39   ifneq ($(ALICE_ROOT),)
40     ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/PWGUD/base
41   endif
42 #endif
43
44 ifeq ($(PLATFORM),macosx)
45 ROOTLIBDIR     := $(shell $(RC) --libdir)
46 ifeq ($(PACKAGE),PWGUDbase) 
47    PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(OADB_LIBS) $(ANALYSISalice_LIBS) -L$(ROOTLIBDIR) -lEG
48 endif
49 endif
50
51 CXXFLAGS += $(ALICEINC) -g
52
53 SRCS         += G__$(PACKAGE).cxx
54 OBJS          = $(SRCS:.cxx=.o)
55
56 lib$(PACKAGE).so: $(OBJS)
57         @echo "Linking" $@ ...
58         @/bin/rm -f $@
59 ifeq ($(PLATFORM),macosx)
60         $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
61 else
62         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
63 endif
64         @chmod a+x $@
65         @echo "done"
66
67 %.o:    %.cxx %.h
68         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
69
70 clean:
71         @rm -f $(OBJS) *.so G__$(PACKAGE).*
72
73 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
74         @echo "Generating dictionaries ..." $(ALICEINC)
75         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
76