Add dedicated splines for LHC12c4 (Benjamin, Jens)
[u/mrichter/AliRoot.git] / OADB / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include 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 ($(STEERBase_INCLUDE),)
17    ALICEINC += -I../$(STEERBase_INCLUDE)
18 endif
19
20 ifneq ($(ANALYSIS_INCLUDE),)
21    ALICEINC += -I../$(ANALYSIS_INCLUDE)
22 endif
23
24 ifneq ($(OADB_INCLUDE),)
25    ALICEINC += -I../$(OADB_INCLUDE) 
26 endif
27
28 # only if no par file was loaded before
29 #ifeq ($(ALICEINC),-I.)
30   ifneq ($(ALICE_ROOT),)
31     ALICEINC += -I$(ALICE_ROOT)/include
32   endif
33 #endif
34
35
36
37 ifeq ($(PLATFORM),macosx)
38 ROOTLIBDIR     := $(shell $(RC) --libdir)
39 ifeq ($(PACKAGE),OADB)
40    PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) -L$(ROOTLIBDIR)  -lVMC -lMinuit -lEG -lGeom
41 endif
42 endif
43
44
45 CXXFLAGS += $(ALICEINC) -g
46
47 SRCS         += G__$(PACKAGE).cxx
48 OBJS          = $(SRCS:.cxx=.o)
49
50 lib$(PACKAGE).so: $(OBJS)
51         @echo "Linking" $@ ...
52         @/bin/rm -f $@
53 ifeq ($(PLATFORM),macosx)
54         $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
55 else
56         $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
57 endif
58         @chmod a+x $@
59         @echo "done"
60
61 %.o:    %.cxx %.h
62         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
63
64 clean:
65         @rm -f $(OBJS) *.so G__$(PACKAGE).*
66
67 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
68         @echo "Generating dictionaries ..." $(ALICEINC)
69         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
70