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