reset cov to 1
[u/mrichter/AliRoot.git] / JETAN / Makefile
CommitLineData
d3bddbb9 1PACKAGE = invalid-only-for-proof
2
3include $(ROOTSYS)/test/Makefile.arch
84d4333f 4
958d9d26 5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
d3bddbb9 8
2110a6c0 9
10ALICEINC = -I.
11
12### define include dir for local case and par case
ccbd735d 13ifneq ($(OADB_INCLUDE),)
6642a518 14 ALICEINC += -I../$(OADB_INCLUDE)
6b569c41 15endif
16ifneq ($(EMCALUtils_INCLUDE),)
17 ALICEINC += -I../$(EMCALUtils_INCLUDE)
18endif
cb9ef56f 19ifneq ($(JETAN_INCLUDE),)
20 ifneq ($(FASTJET_ROOT),)
21 ALICEINC += -I$(FASTJET_ROOT)/include
22 else
23 ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet
24 endif
25endif
2110a6c0 26ifneq ($(ESD_INCLUDE),)
27 ALICEINC += -I../$(ESD_INCLUDE)
7e45cab6 28 ALICEINC += -I../$(AOD_INCLUDE)
8591fed7 29 ALICEINC += -I../$(STEERBase_INCLUDE)
30 ALICEINC += -I../$(ANALYSIS_INCLUDE)
a673b24b 31 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
94384118 32 ifneq ($(JETAN_INCLUDE),)
33 ALICEINC += -I../$(JETAN_INCLUDE)
34 endif
2110a6c0 35 else
36 ifneq ($(ALICE_ROOT),)
cb9ef56f 37 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN -I$(ALICE_ROOT)/ANALYSIS
2110a6c0 38 endif
39endif
40
41CXXFLAGS += $(ALICEINC) -g
42
43
d3bddbb9 44SRCS += G__$(PACKAGE).cxx
45OBJS = $(SRCS:.cxx=.o)
46
47lib$(PACKAGE).so: $(OBJS)
48 @echo "Linking" $@ ...
49 @/bin/rm -f $@
d86acb69 50ifeq ($(PLATFORM),macosx)
51# We need to make both the .dylib and the .so
52 $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@
53ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
54ifeq ($(MACOSX_MINOR),4)
55 ln -sf $@ $(subst .$(DllSuf),.so,$@)
d3bddbb9 56else
d86acb69 57 $(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ \
58 $(OutPutOpt) $(subst .$(DllSuf),.so,$@)
59endif
60endif
61else
62ifeq ($(PLATFORM),win32)
63 bindexplib $* $^ > $*.def
64 lib -nologo -MACHINE:IX86 $^ -def:$*.def \
65 $(OutPutOpt)$(EVENTLIB)
66 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \
67 $(OutPutOpt)$@
68else
69 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
70endif
d3bddbb9 71endif
72 @chmod a+x $@
73 @echo "done"
74
75%.o: %.cxx %.h
76 $(CXX) $(CXXFLAGS) -c $< -o $@
77
78clean:
79 @rm -f $(OBJS) *.so G__$(PACKAGE).*
80
81G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
82 @echo "Generating dictionary ..."
c0aec87e 83 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
d3bddbb9 84