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