]> git.uio.no Git - u/mrichter/AliRoot.git/blob - OADB/Makefile
GetIndexFromRun made public.
[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 ($(OADB_INCLUDE),)
21    ALICEINC += -I../$(OADB_INCLUDE) 
22 endif
23
24 # only if no par file was loaded before
25 ifeq ($(ALICEINC),-I.)
26   ifneq ($(ALICE_ROOT),)
27     ALICEINC += -I$(ALICE_ROOT)/include
28   endif
29 endif
30
31
32
33
34 CXXFLAGS += $(ALICEINC) -g
35
36 SRCS         += G__$(PACKAGE).cxx
37 OBJS          = $(SRCS:.cxx=.o)
38
39 lib$(PACKAGE).so: $(OBJS)
40         @echo "Linking" $@ ...
41         @/bin/rm -f $@
42 ifeq ($(ARCH),macosx)
43         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
44 else
45         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
46 endif
47         @chmod a+x $@
48         @echo "done"
49
50 %.o:    %.cxx %.h
51         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
52
53 clean:
54         @rm -f $(OBJS) *.so G__$(PACKAGE).*
55
56 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
57         @echo "Generating dictionaries ..." $(ALICEINC)
58         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
59