STEERBase added to 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)
7e45cab6 12 ALICEINC += -I../$(AOD_INCLUDE)
8591fed7 13 ALICEINC += -I../$(STEERBase_INCLUDE)
14 ALICEINC += -I../$(ANALYSIS_INCLUDE)
2110a6c0 15 else
16 ifneq ($(ALICE_ROOT),)
17 ALICEINC += -I$(ALICE_ROOT)/include
18 endif
19endif
20
21CXXFLAGS += $(ALICEINC) -g
22
23
d3bddbb9 24SRCS += G__$(PACKAGE).cxx
25OBJS = $(SRCS:.cxx=.o)
26
27lib$(PACKAGE).so: $(OBJS)
28 @echo "Linking" $@ ...
29 @/bin/rm -f $@
30ifeq ($(PLATFORM),macosx)
31 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
32else
33 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
34endif
35 @chmod a+x $@
36 @echo "done"
37
38%.o: %.cxx %.h
39 $(CXX) $(CXXFLAGS) -c $< -o $@
40
41clean:
42 @rm -f $(OBJS) *.so G__$(PACKAGE).*
43
44G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
45 @echo "Generating dictionary ..."
46 rootcint -f $@ -c $(ALICEINC) $^
47