correct mask for V0 charge decoding in STU payload
[u/mrichter/AliRoot.git] / OADB / Makefile
CommitLineData
1297834e 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
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
a18817ac 16ifneq ($(STEERBase_INCLUDE),)
17 ALICEINC += -I../$(STEERBase_INCLUDE)
18endif
19
cc615d26 20ifneq ($(ANALYSIS_INCLUDE),)
21 ALICEINC += -I../$(ANALYSIS_INCLUDE)
22endif
23
1297834e 24ifneq ($(OADB_INCLUDE),)
25 ALICEINC += -I../$(OADB_INCLUDE)
26endif
27
28# only if no par file was loaded before
29ifeq ($(ALICEINC),-I.)
30 ifneq ($(ALICE_ROOT),)
31 ALICEINC += -I$(ALICE_ROOT)/include
32 endif
33endif
34
35
36
37
38CXXFLAGS += $(ALICEINC) -g
39
40SRCS += G__$(PACKAGE).cxx
41OBJS = $(SRCS:.cxx=.o)
42
43lib$(PACKAGE).so: $(OBJS)
44 @echo "Linking" $@ ...
45 @/bin/rm -f $@
d86acb69 46ifeq ($(PLATFORM),macosx)
47# We need to make both the .dylib and the .so
48 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
49ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
50ifeq ($(MACOSX_MINOR),4)
51 ln -sf $@ $(subst .$(DllSuf),.so,$@)
1297834e 52else
d86acb69 53 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
54 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
55endif
56endif
57else
58ifeq ($(PLATFORM),win32)
59 bindexplib $* $^ > $*.def
60 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
61 $(OutPutOpt)$(EVENTLIB)
62 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
63 $(OutPutOpt)$@
64else
65 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
66endif
1297834e 67endif
68 @chmod a+x $@
69 @echo "done"
70
71%.o: %.cxx %.h
72 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
73
74clean:
75 @rm -f $(OBJS) *.so G__$(PACKAGE).*
76
77G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
78 @echo "Generating dictionaries ..." $(ALICEINC)
79 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
80