]>
Commit | Line | Data |
---|---|---|
d3bddbb9 | 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 | |
d3bddbb9 | 8 | |
2110a6c0 | 9 | |
10 | ALICEINC = -I. | |
d89b8229 | 11 | ifneq ($(findstring dev,$(PACKAGE)),) |
12 | ALICEINC += -I./DEV | |
13 | endif | |
2110a6c0 | 14 | |
15 | ### define include dir for local case and par case | |
ccbd735d | 16 | ifneq ($(OADB_INCLUDE),) |
6642a518 | 17 | ALICEINC += -I../$(OADB_INCLUDE) |
6b569c41 | 18 | endif |
19 | ifneq ($(EMCALUtils_INCLUDE),) | |
20 | ALICEINC += -I../$(EMCALUtils_INCLUDE) | |
21 | endif | |
d89b8229 | 22 | ifneq ($(JETANDEV_INCLUDE),) |
23 | ifneq ($(FASTJET_ROOT),) | |
24 | ALICEINC += -I$(FASTJET_ROOT)/include | |
25 | else | |
26 | ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet | |
27 | endif | |
28 | endif | |
cb9ef56f | 29 | ifneq ($(JETAN_INCLUDE),) |
d89b8229 | 30 | ifeq ($(findstring dev,$(PACKAGE)),) |
cb9ef56f | 31 | ifneq ($(FASTJET_ROOT),) |
32 | ALICEINC += -I$(FASTJET_ROOT)/include | |
33 | else | |
34 | ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet | |
35 | endif | |
d89b8229 | 36 | endif |
cb9ef56f | 37 | endif |
d89b8229 | 38 | |
2110a6c0 | 39 | ifneq ($(ESD_INCLUDE),) |
40 | ALICEINC += -I../$(ESD_INCLUDE) | |
7e45cab6 | 41 | ALICEINC += -I../$(AOD_INCLUDE) |
8591fed7 | 42 | ALICEINC += -I../$(STEERBase_INCLUDE) |
43 | ALICEINC += -I../$(ANALYSIS_INCLUDE) | |
a673b24b | 44 | ALICEINC += -I../$(ANALYSISalice_INCLUDE) |
d89b8229 | 45 | ifneq ($(JETANDEV_INCLUDE),) |
46 | ALICEINC += -I../$(JETANDEV_INCLUDE) | |
47 | endif | |
48 | ifneq ($(JETAN_INCLUDE),) | |
49 | ifeq ($(findstring dev,$(PACKAGE)),) | |
94384118 | 50 | ALICEINC += -I../$(JETAN_INCLUDE) |
d89b8229 | 51 | endif |
94384118 | 52 | endif |
2110a6c0 | 53 | else |
54 | ifneq ($(ALICE_ROOT),) | |
d89b8229 | 55 | ifneq ($(findstring dev,$(PACKAGE)),) |
56 | ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN/DEV -I$(ALICE_ROOT)/ANALYSIS | |
57 | else | |
cb9ef56f | 58 | ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN -I$(ALICE_ROOT)/ANALYSIS |
2110a6c0 | 59 | endif |
d89b8229 | 60 | endif |
2110a6c0 | 61 | endif |
62 | ||
63 | CXXFLAGS += $(ALICEINC) -g | |
64 | ||
65 | ||
d3bddbb9 | 66 | SRCS += G__$(PACKAGE).cxx |
67 | OBJS = $(SRCS:.cxx=.o) | |
68 | ||
69 | lib$(PACKAGE).so: $(OBJS) | |
70 | @echo "Linking" $@ ... | |
71 | @/bin/rm -f $@ | |
d86acb69 | 72 | ifeq ($(PLATFORM),macosx) |
73 | # We need to make both the .dylib and the .so | |
74 | $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ | |
75 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234) | |
76 | ifeq ($(MACOSX_MINOR),4) | |
77 | ln -sf $@ $(subst .$(DllSuf),.so,$@) | |
d3bddbb9 | 78 | else |
d86acb69 | 79 | $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \ |
80 | $(OutPutOpt) $(subst .$(DllSuf),.so,$@) | |
81 | endif | |
82 | endif | |
83 | else | |
84 | ifeq ($(PLATFORM),win32) | |
85 | bindexplib $* $^ > $*.def | |
86 | lib -nologo -MACHINE:IX86 $^ -def:$*.def \ | |
87 | $(OutPutOpt)$(EVENTLIB) | |
88 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ | |
89 | $(OutPutOpt)$@ | |
90 | else | |
91 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) | |
92 | endif | |
d3bddbb9 | 93 | endif |
94 | @chmod a+x $@ | |
95 | @echo "done" | |
96 | ||
97 | %.o: %.cxx %.h | |
98 | $(CXX) $(CXXFLAGS) -c $< -o $@ | |
99 | ||
100 | clean: | |
101 | @rm -f $(OBJS) *.so G__$(PACKAGE).* | |
102 | ||
103 | G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR) | |
104 | @echo "Generating dictionary ..." | |
c0aec87e | 105 | rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^ |
d3bddbb9 | 106 |