Possibility to compile with AOD classes (Yves)
[u/mrichter/AliRoot.git] / STEER / Makefile
1 PACKAGE = invalid-only-for-proof
2
3 include $(ROOTSYS)/test/Makefile.arch
4 include lib$(PACKAGE).pkg
5
6 ifndef PACKCXXFLAGS
7 PACKCXXFLAGS = $(CXXFLAGS)
8 endif
9
10 ifneq ($(ESD_INCLUDE),)
11    PACKCXXFLAGS += -I../$(ESD_INCLUDE)
12 endif
13 SRCS         += G__$(PACKAGE).cxx
14 OBJS          = $(SRCS:.cxx=.o)
15
16 lib$(PACKAGE).so: $(OBJS)
17         @echo "Linking" $@ ...
18         @/bin/rm -f $@
19 ifeq ($(PLATFORM),macosx)
20         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
21 else
22         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
23 endif
24         @chmod a+x $@
25         @echo "done"
26
27 %.o:    %.cxx %.h
28         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
29
30 clean:
31         @rm -f $(OBJS) *.so G__$(PACKAGE).*
32
33 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
34         @echo "Generating dictionary ..."
35         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
36