correct mask for V0 charge decoding in STU payload
[u/mrichter/AliRoot.git] / OADB / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/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
38 CXXFLAGS += $(ALICEINC) -g
39
40 SRCS         += G__$(PACKAGE).cxx
41 OBJS          = $(SRCS:.cxx=.o)
42
43 lib$(PACKAGE).so: $(OBJS)
44         @echo "Linking" $@ ...
45         @/bin/rm -f $@
46 ifeq ($(PLATFORM),macosx)
47 # We need to make both the .dylib and the .so
48                 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
49 ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
50 ifeq ($(MACOSX_MINOR),4)
51                 ln -sf $@ $(subst .$(DllSuf),.so,$@)
52 else
53                 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
54                    $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
55 endif
56 endif
57 else
58 ifeq ($(PLATFORM),win32)
59                 bindexplib $* $^ > $*.def
60                 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
61                    $(OutPutOpt)$(EVENTLIB)
62                 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
63                    $(OutPutOpt)$@
64 else
65                 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
66 endif
67 endif
68         @chmod a+x $@
69         @echo "done"
70
71 %.o:    %.cxx %.h
72         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
73
74 clean:
75         @rm -f $(OBJS) *.so G__$(PACKAGE).*
76
77 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
78         @echo "Generating dictionaries ..." $(ALICEINC)
79         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
80