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