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