Added `tr' command support.
[grub.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 = util/getroot.c;
13   common = grub-core/osdep/unix/getroot.c;
14   common = grub-core/osdep/getroot.c;
15   common = grub-core/osdep/devmapper/getroot.c;
16   common = grub-core/kern/emu/hostdisk.c;
17   common = grub-core/osdep/devmapper/hostdisk.c;
18   common = grub-core/osdep/hostdisk.c;
19   common = grub-core/osdep/unix/hostdisk.c;
20   common = grub-core/osdep/sleep.c;
21   common = grub-core/osdep/password.c;
22   common = grub-core/kern/emu/misc.c;
23   common = grub-core/kern/emu/mm.c;
24   common = grub-core/kern/env.c;
25   common = grub-core/kern/err.c;
26   common = grub-core/kern/file.c;
27   common = grub-core/kern/fs.c;
28   common = grub-core/kern/list.c;
29   common = grub-core/kern/misc.c;
30   common = grub-core/kern/partition.c;
31   common = grub-core/lib/crypto.c;
32   common = grub-core/disk/luks.c;
33   common = grub-core/disk/geli.c;
34   common = grub-core/disk/cryptodisk.c;
35   common = grub-core/disk/AFSplitter.c;
36   common = grub-core/lib/pbkdf2.c;
37   common = grub-core/commands/extcmd.c;
38   common = grub-core/lib/arg.c;
39   common = grub-core/disk/ldm.c;
40   common = grub-core/disk/diskfilter.c;
41   common = grub-core/partmap/gpt.c;
42   common = grub-core/partmap/msdos.c;
43   common = grub-core/fs/proc.c;
44 };
45
46 library = {
47   name = libgrubmods.a;
48   cflags = '-fno-builtin -Wno-undef';
49   cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
50
51   common_nodist = grub_script.tab.c;
52   common_nodist = grub_script.yy.c;
53   common_nodist = libgrub_a_init.c;
54   common_nodist = grub_script.yy.h;
55   common_nodist = grub_script.tab.h;
56
57   common = grub-core/commands/blocklist.c;
58   common = grub-core/commands/xnu_uuid.c;
59   common = grub-core/commands/testload.c;
60   common = grub-core/commands/ls.c;
61   common = grub-core/disk/dmraid_nvidia.c;
62   common = grub-core/disk/loopback.c;
63   common = grub-core/disk/lvm.c;
64   common = grub-core/disk/mdraid_linux.c;
65   common = grub-core/disk/mdraid_linux_be.c;
66   common = grub-core/disk/mdraid1x_linux.c;
67   common = grub-core/disk/raid5_recover.c;
68   common = grub-core/disk/raid6_recover.c;
69   common = grub-core/font/font.c;
70   common = grub-core/gfxmenu/font.c;
71   common = grub-core/normal/charset.c;
72   common = grub-core/video/fb/fbblit.c;
73   common = grub-core/video/fb/fbutil.c;
74   common = grub-core/video/fb/fbfill.c;
75   common = grub-core/video/fb/video_fb.c;
76   common = grub-core/video/video.c;
77   common = grub-core/video/capture.c;
78   common = grub-core/video/colors.c;
79   common = grub-core/unidata.c;
80   common = grub-core/io/bufio.c;
81   common = grub-core/fs/affs.c;
82   common = grub-core/fs/afs.c;
83   common = grub-core/fs/bfs.c;
84   common = grub-core/fs/btrfs.c;
85   common = grub-core/fs/cbfs.c;
86   common = grub-core/fs/archelp.c;
87   common = grub-core/fs/cpio.c;
88   common = grub-core/fs/cpio_be.c;
89   common = grub-core/fs/odc.c;
90   common = grub-core/fs/newc.c;
91   common = grub-core/fs/ext2.c;
92   common = grub-core/fs/fat.c;
93   common = grub-core/fs/exfat.c;
94   common = grub-core/fs/fshelp.c;
95   common = grub-core/fs/hfs.c;
96   common = grub-core/fs/hfsplus.c;
97   common = grub-core/fs/hfspluscomp.c;
98   common = grub-core/fs/iso9660.c;
99   common = grub-core/fs/jfs.c;
100   common = grub-core/fs/minix.c;
101   common = grub-core/fs/minix2.c;
102   common = grub-core/fs/minix3.c;
103   common = grub-core/fs/minix_be.c;
104   common = grub-core/fs/minix2_be.c;
105   common = grub-core/fs/minix3_be.c;
106   common = grub-core/fs/nilfs2.c;
107   common = grub-core/fs/ntfs.c;
108   common = grub-core/fs/ntfscomp.c;
109   common = grub-core/fs/reiserfs.c;
110   common = grub-core/fs/romfs.c;
111   common = grub-core/fs/sfs.c;
112   common = grub-core/fs/squash4.c;
113   common = grub-core/fs/tar.c;
114   common = grub-core/fs/udf.c;
115   common = grub-core/fs/ufs2.c;
116   common = grub-core/fs/ufs.c;
117   common = grub-core/fs/ufs_be.c;
118   common = grub-core/fs/xfs.c;
119   common = grub-core/fs/zfs/zfscrypt.c;
120   common = grub-core/fs/zfs/zfs.c;
121   common = grub-core/fs/zfs/zfsinfo.c;
122   common = grub-core/fs/zfs/zfs_lzjb.c;
123   common = grub-core/fs/zfs/zfs_lz4.c;
124   common = grub-core/fs/zfs/zfs_sha256.c;
125   common = grub-core/fs/zfs/zfs_fletcher.c;
126   common = grub-core/lib/envblk.c;
127   common = grub-core/lib/hexdump.c;
128   common = grub-core/lib/LzFind.c;
129   common = grub-core/lib/LzmaEnc.c;
130   common = grub-core/lib/crc.c;
131   common = grub-core/lib/adler32.c;
132   common = grub-core/lib/crc64.c;
133   common = grub-core/normal/datetime.c;
134   common = grub-core/normal/misc.c;
135   common = grub-core/partmap/acorn.c;
136   common = grub-core/partmap/amiga.c;
137   common = grub-core/partmap/apple.c;
138   common = grub-core/partmap/sun.c;
139   common = grub-core/partmap/plan.c;
140   common = grub-core/partmap/dvh.c;
141   common = grub-core/partmap/sunpc.c;
142   common = grub-core/partmap/bsdlabel.c;
143   common = grub-core/partmap/dfly.c;
144   common = grub-core/script/function.c;
145   common = grub-core/script/lexer.c;
146   common = grub-core/script/main.c;
147   common = grub-core/script/script.c;
148   common = grub-core/script/argv.c;
149   common = grub-core/io/gzio.c;
150   common = grub-core/io/lzopio.c;
151   common = grub-core/kern/ia64/dl_helper.c;
152   common = grub-core/lib/minilzo/minilzo.c;
153   common = grub-core/lib/xzembed/xz_dec_bcj.c;
154   common = grub-core/lib/xzembed/xz_dec_lzma2.c;
155   common = grub-core/lib/xzembed/xz_dec_stream.c;
156 };
157
158 program = {
159   name = grub-mkimage;
160   mansection = 1;
161
162   common = util/grub-mkimage.c;
163   common = util/mkimage.c;
164   common = util/resolve.c;
165   common = grub-core/kern/emu/argp_common.c;
166   common = grub-core/osdep/init.c;
167
168   common = grub-core/kern/arm/dl_helper.c;
169
170   extra_dist = util/grub-mkimagexx.c;
171
172   ldadd = libgrubmods.a;
173   ldadd = libgrubgcry.a;
174   ldadd = libgrubkern.a;
175   ldadd = grub-core/gnulib/libgnu.a;
176   ldadd = '$(LIBLZMA)';
177   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
178   cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
179 };
180
181 program = {
182   name = grub-mkrelpath;
183   mansection = 1;
184
185   common = util/grub-mkrelpath.c;
186   common = grub-core/kern/emu/argp_common.c;
187   common = grub-core/osdep/init.c;
188
189   ldadd = libgrubmods.a;
190   ldadd = libgrubgcry.a;
191   ldadd = libgrubkern.a;
192   ldadd = grub-core/gnulib/libgnu.a;
193   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
194 };
195
196 program = {
197   name = grub-script-check;
198   mansection = 1;
199
200   common = util/grub-script-check.c;
201   common = grub-core/kern/emu/argp_common.c;
202   common = grub-core/osdep/init.c;
203
204   ldadd = libgrubmods.a;
205   ldadd = libgrubgcry.a;
206   ldadd = libgrubkern.a;
207   ldadd = grub-core/gnulib/libgnu.a;
208   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
209 };
210
211 program = {
212   name = grub-editenv;
213   mansection = 1;
214
215   common = util/grub-editenv.c;
216   common = util/editenv.c;
217   common = grub-core/osdep/init.c;
218
219   ldadd = libgrubmods.a;
220   ldadd = libgrubgcry.a;
221   ldadd = libgrubkern.a;
222   ldadd = grub-core/gnulib/libgnu.a;
223   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
224 };
225
226 program = {
227   name = grub-mkpasswd-pbkdf2;
228   mansection = 1;
229
230   common = util/grub-mkpasswd-pbkdf2.c;
231   common = grub-core/kern/emu/argp_common.c;
232   common = grub-core/osdep/random.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-macho2img;
244   mansection = 1;
245   common = util/grub-macho2img.c;
246   condition = COND_APPLE_CC;
247 };
248
249 program = {
250   name = grub-fstest;
251   mansection = 1;
252   common_nodist = grub_fstest_init.c;
253   common = util/grub-fstest.c;
254   common = grub-core/kern/emu/hostfs.c;
255   common = grub-core/disk/host.c;
256   common = grub-core/osdep/init.c;
257
258   ldadd = libgrubmods.a;
259   ldadd = libgrubgcry.a;
260   ldadd = libgrubkern.a;
261   ldadd = grub-core/gnulib/libgnu.a;
262   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
263 };
264
265 program = {
266   name = grub-mount;
267   mansection = 1;
268   common_nodist = grub_fstest_init.c;
269   common = util/grub-mount.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) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
279   condition = COND_GRUB_MOUNT;
280 };
281
282 program = {
283   name = grub-mkfont;
284   mansection = 1;
285   common = util/grub-mkfont.c;
286   common = grub-core/kern/emu/argp_common.c;
287   common = grub-core/osdep/init.c;
288
289   cflags = '$(freetype_cflags)';
290   cppflags = '-DGRUB_MKFONT=1';
291
292   ldadd = libgrubmods.a;
293   ldadd = libgrubgcry.a;
294   ldadd = libgrubkern.a;
295   ldadd = grub-core/gnulib/libgnu.a;
296   ldadd = '$(freetype_libs)';
297   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
298   condition = COND_GRUB_MKFONT;
299 };
300
301 program = {
302   name = grub-probe;
303   installdir = sbin;
304   mansection = 8;
305   common = util/grub-probe.c;
306   common = grub-core/osdep/ofpath.c;
307   common = grub-core/kern/emu/argp_common.c;
308   common = grub-core/osdep/init.c;
309
310   ldadd = libgrubmods.a;
311   ldadd = libgrubgcry.a;
312   ldadd = libgrubkern.a;
313   ldadd = grub-core/gnulib/libgnu.a;
314   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
315 };
316
317 program = {
318   name = grub-bios-setup;
319   installdir = sbin;
320   mansection = 8;
321   common = util/grub-setup.c;
322   common = util/setup_bios.c;
323   common = grub-core/kern/emu/argp_common.c;
324   common = grub-core/lib/reed_solomon.c;
325   common = grub-core/osdep/blocklist.c;
326   extra_dist = grub-core/osdep/generic/blocklist.c;
327   extra_dist = grub-core/osdep/linux/blocklist.c;
328   extra_dist = grub-core/osdep/windows/blocklist.c;
329   common = grub-core/osdep/init.c;
330
331   ldadd = libgrubmods.a;
332   ldadd = libgrubkern.a;
333   ldadd = libgrubgcry.a;
334   ldadd = grub-core/gnulib/libgnu.a;
335   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
336   cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
337 };
338
339 program = {
340   name = grub-sparc64-setup;
341   installdir = sbin;
342   mansection = 8;
343   common = util/grub-setup.c;
344   common = util/setup_sparc.c;
345   common = grub-core/kern/emu/argp_common.c;
346   common = grub-core/lib/reed_solomon.c;
347   common = grub-core/osdep/ofpath.c;
348   common = grub-core/osdep/blocklist.c;
349   common = grub-core/osdep/init.c;
350
351   ldadd = libgrubmods.a;
352   ldadd = libgrubkern.a;
353   ldadd = libgrubgcry.a;
354   ldadd = grub-core/gnulib/libgnu.a;
355   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
356   cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
357 };
358
359 program = {
360   name = grub-ofpathname;
361   installdir = sbin;
362   mansection = 8;
363   common = util/ieee1275/grub-ofpathname.c;
364   common = grub-core/osdep/ofpath.c;
365   common = grub-core/osdep/init.c;
366
367   ldadd = libgrubmods.a;
368   ldadd = libgrubgcry.a;
369   ldadd = libgrubkern.a;
370   ldadd = grub-core/gnulib/libgnu.a;
371   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
372 };
373
374 program = {
375   name = grub-mklayout;
376   mansection = 1;
377
378   common = util/grub-mklayout.c;
379   common = grub-core/kern/emu/argp_common.c;
380   common = grub-core/osdep/init.c;
381
382   ldadd = libgrubmods.a;
383   ldadd = libgrubgcry.a;
384   ldadd = libgrubkern.a;
385   ldadd = grub-core/gnulib/libgnu.a;
386   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
387 };
388
389 data = {
390   common = util/grub.d/README;
391   installdir = grubconf;
392 };
393
394 script = {
395   name = '00_header';
396   common = util/grub.d/00_header.in;
397   installdir = grubconf;
398 };
399
400 script = {
401   name = '10_windows';
402   common = util/grub.d/10_windows.in;
403   installdir = grubconf;
404   condition = COND_HOST_WINDOWS;
405 };
406
407 script = {
408   name = '10_hurd';
409   common = util/grub.d/10_hurd.in;
410   installdir = grubconf;
411   condition = COND_HOST_HURD;
412 };
413
414 script = {
415   name = '10_kfreebsd';
416   common = util/grub.d/10_kfreebsd.in;
417   installdir = grubconf;
418   condition = COND_HOST_KFREEBSD;
419 };
420
421 script = {
422   name = '10_illumos';
423   common = util/grub.d/10_illumos.in;
424   installdir = grubconf;
425   condition = COND_HOST_ILLUMOS;
426 };
427
428 script = {
429   name = '10_netbsd';
430   common = util/grub.d/10_netbsd.in;
431   installdir = grubconf;
432   condition = COND_HOST_NETBSD;
433 };
434
435 script = {
436   name = '10_linux';
437   common = util/grub.d/10_linux.in;
438   installdir = grubconf;
439   condition = COND_HOST_LINUX;
440 };
441
442 script = {
443   name = '10_xnu';
444   common = util/grub.d/10_xnu.in;
445   installdir = grubconf;
446   condition = COND_HOST_XNU;
447 };
448
449 script = {
450   name = '20_linux_xen';
451   common = util/grub.d/20_linux_xen.in;
452   installdir = grubconf;
453   condition = COND_HOST_LINUX;
454 };
455
456 script = {
457   name = '30_os-prober';
458   common = util/grub.d/30_os-prober.in;
459   installdir = grubconf;
460 };
461
462 script = {
463   name = '40_custom';
464   common = util/grub.d/40_custom.in;
465   installdir = grubconf;
466 };
467
468 script = {
469   name = '41_custom';
470   common = util/grub.d/41_custom.in;
471   installdir = grubconf;
472 };
473
474 script = {
475   mansection = 1;
476   name = grub-mkrescue;
477   common = util/grub-install_header;
478   common = util/grub-mkrescue.in;
479   enable = noemu;
480 };
481
482 script = {
483   mansection = 1;
484   name = grub-mkstandalone;
485   common = util/grub-install_header;
486   common = util/grub-mkstandalone.in;
487 };
488
489 script = {
490   mansection = 8;
491   installdir = sbin;
492   name = grub-install;
493
494   common = util/grub-install_header;
495   common = util/grub-install.in;
496   enable = noemu;
497 };
498
499 script = {
500   mansection = 1;
501   installdir = bin;
502   name = grub-mknetdir;
503
504   common = util/grub-install_header;
505   common = util/grub-mknetdir.in;
506 };
507
508 script = {
509   name = grub-mkconfig;
510   common = util/grub-mkconfig.in;
511   mansection = 8;
512   installdir = sbin;
513 };
514
515 script = {
516   name = grub-set-default;
517   common = util/grub-set-default.in;
518   mansection = 8;
519   installdir = sbin;
520 };
521
522 script = {
523   name = grub-reboot;
524   common = util/grub-reboot.in;
525   mansection = 8;
526   installdir = sbin;
527 };
528
529 script = {
530   name = grub-mkconfig_lib;
531   common = util/grub-mkconfig_lib.in;
532   installdir = noinst;
533 };
534
535 script = {
536   name = grub-kbdcomp;
537   common = util/grub-kbdcomp.in;
538   mansection = 1;
539 };
540
541 script = {
542   name = grub-shell;
543   common = tests/util/grub-shell.in;
544   installdir = noinst;
545 };
546
547 script = {
548   name = grub-shell-tester;
549   common = tests/util/grub-shell-tester.in;
550   installdir = noinst;
551 };
552
553 script = {
554   testcase;
555   name = example_scripted_test;
556   common = tests/example_scripted_test.in;
557 };
558
559 script = {
560   testcase;
561   name = gettext_strings_test;
562   common = tests/gettext_strings_test.in;
563   extra_dist = po/exclude.pot;
564 };
565
566 script = {
567   testcase;
568   name = pata_test;
569   common = tests/pata_test.in;
570 };
571
572 script = {
573   testcase;
574   name = ahci_test;
575   common = tests/ahci_test.in;
576 };
577
578 script = {
579   testcase;
580   name = uhci_test;
581   common = tests/uhci_test.in;
582 };
583
584 script = {
585   testcase;
586   name = ohci_test;
587   common = tests/ohci_test.in;
588 };
589
590 script = {
591   testcase;
592   name = ehci_test;
593   common = tests/ehci_test.in;
594 };
595
596 script = {
597   testcase;
598   name = example_grub_script_test;
599   common = tests/example_grub_script_test.in;
600 };
601
602 script = {
603   testcase;
604   name = grub_script_eval;
605   common = tests/grub_script_eval.in;
606 };
607
608 script = {
609   testcase;
610   name = grub_script_test;
611   common = tests/grub_script_test.in;
612 };
613
614 script = {
615   testcase;
616   name = grub_script_echo1;
617   common = tests/grub_script_echo1.in;
618 };
619
620 script = {
621   testcase;
622   name = grub_script_leading_whitespace;
623   common = tests/grub_script_leading_whitespace.in;
624 };
625
626 script = {
627   testcase;
628   name = grub_script_echo_keywords;
629   common = tests/grub_script_echo_keywords.in;
630 };
631
632 script = {
633   testcase;
634   name = grub_script_vars1;
635   common = tests/grub_script_vars1.in;
636 };
637
638 script = {
639   testcase;
640   name = grub_script_for1;
641   common = tests/grub_script_for1.in;
642 };
643
644 script = {
645   testcase;
646   name = grub_script_while1;
647   common = tests/grub_script_while1.in;
648 };
649
650 script = {
651   testcase;
652   name = grub_script_if;
653   common = tests/grub_script_if.in;
654 };
655
656 script = {
657   testcase;
658   name = grub_script_blanklines;
659   common = tests/grub_script_blanklines.in;
660 };
661
662 script = {
663   testcase;
664   name = grub_script_final_semicolon;
665   common = tests/grub_script_final_semicolon.in;
666 };
667
668 script = {
669   testcase;
670   name = grub_script_dollar;
671   common = tests/grub_script_dollar.in;
672 };
673
674 script = {
675   testcase;
676   name = grub_script_comments;
677   common = tests/grub_script_comments.in;
678 };
679
680 script = {
681   testcase;
682   name = grub_script_functions;
683   common = tests/grub_script_functions.in;
684 };
685
686 script = {
687   testcase;
688   name = grub_script_break;
689   common = tests/grub_script_break.in;
690 };
691
692 script = {
693   testcase;
694   name = grub_script_continue;
695   common = tests/grub_script_continue.in;
696 };
697
698 script = {
699   testcase;
700   name = grub_script_shift;
701   common = tests/grub_script_shift.in;
702 };
703
704 script = {
705   testcase;
706   name = grub_script_blockarg;
707   common = tests/grub_script_blockarg.in;
708 };
709
710 script = {
711   testcase;
712   name = grub_script_setparams;
713   common = tests/grub_script_setparams.in;
714 };
715
716 script = {
717   testcase;
718   name = grub_script_return;
719   common = tests/grub_script_return.in;
720 };
721
722 script = {
723   testcase;
724   name = grub_cmd_regexp;
725   common = tests/grub_cmd_regexp.in;
726 };
727
728 script = {
729   testcase;
730   name = grub_cmd_date;
731   common = tests/grub_cmd_date.in;
732 };
733
734 script = {
735   testcase;
736   name = grub_cmd_set_date;
737   common = tests/grub_cmd_set_date.in;
738 };
739
740 script = {
741   testcase;
742   name = grub_cmd_sleep;
743   common = tests/grub_cmd_sleep.in;
744 };
745
746 script = {
747   testcase;
748   name = grub_script_expansion;
749   common = tests/grub_script_expansion.in;
750 };
751
752 script = {
753   testcase;
754   name = grub_script_not;
755   common = tests/grub_script_not.in;
756 };
757
758 script = {
759   testcase;
760   name = grub_script_no_commands;
761   common = tests/grub_script_no_commands.in;
762 };
763
764 script = {
765   testcase;
766   name = partmap_test;
767   common = tests/partmap_test.in;
768 };
769
770 script = {
771   testcase;
772   name = hddboot_test;
773   common = tests/hddboot_test.in;
774 };
775
776 script = {
777   testcase;
778   name = fddboot_test;
779   common = tests/fddboot_test.in;
780 };
781
782 script = {
783   testcase;
784   name = cdboot_test;
785   common = tests/cdboot_test.in;
786 };
787
788 script = {
789   testcase;
790   name = netboot_test;
791   common = tests/netboot_test.in;
792 };
793
794 script = {
795   testcase;
796   name = pseries_test;
797   common = tests/pseries_test.in;
798 };
799
800 script = {
801   testcase;
802   name = core_compress_test;
803   common = tests/core_compress_test.in;
804 };
805
806 script = {
807   testcase;
808   name = xzcompress_test;
809   common = tests/xzcompress_test.in;
810 };
811
812 script = {
813   testcase;
814   name = gzcompress_test;
815   common = tests/gzcompress_test.in;
816 };
817
818 script = {
819   testcase;
820   name = lzocompress_test;
821   common = tests/lzocompress_test.in;
822 };
823
824 script = {
825   testcase;
826   name = grub_cmd_echo;
827   common = tests/grub_cmd_echo.in;
828 };
829
830 script = {
831   testcase;
832   name = help_test;
833   common = tests/help_test.in;
834 };
835
836 script = {
837   testcase;
838   name = grub_script_gettext;
839   common = tests/grub_script_gettext.in;
840 };
841
842 script = {
843   testcase;
844   name = grub_script_escape_comma;
845   common = tests/grub_script_escape_comma.in;
846 };
847
848 script = {
849   testcase;
850   name = grub_script_strcmp;
851   common = tests/grub_script_strcmp.in;
852 };
853
854 script = {
855   testcase;
856   name = grub_func_test;
857   common = tests/grub_func_test.in;
858 };
859
860 script = {
861   testcase;
862   name = grub_cmd_tr;
863   common = tests/grub_cmd_tr.in;
864 };
865
866 program = {
867   testcase;
868   name = example_unit_test;
869   common = tests/example_unit_test.c;
870   common = tests/lib/unit_test.c;
871   common = grub-core/kern/list.c;
872   common = grub-core/kern/misc.c;
873   common = grub-core/tests/lib/test.c;
874   ldadd = libgrubmods.a;
875   ldadd = libgrubgcry.a;
876   ldadd = libgrubkern.a;
877   ldadd = grub-core/gnulib/libgnu.a;
878   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
879 };
880
881 program = {
882   testcase;
883   name = printf_test;
884   common = tests/printf_unit_test.c;
885   common = tests/lib/unit_test.c;
886   common = grub-core/kern/list.c;
887   common = grub-core/kern/misc.c;
888   common = grub-core/tests/lib/test.c;
889   ldadd = libgrubmods.a;
890   ldadd = libgrubgcry.a;
891   ldadd = libgrubkern.a;
892   ldadd = grub-core/gnulib/libgnu.a;
893   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
894 };
895
896 program = {
897   testcase;
898   name = priority_queue_unit_test;
899   common = tests/priority_queue_unit_test.cc;
900   common = tests/lib/unit_test.c;
901   common = grub-core/kern/list.c;
902   common = grub-core/kern/misc.c;
903   common = grub-core/tests/lib/test.c;
904   common = grub-core/lib/priority_queue.c;
905   ldadd = libgrubmods.a;
906   ldadd = libgrubgcry.a;
907   ldadd = libgrubkern.a;
908   ldadd = grub-core/gnulib/libgnu.a;
909   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
910   condition = COND_HAVE_CXX;
911 };
912
913 program = {
914   testcase;
915   name = cmp_test;
916   common = tests/cmp_unit_test.c;
917   common = tests/lib/unit_test.c;
918   common = grub-core/kern/list.c;
919   common = grub-core/kern/misc.c;
920   common = grub-core/tests/lib/test.c;
921   ldadd = libgrubmods.a;
922   ldadd = libgrubgcry.a;
923   ldadd = libgrubkern.a;
924   ldadd = grub-core/gnulib/libgnu.a;
925   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
926 };
927
928 program = {
929   name = grub-menulst2cfg;
930   mansection = 1;
931   common = util/grub-menulst2cfg.c;
932   common = grub-core/lib/legacy_parse.c;
933   common = grub-core/lib/i386/pc/vesa_modes_table.c;
934   common = grub-core/osdep/init.c;
935
936   ldadd = libgrubmods.a;
937   ldadd = libgrubgcry.a;
938   ldadd = libgrubkern.a;
939   ldadd = grub-core/gnulib/libgnu.a;
940   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
941 };
942
943 program = {
944   name = grub-glue-efi;
945   mansection = 1;
946
947   common = util/grub-glue-efi.c;
948   common = grub-core/kern/emu/argp_common.c;
949   common = grub-core/osdep/init.c;
950
951   ldadd = libgrubmods.a;
952   ldadd = libgrubgcry.a;
953   ldadd = libgrubkern.a;
954   ldadd = grub-core/gnulib/libgnu.a;
955   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
956 };
957
958 program = {
959   name = grub-render-label;
960   mansection = 1;
961
962   common = util/grub-render-label.c;
963   common = grub-core/kern/emu/argp_common.c;
964   common = grub-core/kern/emu/hostfs.c;
965   common = grub-core/disk/host.c;
966   common = grub-core/osdep/init.c;
967
968   ldadd = libgrubmods.a;
969   ldadd = libgrubgcry.a;
970   ldadd = libgrubkern.a;
971   ldadd = grub-core/gnulib/libgnu.a;
972   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
973 };