2D Centrality files
[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
13ifneq ($(ESD_INCLUDE),)
14 ALICEINC += -I../$(ESD_INCLUDE)
7e45cab6 15 ALICEINC += -I../$(AOD_INCLUDE)
8591fed7 16 ALICEINC += -I../$(STEERBase_INCLUDE)
17 ALICEINC += -I../$(ANALYSIS_INCLUDE)
a673b24b 18 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
94384118 19 ifneq ($(JETAN_INCLUDE),)
20 ALICEINC += -I../$(JETAN_INCLUDE)
21 endif
2110a6c0 22 else
23 ifneq ($(ALICE_ROOT),)
958d9d26 24 ALICEINC += -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/JETAN -I$(ALICE_ROOT)/JETAN/fastjet -I$(ALICE_ROOT)/ANALYSIS
2110a6c0 25 endif
26endif
27
28CXXFLAGS += $(ALICEINC) -g
29
30
d3bddbb9 31SRCS += G__$(PACKAGE).cxx
32OBJS = $(SRCS:.cxx=.o)
33
34lib$(PACKAGE).so: $(OBJS)
35 @echo "Linking" $@ ...
36 @/bin/rm -f $@
10dc066e 37ifeq ($(ARCH),macosx)
d3bddbb9 38 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
39else
40 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
41endif
42 @chmod a+x $@
43 @echo "done"
44
45%.o: %.cxx %.h
46 $(CXX) $(CXXFLAGS) -c $< -o $@
47
48clean:
49 @rm -f $(OBJS) *.so G__$(PACKAGE).*
50
51G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
52 @echo "Generating dictionary ..."
c0aec87e 53 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
d3bddbb9 54