]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
grub-core/loader/efi/fdt.c: do not copy random memory
[grub2.git] / Makefile.util.def
1 AutoGen definitions Makefile.tpl;
2
3 library = {
4 name = libgrubkern.a;
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB)';
7
8 common = util/misc.c;
9 common = grub-core/kern/command.c;
10 common = grub-core/kern/device.c;
11 common = grub-core/kern/disk.c;
12 common = grub-core/lib/disk.c;
13 common = util/getroot.c;
14 common = grub-core/osdep/unix/getroot.c;
15 common = grub-core/osdep/getroot.c;
16 common = grub-core/osdep/devmapper/getroot.c;
17 common = grub-core/osdep/relpath.c;
18 extra_dist = grub-core/kern/disk_common.c;
19 extra_dist = grub-core/osdep/unix/relpath.c;
20 extra_dist = grub-core/osdep/aros/relpath.c;
21 extra_dist = grub-core/osdep/windows/relpath.c;
22 common = grub-core/kern/emu/hostdisk.c;
23 common = grub-core/osdep/devmapper/hostdisk.c;
24 common = grub-core/osdep/hostdisk.c;
25 common = grub-core/osdep/unix/hostdisk.c;
26 common = grub-core/osdep/exec.c;
27 common = grub-core/osdep/sleep.c;
28 common = grub-core/osdep/password.c;
29 common = grub-core/kern/emu/misc.c;
30 common = grub-core/kern/emu/mm.c;
31 common = grub-core/kern/env.c;
32 common = grub-core/kern/err.c;
33 common = grub-core/kern/file.c;
34 common = grub-core/kern/fs.c;
35 common = grub-core/kern/list.c;
36 common = grub-core/kern/misc.c;
37 common = grub-core/kern/partition.c;
38 common = grub-core/lib/crypto.c;
39 common = grub-core/disk/luks.c;
40 common = grub-core/disk/geli.c;
41 common = grub-core/disk/cryptodisk.c;
42 common = grub-core/disk/AFSplitter.c;
43 common = grub-core/lib/pbkdf2.c;
44 common = grub-core/commands/extcmd.c;
45 common = grub-core/lib/arg.c;
46 common = grub-core/disk/ldm.c;
47 common = grub-core/disk/diskfilter.c;
48 common = grub-core/partmap/gpt.c;
49 common = grub-core/partmap/msdos.c;
50 common = grub-core/fs/proc.c;
51 common = grub-core/fs/archelp.c;
52 };
53
54 library = {
55 name = libgrubmods.a;
56 cflags = '-fno-builtin -Wno-undef';
57 cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
58
59 common_nodist = grub_script.tab.c;
60 common_nodist = grub_script.yy.c;
61 common_nodist = libgrub_a_init.c;
62 common_nodist = grub_script.yy.h;
63 common_nodist = grub_script.tab.h;
64
65 common = grub-core/commands/blocklist.c;
66 common = grub-core/commands/macbless.c;
67 common = grub-core/commands/xnu_uuid.c;
68 common = grub-core/commands/testload.c;
69 common = grub-core/commands/ls.c;
70 common = grub-core/disk/dmraid_nvidia.c;
71 common = grub-core/disk/loopback.c;
72 common = grub-core/disk/lvm.c;
73 common = grub-core/disk/mdraid_linux.c;
74 common = grub-core/disk/mdraid_linux_be.c;
75 common = grub-core/disk/mdraid1x_linux.c;
76 common = grub-core/disk/raid5_recover.c;
77 common = grub-core/disk/raid6_recover.c;
78 common = grub-core/font/font.c;
79 common = grub-core/gfxmenu/font.c;
80 common = grub-core/normal/charset.c;
81 common = grub-core/video/fb/fbblit.c;
82 common = grub-core/video/fb/fbutil.c;
83 common = grub-core/video/fb/fbfill.c;
84 common = grub-core/video/fb/video_fb.c;
85 common = grub-core/video/video.c;
86 common = grub-core/video/capture.c;
87 common = grub-core/video/colors.c;
88 common = grub-core/unidata.c;
89 common = grub-core/io/bufio.c;
90 common = grub-core/fs/affs.c;
91 common = grub-core/fs/afs.c;
92 common = grub-core/fs/bfs.c;
93 common = grub-core/fs/btrfs.c;
94 common = grub-core/fs/cbfs.c;
95 common = grub-core/fs/cpio.c;
96 common = grub-core/fs/cpio_be.c;
97 common = grub-core/fs/odc.c;
98 common = grub-core/fs/newc.c;
99 common = grub-core/fs/ext2.c;
100 common = grub-core/fs/fat.c;
101 common = grub-core/fs/exfat.c;
102 common = grub-core/fs/fshelp.c;
103 common = grub-core/fs/hfs.c;
104 common = grub-core/fs/hfsplus.c;
105 common = grub-core/fs/hfspluscomp.c;
106 common = grub-core/fs/iso9660.c;
107 common = grub-core/fs/jfs.c;
108 common = grub-core/fs/minix.c;
109 common = grub-core/fs/minix2.c;
110 common = grub-core/fs/minix3.c;
111 common = grub-core/fs/minix_be.c;
112 common = grub-core/fs/minix2_be.c;
113 common = grub-core/fs/minix3_be.c;
114 common = grub-core/fs/nilfs2.c;
115 common = grub-core/fs/ntfs.c;
116 common = grub-core/fs/ntfscomp.c;
117 common = grub-core/fs/reiserfs.c;
118 common = grub-core/fs/romfs.c;
119 common = grub-core/fs/sfs.c;
120 common = grub-core/fs/squash4.c;
121 common = grub-core/fs/tar.c;
122 common = grub-core/fs/udf.c;
123 common = grub-core/fs/ufs2.c;
124 common = grub-core/fs/ufs.c;
125 common = grub-core/fs/ufs_be.c;
126 common = grub-core/fs/xfs.c;
127 common = grub-core/fs/zfs/zfscrypt.c;
128 common = grub-core/fs/zfs/zfs.c;
129 common = grub-core/fs/zfs/zfsinfo.c;
130 common = grub-core/fs/zfs/zfs_lzjb.c;
131 common = grub-core/fs/zfs/zfs_lz4.c;
132 common = grub-core/fs/zfs/zfs_sha256.c;
133 common = grub-core/fs/zfs/zfs_fletcher.c;
134 common = grub-core/lib/envblk.c;
135 common = grub-core/lib/hexdump.c;
136 common = grub-core/lib/LzFind.c;
137 common = grub-core/lib/LzmaEnc.c;
138 common = grub-core/lib/crc.c;
139 common = grub-core/lib/adler32.c;
140 common = grub-core/lib/crc64.c;
141 common = grub-core/normal/datetime.c;
142 common = grub-core/normal/misc.c;
143 common = grub-core/partmap/acorn.c;
144 common = grub-core/partmap/amiga.c;
145 common = grub-core/partmap/apple.c;
146 common = grub-core/partmap/sun.c;
147 common = grub-core/partmap/plan.c;
148 common = grub-core/partmap/dvh.c;
149 common = grub-core/partmap/sunpc.c;
150 common = grub-core/partmap/bsdlabel.c;
151 common = grub-core/partmap/dfly.c;
152 common = grub-core/script/function.c;
153 common = grub-core/script/lexer.c;
154 common = grub-core/script/main.c;
155 common = grub-core/script/script.c;
156 common = grub-core/script/argv.c;
157 common = grub-core/io/gzio.c;
158 common = grub-core/io/xzio.c;
159 common = grub-core/io/lzopio.c;
160 common = grub-core/kern/ia64/dl_helper.c;
161 common = grub-core/kern/arm/dl_helper.c;
162 common = grub-core/kern/arm64/dl_helper.c;
163 common = grub-core/lib/minilzo/minilzo.c;
164 common = grub-core/lib/xzembed/xz_dec_bcj.c;
165 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
166 common = grub-core/lib/xzembed/xz_dec_stream.c;
167 };
168
169 program = {
170 name = grub-mkimage;
171 mansection = 1;
172
173 common = util/grub-mkimage.c;
174 common = util/mkimage.c;
175 common = util/grub-mkimage32.c;
176 common = util/grub-mkimage64.c;
177 common = util/resolve.c;
178 common = grub-core/kern/emu/argp_common.c;
179 common = grub-core/osdep/init.c;
180 common = grub-core/osdep/config.c;
181 extra_dist = grub-core/osdep/aros/config.c;
182 extra_dist = grub-core/osdep/windows/config.c;
183 extra_dist = grub-core/osdep/unix/config.c;
184 common = util/config.c;
185
186 extra_dist = util/grub-mkimagexx.c;
187
188 ldadd = libgrubmods.a;
189 ldadd = libgrubgcry.a;
190 ldadd = libgrubkern.a;
191 ldadd = grub-core/gnulib/libgnu.a;
192 ldadd = '$(LIBLZMA)';
193 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
194 cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
195 };
196
197 program = {
198 name = grub-mkrelpath;
199 mansection = 1;
200
201 common = util/grub-mkrelpath.c;
202 common = grub-core/kern/emu/argp_common.c;
203 common = grub-core/osdep/init.c;
204
205 ldadd = libgrubmods.a;
206 ldadd = libgrubgcry.a;
207 ldadd = libgrubkern.a;
208 ldadd = grub-core/gnulib/libgnu.a;
209 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
210 };
211
212 program = {
213 name = grub-script-check;
214 mansection = 1;
215
216 common = util/grub-script-check.c;
217 common = grub-core/kern/emu/argp_common.c;
218 common = grub-core/osdep/init.c;
219
220 ldadd = libgrubmods.a;
221 ldadd = libgrubgcry.a;
222 ldadd = libgrubkern.a;
223 ldadd = grub-core/gnulib/libgnu.a;
224 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
225 };
226
227 program = {
228 name = grub-editenv;
229 mansection = 1;
230
231 common = util/grub-editenv.c;
232 common = util/editenv.c;
233 common = grub-core/osdep/init.c;
234
235 ldadd = libgrubmods.a;
236 ldadd = libgrubgcry.a;
237 ldadd = libgrubkern.a;
238 ldadd = grub-core/gnulib/libgnu.a;
239 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
240 };
241
242 program = {
243 name = grub-mkpasswd-pbkdf2;
244 mansection = 1;
245
246 common = util/grub-mkpasswd-pbkdf2.c;
247 common = grub-core/kern/emu/argp_common.c;
248 common = grub-core/osdep/random.c;
249 common = grub-core/osdep/init.c;
250
251 ldadd = libgrubmods.a;
252 ldadd = libgrubgcry.a;
253 ldadd = libgrubkern.a;
254 ldadd = grub-core/gnulib/libgnu.a;
255 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
256 };
257
258 program = {
259 name = grub-macho2img;
260 mansection = 1;
261 common = util/grub-macho2img.c;
262 condition = COND_APPLE_LINKER;
263 };
264
265 program = {
266 name = grub-fstest;
267 mansection = 1;
268 common_nodist = grub_fstest_init.c;
269 common = util/grub-fstest.c;
270 common = grub-core/kern/emu/hostfs.c;
271 common = grub-core/disk/host.c;
272 common = grub-core/osdep/init.c;
273
274 ldadd = libgrubmods.a;
275 ldadd = libgrubgcry.a;
276 ldadd = libgrubkern.a;
277 ldadd = grub-core/gnulib/libgnu.a;
278 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
279 };
280
281 program = {
282 name = grub-mount;
283 mansection = 1;
284 common_nodist = grub_fstest_init.c;
285 common = util/grub-mount.c;
286 common = grub-core/kern/emu/hostfs.c;
287 common = grub-core/disk/host.c;
288 common = grub-core/osdep/init.c;
289
290 ldadd = libgrubmods.a;
291 ldadd = libgrubgcry.a;
292 ldadd = libgrubkern.a;
293 ldadd = grub-core/gnulib/libgnu.a;
294 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
295 condition = COND_GRUB_MOUNT;
296 };
297
298 program = {
299 name = grub-mkfont;
300 mansection = 1;
301 common = util/grub-mkfont.c;
302 common = grub-core/kern/emu/argp_common.c;
303 common = grub-core/osdep/init.c;
304
305 cflags = '$(FREETYPE_CFLAGS)';
306 cppflags = '-DGRUB_MKFONT=1';
307
308 ldadd = libgrubmods.a;
309 ldadd = libgrubgcry.a;
310 ldadd = libgrubkern.a;
311 ldadd = grub-core/gnulib/libgnu.a;
312 ldadd = '$(FREETYPE_LIBS)';
313 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
314 condition = COND_GRUB_MKFONT;
315 };
316
317 program = {
318 name = grub-mkdevicemap;
319 installdir = sbin;
320 mansection = 8;
321
322 common = util/grub-mkdevicemap.c;
323 common = util/deviceiter.c;
324 common = util/devicemap.c;
325 common = grub-core/osdep/init.c;
326
327 ldadd = libgrubmods.a;
328 ldadd = libgrubgcry.a;
329 ldadd = libgrubkern.a;
330 ldadd = grub-core/gnulib/libgnu.a;
331 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
332 };
333
334 program = {
335 name = grub-probe;
336 installdir = sbin;
337 mansection = 8;
338 common = util/grub-probe.c;
339 common = util/probe.c;
340 common = grub-core/osdep/ofpath.c;
341 common = grub-core/kern/emu/argp_common.c;
342 common = grub-core/osdep/init.c;
343
344 ldadd = libgrubmods.a;
345 ldadd = libgrubgcry.a;
346 ldadd = libgrubkern.a;
347 ldadd = grub-core/gnulib/libgnu.a;
348 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
349 };
350
351 program = {
352 name = grub-bios-setup;
353 installdir = sbin;
354 mansection = 8;
355 common = util/grub-setup.c;
356 common = util/setup_bios.c;
357 extra_dist = util/setup.c;
358 common = grub-core/kern/emu/argp_common.c;
359 common = grub-core/lib/reed_solomon.c;
360 common = grub-core/osdep/blocklist.c;
361 extra_dist = grub-core/osdep/generic/blocklist.c;
362 extra_dist = grub-core/osdep/linux/blocklist.c;
363 extra_dist = grub-core/osdep/windows/blocklist.c;
364 common = grub-core/osdep/init.c;
365
366 ldadd = libgrubmods.a;
367 ldadd = libgrubkern.a;
368 ldadd = libgrubgcry.a;
369 ldadd = grub-core/gnulib/libgnu.a;
370 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
371 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
372 };
373
374 program = {
375 name = grub-sparc64-setup;
376 installdir = sbin;
377 mansection = 8;
378 common = util/grub-setup.c;
379 common = util/setup_sparc.c;
380 common = grub-core/kern/emu/argp_common.c;
381 common = grub-core/lib/reed_solomon.c;
382 common = grub-core/osdep/ofpath.c;
383 common = grub-core/osdep/blocklist.c;
384 common = grub-core/osdep/init.c;
385
386 ldadd = libgrubmods.a;
387 ldadd = libgrubkern.a;
388 ldadd = libgrubgcry.a;
389 ldadd = grub-core/gnulib/libgnu.a;
390 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
391 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
392 };
393
394 program = {
395 name = grub-ofpathname;
396 installdir = sbin;
397 mansection = 8;
398 common = util/ieee1275/grub-ofpathname.c;
399 common = grub-core/osdep/ofpath.c;
400 common = grub-core/osdep/init.c;
401
402 ldadd = libgrubmods.a;
403 ldadd = libgrubgcry.a;
404 ldadd = libgrubkern.a;
405 ldadd = grub-core/gnulib/libgnu.a;
406 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
407 };
408
409 program = {
410 name = grub-mklayout;
411 mansection = 1;
412
413 common = util/grub-mklayout.c;
414 common = grub-core/kern/emu/argp_common.c;
415 common = grub-core/osdep/init.c;
416
417 ldadd = libgrubmods.a;
418 ldadd = libgrubgcry.a;
419 ldadd = libgrubkern.a;
420 ldadd = grub-core/gnulib/libgnu.a;
421 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
422 };
423
424 program = {
425 name = grub-macbless;
426 installdir = sbin;
427 mansection = 8;
428 common = util/grub-macbless.c;
429 common = grub-core/osdep/init.c;
430 common = grub-core/kern/emu/argp_common.c;
431
432 ldadd = libgrubmods.a;
433 ldadd = libgrubgcry.a;
434 ldadd = libgrubkern.a;
435 ldadd = grub-core/gnulib/libgnu.a;
436 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
437 };
438
439 data = {
440 common = util/grub.d/README;
441 installdir = grubconf;
442 };
443
444 script = {
445 name = '00_header';
446 common = util/grub.d/00_header.in;
447 installdir = grubconf;
448 };
449
450 script = {
451 name = '10_windows';
452 common = util/grub.d/10_windows.in;
453 installdir = grubconf;
454 condition = COND_HOST_WINDOWS;
455 };
456
457 script = {
458 name = '10_hurd';
459 common = util/grub.d/10_hurd.in;
460 installdir = grubconf;
461 condition = COND_HOST_HURD;
462 };
463
464 script = {
465 name = '10_kfreebsd';
466 common = util/grub.d/10_kfreebsd.in;
467 installdir = grubconf;
468 condition = COND_HOST_KFREEBSD;
469 };
470
471 script = {
472 name = '10_illumos';
473 common = util/grub.d/10_illumos.in;
474 installdir = grubconf;
475 condition = COND_HOST_ILLUMOS;
476 };
477
478 script = {
479 name = '10_netbsd';
480 common = util/grub.d/10_netbsd.in;
481 installdir = grubconf;
482 condition = COND_HOST_NETBSD;
483 };
484
485 script = {
486 name = '10_linux';
487 common = util/grub.d/10_linux.in;
488 installdir = grubconf;
489 condition = COND_HOST_LINUX;
490 };
491
492 script = {
493 name = '10_xnu';
494 common = util/grub.d/10_xnu.in;
495 installdir = grubconf;
496 condition = COND_HOST_XNU;
497 };
498
499 script = {
500 name = '20_linux_xen';
501 common = util/grub.d/20_linux_xen.in;
502 installdir = grubconf;
503 condition = COND_HOST_LINUX;
504 };
505
506 script = {
507 name = '30_os-prober';
508 common = util/grub.d/30_os-prober.in;
509 installdir = grubconf;
510 };
511
512 script = {
513 name = '30_uefi-firmware';
514 common = util/grub.d/30_uefi-firmware.in;
515 installdir = grubconf;
516 };
517
518 script = {
519 name = '40_custom';
520 common = util/grub.d/40_custom.in;
521 installdir = grubconf;
522 };
523
524 script = {
525 name = '41_custom';
526 common = util/grub.d/41_custom.in;
527 installdir = grubconf;
528 };
529
530 program = {
531 mansection = 1;
532 name = grub-mkrescue;
533
534 common = util/grub-mkrescue.c;
535 common = util/render-label.c;
536 common = util/glue-efi.c;
537 common = util/mkimage.c;
538 common = util/grub-mkimage32.c;
539 common = util/grub-mkimage64.c;
540 common = util/grub-install-common.c;
541 common = util/setup_bios.c;
542 common = util/setup_sparc.c;
543 common = grub-core/lib/reed_solomon.c;
544 common = grub-core/osdep/random.c;
545 common = grub-core/osdep/ofpath.c;
546 common = grub-core/osdep/platform.c;
547 common = grub-core/osdep/platform_unix.c;
548 common = grub-core/osdep/compress.c;
549 extra_dist = grub-core/osdep/unix/compress.c;
550 extra_dist = grub-core/osdep/basic/compress.c;
551 common = util/editenv.c;
552 common = grub-core/osdep/blocklist.c;
553 common = grub-core/osdep/config.c;
554 common = util/config.c;
555
556 common = grub-core/kern/emu/hostfs.c;
557 common = grub-core/disk/host.c;
558
559 common = util/resolve.c;
560
561 common = grub-core/kern/emu/argp_common.c;
562 common = grub-core/osdep/init.c;
563
564 ldadd = '$(LIBLZMA)';
565 ldadd = libgrubmods.a;
566 ldadd = libgrubgcry.a;
567 ldadd = libgrubkern.a;
568 ldadd = grub-core/gnulib/libgnu.a;
569 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
570
571 condition = COND_HAVE_EXEC;
572 };
573
574 program = {
575 mansection = 1;
576 name = grub-mkstandalone;
577 common = util/grub-mkstandalone.c;
578
579 common = util/render-label.c;
580 common = util/glue-efi.c;
581 common = util/mkimage.c;
582 common = util/grub-mkimage32.c;
583 common = util/grub-mkimage64.c;
584 common = util/grub-install-common.c;
585 common = util/setup_bios.c;
586 common = util/setup_sparc.c;
587 common = grub-core/lib/reed_solomon.c;
588 common = grub-core/osdep/random.c;
589 common = grub-core/osdep/ofpath.c;
590 common = grub-core/osdep/platform.c;
591 common = grub-core/osdep/platform_unix.c;
592 extra_dist = grub-core/osdep/linux/platform.c;
593 extra_dist = grub-core/osdep/windows/platform.c;
594 extra_dist = grub-core/osdep/basic/platform.c;
595 extra_dist = grub-core/osdep/basic/no_platform.c;
596 extra_dist = grub-core/osdep/unix/platform.c;
597 common = grub-core/osdep/compress.c;
598 common = util/editenv.c;
599 common = grub-core/osdep/blocklist.c;
600 common = grub-core/osdep/config.c;
601 common = util/config.c;
602
603 common = grub-core/kern/emu/hostfs.c;
604 common = grub-core/disk/host.c;
605
606 common = util/resolve.c;
607
608 common = grub-core/kern/emu/argp_common.c;
609 common = grub-core/osdep/init.c;
610
611 ldadd = '$(LIBLZMA)';
612 ldadd = libgrubmods.a;
613 ldadd = libgrubgcry.a;
614 ldadd = libgrubkern.a;
615 ldadd = grub-core/gnulib/libgnu.a;
616 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
617 };
618
619 program = {
620 mansection = 8;
621 installdir = sbin;
622 name = grub-install;
623
624 common = util/grub-install.c;
625 common = util/probe.c;
626 common = util/mkimage.c;
627 common = util/grub-mkimage32.c;
628 common = util/grub-mkimage64.c;
629 common = util/grub-install-common.c;
630 common = util/setup_bios.c;
631 common = util/setup_sparc.c;
632 common = grub-core/lib/reed_solomon.c;
633 common = grub-core/osdep/random.c;
634 common = grub-core/osdep/ofpath.c;
635 common = grub-core/osdep/platform.c;
636 common = grub-core/osdep/platform_unix.c;
637 common = grub-core/osdep/compress.c;
638 common = util/editenv.c;
639 common = grub-core/osdep/blocklist.c;
640 common = grub-core/osdep/config.c;
641 common = util/config.c;
642 common = util/render-label.c;
643 common = grub-core/kern/emu/hostfs.c;
644 common = grub-core/disk/host.c;
645
646 common = util/resolve.c;
647 common = grub-core/kern/emu/argp_common.c;
648 common = grub-core/osdep/init.c;
649
650 ldadd = '$(LIBLZMA)';
651 ldadd = libgrubmods.a;
652 ldadd = libgrubgcry.a;
653 ldadd = libgrubkern.a;
654 ldadd = grub-core/gnulib/libgnu.a;
655 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
656 };
657
658 program = {
659 mansection = 1;
660 installdir = bin;
661 name = grub-mknetdir;
662
663 common = util/grub-mknetdir.c;
664
665 common = util/mkimage.c;
666 common = util/grub-mkimage32.c;
667 common = util/grub-mkimage64.c;
668 common = util/grub-install-common.c;
669 common = util/setup_bios.c;
670 common = util/setup_sparc.c;
671 common = grub-core/lib/reed_solomon.c;
672 common = grub-core/osdep/random.c;
673 common = grub-core/osdep/ofpath.c;
674 common = grub-core/osdep/platform.c;
675 common = grub-core/osdep/platform_unix.c;
676 common = grub-core/osdep/compress.c;
677 common = util/editenv.c;
678 common = grub-core/osdep/blocklist.c;
679 common = grub-core/osdep/config.c;
680 common = util/config.c;
681
682 common = util/resolve.c;
683 common = grub-core/kern/emu/argp_common.c;
684 common = grub-core/osdep/init.c;
685
686 ldadd = '$(LIBLZMA)';
687 ldadd = libgrubmods.a;
688 ldadd = libgrubgcry.a;
689 ldadd = libgrubkern.a;
690 ldadd = grub-core/gnulib/libgnu.a;
691 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
692 };
693
694 script = {
695 name = grub-mkconfig;
696 common = util/grub-mkconfig.in;
697 mansection = 8;
698 installdir = sbin;
699 };
700
701 script = {
702 name = grub-set-default;
703 common = util/grub-set-default.in;
704 mansection = 8;
705 installdir = sbin;
706 };
707
708 script = {
709 name = grub-reboot;
710 common = util/grub-reboot.in;
711 mansection = 8;
712 installdir = sbin;
713 };
714
715 script = {
716 name = grub-mkconfig_lib;
717 common = util/grub-mkconfig_lib.in;
718 installdir = noinst;
719 };
720
721 script = {
722 name = grub-kbdcomp;
723 common = util/grub-kbdcomp.in;
724 mansection = 1;
725 };
726
727 script = {
728 name = grub-shell;
729 common = tests/util/grub-shell.in;
730 installdir = noinst;
731 };
732
733 script = {
734 name = grub-shell-tester;
735 common = tests/util/grub-shell-tester.in;
736 installdir = noinst;
737 };
738
739 script = {
740 name = grub-fs-tester;
741 common = tests/util/grub-fs-tester.in;
742 installdir = noinst;
743 dependencies = 'garbage-gen$(BUILD_EXEEXT)';
744 };
745
746 script = {
747 testcase;
748 name = ext234_test;
749 common = tests/ext234_test.in;
750 };
751
752 script = {
753 testcase;
754 name = squashfs_test;
755 common = tests/squashfs_test.in;
756 };
757
758 script = {
759 testcase;
760 name = iso9660_test;
761 common = tests/iso9660_test.in;
762 };
763
764 script = {
765 testcase;
766 name = hfsplus_test;
767 common = tests/hfsplus_test.in;
768 };
769
770 script = {
771 testcase;
772 name = ntfs_test;
773 common = tests/ntfs_test.in;
774 };
775
776 script = {
777 testcase;
778 name = reiserfs_test;
779 common = tests/reiserfs_test.in;
780 };
781
782 script = {
783 testcase;
784 name = fat_test;
785 common = tests/fat_test.in;
786 };
787
788 script = {
789 testcase;
790 name = minixfs_test;
791 common = tests/minixfs_test.in;
792 };
793
794 script = {
795 testcase;
796 name = xfs_test;
797 common = tests/xfs_test.in;
798 };
799
800 script = {
801 testcase;
802 name = nilfs2_test;
803 common = tests/nilfs2_test.in;
804 };
805
806 script = {
807 testcase;
808 name = romfs_test;
809 common = tests/romfs_test.in;
810 };
811
812 script = {
813 testcase;
814 name = exfat_test;
815 common = tests/exfat_test.in;
816 };
817
818 script = {
819 testcase;
820 name = tar_test;
821 common = tests/tar_test.in;
822 };
823
824 script = {
825 testcase;
826 name = udf_test;
827 common = tests/udf_test.in;
828 };
829
830 script = {
831 testcase;
832 name = hfs_test;
833 common = tests/hfs_test.in;
834 };
835
836 script = {
837 testcase;
838 name = jfs_test;
839 common = tests/jfs_test.in;
840 };
841
842 script = {
843 testcase;
844 name = btrfs_test;
845 common = tests/btrfs_test.in;
846 };
847
848 script = {
849 testcase;
850 name = zfs_test;
851 common = tests/zfs_test.in;
852 };
853
854 script = {
855 testcase;
856 name = cpio_test;
857 common = tests/cpio_test.in;
858 };
859
860 script = {
861 testcase;
862 name = example_scripted_test;
863 common = tests/example_scripted_test.in;
864 };
865
866 script = {
867 testcase;
868 name = gettext_strings_test;
869 common = tests/gettext_strings_test.in;
870 extra_dist = po/exclude.pot;
871 };
872
873 script = {
874 testcase;
875 name = pata_test;
876 common = tests/pata_test.in;
877 };
878
879 script = {
880 testcase;
881 name = ahci_test;
882 common = tests/ahci_test.in;
883 };
884
885 script = {
886 testcase;
887 name = uhci_test;
888 common = tests/uhci_test.in;
889 };
890
891 script = {
892 testcase;
893 name = ohci_test;
894 common = tests/ohci_test.in;
895 };
896
897 script = {
898 testcase;
899 name = ehci_test;
900 common = tests/ehci_test.in;
901 };
902
903 script = {
904 testcase;
905 name = example_grub_script_test;
906 common = tests/example_grub_script_test.in;
907 };
908
909 script = {
910 testcase;
911 name = grub_script_eval;
912 common = tests/grub_script_eval.in;
913 };
914
915 script = {
916 testcase;
917 name = grub_script_test;
918 common = tests/grub_script_test.in;
919 };
920
921 script = {
922 testcase;
923 name = grub_script_echo1;
924 common = tests/grub_script_echo1.in;
925 };
926
927 script = {
928 testcase;
929 name = grub_script_leading_whitespace;
930 common = tests/grub_script_leading_whitespace.in;
931 };
932
933 script = {
934 testcase;
935 name = grub_script_echo_keywords;
936 common = tests/grub_script_echo_keywords.in;
937 };
938
939 script = {
940 testcase;
941 name = grub_script_vars1;
942 common = tests/grub_script_vars1.in;
943 };
944
945 script = {
946 testcase;
947 name = grub_script_for1;
948 common = tests/grub_script_for1.in;
949 };
950
951 script = {
952 testcase;
953 name = grub_script_while1;
954 common = tests/grub_script_while1.in;
955 };
956
957 script = {
958 testcase;
959 name = grub_script_if;
960 common = tests/grub_script_if.in;
961 };
962
963 script = {
964 testcase;
965 name = grub_script_blanklines;
966 common = tests/grub_script_blanklines.in;
967 };
968
969 script = {
970 testcase;
971 name = grub_script_final_semicolon;
972 common = tests/grub_script_final_semicolon.in;
973 };
974
975 script = {
976 testcase;
977 name = grub_script_dollar;
978 common = tests/grub_script_dollar.in;
979 };
980
981 script = {
982 testcase;
983 name = grub_script_comments;
984 common = tests/grub_script_comments.in;
985 };
986
987 script = {
988 testcase;
989 name = grub_script_functions;
990 common = tests/grub_script_functions.in;
991 };
992
993 script = {
994 testcase;
995 name = grub_script_break;
996 common = tests/grub_script_break.in;
997 };
998
999 script = {
1000 testcase;
1001 name = grub_script_continue;
1002 common = tests/grub_script_continue.in;
1003 };
1004
1005 script = {
1006 testcase;
1007 name = grub_script_shift;
1008 common = tests/grub_script_shift.in;
1009 };
1010
1011 script = {
1012 testcase;
1013 name = grub_script_blockarg;
1014 common = tests/grub_script_blockarg.in;
1015 };
1016
1017 script = {
1018 testcase;
1019 name = grub_script_setparams;
1020 common = tests/grub_script_setparams.in;
1021 };
1022
1023 script = {
1024 testcase;
1025 name = grub_script_return;
1026 common = tests/grub_script_return.in;
1027 };
1028
1029 script = {
1030 testcase;
1031 name = grub_cmd_regexp;
1032 common = tests/grub_cmd_regexp.in;
1033 };
1034
1035 script = {
1036 testcase;
1037 name = grub_cmd_date;
1038 common = tests/grub_cmd_date.in;
1039 };
1040
1041 script = {
1042 testcase;
1043 name = grub_cmd_set_date;
1044 common = tests/grub_cmd_set_date.in;
1045 };
1046
1047 script = {
1048 testcase;
1049 name = grub_cmd_sleep;
1050 common = tests/grub_cmd_sleep.in;
1051 };
1052
1053 script = {
1054 testcase;
1055 name = grub_script_expansion;
1056 common = tests/grub_script_expansion.in;
1057 };
1058
1059 script = {
1060 testcase;
1061 name = grub_script_not;
1062 common = tests/grub_script_not.in;
1063 };
1064
1065 script = {
1066 testcase;
1067 name = grub_script_no_commands;
1068 common = tests/grub_script_no_commands.in;
1069 };
1070
1071 script = {
1072 testcase;
1073 name = partmap_test;
1074 common = tests/partmap_test.in;
1075 };
1076
1077 script = {
1078 testcase;
1079 name = hddboot_test;
1080 common = tests/hddboot_test.in;
1081 };
1082
1083 script = {
1084 testcase;
1085 name = fddboot_test;
1086 common = tests/fddboot_test.in;
1087 };
1088
1089 script = {
1090 testcase;
1091 name = cdboot_test;
1092 common = tests/cdboot_test.in;
1093 };
1094
1095 script = {
1096 testcase;
1097 name = netboot_test;
1098 common = tests/netboot_test.in;
1099 };
1100
1101 script = {
1102 testcase;
1103 name = pseries_test;
1104 common = tests/pseries_test.in;
1105 };
1106
1107 script = {
1108 testcase;
1109 name = core_compress_test;
1110 common = tests/core_compress_test.in;
1111 };
1112
1113 script = {
1114 testcase;
1115 name = xzcompress_test;
1116 common = tests/xzcompress_test.in;
1117 };
1118
1119 script = {
1120 testcase;
1121 name = gzcompress_test;
1122 common = tests/gzcompress_test.in;
1123 };
1124
1125 script = {
1126 testcase;
1127 name = lzocompress_test;
1128 common = tests/lzocompress_test.in;
1129 };
1130
1131 script = {
1132 testcase;
1133 name = grub_cmd_echo;
1134 common = tests/grub_cmd_echo.in;
1135 };
1136
1137 script = {
1138 testcase;
1139 name = help_test;
1140 common = tests/help_test.in;
1141 };
1142
1143 script = {
1144 testcase;
1145 name = grub_script_gettext;
1146 common = tests/grub_script_gettext.in;
1147 };
1148
1149 script = {
1150 testcase;
1151 name = grub_script_escape_comma;
1152 common = tests/grub_script_escape_comma.in;
1153 };
1154
1155 script = {
1156 testcase;
1157 name = grub_script_strcmp;
1158 common = tests/grub_script_strcmp.in;
1159 };
1160
1161 script = {
1162 testcase;
1163 name = test_sha512sum;
1164 common = tests/test_sha512sum.in;
1165 };
1166
1167 script = {
1168 testcase;
1169 name = test_unset;
1170 common = tests/test_unset.in;
1171 };
1172
1173 script = {
1174 testcase;
1175 name = grub_func_test;
1176 common = tests/grub_func_test.in;
1177 };
1178
1179 script = {
1180 testcase;
1181 name = grub_cmd_tr;
1182 common = tests/grub_cmd_tr.in;
1183 };
1184
1185 script = {
1186 testcase;
1187 name = file_filter_test;
1188 common = tests/file_filter_test.in;
1189 };
1190
1191 script = {
1192 testcase;
1193 name = grub_cmd_test;
1194 common = tests/grub_cmd_test.in;
1195 };
1196
1197 script = {
1198 testcase;
1199 name = syslinux_test;
1200 common = tests/syslinux_test.in;
1201 };
1202
1203 program = {
1204 testcase;
1205 name = example_unit_test;
1206 common = tests/example_unit_test.c;
1207 common = tests/lib/unit_test.c;
1208 common = grub-core/kern/list.c;
1209 common = grub-core/kern/misc.c;
1210 common = grub-core/tests/lib/test.c;
1211 ldadd = libgrubmods.a;
1212 ldadd = libgrubgcry.a;
1213 ldadd = libgrubkern.a;
1214 ldadd = grub-core/gnulib/libgnu.a;
1215 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1216 };
1217
1218 program = {
1219 testcase;
1220 name = printf_test;
1221 common = tests/printf_unit_test.c;
1222 common = tests/lib/unit_test.c;
1223 common = grub-core/kern/list.c;
1224 common = grub-core/kern/misc.c;
1225 common = grub-core/tests/lib/test.c;
1226 ldadd = libgrubmods.a;
1227 ldadd = libgrubgcry.a;
1228 ldadd = libgrubkern.a;
1229 ldadd = grub-core/gnulib/libgnu.a;
1230 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1231 };
1232
1233 program = {
1234 testcase;
1235 name = date_test;
1236 common = tests/date_unit_test.c;
1237 common = tests/lib/unit_test.c;
1238 common = grub-core/kern/list.c;
1239 common = grub-core/kern/misc.c;
1240 common = grub-core/tests/lib/test.c;
1241 ldadd = libgrubmods.a;
1242 ldadd = libgrubgcry.a;
1243 ldadd = libgrubkern.a;
1244 ldadd = grub-core/gnulib/libgnu.a;
1245 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1246 };
1247
1248 program = {
1249 testcase;
1250 name = priority_queue_unit_test;
1251 common = tests/priority_queue_unit_test.cc;
1252 common = tests/lib/unit_test.c;
1253 common = grub-core/kern/list.c;
1254 common = grub-core/kern/misc.c;
1255 common = grub-core/tests/lib/test.c;
1256 common = grub-core/lib/priority_queue.c;
1257 ldadd = libgrubmods.a;
1258 ldadd = libgrubgcry.a;
1259 ldadd = libgrubkern.a;
1260 ldadd = grub-core/gnulib/libgnu.a;
1261 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1262 condition = COND_HAVE_CXX;
1263 };
1264
1265 program = {
1266 testcase;
1267 name = cmp_test;
1268 common = tests/cmp_unit_test.c;
1269 common = tests/lib/unit_test.c;
1270 common = grub-core/kern/list.c;
1271 common = grub-core/kern/misc.c;
1272 common = grub-core/tests/lib/test.c;
1273 ldadd = libgrubmods.a;
1274 ldadd = libgrubgcry.a;
1275 ldadd = libgrubkern.a;
1276 ldadd = grub-core/gnulib/libgnu.a;
1277 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1278 };
1279
1280 program = {
1281 name = grub-menulst2cfg;
1282 mansection = 1;
1283 common = util/grub-menulst2cfg.c;
1284 common = grub-core/lib/legacy_parse.c;
1285 common = grub-core/lib/i386/pc/vesa_modes_table.c;
1286 common = grub-core/osdep/init.c;
1287
1288 ldadd = libgrubmods.a;
1289 ldadd = libgrubgcry.a;
1290 ldadd = libgrubkern.a;
1291 ldadd = grub-core/gnulib/libgnu.a;
1292 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1293 };
1294
1295 program = {
1296 name = grub-syslinux2cfg;
1297 mansection = 1;
1298 common = util/grub-syslinux2cfg.c;
1299 common = grub-core/lib/syslinux_parse.c;
1300 common = grub-core/lib/getline.c;
1301 common = grub-core/osdep/init.c;
1302 common = grub-core/kern/emu/hostfs.c;
1303 common = grub-core/disk/host.c;
1304 common = grub-core/kern/emu/argp_common.c;
1305
1306 ldadd = libgrubmods.a;
1307 ldadd = libgrubgcry.a;
1308 ldadd = libgrubkern.a;
1309 ldadd = grub-core/gnulib/libgnu.a;
1310 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1311 };
1312
1313 program = {
1314 name = grub-glue-efi;
1315 mansection = 1;
1316
1317 common = util/grub-glue-efi.c;
1318 common = util/glue-efi.c;
1319 common = grub-core/kern/emu/argp_common.c;
1320 common = grub-core/osdep/init.c;
1321
1322 ldadd = libgrubmods.a;
1323 ldadd = libgrubgcry.a;
1324 ldadd = libgrubkern.a;
1325 ldadd = grub-core/gnulib/libgnu.a;
1326 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1327 };
1328
1329 program = {
1330 name = grub-render-label;
1331 mansection = 1;
1332
1333 common = util/grub-render-label.c;
1334 common = util/render-label.c;
1335 common = grub-core/kern/emu/argp_common.c;
1336 common = grub-core/kern/emu/hostfs.c;
1337 common = grub-core/disk/host.c;
1338 common = grub-core/osdep/init.c;
1339
1340 ldadd = libgrubmods.a;
1341 ldadd = libgrubgcry.a;
1342 ldadd = libgrubkern.a;
1343 ldadd = grub-core/gnulib/libgnu.a;
1344 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1345 };
1346
1347 program = {
1348 name = grub-file;
1349 mansection = 1;
1350
1351 common = util/grub-file.c;
1352 common = util/render-label.c;
1353 common = grub-core/commands/file.c;
1354 common = grub-core/commands/file32.c;
1355 common = grub-core/commands/file64.c;
1356 common = grub-core/loader/i386/xen_file.c;
1357 common = grub-core/loader/i386/xen_file32.c;
1358 common = grub-core/loader/i386/xen_file64.c;
1359 common = grub-core/io/offset.c;
1360 common = grub-core/kern/elf.c;
1361 common = grub-core/loader/lzss.c;
1362 common = grub-core/loader/macho.c;
1363 common = grub-core/loader/macho32.c;
1364 common = grub-core/loader/macho64.c;
1365 common = grub-core/kern/emu/hostfs.c;
1366 common = grub-core/disk/host.c;
1367 common = grub-core/osdep/init.c;
1368
1369 ldadd = libgrubmods.a;
1370 ldadd = libgrubgcry.a;
1371 ldadd = libgrubkern.a;
1372 ldadd = grub-core/gnulib/libgnu.a;
1373 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1374 };