]>
Commit | Line | Data |
---|---|---|
ce917c76 | 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 | |
84d4333f | 8 | |
ce917c76 | 9 | |
f426470e | 10 | ifndef PACKCXXFLAGS |
659feb65 | 11 | PACKCXXFLAGS = $(CXXFLAGS) |
f426470e | 12 | endif |
13 | ||
659feb65 | 14 | ALICEINC = -I. |
15 | ||
1b6a1002 | 16 | ifneq ($(ESD_INCLUDE),) |
659feb65 | 17 | ALICEINC += -I../$(ESD_INCLUDE) |
18 | endif | |
19 | ||
20 | ifneq ($(AOD_INCLUDE),) | |
21 | ALICEINC += -I../$(AOD_INCLUDE) | |
1b6a1002 | 22 | endif |
659feb65 | 23 | |
24 | ifneq ($(STEERBase_INCLUDE),) | |
25 | ALICEINC += -I../$(STEERBase_INCLUDE) | |
26 | endif | |
27 | ||
f3e0c4a4 | 28 | # only if no par file was loaded before |
29 | ifeq ($(ALICEINC),-I.) | |
30 | ifneq ($(ALICE_ROOT),) | |
31 | ALICEINC += -I$(ALICE_ROOT)/include | |
32 | endif | |
33 | endif | |
34 | ||
35 | ||
36 | ||
37 | ||
659feb65 | 38 | CXXFLAGS += $(ALICEINC) -g |
39 | ||
7e995b61 | 40 | SRCS += G__$(PACKAGE).cxx |
ce917c76 | 41 | OBJS = $(SRCS:.cxx=.o) |
42 | ||
43 | lib$(PACKAGE).so: $(OBJS) | |
44 | @echo "Linking" $@ ... | |
45 | @/bin/rm -f $@ | |
d86acb69 | 46 | ifeq ($(PLATFORM),macosx) |
47 | # We need to make both the .dylib and the .so | |
48 | $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ | |
49 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234) | |
50 | ifeq ($(MACOSX_MINOR),4) | |
51 | ln -sf $@ $(subst .$(DllSuf),.so,$@) | |
ce917c76 | 52 | else |
d86acb69 | 53 | $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \ |
54 | $(OutPutOpt) $(subst .$(DllSuf),.so,$@) | |
55 | endif | |
56 | endif | |
57 | else | |
58 | ifeq ($(PLATFORM),win32) | |
59 | bindexplib $* $^ > $*.def | |
60 | lib -nologo -MACHINE:IX86 $^ -def:$*.def \ | |
61 | $(OutPutOpt)$(EVENTLIB) | |
62 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ | |
63 | $(OutPutOpt)$@ | |
64 | else | |
65 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) | |
66 | endif | |
ce917c76 | 67 | endif |
68 | @chmod a+x $@ | |
69 | @echo "done" | |
70 | ||
71 | %.o: %.cxx %.h | |
f426470e | 72 | $(CXX) $(PACKCXXFLAGS) -c $< -o $@ |
ce917c76 | 73 | |
74 | clean: | |
7e995b61 | 75 | @rm -f $(OBJS) *.so G__$(PACKAGE).* |
ce917c76 | 76 | |
7e995b61 | 77 | G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) |
659feb65 | 78 | @echo "Generating dictionaries ..." $(ALICEINC) |
f426470e | 79 | rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^ |
ce917c76 | 80 |