Initial import of Leif's work
[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 = util/raid.c;
14   common = grub-core/kern/emu/hostdisk.c;
15   common = grub-core/kern/emu/misc.c;
16   common = grub-core/kern/emu/mm.c;
17   common = grub-core/kern/env.c;
18   common = grub-core/kern/err.c;
19   common = grub-core/kern/file.c;
20   common = grub-core/kern/fs.c;
21   common = grub-core/kern/list.c;
22   common = grub-core/kern/misc.c;
23   common = grub-core/kern/partition.c;
24   common = grub-core/lib/crypto.c;
25   common = grub-core/disk/luks.c;
26   common = grub-core/disk/geli.c;
27   common = grub-core/disk/cryptodisk.c;
28   common = grub-core/disk/AFSplitter.c;
29   common = grub-core/lib/pbkdf2.c;
30   common = grub-core/commands/extcmd.c;
31   common = grub-core/lib/arg.c;
32   common = grub-core/disk/ldm.c;
33   common = grub-core/disk/diskfilter.c;
34   common = grub-core/partmap/gpt.c;
35   common = grub-core/partmap/msdos.c;
36   common = grub-core/fs/proc.c;
37 };
38
39 library = {
40   name = libgrubmods.a;
41   cflags = '$(CFLAGS_POSIX) -Wno-undef -Wno-error=missing-noreturn';
42   cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
43
44   common_nodist = grub_script.tab.c;
45   common_nodist = grub_script.yy.c;
46   common_nodist = libgrub_a_init.c;
47   common_nodist = grub_script.yy.h;
48   common_nodist = grub_script.tab.h;
49
50   common = grub-core/commands/blocklist.c;
51   common = grub-core/commands/xnu_uuid.c;
52   common = grub-core/commands/testload.c;
53   common = grub-core/commands/ls.c;
54   common = grub-core/disk/dmraid_nvidia.c;
55   common = grub-core/disk/loopback.c;
56   common = grub-core/disk/lvm.c;
57   common = grub-core/disk/mdraid_linux.c;
58   common = grub-core/disk/mdraid_linux_be.c;
59   common = grub-core/disk/mdraid1x_linux.c;
60   common = grub-core/disk/raid5_recover.c;
61   common = grub-core/disk/raid6_recover.c;
62   common = grub-core/fs/affs.c;
63   common = grub-core/fs/afs.c;
64   common = grub-core/fs/bfs.c;
65   common = grub-core/fs/btrfs.c;
66   common = grub-core/fs/cpio.c;
67   common = grub-core/fs/cpio_be.c;
68   common = grub-core/fs/odc.c;
69   common = grub-core/fs/newc.c;
70   common = grub-core/fs/ext2.c;
71   common = grub-core/fs/fat.c;
72   common = grub-core/fs/exfat.c;
73   common = grub-core/fs/fshelp.c;
74   common = grub-core/fs/hfs.c;
75   common = grub-core/fs/hfsplus.c;
76   common = grub-core/fs/iso9660.c;
77   common = grub-core/fs/jfs.c;
78   common = grub-core/fs/minix.c;
79   common = grub-core/fs/minix2.c;
80   common = grub-core/fs/minix3.c;
81   common = grub-core/fs/minix_be.c;
82   common = grub-core/fs/minix2_be.c;
83   common = grub-core/fs/minix3_be.c;
84   common = grub-core/fs/nilfs2.c;
85   common = grub-core/fs/ntfs.c;
86   common = grub-core/fs/ntfscomp.c;
87   common = grub-core/fs/reiserfs.c;
88   common = grub-core/fs/romfs.c;
89   common = grub-core/fs/sfs.c;
90   common = grub-core/fs/squash4.c;
91   common = grub-core/fs/tar.c;
92   common = grub-core/fs/udf.c;
93   common = grub-core/fs/ufs2.c;
94   common = grub-core/fs/ufs.c;
95   common = grub-core/fs/ufs_be.c;
96   common = grub-core/fs/xfs.c;
97   common = grub-core/fs/zfs/zfscrypt.c;
98   common = grub-core/fs/zfs/zfs.c;
99   common = grub-core/fs/zfs/zfsinfo.c;
100   common = grub-core/fs/zfs/zfs_lzjb.c;
101   common = grub-core/fs/zfs/zfs_sha256.c;
102   common = grub-core/fs/zfs/zfs_fletcher.c;
103   common = grub-core/lib/envblk.c;
104   common = grub-core/lib/hexdump.c;
105   common = grub-core/lib/LzFind.c;
106   common = grub-core/lib/LzmaEnc.c;
107   common = grub-core/lib/crc.c;
108   common = grub-core/lib/adler32.c;
109   common = grub-core/lib/crc64.c;
110   common = grub-core/normal/datetime.c;
111   common = grub-core/normal/misc.c;
112   common = grub-core/partmap/acorn.c;
113   common = grub-core/partmap/amiga.c;
114   common = grub-core/partmap/apple.c;
115   common = grub-core/partmap/sun.c;
116   common = grub-core/partmap/plan.c;
117   common = grub-core/partmap/dvh.c;
118   common = grub-core/partmap/sunpc.c;
119   common = grub-core/partmap/bsdlabel.c;
120   common = grub-core/script/function.c;
121   common = grub-core/script/lexer.c;
122   common = grub-core/script/main.c;
123   common = grub-core/script/script.c;
124   common = grub-core/script/argv.c;
125   common = grub-core/io/gzio.c;
126   common = grub-core/io/lzopio.c;
127   common = grub-core/kern/ia64/dl_helper.c;
128   common = grub-core/lib/minilzo/minilzo.c;
129   common = grub-core/lib/xzembed/xz_dec_bcj.c;
130   common = grub-core/lib/xzembed/xz_dec_lzma2.c;
131   common = grub-core/lib/xzembed/xz_dec_stream.c;
132 };
133
134 program = {
135   name = grub-bin2h;
136   common = util/bin2h.c;
137   ldadd = libgrubmods.a;
138   ldadd = libgrubgcry.a;
139   ldadd = libgrubkern.a;
140   ldadd = grub-core/gnulib/libgnu.a;
141   ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
142   installdir = noinst;
143 };
144
145 program = {
146   name = grub-mkimage;
147   mansection = 1;
148
149   common = util/grub-mkimage.c;
150   common = util/resolve.c;
151   common = grub-core/kern/emu/argp_common.c;
152
153   arm = grub-core/kern/arm/dl.c;
154
155   extra_dist = util/grub-mkimagexx.c;
156
157   ldadd = libgrubmods.a;
158   ldadd = libgrubgcry.a;
159   ldadd = libgrubkern.a;
160   ldadd = grub-core/gnulib/libgnu.a;
161   ldadd = '$(LIBLZMA)';
162   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
163   cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
164 };
165
166 program = {
167   name = grub-mkrelpath;
168   mansection = 1;
169
170   common = util/grub-mkrelpath.c;
171   common = grub-core/kern/emu/argp_common.c;
172
173   ldadd = libgrubmods.a;
174   ldadd = libgrubgcry.a;
175   ldadd = libgrubkern.a;
176   ldadd = grub-core/gnulib/libgnu.a;
177   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
178 };
179
180 program = {
181   name = grub-script-check;
182   mansection = 1;
183
184   common = util/grub-script-check.c;
185   common = grub-core/kern/emu/argp_common.c;
186
187   ldadd = libgrubmods.a;
188   ldadd = libgrubgcry.a;
189   ldadd = libgrubkern.a;
190   ldadd = grub-core/gnulib/libgnu.a;
191   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
192 };
193
194 program = {
195   name = grub-editenv;
196   mansection = 1;
197
198   common = util/grub-editenv.c;
199
200   ldadd = libgrubmods.a;
201   ldadd = libgrubgcry.a;
202   ldadd = libgrubkern.a;
203   ldadd = grub-core/gnulib/libgnu.a;
204   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
205 };
206
207 program = {
208   name = grub-mkpasswd-pbkdf2;
209   mansection = 1;
210
211   common = util/grub-mkpasswd-pbkdf2.c;
212   common = grub-core/kern/emu/argp_common.c;
213
214   ldadd = libgrubmods.a;
215   ldadd = libgrubgcry.a;
216   ldadd = libgrubkern.a;
217   ldadd = grub-core/gnulib/libgnu.a;
218   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
219 };
220
221 program = {
222   name = grub-macho2img;
223   mansection = 1;
224   common = util/grub-macho2img.c;
225   condition = COND_APPLE_CC;
226 };
227
228 program = {
229   name = grub-pe2elf;
230   mansection = 1;
231   common = util/grub-pe2elf.c;
232
233   ldadd = libgrubmods.a;
234   ldadd = libgrubgcry.a;
235   ldadd = libgrubkern.a;
236   ldadd = grub-core/gnulib/libgnu.a;
237   ldadd = '$(LIBINTL)';
238   condition = COND_GRUB_PE2ELF;
239 };
240
241 program = {
242   name = grub-fstest;
243   mansection = 1;
244   common_nodist = grub_fstest_init.c;
245   common = util/grub-fstest.c;
246   common = grub-core/kern/emu/hostfs.c;
247   common = grub-core/disk/host.c;
248
249   ldadd = libgrubmods.a;
250   ldadd = libgrubgcry.a;
251   ldadd = libgrubkern.a;
252   ldadd = grub-core/gnulib/libgnu.a;
253   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
254 };
255
256 program = {
257   name = grub-mount;
258   mansection = 1;
259   common_nodist = grub_fstest_init.c;
260   common = util/grub-mount.c;
261   common = grub-core/kern/emu/hostfs.c;
262   common = grub-core/disk/host.c;
263
264   ldadd = libgrubmods.a;
265   ldadd = libgrubgcry.a;
266   ldadd = libgrubkern.a;
267   ldadd = grub-core/gnulib/libgnu.a;
268   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
269   condition = COND_GRUB_MOUNT;
270 };
271
272 program = {
273   name = grub-mkfont;
274   mansection = 1;
275   common = util/grub-mkfont.c;
276   common = grub-core/unidata.c;
277   common = grub-core/kern/emu/argp_common.c;
278
279   cflags = '$(freetype_cflags)';
280
281   ldadd = libgrubmods.a;
282   ldadd = libgrubgcry.a;
283   ldadd = libgrubkern.a;
284   ldadd = grub-core/gnulib/libgnu.a;
285   ldadd = '$(freetype_libs)';
286   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
287   condition = COND_GRUB_MKFONT;
288 };
289
290 program = {
291   name = grub-probe;
292   installdir = sbin;
293   mansection = 8;
294   common = util/grub-probe.c;
295   common = util/ieee1275/ofpath.c;
296   common = grub-core/kern/emu/argp_common.c;
297
298   ldadd = libgrubmods.a;
299   ldadd = libgrubgcry.a;
300   ldadd = libgrubkern.a;
301   ldadd = grub-core/gnulib/libgnu.a;
302   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
303 };
304
305 program = {
306   name = grub-bios-setup;
307   installdir = sbin;
308   mansection = 8;
309   common = util/grub-setup.c;
310   common = util/lvm.c;
311   common = grub-core/kern/emu/argp_common.c;
312   common = grub-core/lib/reed_solomon.c;
313
314   ldadd = libgrubmods.a;
315   ldadd = libgrubkern.a;
316   ldadd = libgrubgcry.a;
317   ldadd = grub-core/gnulib/libgnu.a;
318   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
319   cppflags = '-DGRUB_SETUP_BIOS=1';
320 };
321
322 program = {
323   name = grub-sparc64-setup;
324   installdir = sbin;
325   mansection = 8;
326   common = util/grub-setup.c;
327   common = util/lvm.c;
328   common = grub-core/kern/emu/argp_common.c;
329   common = grub-core/lib/reed_solomon.c;
330   common = util/ieee1275/ofpath.c;
331
332   ldadd = libgrubmods.a;
333   ldadd = libgrubkern.a;
334   ldadd = libgrubgcry.a;
335   ldadd = grub-core/gnulib/libgnu.a;
336   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
337   cppflags = '-DGRUB_SETUP_SPARC64=1';
338 };
339
340 program = {
341   name = grub-ofpathname;
342   installdir = sbin;
343   mansection = 8;
344   common = util/ieee1275/grub-ofpathname.c;
345   common = util/ieee1275/ofpath.c;
346
347   ldadd = libgrubmods.a;
348   ldadd = libgrubgcry.a;
349   ldadd = libgrubkern.a;
350   ldadd = grub-core/gnulib/libgnu.a;
351   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
352 };
353
354 program = {
355   name = grub-mklayout;
356   mansection = 1;
357
358   common = util/grub-mklayout.c;
359   common = grub-core/kern/emu/argp_common.c;
360
361   ldadd = libgrubmods.a;
362   ldadd = libgrubgcry.a;
363   ldadd = libgrubkern.a;
364   ldadd = grub-core/gnulib/libgnu.a;
365   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
366 };
367
368 data = {
369   common = util/grub.d/README;
370   installdir = grubconf;
371 };
372
373 script = {
374   name = '00_header';
375   common = util/grub.d/00_header.in;
376   installdir = grubconf;
377 };
378
379 script = {
380   name = '10_windows';
381   common = util/grub.d/10_windows.in;
382   installdir = grubconf;
383   condition = COND_HOST_WINDOWS;
384 };
385
386 script = {
387   name = '10_hurd';
388   common = util/grub.d/10_hurd.in;
389   installdir = grubconf;
390   condition = COND_HOST_HURD;
391 };
392
393 script = {
394   name = '10_kfreebsd';
395   common = util/grub.d/10_kfreebsd.in;
396   installdir = grubconf;
397   condition = COND_HOST_KFREEBSD;
398 };
399
400 script = {
401   name = '10_illumos';
402   common = util/grub.d/10_illumos.in;
403   installdir = grubconf;
404   condition = COND_HOST_ILLUMOS;
405 };
406
407 script = {
408   name = '10_netbsd';
409   common = util/grub.d/10_netbsd.in;
410   installdir = grubconf;
411   condition = COND_HOST_NETBSD;
412 };
413
414 script = {
415   name = '10_linux';
416   common = util/grub.d/10_linux.in;
417   installdir = grubconf;
418   condition = COND_HOST_LINUX;
419 };
420
421 script = {
422   name = '10_xnu';
423   common = util/grub.d/10_xnu.in;
424   installdir = grubconf;
425   condition = COND_HOST_XNU;
426 };
427
428 script = {
429   name = '20_linux_xen';
430   common = util/grub.d/20_linux_xen.in;
431   installdir = grubconf;
432   condition = COND_HOST_LINUX;
433 };
434
435 script = {
436   name = '30_os-prober';
437   common = util/grub.d/30_os-prober.in;
438   installdir = grubconf;
439 };
440
441 script = {
442   name = '40_custom';
443   common = util/grub.d/40_custom.in;
444   installdir = grubconf;
445 };
446
447 script = {
448   name = '41_custom';
449   common = util/grub.d/41_custom.in;
450   installdir = grubconf;
451 };
452
453 script = {
454   mansection = 1;
455   name = grub-mkrescue;
456   x86 = util/grub-install_header;
457   x86 = util/grub-mkrescue.in;
458   mips_qemu_mips = util/grub-install_header;
459   mips_qemu_mips = util/grub-mkrescue.in;
460   mips_loongson = util/grub-install_header;
461   mips_loongson = util/grub-mkrescue.in;
462   ia64_efi = util/grub-install_header;
463   ia64_efi = util/grub-mkrescue.in;
464   powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
465   enable = i386_pc;
466   enable = i386_efi;
467   enable = x86_64_efi;
468   enable = i386_qemu;
469   enable = i386_multiboot;
470   enable = i386_coreboot;
471   enable = mips_qemu_mips;
472   enable = mips_loongson;
473   enable = ia64_efi;
474   enable = powerpc_ieee1275;
475   enable = arm_uboot;
476 };
477
478 script = {
479   mansection = 1;
480   name = grub-mkstandalone;
481   common = util/grub-install_header;
482   common = util/grub-mkstandalone.in;
483 };
484
485 script = {
486   mansection = 8;
487   installdir = sbin;
488   name = grub-install;
489
490   common = util/grub-install_header;
491   common = util/grub-install.in;
492   enable = noemu;
493 };
494
495 script = {
496   mansection = 1;
497   installdir = bin;
498   name = grub-mknetdir;
499
500   common = util/grub-install_header;
501   common = util/grub-mknetdir.in;
502 };
503
504 script = {
505   name = grub-mkconfig;
506   common = util/grub-mkconfig.in;
507   mansection = 8;
508   installdir = sbin;
509 };
510
511 script = {
512   name = grub-set-default;
513   common = util/grub-set-default.in;
514   mansection = 8;
515   installdir = sbin;
516 };
517
518 script = {
519   name = grub-reboot;
520   common = util/grub-reboot.in;
521   mansection = 8;
522   installdir = sbin;
523 };
524
525 script = {
526   name = grub-mkconfig_lib;
527   common = util/grub-mkconfig_lib.in;
528   installdir = noinst;
529 };
530
531 script = {
532   name = grub-kbdcomp;
533   common = util/grub-kbdcomp.in;
534   mansection = 1;
535 };
536
537 script = {
538   name = grub-shell;
539   common = tests/util/grub-shell.in;
540   installdir = noinst;
541 };
542
543 script = {
544   name = grub-shell-tester;
545   common = tests/util/grub-shell-tester.in;
546   installdir = noinst;
547 };
548
549 script = {
550   testcase;
551   name = example_scripted_test;
552   common = tests/example_scripted_test.in;
553 };
554
555 script = {
556   testcase;
557   name = example_grub_script_test;
558   common = tests/example_grub_script_test.in;
559 };
560
561 script = {
562   testcase;
563   name = grub_script_echo1;
564   common = tests/grub_script_echo1.in;
565 };
566
567 script = {
568   testcase;
569   name = grub_script_leading_whitespace;
570   common = tests/grub_script_leading_whitespace.in;
571 };
572
573 script = {
574   testcase;
575   name = grub_script_echo_keywords;
576   common = tests/grub_script_echo_keywords.in;
577 };
578
579 script = {
580   testcase;
581   name = grub_script_vars1;
582   common = tests/grub_script_vars1.in;
583 };
584
585 script = {
586   testcase;
587   name = grub_script_for1;
588   common = tests/grub_script_for1.in;
589 };
590
591 script = {
592   testcase;
593   name = grub_script_while1;
594   common = tests/grub_script_while1.in;
595 };
596
597 script = {
598   testcase;
599   name = grub_script_if;
600   common = tests/grub_script_if.in;
601 };
602
603 script = {
604   testcase;
605   name = grub_script_blanklines;
606   common = tests/grub_script_blanklines.in;
607 };
608
609 script = {
610   testcase;
611   name = grub_script_final_semicolon;
612   common = tests/grub_script_final_semicolon.in;
613 };
614
615 script = {
616   testcase;
617   name = grub_script_dollar;
618   common = tests/grub_script_dollar.in;
619 };
620
621 script = {
622   testcase;
623   name = grub_script_comments;
624   common = tests/grub_script_comments.in;
625 };
626
627 script = {
628   testcase;
629   name = grub_script_functions;
630   common = tests/grub_script_functions.in;
631 };
632
633 script = {
634   testcase;
635   name = grub_script_break;
636   common = tests/grub_script_break.in;
637 };
638
639 script = {
640   testcase;
641   name = grub_script_continue;
642   common = tests/grub_script_continue.in;
643 };
644
645 script = {
646   testcase;
647   name = grub_script_shift;
648   common = tests/grub_script_shift.in;
649 };
650
651 script = {
652   testcase;
653   name = grub_script_blockarg;
654   common = tests/grub_script_blockarg.in;
655 };
656
657 script = {
658   testcase;
659   name = grub_script_setparams;
660   common = tests/grub_script_setparams.in;
661 };
662
663 script = {
664   testcase;
665   name = grub_script_return;
666   common = tests/grub_script_return.in;
667 };
668
669 script = {
670   testcase;
671   name = grub_cmd_regexp;
672   common = tests/grub_cmd_regexp.in;
673 };
674
675 script = {
676   testcase;
677   name = grub_script_expansion;
678   common = tests/grub_script_expansion.in;
679 };
680
681 script = {
682   testcase;
683   name = grub_script_not;
684   common = tests/grub_script_not.in;
685 };
686
687 script = {
688   testcase;
689   name = partmap_test;
690   common = tests/partmap_test.in;
691 };
692
693 script = {
694   testcase;
695   name = grub_cmd_echo;
696   common = tests/grub_cmd_echo.in;
697 };
698
699 script = {
700   testcase;
701   name = grub_script_gettext;
702   common = tests/grub_script_gettext.in;
703 };
704
705 script = {
706   testcase;
707   name = grub_script_strcmp;
708   common = tests/grub_script_strcmp.in;
709 };
710
711 program = {
712   testcase;
713   name = example_unit_test;
714   common = tests/example_unit_test.c;
715   common = tests/lib/unit_test.c;
716   common = grub-core/kern/list.c;
717   common = grub-core/kern/misc.c;
718   common = grub-core/tests/lib/test.c;
719   ldadd = libgrubmods.a;
720   ldadd = libgrubgcry.a;
721   ldadd = libgrubkern.a;
722   ldadd = grub-core/gnulib/libgnu.a;
723   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
724 };
725
726 program = {
727   testcase;
728   name = printf_test;
729   common = tests/printf_unit_test.c;
730   common = tests/lib/unit_test.c;
731   common = grub-core/kern/list.c;
732   common = grub-core/kern/misc.c;
733   common = grub-core/tests/lib/test.c;
734   ldadd = libgrubmods.a;
735   ldadd = libgrubgcry.a;
736   ldadd = libgrubkern.a;
737   ldadd = grub-core/gnulib/libgnu.a;
738   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
739 };
740
741 program = {
742   testcase;
743   name = cmp_test;
744   common = tests/cmp_unit_test.c;
745   common = tests/lib/unit_test.c;
746   common = grub-core/kern/list.c;
747   common = grub-core/kern/misc.c;
748   common = grub-core/tests/lib/test.c;
749   ldadd = libgrubmods.a;
750   ldadd = libgrubgcry.a;
751   ldadd = libgrubkern.a;
752   ldadd = grub-core/gnulib/libgnu.a;
753   ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
754 };
755
756 program = {
757   name = grub-menulst2cfg;
758   mansection = 1;
759   common = util/grub-menulst2cfg.c;
760   common = grub-core/lib/legacy_parse.c;
761   common = grub-core/lib/i386/pc/vesa_modes_table.c;
762
763   ldadd = libgrubmods.a;
764   ldadd = libgrubgcry.a;
765   ldadd = libgrubkern.a;
766   ldadd = grub-core/gnulib/libgnu.a;
767   ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
768 };