put STEERBase into the include path
[u/mrichter/AliRoot.git] / JETAN / Makefile
CommitLineData
d3bddbb9 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
4include lib$(PACKAGE).pkg
5
2110a6c0 6
7ALICEINC = -I.
8
9### define include dir for local case and par case
10ifneq ($(ESD_INCLUDE),)
11 ALICEINC += -I../$(ESD_INCLUDE)
12 ifneq ($(ANALYSIS_NEW_INCLUDE),)
13 ALICEINC += -I../$(ANALYSIS_NEW_INCLUDE)
14 endif
15 ifneq ($(ANALYSIS_INCLUDE),)
16 ALICEINC += -I../$(ANALYSIS_INCLUDE)
17 endif
18 else
19 ifneq ($(ALICE_ROOT),)
20 ALICEINC += -I$(ALICE_ROOT)/include
21 endif
22endif
23
24CXXFLAGS += $(ALICEINC) -g
25
26
d3bddbb9 27SRCS += G__$(PACKAGE).cxx
28OBJS = $(SRCS:.cxx=.o)
29
30lib$(PACKAGE).so: $(OBJS)
31 @echo "Linking" $@ ...
32 @/bin/rm -f $@
33ifeq ($(PLATFORM),macosx)
34 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
35else
36 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
37endif
38 @chmod a+x $@
39 @echo "done"
40
41%.o: %.cxx %.h
42 $(CXX) $(CXXFLAGS) -c $< -o $@
43
44clean:
45 @rm -f $(OBJS) *.so G__$(PACKAGE).*
46
47G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
48 @echo "Generating dictionary ..."
49 rootcint -f $@ -c $(ALICEINC) $^
50