]> git.uio.no Git - u/mrichter/AliRoot.git/blob - SHUTTLE/TestShuttle/Makefile
Update master to aliroot
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / Makefile
1 # $Id$
2
3 PACKAGE = TestShuttle
4
5 include $(ROOTSYS)/etc/Makefile.arch
6 include $(PACKAGE).pkg
7
8 ALICEINC      = -I.
9 ifneq ($(ALICE_ROOT),)
10   ALICEINC += -I$(ALICE_ROOT)/include
11 endif
12
13 CXXFLAGS     += $(ALICEINC) -g
14 SRCS         += dict.cxx
15 OBJS          = $(SRCS:.cxx=.o)
16
17 lib$(PACKAGE).so: $(OBJS)
18         @echo "Linking" $@ ...
19         @/bin/rm -f $@
20         @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $@
21         @chmod a+x $@
22         @echo "done"
23
24 %.o:    %.cxx %.h
25         $(CXX) $(CXXFLAGS) -c $< -o $@
26
27 clean:
28         @rm -f $(OBJS) core *~ *.so dict.* $(PARFILE)
29
30 dict.cxx dict.h: $(HDRS) $(DHDR)
31         @echo "Generating dictionary ..."
32         @[ -f dict ] || rm -f $@
33         rootcint -f $@ -c $(ALICEINC) $^