adding TestShuttle program
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / Makefile
CommitLineData
5c6b40ae 1# $Id$
2
3PACKAGE = TestShuttle
4
5include $(ROOTSYS)/test/Makefile.arch
6include lib$(PACKAGE).pkg
7
8ALICEINC = -I.
9
10ifneq ($(ALICE_ROOT),)
11 ALICEINC += -I$(ALICE_ROOT)/include
12endif
13
14CXXFLAGS += $(ALICEINC)
15SRCS += dict.cxx
16OBJS = $(SRCS:.cxx=.o)
17
18lib$(PACKAGE).so: $(OBJS)
19 @echo "Linking" $@ ...
20 @/bin/rm -f $@
21ifeq ($(PLATFORM),macosx)
22 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
23else
24 @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $@
25endif
26 @chmod a+x $@
27 @echo "done"
28
29%.o: %.cxx %.h
30 $(CXX) $(CXXFLAGS) -c $< -o $@
31
32clean:
33 @rm -f $(OBJS) core *~ *.so dict.* $(PARFILE)
34
35dict.cxx dict.h: $(HDRS) $(DHDR)
36 @echo "Generating dictionary ..."
37 @[ -f dict ] || rm -f $@
38 rootcint -f $@ -c $(ALICEINC) $^