-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile_review2008
76 lines (59 loc) · 2.33 KB
/
Makefile_review2008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
OStype = $(shell uname)
CC = /usr/bin/g++
COPTS = -g -D_REENTRANT
ifeq ($(OStype),OSF1)
COPTS = -g -D_REENTRANT -DBASENAME_USE_BUILTIN
endif
ifeq ($(OStype),SunOS)
CC = CC
COPTS = -D_REENTRANT -DBASENAME_IN_LIBGEN
endif
ifeq ($(OStype),Darwin)
CC = g++
COPTS = -D_REENTRANT -DBASENAME_IN_LIBGEN
endif
ifndef BUILDS
BUILDS = $(HALLD_HOME)/src/programs/Simulation
endif
XML_SOURCE = BarrelEMcal_HDDS.xml BeamLine_HDDS.xml CentralDC_HDDS.xml\
CerenkovCntr_HDDS.xml ForwardDC_HDDS.xml ForwardEMcal_HDDS.xml\
ForwardTOF_HDDS.xml Material_HDDS.xml Solenoid_HDDS.xml \
StartCntr_HDDS.xml Target_HDDS.xml UpstreamEMveto_HDDS.xml \
Regions_HDDS.xml PairSpect_HDDS.xml main_HDDS.xml
all: hddsGeant3.F hddsroot.C
install: hdds-geant hdds-root hdds-mcfast
cp $^ $(HALLD_HOME)/bin/$(OSNAME)
hddsMCfast.db: hdds-mcfast $(XML_SOURCE)
ln -sf $(MCFAST_DIR)/db db
./hdds-mcfast main_HDDS.xml >$@
rm db
hddsGeant3.F: hdds-geant $(XML_SOURCE)
./hdds-geant main_HDDS.xml >$@
hddsroot.C: hdds-root $(XML_SOURCE)
./hdds-root main_HDDS.xml >$@
hdds-geant: hdds-geant.cpp XParsers.cpp XParsers.hpp \
XString.cpp XString.hpp hddsCommon.cpp hddsCommon.hpp
$(CC) $(COPTS) -I$(XERCESCROOT)/include -o $@ $< \
hddsCommon.cpp XParsers.cpp XString.cpp \
-L$(XERCESCROOT)/lib -lxerces-c
hdds-root: hdds-root.cpp hdds-root.hpp XParsers.cpp XParsers.hpp \
XString.cpp XString.hpp hddsCommon.cpp hddsCommon.hpp
$(CC) $(COPTS) -I$(XERCESCROOT)/include -o $@ $< \
hddsCommon.cpp XParsers.cpp XString.cpp \
-L$(XERCESCROOT)/lib -lxerces-c
hdds-mcfast: hdds-mcfast.cpp XParsers.cpp XParsers.hpp\
XString.cpp XString.hpp
$(CC) $(COPTS) -I$(XERCESCROOT)/include -o $@ $< \
XParsers.cpp XString.cpp -L$(XERCESCROOT)/lib -lxerces-c
findall: findall.cpp XParsers.cpp XParsers.hpp hddsCommon.hpp hddsCommon.cpp \
XString.cpp XString.hpp hddsBrowser.hpp hddsBrowser.cpp
$(CC) $(COPTS) -I$(XERCESCROOT)/include -o $@ $< \
hddsBrowser.cpp hddsCommon.cpp XParsers.cpp XString.cpp \
-L$(XERCESCROOT)/lib -lxerces-c
xpath-example: xpath-example.cpp
$(CC) $(COPTS) -I$(XALANCROOT)/include -I$(XERCESCROOT)/include \
-o $@ xpath-example.cpp \
-L$(XALANCROOT)/lib -lxalan-c -L$(XERCESCROOT)/lib -lxerces-c
clean:
rm -f *.o core *.depend hdds-geant hdds-root hdds-mcfast
pristine: clean