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