]>
Commit | Line | Data |
---|---|---|
1 | PACKAGE = invalid-only-for-proof | |
2 | ||
3 | include $(ROOTSYS)/test/Makefile.arch | |
4 | ||
5 | SRCS = $(wildcard *.cxx) | |
6 | HDRS = $(SRCS:.cxx=.h) | |
7 | DHDR = $(PACKAGE)LinkDef.h | |
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 | ||
17 | ifneq ($(STEERBase_INCLUDE),) | |
18 | ALICEINC += -I../$(STEERBase_INCLUDE) | |
19 | endif | |
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 ($(PLATFORM),macosx) | |
37 | # We need to make both the .dylib and the .so | |
38 | $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ | |
39 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234) | |
40 | ifeq ($(MACOSX_MINOR),4) | |
41 | ln -sf $@ $(subst .$(DllSuf),.so,$@) | |
42 | else | |
43 | $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \ | |
44 | $(OutPutOpt) $(subst .$(DllSuf),.so,$@) | |
45 | endif | |
46 | endif | |
47 | else | |
48 | ifeq ($(PLATFORM),win32) | |
49 | bindexplib $* $^ > $*.def | |
50 | lib -nologo -MACHINE:IX86 $^ -def:$*.def \ | |
51 | $(OutPutOpt)$(EVENTLIB) | |
52 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ | |
53 | $(OutPutOpt)$@ | |
54 | else | |
55 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) | |
56 | endif | |
57 | endif | |
58 | @chmod a+x $@ | |
59 | @echo "done" | |
60 | ||
61 | %.o: %.cxx %.h | |
62 | $(CXX) $(PACKCXXFLAGS) -c $< -o $@ | |
63 | ||
64 | clean: | |
65 | @rm -f $(OBJS) *.so G__$(PACKAGE).* | |
66 | ||
67 | G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) | |
68 | @echo "Generating dictionaries ..." $(ALICEINC) | |
69 | rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^ | |
70 |