This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
forked from areaDetector/areaDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
218 lines (175 loc) · 4.28 KB
/
Makefile
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#Makefile at top of application tree
TOP = .
include $(TOP)/configure/CONFIG
# Always build ADSupport and ADCore
DIRS := $(DIRS) $(ADSUPPORT)
DIRS := $(DIRS) $(ADCORE)
$(ADCORE)_DEPEND_DIRS += $(ADSUPPORT)
# Build optional plugins next
ifdef FFMPEGSERVER
DIRS := $(DIRS) $(FFMPEGSERVER)
$(FFMPEGSERVER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPLUGINEDGE
DIRS := $(DIRS) $(ADPLUGINEDGE)
$(ADPLUGINEDGE)_DEPEND_DIRS += $(ADCORE)
endif
# Build simulation drivers next
ifdef ADSIMDETECTOR
DIRS := $(DIRS) $(ADSIMDETECTOR)
$(ADSIMDETECTOR)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADCSIMDETECTOR
DIRS := $(DIRS) $(ADCSIMDETECTOR)
$(ADCSIMDETECTOR)_DEPEND_DIRS += $(ADCORE)
endif
# Build software drivers next (no associated hardware)
ifdef NDDRIVERSTDARRAYS
DIRS := $(DIRS) $(NDDRIVERSTDARRAYS)
$(NDDRIVERSTDARRAYS)_DEPEND_DIRS += $(ADCORE)
endif
ifeq ($(WITH_EPICS_V4), YES)
ifdef PVADRIVER
DIRS := $(DIRS) $(PVADRIVER)
$(PVADRIVER)_DEPEND_DIRS += $(ADCORE)
endif
endif
# Finally build hardware drivers
ifdef ADADSC
DIRS := $(DIRS) $(ADADSC)
$(ADADSC)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADANDOR
DIRS := $(DIRS) $(ADANDOR)
$(ADANDOR)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADANOR3
DIRS := $(DIRS) $(ADANOR3)
$(ADANOR3)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADBRUKER
DIRS := $(DIRS) $(ADBRUKER)
$(ADBRUKER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADCAMERALINK
DIRS := $(DIRS) $(ADCAMERALINK)
$(ADCAMERALINK)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADDEXELA
DIRS := $(DIRS) $(ADDEXELA)
$(ADDEXELA)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADFASTCCD
DIRS := $(DIRS) $(ADFASTCCD)
$(ADFASTCCD)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADFIREWIREWIN
DIRS := $(DIRS) $(ADFIREWIREWIN)
$(ADFIREWIREWIN)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADLAMBDA
DIRS := $(DIRS) $(ADLAMBDA)
$(ADLAMBDA)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADLIGHTFIELD
DIRS := $(DIRS) $(ADLIGHTFIELD)
$(ADLIGHTFIELD)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADMERLIN
DIRS := $(DIRS) $(ADMERLIN)
$(ADMERLIN)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADMYTHEN
DIRS := $(DIRS) $(ADMYTHEN)
$(ADMYTHEN)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPCO
DIRS := $(DIRS) $(ADPCO)
$(ADPCO)_DEPEND_DIRS += $(ADCORE)
$(ADPCO)_DEPEND_DIRS += $(ADCAMERALINK)
endif
ifdef ADPICAM
DIRS := $(DIRS) $(ADPICAM)
$(ADPICAM)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPSL
DIRS := $(DIRS) $(ADPSL)
$(ADPSL)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPERKINELMER
DIRS := $(DIRS) $(ADPERKINELMER)
$(ADPERKINELMER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPILATUS
DIRS := $(DIRS) $(ADPILATUS)
$(ADPILATUS)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPIXIRAD
DIRS := $(DIRS) $(ADPIXIRAD)
$(ADPIXIRAD)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPOINTGREY
DIRS := $(DIRS) $(ADPOINTGREY)
$(ADPOINTGREY)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPROSILICA
DIRS := $(DIRS) $(ADPROSILICA)
$(ADPROSILICA)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPVCAM
DIRS := $(DIRS) $(ADPVCAM)
$(ADPVCAM)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADQIMAGING
DIRS := $(DIRS) $(ADQIMAGING)
$(ADQIMAGING)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADROPER
DIRS := $(DIRS) $(ADROPER)
$(ADROPER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADURL
DIRS := $(DIRS) $(ADURL)
$(ADURL)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADMAR345
DIRS := $(DIRS) $(ADMAR345)
$(ADMAR345)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADMARCCD
DIRS := $(DIRS) $(ADMARCCD)
$(ADMARCCD)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADNED
DIRS := $(DIRS) $(ADNED)
$(ADNED)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ARAVISGIGE
DIRS := $(DIRS) $(ARAVISGIGE)
$(ARAVISGIGE)_DEPEND_DIRS += $(ADCORE)
endif
ifdef FFMPEGVIEWER
DIRS := $(DIRS) $(FFMPEGVIEWER)
$(FFMPEGVIEWER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef FIREWIREDCAM
DIRS := $(DIRS) $(FIREWIREDCAM)
$(FIREWIREDCAM)_DEPEND_DIRS += $(ADCORE)
endif
include $(TOP)/configure/RULES_TOP
uninstallTargets = $(foreach dir, $(DIRS), $(dir)$(DIVIDER)uninstall)
uninstall: $(uninstallTargets)
define UNINSTALL_template
$(1)$(DIVIDER)uninstall:
$(MAKE) -C $(1) uninstall
endef
$(foreach dir, $(DIRS), $(eval $(call UNINSTALL_template,$(dir))))
.PHONY: uninstall $(uninstallTargets)
realuninstallTargets = $(foreach dir, $(DIRS), $(dir)$(DIVIDER)realuninstall)
realuninstall: $(realuninstallTargets)
define REALUNINSTALL_template
$(1)$(DIVIDER)realuninstall:
$(MAKE) -C $(1) realuninstall
endef
$(foreach dir, $(DIRS), $(eval $(call REALUNINSTALL_template,$(dir))))
.PHONY: realuninstall $(realuninstallTargets)