Makes new rules checker happier (part 1)
[u/mrichter/AliRoot.git] / PWG4 / Makefile
CommitLineData
e989c76a 1PACKAGE = invalid-only-for-proof
f9cea31c 2
e989c76a 3include $(ROOTSYS)/test/Makefile.arch
4include lib$(PACKAGE).pkg
f9cea31c 5
e989c76a 6ifndef PACKCXXFLAGS
7 PACKCXXFLAGS = $(CXXFLAGS)
8endif
f9cea31c 9
e989c76a 10ALICEINC = -I.
f9cea31c 11
12### define include dir for local case and par case
e989c76a 13ifneq ($(STEERBase_INCLUDE),)
14 ALICEINC += -I../$(STEERBase_INCLUDE)
15endif
16
17ifneq ($(ESD_INCLUDE),)
18 ALICEINC += -I../$(ESD_INCLUDE)
19endif
20
21ifneq ($(AOD_INCLUDE),)
22 ALICEINC += -I../$(AOD_INCLUDE)
23endif
24
f61d9588 25ifneq ($(ANALYSIS_INCLUDE),)
e989c76a 26 ALICEINC += -I../$(ANALYSIS_INCLUDE)
f9cea31c 27endif
28
e989c76a 29ifneq ($(ANALYSISalice_INCLUDE),)
30 ALICEINC += -I../$(ANALYSISalice_INCLUDE)
f9cea31c 31endif
32
cfff6259 33ifneq ($(JETAN_INCLUDE),)
34 ALICEINC += -I../$(JETAN_INCLUDE)
35endif
36
e989c76a 37ifneq ($(PWG4PartCorr_INCLUDE),)
38 ALICEINC += -I../$(PWG4PartCorr_INCLUDE)
39endif
40
7a0d68dc 41ifneq ($(PWG4GammaConv_INCLUDE),)
42 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
43endif
44
e989c76a 45ifneq ($(PWG4JetTasks_INCLUDE),)
46 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
47endif
f9cea31c 48
edfd02fd 49ifneq ($(JETAN_INCLUDE),)
50 ALICEINC += -I../$(JETAN_INCLUDE)
51endif
52
f9cea31c 53
e989c76a 54# only if no par file was loaded before
55ifeq ($(ALICEINC),-I.)
56 ifneq ($(ALICE_ROOT),)
57 ALICEINC += -I$(ALICE_ROOT)/include
cfff6259 58 ALICEINC += -I$(ALICE_ROOT)/JETAN # some extra includes
e989c76a 59 endif
60endif
f9cea31c 61
e989c76a 62CXXFLAGS += $(ALICEINC) -g
f9cea31c 63
e989c76a 64SRCS += G__$(PACKAGE).cxx
65OBJS = $(SRCS:.cxx=.o)
f9cea31c 66
e989c76a 67lib$(PACKAGE).so: $(OBJS)
f9cea31c 68 @echo "Linking" $@ ...
69 @/bin/rm -f $@
10dc066e 70ifeq ($(ARCH),macosx)
f9cea31c 71 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
72else
73 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
74endif
75 @chmod a+x $@
76 @echo "done"
77
78%.o: %.cxx %.h
e989c76a 79 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 80
81clean:
e989c76a 82 @rm -f $(OBJS) *.so G__$(PACKAGE).*
f9cea31c 83
84G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 85 @echo "Generating dictionaries ..." $(ALICEINC)
86 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
f9cea31c 87