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