Compatibility with ROOT trunk
[u/mrichter/AliRoot.git] / JETAN / Makefile
CommitLineData
d3bddbb9 1PACKAGE = invalid-only-for-proof
2
41f671ab 3include Makefile.arch
84d4333f 4
958d9d26 5SRCS = $(wildcard *.cxx)
6HDRS = $(SRCS:.cxx=.h)
7DHDR = $(PACKAGE)LinkDef.h
d3bddbb9 8
2110a6c0 9
10ALICEINC = -I.
d89b8229 11ifneq ($(findstring dev,$(PACKAGE)),)
12 ALICEINC += -I./DEV
13endif
2110a6c0 14
15### define include dir for local case and par case
ccbd735d 16ifneq ($(OADB_INCLUDE),)
6642a518 17 ALICEINC += -I../$(OADB_INCLUDE)
6b569c41 18endif
19ifneq ($(EMCALUtils_INCLUDE),)
20 ALICEINC += -I../$(EMCALUtils_INCLUDE)
21endif
d89b8229 22ifneq ($(JETANDEV_INCLUDE),)
23 ifneq ($(FASTJET_ROOT),)
24 ALICEINC += -I$(FASTJET_ROOT)/include
25 else
26 ALICEINC += -I$(ALICE_ROOT)/JETAN/fastjet
27 endif
28endif
cb9ef56f 29ifneq ($(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 37endif
d89b8229 38
2110a6c0 39ifneq ($(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)),)
41f671ab 56 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN/DEV -I$(ALICE_ROOT)/JETAN/fastjet -I$(ALICE_ROOT)/ANALYSIS
d89b8229 57 else
41f671ab 58 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN -I$(ALICE_ROOT)/JETAN/fastjet -I$(ALICE_ROOT)/ANALYSIS
2110a6c0 59 endif
d89b8229 60 endif
2110a6c0 61endif
62
63CXXFLAGS += $(ALICEINC) -g
64
65
d3bddbb9 66SRCS += G__$(PACKAGE).cxx
67OBJS = $(SRCS:.cxx=.o)
68
69lib$(PACKAGE).so: $(OBJS)
70 @echo "Linking" $@ ...
71 @/bin/rm -f $@
41f671ab 72 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
d3bddbb9 73 @chmod a+x $@
74 @echo "done"
75
76%.o: %.cxx %.h
77 $(CXX) $(CXXFLAGS) -c $< -o $@
78
79clean:
80 @rm -f $(OBJS) *.so G__$(PACKAGE).*
81
82G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
83 @echo "Generating dictionary ..."
c0aec87e 84 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
d3bddbb9 85