]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/Makefile
Partial restoration of the par file functionallity
[u/mrichter/AliRoot.git] / STEER / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4
5 SRCS     := $(wildcard *.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 ($(ESD_INCLUDE),)
17    ALICEINC += -I../$(ESD_INCLUDE) 
18 endif
19
20 ifneq ($(AOD_INCLUDE),)
21    ALICEINC += -I../$(AOD_INCLUDE) 
22 endif
23
24 ifneq ($(STEERBase_INCLUDE),)
25    ALICEINC += -I../$(STEERBase_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 ($(ARCH),macosx)
47         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
48 else
49         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
50 endif
51         @chmod a+x $@
52         @echo "done"
53
54 %.o:    %.cxx %.h
55         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
56
57 clean:
58         @rm -f $(OBJS) *.so G__$(PACKAGE).*
59
60 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
61         @echo "Generating dictionaries ..." $(ALICEINC)
62         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
63