]>
Commit | Line | Data |
---|---|---|
f17e1fe1 | 1 | PACKAGE = invalid-only-for-proof |
2 | ||
3 | include $(ROOTSYS)/test/Makefile.arch | |
84d4333f | 4 | |
958d9d26 | 5 | SRCS = $(wildcard *.cxx) |
6 | HDRS = $(SRCS:.cxx=.h) | |
7 | DHDR = $(PACKAGE)LinkDef.h | |
f17e1fe1 | 8 | |
9 | ifndef PACKCXXFLAGS | |
10 | PACKCXXFLAGS = $(CXXFLAGS) | |
11 | endif | |
12 | ||
13 | ALICEINC = -I. | |
14 | ||
15 | ### define include dir for local case and par case | |
16 | ||
d8c66d16 | 17 | ifneq ($(STEERBase_INCLUDE),) |
18 | ALICEINC += -I../$(STEERBase_INCLUDE) | |
19 | endif | |
f17e1fe1 | 20 | |
21 | # only if no par file was loaded before | |
22 | ifeq ($(ALICEINC),-I.) | |
23 | ifneq ($(ALICE_ROOT),) | |
24 | ALICEINC += -I$(ALICE_ROOT)/include | |
25 | endif | |
26 | endif | |
27 | ||
28 | CXXFLAGS += $(ALICEINC) -g | |
29 | ||
30 | SRCS += G__$(PACKAGE).cxx | |
31 | OBJS = $(SRCS:.cxx=.o) | |
32 | ||
33 | lib$(PACKAGE).so: $(OBJS) | |
34 | @echo "Linking" $@ ... | |
35 | @/bin/rm -f $@ | |
36 | ifeq ($(ARCH),macosx) | |
37 | @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@ | |
38 | else | |
39 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@ | |
40 | endif | |
41 | @chmod a+x $@ | |
42 | @echo "done" | |
43 | ||
44 | %.o: %.cxx %.h | |
45 | $(CXX) $(PACKCXXFLAGS) -c $< -o $@ | |
46 | ||
47 | clean: | |
48 | @rm -f $(OBJS) *.so G__$(PACKAGE).* | |
49 | ||
50 | G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) | |
51 | @echo "Generating dictionaries ..." $(ALICEINC) | |
52 | rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^ | |
53 |