forked from xapi-project/xen-api-libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
231 lines (209 loc) · 5.24 KB
/
Makefile.in
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
AUTOMAKE_OPTIONS = foreign
HAVE_XEN = @XEN@
HAVE_DEVICE_MAPPER = @DEVICE_MAPPER@
HAVE_LINUX_CDROM = @LINUX_CDROM@
HAVE_XMLM = @OCAML_PKG_xmlm@
HAVE_TYPECONV = @OCAML_PKG_type_conv@
include config.mk
.PHONY: default
default: all
@:
.PHONY: all
all:
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light
endif
$(MAKE) -C uuid
$(MAKE) -C stdext
$(MAKE) -C log
$(MAKE) -C xenctrlext
$(MAKE) -C xenstoreext
$(MAKE) -C stunnel
$(MAKE) -C pciutil
$(MAKE) -C close-and-exec
$(MAKE) -C sexpr
$(MAKE) -C udev
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2
$(MAKE) -C rss
endif
$(MAKE) -C http-svr
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm
$(MAKE) -C mlvm
endif
$(MAKE) -C forking_executioner
$(MAKE) -C xen-utils
$(MAKE) -C nbd
CFLAGS="-fPIC -I/usr/lib/ocaml" $(MAKE) -C oclock
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev
$(MAKE) -C cpuid
$(MAKE) -C vhd
$(MAKE) -C tapctl
endif
$(MAKE) -C pciutil bins
$(MAKE) -C xml-light2 bins
$(MAKE) -C sexpr bins
$(MAKE) -C stdext bins
$(MAKE) -C close-and-exec bins
STUBLIBDIR = $(OCAMLDESTDIR)/stublibs
$(STUBLIBDIR):
mkdir -p $@
install: $(STUBLIBDIR)
$(MAKE) -C uuid install
$(MAKE) -C stdext install
$(MAKE) -C xenctrlext install
$(MAKE) -C xenstoreext install
$(MAKE) -C log install
$(MAKE) -C stunnel install
$(MAKE) -C pciutil install
$(MAKE) -C http-svr install
$(MAKE) -C close-and-exec install
$(MAKE) -C sexpr install
$(MAKE) -C udev install
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light install
endif
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2 install
$(MAKE) -C rss install
endif
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom install
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm install
$(MAKE) -C mlvm install
endif
$(MAKE) -C forking_executioner install
$(MAKE) -C xen-utils install
$(MAKE) -C nbd install
$(MAKE) -C oclock install
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev install
$(MAKE) -C cpuid install
$(MAKE) -C vhd install
$(MAKE) -C tapctl install
endif
$(MAKE) -C pciutil bininstall
$(MAKE) -C xml-light2 bininstall
$(MAKE) -C sexpr bininstall
$(MAKE) -C stdext bininstall
$(MAKE) -C close-and-exec bininstall
$(MAKE) -C forking_executioner bininstall
uninstall:
$(MAKE) -C uuid uninstall
$(MAKE) -C stdext uninstall
$(MAKE) -C xenctrlext uninstall
$(MAKE) -C xenstoreext uninstall
$(MAKE) -C log uninstall
$(MAKE) -C stunnel uninstall
$(MAKE) -C pciutil uninstall
$(MAKE) -C http-svr uninstall
$(MAKE) -C close-and-exec uninstall
$(MAKE) -C sexpr uninstall
$(MAKE) -C udev uninstall
ifeq ($(HAVE_TYPECONV),type-conv)
$(MAKE) -C rpc-light uninstall
endif
ifeq ($(HAVE_XMLM),xmlm)
$(MAKE) -C xml-light2 uninstall
$(MAKE) -C rss uninstall
endif
ifeq ($(HAVE_LINUX_CDROM),1)
$(MAKE) -C cdrom uninstall
endif
ifeq ($(HAVE_DEVICE_MAPPER),1)
$(MAKE) -C camldm uninstall
$(MAKE) -C mlvm uninstall
endif
$(MAKE) -C forking_executioner uninstall
$(MAKE) -C xen-utils uninstall
$(MAKE) -C nbd uninstall
$(MAKE) -C oclock uninstall
ifeq ($(HAVE_XEN),1)
$(MAKE) -C netdev uninstall
$(MAKE) -C cpuid uninstall
$(MAKE) -C vhd uninstall
$(MAKE) -C tapctl uninstall
endif
$(MAKE) -C pciutil binuninstall
$(MAKE) -C xml-light2 binuninstall
$(MAKE) -C sexpr binuninstall
$(MAKE) -C stdext binuninstall
$(MAKE) -C close-and-exec binuninstall
$(MAKE) -C forking_executioner binuninstall
.PHONY: doc
doc:
$(MAKE) -C uuid doc
$(MAKE) -C stdext doc
$(MAKE) -C xenctrlext doc
$(MAKE) -C xenstoreext doc
$(MAKE) -C sexpr doc
$(MAKE) -C udev doc
$(MAKE) -C log doc
$(MAKE) -C xml-light2 doc
$(MAKE) -C rpc-light doc
$(MAKE) -C http-svr doc
$(MAKE) -C camldm doc
$(MAKE) -C cdrom doc
$(MAKE) -C pciutil doc
$(MAKE) -C rss doc
$(MAKE) -C stunnel doc
$(MAKE) -C netdev doc
$(MAKE) -C forking_executioner doc
$(MAKE) -C mlvm doc
$(MAKE) -C cpuid doc
$(MAKE) -C vhd doc
$(MAKE) -C tapctl doc
$(MAKE) -C xen-utils doc
$(MAKE) -C nbd doc
$(MAKE) -C oclock doc
.PHONY: test
test:
$(MAKE) -C http-svr test
.PHONY: clean
clean:
$(MAKE) -C uuid clean
$(MAKE) -C camldm clean
$(MAKE) -C stdext clean
$(MAKE) -C xenctrlext clean
$(MAKE) -C xenstoreext clean
$(MAKE) -C log clean
$(MAKE) -C stunnel clean
$(MAKE) -C pciutil clean
$(MAKE) -C cdrom clean
$(MAKE) -C xml-light2 clean
$(MAKE) -C rss clean
$(MAKE) -C rpc-light clean
$(MAKE) -C http-svr clean
$(MAKE) -C close-and-exec clean
$(MAKE) -C sexpr clean
$(MAKE) -C udev clean
$(MAKE) -C doc clean
$(MAKE) -C forking_executioner clean
$(MAKE) -C mlvm clean
$(MAKE) -C xen-utils clean
$(MAKE) -C nbd clean
$(MAKE) -C oclock clean
$(MAKE) -C netdev clean
$(MAKE) -C cpuid clean
$(MAKE) -C vhd clean
$(MAKE) -C tapctl clean
RPM_SPECSDIR=$(shell rpm --eval='%_specdir')
RPM_SOURCEDIR=$(shell rpm --eval='%_sourcedir')
XEN_RELEASE=xcp$(VERSION)
$(RPM_SPECSDIR)/xapi-libs.spec: xapi.spec.in
sed -e s\,@XEN_RELEASE@,$(XEN_RELEASE),g \
< xapi.spec.in \
> $(RPM_SPECSDIR)/xapi-libs.spec
$(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2:
while ! [ -d .git ]; do cd ..; done; \
git archive --prefix=xapi-0/ --format=tar HEAD | bzip2 -z > $(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2 # xen-api-libs/Makefile.in
.PHONY: rpm
rpm: $(RPM_SPECSDIR)/xapi-libs.spec $(RPM_SOURCEDIR)/xapi-libs-0.tar.bz2
rpmbuild -ba $(RPM_SPECSDIR)/xapi-libs.spec