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