-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
281 lines (227 loc) · 5.49 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
#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 ADPLUGINBAR
DIRS := $(DIRS) $(ADPLUGINBAR)
$(ADPLUGINBAR)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADPLUGINEDGE
DIRS := $(DIRS) $(ADPLUGINEDGE)
$(ADPLUGINEDGE)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADCOMPVISION
DIRS := $(DIRS) $(ADCOMPVISION)
$(ADCOMPVISION)_DEPEND_DIRS += $(ADCORE)
endif
# Build base class drivers next
ifdef ADGENICAM
DIRS := $(DIRS) $(ADGENICAM)
$(ADGENICAM)_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_PVA), 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 ADANDOR3
DIRS := $(DIRS) $(ADANDOR3)
$(ADANDOR3)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADARAVIS
DIRS := $(DIRS) $(ADARAVIS)
$(ADARAVIS)_DEPEND_DIRS += $(ADCORE)
$(ADARAVIS)_DEPEND_DIRS += $(ADGENICAM)
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 ADEIGER
DIRS := $(DIRS) $(ADEIGER)
$(ADEIGER)_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 ADMMPAD
DIRS := $(DIRS) $(ADMMPAD)
$(ADMMPAD)_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 ADPCOWIN
DIRS := $(DIRS) $(ADPCOWIN)
$(ADPCOWIN)_DEPEND_DIRS += $(ADCORE)
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 ADSPINNAKER
DIRS := $(DIRS) $(ADSPINNAKER)
$(ADSPINNAKER)_DEPEND_DIRS += $(ADCORE)
$(ADSPINNAKER)_DEPEND_DIRS += $(ADGENICAM)
endif
ifdef ADTIMEPIX3
DIRS := $(DIRS) $(ADTIMEPIX3)
$(ADTIMEPIX3)_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 ADVIMBA
DIRS := $(DIRS) $(ADVIMBA)
$(ADVIMBA)_DEPEND_DIRS += $(ADCORE)
$(ADVIMBA)_DEPEND_DIRS += $(ADGENICAM)
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
ifdef SPECSANALYSER
DIRS := $(DIRS) $(SPECSANALYSER)
$(SPECSANALYSER)_DEPEND_DIRS += $(ADCORE)
endif
ifdef ADRIXSCAM
DIRS := $(DIRS) $(ADRIXSCAM)
$(ADRIXSCAM)_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)