Changes to take into account the recent modifications in libESD.pkg
[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 SRCS         += G__$(PACKAGE).cxx
11 OBJS          = $(SRCS:.cxx=.o)
12
13 lib$(PACKAGE).so: $(OBJS)
14         @echo "Linking" $@ ...
15         @/bin/rm -f $@
16 ifeq ($(PLATFORM),macosx)
17         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
18 else
19         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
20 endif
21         @chmod a+x $@
22         @echo "done"
23
24 %.o:    %.cxx %.h
25         $(CXX) $(PACKCXXFLAGS) -c $< -o $@
26
27 clean:
28         @rm -f $(OBJS) *.so G__$(PACKAGE).*
29
30 G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
31         @echo "Generating dictionary ..."
32         rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
33