-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
83 lines (67 loc) · 2.24 KB
/
Makefile
File metadata and controls
83 lines (67 loc) · 2.24 KB
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
77
78
79
80
81
82
83
ANTENNADIR=CMSPh2_AntennaDriver
AMC13DIR=/opt/cactus/include/amc13
USBINSTDIR=../Ph2_USBInstDriver
#DEPENDENCIES := Utils HWDescription HWInterface System tools RootWeb Tracker src miniDAQ
DEPENDENCIES := Utils HWDescription HWInterface RootWeb Tracker
ANTENNAINSTALLED = no
AMC13INSTALLED = no
USBINSTINSTALLED = no
ifneq ("$(wildcard $(ANTENNADIR))","")
DEPENDENCIES := CMSPh2_AntennaDriver $(DEPENDENCIES)
ANTENNAINSTALLED = yes
else
ANTENNAINSTRUCTIONS = To use the USB Antenna, please download the Driver from 'https://gitlab.cern.ch/cms_tk_ph2/CMSPh2_AntennaDriver.git' and make sure that libusb-devel is installed!
endif
ifneq ("$(wildcard $(AMC13DIR))","")
DEPENDENCIES := AMC13 $(DEPENDENCIES)
AMC13INSTALLED = yes
else
AMC13INSTRUCTIONS = This feature can only be built if the AMC13 libraries are installed with cactus!
endif
ifneq ("$(wildcard $(USBINSTDIR))","")
#DEPENDENCIES := ../Ph2_USBInstDriver $(DEPENDENCIES)
USBINSTINSTALLED = yes
USBINSTINSTRUCTIONS =
else
USBINSTINSTRUCTIONS = To use the Ph2_USBInstDriver please download it from 'https://gitlab.cern.ch/cms_tk_ph2/Ph2_USBInstDriver.git'.
endif
.PHONY: print dependencies $(DEPENDENCIES) clean src miniDAQ tools
all: src miniDAQ
dependencies: print $(DEPENDENCIES)
$(DEPENDENCIES):
$(MAKE) -C $@
System: dependencies
$(MAKE) -C System
tools: System
$(MAKE) -C tools
src miniDAQ: tools
$(MAKE) -C $@
print:
@echo ' '
@echo '*****************************'
@echo 'BUILDING PH2 ACF FRAMEWORK'
@echo 'with the following Dependencies:'
@echo $(DEPENDENCIES)
@echo '*****************************'
@echo 'Amc13 SW installed:' $(AMC13INSTALLED)
@echo $(AMC13INSTRUCTIONS)
@echo '*****************************'
@echo 'Antenna Driver installed:' $(ANTENNAINSTALLED)
@echo $(ANTENNAINSTRUCTIONS)
@echo '*****************************'
@echo 'Ph2 USB Inst Driver installed:' $(USBINSTINSTALLED)
@echo $(USBINSTINSTRUCTIONS)
@echo '*****************************'
clean:
#$(MAKE) -C System clean
(cd System; make clean)
(cd Utils; make clean)
(cd HWInterface; make clean)
(cd HWDescription; make clean)
(cd tools; make clean)
(cd RootWeb; make clean)
(cd miniDAQ; make clean)
(cd Tracker; make clean)
(cd AMC13; make clean)
#(cd doc; make clean)
(rm -f lib/* bin/*)