oadb includes are located in OADB_INCLUDE not OADB_PATH
[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
6642a518 13ifneq ($(OADB_INCLUDe),)
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 $@
10dc066e 50ifeq ($(ARCH),macosx)
d3bddbb9 51 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
52else
53 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
54endif
55 @chmod a+x $@
56 @echo "done"
57
58%.o: %.cxx %.h
59 $(CXX) $(CXXFLAGS) -c $< -o $@
60
61clean:
62 @rm -f $(OBJS) *.so G__$(PACKAGE).*
63
64G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
65 @echo "Generating dictionary ..."
c0aec87e 66 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
d3bddbb9 67