Macro to read and display SSD common mode values (Panos)
[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
1c5acb87 37ifneq ($(PHOSUtils_INCLUDE),)
38 ALICEINC += -I../$(PHOSUtils_INCLUDE)
591cc579 39 CXXFLAGS+=-D__PHOSUTIL__
40endif
41
42ifneq ($(EMCALUtils_INCLUDE),)
43 ALICEINC += -I../$(EMCALUtils_INCLUDE)
44 CXXFLAGS+=-D__EMCALUTIL__
1c5acb87 45endif
46
47ifneq ($(PWG4PartCorrBase_INCLUDE),)
48 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
49endif
50
51ifneq ($(PWG4PartCorrDep_INCLUDE),)
52 ALICEINC += -I../$(PWG4PartCorrBase_INCLUDE)
53 ALICEINC += -I../$(PWG4PartCorrDep_INCLUDE)
e989c76a 54endif
55
7a0d68dc 56ifneq ($(PWG4GammaConv_INCLUDE),)
57 ALICEINC += -I../$(PWG4GammaConv_INCLUDE)
58endif
59
e989c76a 60ifneq ($(PWG4JetTasks_INCLUDE),)
61 ALICEINC += -I../$(PWG4JetTasks_INCLUDE)
62endif
f9cea31c 63
edfd02fd 64ifneq ($(JETAN_INCLUDE),)
65 ALICEINC += -I../$(JETAN_INCLUDE)
66endif
67
f9cea31c 68
e989c76a 69# only if no par file was loaded before
2e557d1c 70#ifeq ($(ALICEINC),-I.)
e989c76a 71 ifneq ($(ALICE_ROOT),)
72 ALICEINC += -I$(ALICE_ROOT)/include
cfff6259 73 ALICEINC += -I$(ALICE_ROOT)/JETAN # some extra includes
591cc579 74 ALICEINC += -I$(ALICE_ROOT)/PHOS
75 ALICEINC += -I$(ALICE_ROOT)/EMCAL
e989c76a 76 endif
2e557d1c 77#endif
f9cea31c 78
e989c76a 79CXXFLAGS += $(ALICEINC) -g
f9cea31c 80
e989c76a 81SRCS += G__$(PACKAGE).cxx
82OBJS = $(SRCS:.cxx=.o)
f9cea31c 83
e989c76a 84lib$(PACKAGE).so: $(OBJS)
f9cea31c 85 @echo "Linking" $@ ...
86 @/bin/rm -f $@
10dc066e 87ifeq ($(ARCH),macosx)
f9cea31c 88 @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
89else
90 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
91endif
92 @chmod a+x $@
93 @echo "done"
94
95%.o: %.cxx %.h
e989c76a 96 $(CXX) $(PACKCXXFLAGS) -c $< -o $@
f9cea31c 97
98clean:
e989c76a 99 @rm -f $(OBJS) *.so G__$(PACKAGE).*
f9cea31c 100
101G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
e989c76a 102 @echo "Generating dictionaries ..." $(ALICEINC)
103 rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
f9cea31c 104