1 AutoGen definitions Makefile.tpl;
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB)';
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;
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;
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';
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;
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/font/font.c;
63 common = grub-core/gfxmenu/font.c;
64 common = grub-core/normal/charset.c;
65 common = grub-core/video/fb/fbblit.c;
66 common = grub-core/video/fb/fbutil.c;
67 common = grub-core/video/fb/fbfill.c;
68 common = grub-core/video/fb/video_fb.c;
69 common = grub-core/video/video.c;
70 common = grub-core/video/capture.c;
71 common = grub-core/video/colors.c;
72 common = grub-core/unidata.c;
73 common = grub-core/io/bufio.c;
74 common = grub-core/fs/affs.c;
75 common = grub-core/fs/afs.c;
76 common = grub-core/fs/bfs.c;
77 common = grub-core/fs/btrfs.c;
78 common = grub-core/fs/cbfs.c;
79 common = grub-core/fs/archelp.c;
80 common = grub-core/fs/cpio.c;
81 common = grub-core/fs/cpio_be.c;
82 common = grub-core/fs/odc.c;
83 common = grub-core/fs/newc.c;
84 common = grub-core/fs/ext2.c;
85 common = grub-core/fs/fat.c;
86 common = grub-core/fs/exfat.c;
87 common = grub-core/fs/fshelp.c;
88 common = grub-core/fs/hfs.c;
89 common = grub-core/fs/hfsplus.c;
90 common = grub-core/fs/hfspluscomp.c;
91 common = grub-core/fs/iso9660.c;
92 common = grub-core/fs/jfs.c;
93 common = grub-core/fs/minix.c;
94 common = grub-core/fs/minix2.c;
95 common = grub-core/fs/minix3.c;
96 common = grub-core/fs/minix_be.c;
97 common = grub-core/fs/minix2_be.c;
98 common = grub-core/fs/minix3_be.c;
99 common = grub-core/fs/nilfs2.c;
100 common = grub-core/fs/ntfs.c;
101 common = grub-core/fs/ntfscomp.c;
102 common = grub-core/fs/reiserfs.c;
103 common = grub-core/fs/romfs.c;
104 common = grub-core/fs/sfs.c;
105 common = grub-core/fs/squash4.c;
106 common = grub-core/fs/tar.c;
107 common = grub-core/fs/udf.c;
108 common = grub-core/fs/ufs2.c;
109 common = grub-core/fs/ufs.c;
110 common = grub-core/fs/ufs_be.c;
111 common = grub-core/fs/xfs.c;
112 common = grub-core/fs/zfs/zfscrypt.c;
113 common = grub-core/fs/zfs/zfs.c;
114 common = grub-core/fs/zfs/zfsinfo.c;
115 common = grub-core/fs/zfs/zfs_lzjb.c;
116 common = grub-core/fs/zfs/zfs_lz4.c;
117 common = grub-core/fs/zfs/zfs_sha256.c;
118 common = grub-core/fs/zfs/zfs_fletcher.c;
119 common = grub-core/lib/envblk.c;
120 common = grub-core/lib/hexdump.c;
121 common = grub-core/lib/LzFind.c;
122 common = grub-core/lib/LzmaEnc.c;
123 common = grub-core/lib/crc.c;
124 common = grub-core/lib/adler32.c;
125 common = grub-core/lib/crc64.c;
126 common = grub-core/normal/datetime.c;
127 common = grub-core/normal/misc.c;
128 common = grub-core/partmap/acorn.c;
129 common = grub-core/partmap/amiga.c;
130 common = grub-core/partmap/apple.c;
131 common = grub-core/partmap/sun.c;
132 common = grub-core/partmap/plan.c;
133 common = grub-core/partmap/dvh.c;
134 common = grub-core/partmap/sunpc.c;
135 common = grub-core/partmap/bsdlabel.c;
136 common = grub-core/partmap/dfly.c;
137 common = grub-core/script/function.c;
138 common = grub-core/script/lexer.c;
139 common = grub-core/script/main.c;
140 common = grub-core/script/script.c;
141 common = grub-core/script/argv.c;
142 common = grub-core/io/gzio.c;
143 common = grub-core/io/lzopio.c;
144 common = grub-core/kern/ia64/dl_helper.c;
145 common = grub-core/lib/minilzo/minilzo.c;
146 common = grub-core/lib/xzembed/xz_dec_bcj.c;
147 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
148 common = grub-core/lib/xzembed/xz_dec_stream.c;
153 common = util/bin2h.c;
154 ldadd = libgrubmods.a;
155 ldadd = libgrubgcry.a;
156 ldadd = libgrubkern.a;
157 ldadd = grub-core/gnulib/libgnu.a;
158 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
166 common = util/grub-mkimage.c;
167 common = util/resolve.c;
168 common = grub-core/kern/emu/argp_common.c;
170 common = grub-core/kern/arm/dl_helper.c;
172 extra_dist = util/grub-mkimagexx.c;
174 ldadd = libgrubmods.a;
175 ldadd = libgrubgcry.a;
176 ldadd = libgrubkern.a;
177 ldadd = grub-core/gnulib/libgnu.a;
178 ldadd = '$(LIBLZMA)';
179 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
180 cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
184 name = grub-mkrelpath;
187 common = util/grub-mkrelpath.c;
188 common = grub-core/kern/emu/argp_common.c;
190 ldadd = libgrubmods.a;
191 ldadd = libgrubgcry.a;
192 ldadd = libgrubkern.a;
193 ldadd = grub-core/gnulib/libgnu.a;
194 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
198 name = grub-script-check;
201 common = util/grub-script-check.c;
202 common = grub-core/kern/emu/argp_common.c;
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)';
215 common = util/grub-editenv.c;
217 ldadd = libgrubmods.a;
218 ldadd = libgrubgcry.a;
219 ldadd = libgrubkern.a;
220 ldadd = grub-core/gnulib/libgnu.a;
221 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
225 name = grub-mkpasswd-pbkdf2;
228 common = util/grub-mkpasswd-pbkdf2.c;
229 common = grub-core/kern/emu/argp_common.c;
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)';
239 name = grub-macho2img;
241 common = util/grub-macho2img.c;
242 condition = COND_APPLE_CC;
248 common = util/grub-pe2elf.c;
250 ldadd = libgrubmods.a;
251 ldadd = libgrubgcry.a;
252 ldadd = libgrubkern.a;
253 ldadd = grub-core/gnulib/libgnu.a;
254 ldadd = '$(LIBINTL)';
255 condition = COND_GRUB_PE2ELF;
261 common_nodist = grub_fstest_init.c;
262 common = util/grub-fstest.c;
263 common = grub-core/kern/emu/hostfs.c;
264 common = grub-core/disk/host.c;
266 ldadd = libgrubmods.a;
267 ldadd = libgrubgcry.a;
268 ldadd = libgrubkern.a;
269 ldadd = grub-core/gnulib/libgnu.a;
270 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
276 common_nodist = grub_fstest_init.c;
277 common = util/grub-mount.c;
278 common = grub-core/kern/emu/hostfs.c;
279 common = grub-core/disk/host.c;
281 ldadd = libgrubmods.a;
282 ldadd = libgrubgcry.a;
283 ldadd = libgrubkern.a;
284 ldadd = grub-core/gnulib/libgnu.a;
285 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
286 condition = COND_GRUB_MOUNT;
292 common = util/grub-mkfont.c;
293 common = grub-core/unidata.c;
294 common = grub-core/kern/emu/argp_common.c;
296 cflags = '$(freetype_cflags)';
298 ldadd = libgrubmods.a;
299 ldadd = libgrubgcry.a;
300 ldadd = libgrubkern.a;
301 ldadd = grub-core/gnulib/libgnu.a;
302 ldadd = '$(freetype_libs)';
303 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
304 condition = COND_GRUB_MKFONT;
311 common = util/grub-probe.c;
312 common = util/ieee1275/ofpath.c;
313 common = grub-core/kern/emu/argp_common.c;
315 ldadd = libgrubmods.a;
316 ldadd = libgrubgcry.a;
317 ldadd = libgrubkern.a;
318 ldadd = grub-core/gnulib/libgnu.a;
319 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
323 name = grub-bios-setup;
326 common = util/grub-setup.c;
328 common = grub-core/kern/emu/argp_common.c;
329 common = grub-core/lib/reed_solomon.c;
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_BIOS=1';
340 name = grub-sparc64-setup;
343 common = util/grub-setup.c;
345 common = grub-core/kern/emu/argp_common.c;
346 common = grub-core/lib/reed_solomon.c;
347 common = util/ieee1275/ofpath.c;
349 ldadd = libgrubmods.a;
350 ldadd = libgrubkern.a;
351 ldadd = libgrubgcry.a;
352 ldadd = grub-core/gnulib/libgnu.a;
353 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
354 cppflags = '-DGRUB_SETUP_SPARC64=1';
358 name = grub-ofpathname;
361 common = util/ieee1275/grub-ofpathname.c;
362 common = util/ieee1275/ofpath.c;
364 ldadd = libgrubmods.a;
365 ldadd = libgrubgcry.a;
366 ldadd = libgrubkern.a;
367 ldadd = grub-core/gnulib/libgnu.a;
368 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
372 name = grub-mklayout;
375 common = util/grub-mklayout.c;
376 common = grub-core/kern/emu/argp_common.c;
378 ldadd = libgrubmods.a;
379 ldadd = libgrubgcry.a;
380 ldadd = libgrubkern.a;
381 ldadd = grub-core/gnulib/libgnu.a;
382 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
386 common = util/grub.d/README;
387 installdir = grubconf;
392 common = util/grub.d/00_header.in;
393 installdir = grubconf;
398 common = util/grub.d/10_windows.in;
399 installdir = grubconf;
400 condition = COND_HOST_WINDOWS;
405 common = util/grub.d/10_hurd.in;
406 installdir = grubconf;
407 condition = COND_HOST_HURD;
411 name = '10_kfreebsd';
412 common = util/grub.d/10_kfreebsd.in;
413 installdir = grubconf;
414 condition = COND_HOST_KFREEBSD;
419 common = util/grub.d/10_illumos.in;
420 installdir = grubconf;
421 condition = COND_HOST_ILLUMOS;
426 common = util/grub.d/10_netbsd.in;
427 installdir = grubconf;
428 condition = COND_HOST_NETBSD;
433 common = util/grub.d/10_linux.in;
434 installdir = grubconf;
435 condition = COND_HOST_LINUX;
440 common = util/grub.d/10_xnu.in;
441 installdir = grubconf;
442 condition = COND_HOST_XNU;
446 name = '20_linux_xen';
447 common = util/grub.d/20_linux_xen.in;
448 installdir = grubconf;
449 condition = COND_HOST_LINUX;
453 name = '30_os-prober';
454 common = util/grub.d/30_os-prober.in;
455 installdir = grubconf;
460 common = util/grub.d/40_custom.in;
461 installdir = grubconf;
466 common = util/grub.d/41_custom.in;
467 installdir = grubconf;
472 name = grub-mkrescue;
473 common = util/grub-install_header;
474 common = util/grub-mkrescue.in;
480 name = grub-mkstandalone;
481 common = util/grub-install_header;
482 common = util/grub-mkstandalone.in;
490 common = util/grub-install_header;
491 common = util/grub-install.in;
498 name = grub-mknetdir;
500 common = util/grub-install_header;
501 common = util/grub-mknetdir.in;
505 name = grub-mkconfig;
506 common = util/grub-mkconfig.in;
512 name = grub-set-default;
513 common = util/grub-set-default.in;
520 common = util/grub-reboot.in;
526 name = grub-mkconfig_lib;
527 common = util/grub-mkconfig_lib.in;
533 common = util/grub-kbdcomp.in;
539 common = tests/util/grub-shell.in;
544 name = grub-shell-tester;
545 common = tests/util/grub-shell-tester.in;
551 name = example_scripted_test;
552 common = tests/example_scripted_test.in;
557 name = gettext_strings_test;
558 common = tests/gettext_strings_test.in;
559 extra_dist = po/exclude.pot;
565 common = tests/pata_test.in;
571 common = tests/ahci_test.in;
577 common = tests/uhci_test.in;
583 common = tests/ohci_test.in;
589 common = tests/ehci_test.in;
594 name = example_grub_script_test;
595 common = tests/example_grub_script_test.in;
600 name = grub_script_eval;
601 common = tests/grub_script_eval.in;
606 name = grub_script_test;
607 common = tests/grub_script_test.in;
612 name = grub_script_echo1;
613 common = tests/grub_script_echo1.in;
618 name = grub_script_leading_whitespace;
619 common = tests/grub_script_leading_whitespace.in;
624 name = grub_script_echo_keywords;
625 common = tests/grub_script_echo_keywords.in;
630 name = grub_script_vars1;
631 common = tests/grub_script_vars1.in;
636 name = grub_script_for1;
637 common = tests/grub_script_for1.in;
642 name = grub_script_while1;
643 common = tests/grub_script_while1.in;
648 name = grub_script_if;
649 common = tests/grub_script_if.in;
654 name = grub_script_blanklines;
655 common = tests/grub_script_blanklines.in;
660 name = grub_script_final_semicolon;
661 common = tests/grub_script_final_semicolon.in;
666 name = grub_script_dollar;
667 common = tests/grub_script_dollar.in;
672 name = grub_script_comments;
673 common = tests/grub_script_comments.in;
678 name = grub_script_functions;
679 common = tests/grub_script_functions.in;
684 name = grub_script_break;
685 common = tests/grub_script_break.in;
690 name = grub_script_continue;
691 common = tests/grub_script_continue.in;
696 name = grub_script_shift;
697 common = tests/grub_script_shift.in;
702 name = grub_script_blockarg;
703 common = tests/grub_script_blockarg.in;
708 name = grub_script_setparams;
709 common = tests/grub_script_setparams.in;
714 name = grub_script_return;
715 common = tests/grub_script_return.in;
720 name = grub_cmd_regexp;
721 common = tests/grub_cmd_regexp.in;
726 name = grub_cmd_date;
727 common = tests/grub_cmd_date.in;
732 name = grub_cmd_set_date;
733 common = tests/grub_cmd_set_date.in;
738 name = grub_cmd_sleep;
739 common = tests/grub_cmd_sleep.in;
744 name = grub_script_expansion;
745 common = tests/grub_script_expansion.in;
750 name = grub_script_not;
751 common = tests/grub_script_not.in;
756 name = grub_script_no_commands;
757 common = tests/grub_script_no_commands.in;
763 common = tests/partmap_test.in;
769 common = tests/hddboot_test.in;
775 common = tests/fddboot_test.in;
781 common = tests/cdboot_test.in;
787 common = tests/netboot_test.in;
793 common = tests/pseries_test.in;
798 name = core_compress_test;
799 common = tests/core_compress_test.in;
804 name = xzcompress_test;
805 common = tests/xzcompress_test.in;
810 name = gzcompress_test;
811 common = tests/gzcompress_test.in;
816 name = lzocompress_test;
817 common = tests/lzocompress_test.in;
822 name = grub_cmd_echo;
823 common = tests/grub_cmd_echo.in;
829 common = tests/help_test.in;
834 name = grub_script_gettext;
835 common = tests/grub_script_gettext.in;
840 name = grub_script_escape_comma;
841 common = tests/grub_script_escape_comma.in;
846 name = grub_script_strcmp;
847 common = tests/grub_script_strcmp.in;
852 name = grub_func_test;
853 common = tests/grub_func_test.in;
858 name = example_unit_test;
859 common = tests/example_unit_test.c;
860 common = tests/lib/unit_test.c;
861 common = grub-core/kern/list.c;
862 common = grub-core/kern/misc.c;
863 common = grub-core/tests/lib/test.c;
864 ldadd = libgrubmods.a;
865 ldadd = libgrubgcry.a;
866 ldadd = libgrubkern.a;
867 ldadd = grub-core/gnulib/libgnu.a;
868 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
874 common = tests/printf_unit_test.c;
875 common = tests/lib/unit_test.c;
876 common = grub-core/kern/list.c;
877 common = grub-core/kern/misc.c;
878 common = grub-core/tests/lib/test.c;
879 ldadd = libgrubmods.a;
880 ldadd = libgrubgcry.a;
881 ldadd = libgrubkern.a;
882 ldadd = grub-core/gnulib/libgnu.a;
883 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
888 name = priority_queue_unit_test;
889 common = tests/priority_queue_unit_test.cc;
890 common = tests/lib/unit_test.c;
891 common = grub-core/kern/list.c;
892 common = grub-core/kern/misc.c;
893 common = grub-core/tests/lib/test.c;
894 common = grub-core/lib/priority_queue.c;
895 ldadd = libgrubmods.a;
896 ldadd = libgrubgcry.a;
897 ldadd = libgrubkern.a;
898 ldadd = grub-core/gnulib/libgnu.a;
899 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
900 condition = COND_HAVE_CXX;
906 common = tests/cmp_unit_test.c;
907 common = tests/lib/unit_test.c;
908 common = grub-core/kern/list.c;
909 common = grub-core/kern/misc.c;
910 common = grub-core/tests/lib/test.c;
911 ldadd = libgrubmods.a;
912 ldadd = libgrubgcry.a;
913 ldadd = libgrubkern.a;
914 ldadd = grub-core/gnulib/libgnu.a;
915 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
919 name = grub-menulst2cfg;
921 common = util/grub-menulst2cfg.c;
922 common = grub-core/lib/legacy_parse.c;
923 common = grub-core/lib/i386/pc/vesa_modes_table.c;
925 ldadd = libgrubmods.a;
926 ldadd = libgrubgcry.a;
927 ldadd = libgrubkern.a;
928 ldadd = grub-core/gnulib/libgnu.a;
929 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
933 name = grub-glue-efi;
936 common = util/grub-glue-efi.c;
937 common = grub-core/kern/emu/argp_common.c;
939 ldadd = libgrubmods.a;
940 ldadd = libgrubgcry.a;
941 ldadd = libgrubkern.a;
942 ldadd = grub-core/gnulib/libgnu.a;
943 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
947 name = grub-render-label;
950 common = util/grub-render-label.c;
951 common = grub-core/kern/emu/argp_common.c;
952 common = grub-core/kern/emu/hostfs.c;
953 common = grub-core/disk/host.c;
955 ldadd = libgrubmods.a;
956 ldadd = libgrubgcry.a;
957 ldadd = libgrubkern.a;
958 ldadd = grub-core/gnulib/libgnu.a;
959 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';