]> git.proxmox.com Git - grub2.git/blame - Makefile.util.def
Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
[grub2.git] / Makefile.util.def
CommitLineData
8c411768
BC
1AutoGen definitions Makefile.tpl;
2
4b2047e2 3library = {
38631371 4 name = libgrubkern.a;
4b2047e2
BC
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB)';
7
8 common = util/misc.c;
38631371
BC
9 common = grub-core/kern/command.c;
10 common = grub-core/kern/device.c;
11 common = grub-core/kern/disk.c;
442b86de 12 common = grub-core/lib/disk.c;
2e418de6 13 common = util/getroot.c;
672fa55e
VS
14 common = grub-core/osdep/unix/getroot.c;
15 common = grub-core/osdep/getroot.c;
16 common = grub-core/osdep/devmapper/getroot.c;
a4012f07 17 common = grub-core/osdep/relpath.c;
e11cb726 18 extra_dist = grub-core/kern/disk_common.c;
a4012f07
VS
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;
38631371 22 common = grub-core/kern/emu/hostdisk.c;
672fa55e
VS
23 common = grub-core/osdep/devmapper/hostdisk.c;
24 common = grub-core/osdep/hostdisk.c;
25 common = grub-core/osdep/unix/hostdisk.c;
40346de6 26 common = grub-core/osdep/exec.c;
c1ca4244 27 common = grub-core/osdep/sleep.c;
4a445f58 28 common = grub-core/osdep/password.c;
38631371
BC
29 common = grub-core/kern/emu/misc.c;
30 common = grub-core/kern/emu/mm.c;
4b2047e2 31 common = grub-core/kern/env.c;
38631371
BC
32 common = grub-core/kern/err.c;
33 common = grub-core/kern/file.c;
34 common = grub-core/kern/fs.c;
4b2047e2
BC
35 common = grub-core/kern/list.c;
36 common = grub-core/kern/misc.c;
4b2047e2 37 common = grub-core/kern/partition.c;
dcd73ec0
VS
38 common = grub-core/lib/crypto.c;
39 common = grub-core/disk/luks.c;
1a1f408f 40 common = grub-core/disk/geli.c;
8585e54b 41 common = grub-core/disk/cryptodisk.c;
dcd73ec0
VS
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;
076e7c0f
VS
46 common = grub-core/disk/ldm.c;
47 common = grub-core/disk/diskfilter.c;
48 common = grub-core/partmap/gpt.c;
b7b78edb 49 common = grub-core/partmap/msdos.c;
ce50dbd7 50 common = grub-core/fs/proc.c;
4b2047e2
BC
51};
52
8c411768 53library = {
38631371 54 name = libgrubmods.a;
efa68bfa 55 cflags = '-fno-builtin -Wno-undef';
c029da8a 56 cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
8c411768 57
8427685f
BC
58 common_nodist = grub_script.tab.c;
59 common_nodist = grub_script.yy.c;
60 common_nodist = libgrub_a_init.c;
61 common_nodist = grub_script.yy.h;
62 common_nodist = grub_script.tab.h;
63
8427685f 64 common = grub-core/commands/blocklist.c;
3be82e10 65 common = grub-core/commands/xnu_uuid.c;
77ba5392 66 common = grub-core/commands/testload.c;
8427685f
BC
67 common = grub-core/commands/ls.c;
68 common = grub-core/disk/dmraid_nvidia.c;
8427685f
BC
69 common = grub-core/disk/loopback.c;
70 common = grub-core/disk/lvm.c;
71 common = grub-core/disk/mdraid_linux.c;
22e6a774 72 common = grub-core/disk/mdraid_linux_be.c;
1e8d555b 73 common = grub-core/disk/mdraid1x_linux.c;
8427685f
BC
74 common = grub-core/disk/raid5_recover.c;
75 common = grub-core/disk/raid6_recover.c;
a79b8a15
VS
76 common = grub-core/font/font.c;
77 common = grub-core/gfxmenu/font.c;
78 common = grub-core/normal/charset.c;
79 common = grub-core/video/fb/fbblit.c;
80 common = grub-core/video/fb/fbutil.c;
81 common = grub-core/video/fb/fbfill.c;
82 common = grub-core/video/fb/video_fb.c;
83 common = grub-core/video/video.c;
50361660 84 common = grub-core/video/capture.c;
a79b8a15
VS
85 common = grub-core/video/colors.c;
86 common = grub-core/unidata.c;
87 common = grub-core/io/bufio.c;
8427685f 88 common = grub-core/fs/affs.c;
8427685f 89 common = grub-core/fs/afs.c;
5825b379 90 common = grub-core/fs/bfs.c;
4dfbc574 91 common = grub-core/fs/btrfs.c;
5027af38
VS
92 common = grub-core/fs/cbfs.c;
93 common = grub-core/fs/archelp.c;
8427685f 94 common = grub-core/fs/cpio.c;
a1a8b1b9
VS
95 common = grub-core/fs/cpio_be.c;
96 common = grub-core/fs/odc.c;
97 common = grub-core/fs/newc.c;
8427685f
BC
98 common = grub-core/fs/ext2.c;
99 common = grub-core/fs/fat.c;
48fe18dc 100 common = grub-core/fs/exfat.c;
8427685f
BC
101 common = grub-core/fs/fshelp.c;
102 common = grub-core/fs/hfs.c;
103 common = grub-core/fs/hfsplus.c;
8098f655 104 common = grub-core/fs/hfspluscomp.c;
8427685f
BC
105 common = grub-core/fs/iso9660.c;
106 common = grub-core/fs/jfs.c;
107 common = grub-core/fs/minix.c;
b4a0c915 108 common = grub-core/fs/minix2.c;
8fc88523 109 common = grub-core/fs/minix3.c;
ac66b453
VS
110 common = grub-core/fs/minix_be.c;
111 common = grub-core/fs/minix2_be.c;
112 common = grub-core/fs/minix3_be.c;
8427685f
BC
113 common = grub-core/fs/nilfs2.c;
114 common = grub-core/fs/ntfs.c;
115 common = grub-core/fs/ntfscomp.c;
116 common = grub-core/fs/reiserfs.c;
29184e93 117 common = grub-core/fs/romfs.c;
8427685f 118 common = grub-core/fs/sfs.c;
332fa368 119 common = grub-core/fs/squash4.c;
8427685f
BC
120 common = grub-core/fs/tar.c;
121 common = grub-core/fs/udf.c;
122 common = grub-core/fs/ufs2.c;
123 common = grub-core/fs/ufs.c;
d9c48c7b 124 common = grub-core/fs/ufs_be.c;
8427685f 125 common = grub-core/fs/xfs.c;
f003a8c5 126 common = grub-core/fs/zfs/zfscrypt.c;
bf78d5b2 127 common = grub-core/fs/zfs/zfs.c;
fdfde32a 128 common = grub-core/fs/zfs/zfsinfo.c;
bf78d5b2 129 common = grub-core/fs/zfs/zfs_lzjb.c;
038016f4 130 common = grub-core/fs/zfs/zfs_lz4.c;
bf78d5b2
RM
131 common = grub-core/fs/zfs/zfs_sha256.c;
132 common = grub-core/fs/zfs/zfs_fletcher.c;
8427685f
BC
133 common = grub-core/lib/envblk.c;
134 common = grub-core/lib/hexdump.c;
8427685f
BC
135 common = grub-core/lib/LzFind.c;
136 common = grub-core/lib/LzmaEnc.c;
3836e89d 137 common = grub-core/lib/crc.c;
9a8d32a2 138 common = grub-core/lib/adler32.c;
158dc1ea 139 common = grub-core/lib/crc64.c;
8427685f
BC
140 common = grub-core/normal/datetime.c;
141 common = grub-core/normal/misc.c;
142 common = grub-core/partmap/acorn.c;
143 common = grub-core/partmap/amiga.c;
144 common = grub-core/partmap/apple.c;
8427685f 145 common = grub-core/partmap/sun.c;
ac9ef7ee 146 common = grub-core/partmap/plan.c;
fb25a861 147 common = grub-core/partmap/dvh.c;
ad717fae 148 common = grub-core/partmap/sunpc.c;
56a4b23d 149 common = grub-core/partmap/bsdlabel.c;
1e908b34 150 common = grub-core/partmap/dfly.c;
8427685f
BC
151 common = grub-core/script/function.c;
152 common = grub-core/script/lexer.c;
153 common = grub-core/script/main.c;
154 common = grub-core/script/script.c;
155 common = grub-core/script/argv.c;
3be8e5ea 156 common = grub-core/io/gzio.c;
ec543969 157 common = grub-core/io/lzopio.c;
5452733f 158 common = grub-core/kern/ia64/dl_helper.c;
095f077e 159 common = grub-core/lib/minilzo/minilzo.c;
c029da8a
VS
160 common = grub-core/lib/xzembed/xz_dec_bcj.c;
161 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
162 common = grub-core/lib/xzembed/xz_dec_stream.c;
8c411768
BC
163};
164
8c411768
BC
165program = {
166 name = grub-mkimage;
167 mansection = 1;
168
8427685f 169 common = util/grub-mkimage.c;
ec16e026 170 common = util/mkimage.c;
8427685f 171 common = util/resolve.c;
6a656b0e 172 common = grub-core/kern/emu/argp_common.c;
ae5540d3 173 common = grub-core/osdep/init.c;
cd46aa6c
VS
174 common = grub-core/osdep/config.c;
175 extra_dist = grub-core/osdep/windows/config.c;
176 extra_dist = grub-core/osdep/unix/config.c;
177 common = util/config.c;
c76899a0 178
854f383c 179 common = grub-core/kern/arm/dl_helper.c;
389b31cd 180
a60f6ee1 181 extra_dist = util/grub-mkimagexx.c;
8c411768 182
38631371 183 ldadd = libgrubmods.a;
dcd73ec0 184 ldadd = libgrubgcry.a;
38631371 185 ldadd = libgrubkern.a;
4b2047e2 186 ldadd = grub-core/gnulib/libgnu.a;
2c44e493 187 ldadd = '$(LIBLZMA)';
f4727da9 188 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8151bc82 189 cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
8c411768
BC
190};
191
192program = {
193 name = grub-mkrelpath;
194 mansection = 1;
195
8427685f 196 common = util/grub-mkrelpath.c;
6a656b0e 197 common = grub-core/kern/emu/argp_common.c;
ae5540d3 198 common = grub-core/osdep/init.c;
8c411768 199
38631371 200 ldadd = libgrubmods.a;
7efb5c9e 201 ldadd = libgrubgcry.a;
38631371 202 ldadd = libgrubkern.a;
15c69261 203 ldadd = grub-core/gnulib/libgnu.a;
20fd15f9 204 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
205};
206
207program = {
208 name = grub-script-check;
209 mansection = 1;
210
8427685f 211 common = util/grub-script-check.c;
6a656b0e 212 common = grub-core/kern/emu/argp_common.c;
ae5540d3 213 common = grub-core/osdep/init.c;
8c411768 214
38631371 215 ldadd = libgrubmods.a;
7efb5c9e 216 ldadd = libgrubgcry.a;
38631371 217 ldadd = libgrubkern.a;
15c69261 218 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 219 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
220};
221
222program = {
223 name = grub-editenv;
224 mansection = 1;
225
8427685f 226 common = util/grub-editenv.c;
bacfefbb 227 common = util/editenv.c;
ae5540d3 228 common = grub-core/osdep/init.c;
8c411768 229
38631371 230 ldadd = libgrubmods.a;
7efb5c9e 231 ldadd = libgrubgcry.a;
38631371 232 ldadd = libgrubkern.a;
15c69261 233 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 234 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
235};
236
237program = {
238 name = grub-mkpasswd-pbkdf2;
239 mansection = 1;
240
8427685f 241 common = util/grub-mkpasswd-pbkdf2.c;
6a656b0e 242 common = grub-core/kern/emu/argp_common.c;
672fa55e 243 common = grub-core/osdep/random.c;
ae5540d3 244 common = grub-core/osdep/init.c;
8c411768 245
38631371 246 ldadd = libgrubmods.a;
dcd73ec0 247 ldadd = libgrubgcry.a;
38631371 248 ldadd = libgrubkern.a;
15c69261 249 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 250 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
251};
252
253program = {
254 name = grub-macho2img;
255 mansection = 1;
8427685f 256 common = util/grub-macho2img.c;
a9f25a08 257 condition = COND_APPLE_LINKER;
8c411768
BC
258};
259
8c411768
BC
260program = {
261 name = grub-fstest;
262 mansection = 1;
905f7773 263 common_nodist = grub_fstest_init.c;
8427685f 264 common = util/grub-fstest.c;
b6a690ee
CW
265 common = grub-core/kern/emu/hostfs.c;
266 common = grub-core/disk/host.c;
ae5540d3 267 common = grub-core/osdep/init.c;
8c411768 268
38631371 269 ldadd = libgrubmods.a;
dcd73ec0 270 ldadd = libgrubgcry.a;
38631371 271 ldadd = libgrubkern.a;
15c69261 272 ldadd = grub-core/gnulib/libgnu.a;
20fd15f9 273 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
274};
275
92bb0786 276program = {
89644ef1 277 name = grub-mount;
92bb0786
VS
278 mansection = 1;
279 common_nodist = grub_fstest_init.c;
89644ef1 280 common = util/grub-mount.c;
92bb0786
VS
281 common = grub-core/kern/emu/hostfs.c;
282 common = grub-core/disk/host.c;
f8f3f155 283 common = grub-core/osdep/init.c;
92bb0786
VS
284
285 ldadd = libgrubmods.a;
f1f233ba 286 ldadd = libgrubgcry.a;
92bb0786
VS
287 ldadd = libgrubkern.a;
288 ldadd = grub-core/gnulib/libgnu.a;
794c8c33 289 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
897e6207 290 condition = COND_GRUB_MOUNT;
8c411768
BC
291};
292
293program = {
294 name = grub-mkfont;
295 mansection = 1;
8427685f 296 common = util/grub-mkfont.c;
6a656b0e 297 common = grub-core/kern/emu/argp_common.c;
ae5540d3 298 common = grub-core/osdep/init.c;
8c411768 299
8c411768 300 cflags = '$(freetype_cflags)';
7c9d0c39 301 cppflags = '-DGRUB_MKFONT=1';
2d465fb0 302
ae5540d3
VS
303 ldadd = libgrubmods.a;
304 ldadd = libgrubgcry.a;
305 ldadd = libgrubkern.a;
32af299a 306 ldadd = grub-core/gnulib/libgnu.a;
a7363f53 307 ldadd = '$(freetype_libs)';
ae5540d3 308 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
911bd640 309 condition = COND_GRUB_MKFONT;
8c411768
BC
310};
311
8c411768
BC
312program = {
313 name = grub-probe;
314 installdir = sbin;
315 mansection = 8;
8427685f 316 common = util/grub-probe.c;
cd46aa6c 317 common = util/probe.c;
9a2c903f 318 common = grub-core/osdep/ofpath.c;
6a656b0e 319 common = grub-core/kern/emu/argp_common.c;
ae5540d3 320 common = grub-core/osdep/init.c;
8c411768 321
38631371 322 ldadd = libgrubmods.a;
dcd73ec0 323 ldadd = libgrubgcry.a;
38631371 324 ldadd = libgrubkern.a;
15c69261 325 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 326 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
327};
328
329program = {
c36e5cd1 330 name = grub-bios-setup;
8c411768
BC
331 installdir = sbin;
332 mansection = 8;
d2ea4551 333 common = util/grub-setup.c;
c06c7520 334 common = util/setup_bios.c;
8104063c 335 extra_dist = util/setup.c;
6a656b0e 336 common = grub-core/kern/emu/argp_common.c;
419cbeb0 337 common = grub-core/lib/reed_solomon.c;
5a869940
VS
338 common = grub-core/osdep/blocklist.c;
339 extra_dist = grub-core/osdep/generic/blocklist.c;
340 extra_dist = grub-core/osdep/linux/blocklist.c;
341 extra_dist = grub-core/osdep/windows/blocklist.c;
ae5540d3 342 common = grub-core/osdep/init.c;
8c411768 343
38631371
BC
344 ldadd = libgrubmods.a;
345 ldadd = libgrubkern.a;
7efb5c9e 346 ldadd = libgrubgcry.a;
15c69261 347 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 348 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
c06c7520 349 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
c36e5cd1 350};
911bd640 351
c36e5cd1
VS
352program = {
353 name = grub-sparc64-setup;
354 installdir = sbin;
355 mansection = 8;
356 common = util/grub-setup.c;
c06c7520 357 common = util/setup_sparc.c;
c36e5cd1
VS
358 common = grub-core/kern/emu/argp_common.c;
359 common = grub-core/lib/reed_solomon.c;
9a2c903f 360 common = grub-core/osdep/ofpath.c;
5a869940 361 common = grub-core/osdep/blocklist.c;
ae5540d3 362 common = grub-core/osdep/init.c;
c36e5cd1
VS
363
364 ldadd = libgrubmods.a;
365 ldadd = libgrubkern.a;
366 ldadd = libgrubgcry.a;
367 ldadd = grub-core/gnulib/libgnu.a;
368 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
c06c7520 369 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
8c411768
BC
370};
371
372program = {
373 name = grub-ofpathname;
374 installdir = sbin;
63e3eea9 375 mansection = 8;
6c21f5d7 376 common = util/ieee1275/grub-ofpathname.c;
9a2c903f 377 common = grub-core/osdep/ofpath.c;
ae5540d3 378 common = grub-core/osdep/init.c;
8c411768 379
38631371 380 ldadd = libgrubmods.a;
7efb5c9e 381 ldadd = libgrubgcry.a;
38631371 382 ldadd = libgrubkern.a;
15c69261 383 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 384 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
8c411768
BC
385};
386
5aaf2c18
VS
387program = {
388 name = grub-mklayout;
389 mansection = 1;
390
391 common = util/grub-mklayout.c;
6a656b0e 392 common = grub-core/kern/emu/argp_common.c;
ae5540d3 393 common = grub-core/osdep/init.c;
5aaf2c18 394
38631371 395 ldadd = libgrubmods.a;
7efb5c9e 396 ldadd = libgrubgcry.a;
38631371 397 ldadd = libgrubkern.a;
15c69261 398 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 399 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
5aaf2c18
VS
400};
401
8c411768 402data = {
8427685f 403 common = util/grub.d/README;
8c411768 404 installdir = grubconf;
8c411768
BC
405};
406
407script = {
408 name = '00_header';
8427685f 409 common = util/grub.d/00_header.in;
8c411768 410 installdir = grubconf;
8c411768
BC
411};
412
413script = {
414 name = '10_windows';
8427685f 415 common = util/grub.d/10_windows.in;
8c411768 416 installdir = grubconf;
f7711f5e 417 condition = COND_HOST_WINDOWS;
8c411768
BC
418};
419
420script = {
421 name = '10_hurd';
8427685f 422 common = util/grub.d/10_hurd.in;
8c411768 423 installdir = grubconf;
f7711f5e 424 condition = COND_HOST_HURD;
5815f2c1
BC
425};
426
427script = {
f51c98c4 428 name = '10_kfreebsd';
5815f2c1
BC
429 common = util/grub.d/10_kfreebsd.in;
430 installdir = grubconf;
f7711f5e 431 condition = COND_HOST_KFREEBSD;
5815f2c1
BC
432};
433
958ee221
VS
434script = {
435 name = '10_illumos';
436 common = util/grub.d/10_illumos.in;
437 installdir = grubconf;
438 condition = COND_HOST_ILLUMOS;
439};
440
5815f2c1 441script = {
f51c98c4 442 name = '10_netbsd';
5815f2c1
BC
443 common = util/grub.d/10_netbsd.in;
444 installdir = grubconf;
f7711f5e 445 condition = COND_HOST_NETBSD;
8c411768
BC
446};
447
448script = {
449 name = '10_linux';
8427685f 450 common = util/grub.d/10_linux.in;
8c411768 451 installdir = grubconf;
f7711f5e
BC
452 condition = COND_HOST_LINUX;
453};
454
b105df76
VS
455script = {
456 name = '10_xnu';
457 common = util/grub.d/10_xnu.in;
458 installdir = grubconf;
459 condition = COND_HOST_XNU;
460};
461
f7711f5e
BC
462script = {
463 name = '20_linux_xen';
464 common = util/grub.d/20_linux_xen.in;
465 installdir = grubconf;
466 condition = COND_HOST_LINUX;
8c411768
BC
467};
468
469script = {
470 name = '30_os-prober';
8427685f 471 common = util/grub.d/30_os-prober.in;
8c411768 472 installdir = grubconf;
8c411768
BC
473};
474
475script = {
476 name = '40_custom';
8427685f 477 common = util/grub.d/40_custom.in;
8c411768 478 installdir = grubconf;
8c411768
BC
479};
480
297f0c2b
BC
481script = {
482 name = '41_custom';
8427685f 483 common = util/grub.d/41_custom.in;
297f0c2b 484 installdir = grubconf;
297f0c2b
BC
485};
486
cd46aa6c 487program = {
8c411768
BC
488 mansection = 1;
489 name = grub-mkrescue;
cd46aa6c
VS
490
491 common = util/grub-mkrescue.c;
492 common = util/render-label.c;
493 common = util/glue-efi.c;
494 common = util/mkimage.c;
495 common = util/grub-install-common.c;
496 common = util/setup_bios.c;
497 common = util/setup_sparc.c;
498 common = grub-core/lib/reed_solomon.c;
499 common = grub-core/osdep/random.c;
500 common = grub-core/osdep/ofpath.c;
501 common = grub-core/osdep/platform.c;
502 common = grub-core/osdep/platform_unix.c;
503 common = grub-core/osdep/compress.c;
504 extra_dist = grub-core/osdep/unix/compress.c;
505 extra_dist = grub-core/osdep/basic/compress.c;
506 common = util/editenv.c;
507 common = grub-core/osdep/blocklist.c;
508 common = grub-core/osdep/config.c;
509 common = util/config.c;
510
511 common = grub-core/kern/emu/hostfs.c;
512 common = grub-core/disk/host.c;
513
514 common = grub-core/kern/arm/dl_helper.c;
515
516 common = util/resolve.c;
517
518 common = grub-core/kern/emu/argp_common.c;
519 common = grub-core/osdep/init.c;
520
521 ldadd = '$(LIBLZMA)';
522 ldadd = libgrubmods.a;
523 ldadd = libgrubgcry.a;
524 ldadd = libgrubkern.a;
525 ldadd = grub-core/gnulib/libgnu.a;
526 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
527
528 condition = COND_HAVE_EXEC;
8c411768
BC
529};
530
cd46aa6c 531program = {
41aa28ea
VS
532 mansection = 1;
533 name = grub-mkstandalone;
cd46aa6c
VS
534 common = util/grub-mkstandalone.c;
535
536 common = util/render-label.c;
537 common = util/glue-efi.c;
538 common = util/mkimage.c;
539 common = util/grub-install-common.c;
540 common = util/setup_bios.c;
541 common = util/setup_sparc.c;
542 common = grub-core/lib/reed_solomon.c;
543 common = grub-core/osdep/random.c;
544 common = grub-core/osdep/ofpath.c;
545 common = grub-core/osdep/platform.c;
546 common = grub-core/osdep/platform_unix.c;
547 extra_dist = grub-core/osdep/linux/platform.c;
548 extra_dist = grub-core/osdep/basic/platform.c;
549 extra_dist = grub-core/osdep/basic/no_platform.c;
550 extra_dist = grub-core/osdep/unix/platform.c;
551 common = grub-core/osdep/compress.c;
552 common = util/editenv.c;
553 common = grub-core/osdep/blocklist.c;
554 common = grub-core/osdep/config.c;
555 common = util/config.c;
556
557 common = grub-core/kern/emu/hostfs.c;
558 common = grub-core/disk/host.c;
559
560 common = grub-core/kern/arm/dl_helper.c;
561
562 common = util/resolve.c;
563
564 common = grub-core/kern/emu/argp_common.c;
565 common = grub-core/osdep/init.c;
566
567 ldadd = '$(LIBLZMA)';
568 ldadd = libgrubmods.a;
569 ldadd = libgrubgcry.a;
570 ldadd = libgrubkern.a;
571 ldadd = grub-core/gnulib/libgnu.a;
572 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
41aa28ea
VS
573};
574
cd46aa6c 575program = {
8c411768
BC
576 mansection = 8;
577 installdir = sbin;
578 name = grub-install;
8427685f 579
cd46aa6c
VS
580 common = util/grub-install.c;
581 common = util/probe.c;
582 common = util/mkimage.c;
583 common = util/grub-install-common.c;
584 common = util/setup_bios.c;
585 common = util/setup_sparc.c;
586 common = grub-core/lib/reed_solomon.c;
587 common = grub-core/osdep/random.c;
588 common = grub-core/osdep/ofpath.c;
589 common = grub-core/osdep/platform.c;
590 common = grub-core/osdep/platform_unix.c;
591 common = grub-core/osdep/compress.c;
592 common = util/editenv.c;
593 common = grub-core/osdep/blocklist.c;
594 common = grub-core/osdep/config.c;
595 common = util/config.c;
596
597 common = grub-core/kern/arm/dl_helper.c;
598
599 common = util/resolve.c;
eefe8abd 600 enable = noemu;
cd46aa6c
VS
601 common = grub-core/kern/emu/argp_common.c;
602 common = grub-core/osdep/init.c;
603
604 ldadd = '$(LIBLZMA)';
605 ldadd = libgrubmods.a;
606 ldadd = libgrubgcry.a;
607 ldadd = libgrubkern.a;
608 ldadd = grub-core/gnulib/libgnu.a;
609 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
610};
611
cd46aa6c 612program = {
288c757d
CW
613 mansection = 1;
614 installdir = bin;
8395034b
VS
615 name = grub-mknetdir;
616
cd46aa6c
VS
617 common = util/grub-mknetdir.c;
618
619 common = util/mkimage.c;
620 common = util/grub-install-common.c;
621 common = util/setup_bios.c;
622 common = util/setup_sparc.c;
623 common = grub-core/lib/reed_solomon.c;
624 common = grub-core/osdep/random.c;
625 common = grub-core/osdep/ofpath.c;
626 common = grub-core/osdep/platform.c;
627 common = grub-core/osdep/platform_unix.c;
628 common = grub-core/osdep/compress.c;
629 common = util/editenv.c;
630 common = grub-core/osdep/blocklist.c;
631 common = grub-core/osdep/config.c;
632 common = util/config.c;
633
634 common = grub-core/kern/arm/dl_helper.c;
635
636 common = util/resolve.c;
637 common = grub-core/kern/emu/argp_common.c;
638 common = grub-core/osdep/init.c;
639
640 ldadd = '$(LIBLZMA)';
641 ldadd = libgrubmods.a;
642 ldadd = libgrubgcry.a;
643 ldadd = libgrubkern.a;
644 ldadd = grub-core/gnulib/libgnu.a;
645 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8395034b
VS
646};
647
8c411768
BC
648script = {
649 name = grub-mkconfig;
8427685f 650 common = util/grub-mkconfig.in;
8c411768
BC
651 mansection = 8;
652 installdir = sbin;
8c411768
BC
653};
654
655script = {
656 name = grub-set-default;
8427685f 657 common = util/grub-set-default.in;
8c411768
BC
658 mansection = 8;
659 installdir = sbin;
8c411768
BC
660};
661
662script = {
663 name = grub-reboot;
8427685f 664 common = util/grub-reboot.in;
8c411768
BC
665 mansection = 8;
666 installdir = sbin;
8c411768
BC
667};
668
669script = {
670 name = grub-mkconfig_lib;
8427685f 671 common = util/grub-mkconfig_lib.in;
f7711f5e 672 installdir = noinst;
8c411768
BC
673};
674
5aaf2c18
VS
675script = {
676 name = grub-kbdcomp;
677 common = util/grub-kbdcomp.in;
c76899a0 678 mansection = 1;
5aaf2c18
VS
679};
680
911bd640 681script = {
8c411768 682 name = grub-shell;
8427685f 683 common = tests/util/grub-shell.in;
f7711f5e 684 installdir = noinst;
8c411768
BC
685};
686
911bd640 687script = {
8c411768 688 name = grub-shell-tester;
8427685f 689 common = tests/util/grub-shell-tester.in;
f7711f5e 690 installdir = noinst;
8c411768
BC
691};
692
911bd640
BC
693script = {
694 testcase;
8c411768 695 name = example_scripted_test;
8427685f 696 common = tests/example_scripted_test.in;
8c411768
BC
697};
698
43fe02cb
VS
699script = {
700 testcase;
701 name = gettext_strings_test;
702 common = tests/gettext_strings_test.in;
62b15edf 703 extra_dist = po/exclude.pot;
43fe02cb
VS
704};
705
f7457fb2
VS
706script = {
707 testcase;
708 name = pata_test;
709 common = tests/pata_test.in;
710};
711
712script = {
713 testcase;
714 name = ahci_test;
715 common = tests/ahci_test.in;
716};
717
718script = {
719 testcase;
720 name = uhci_test;
721 common = tests/uhci_test.in;
722};
723
724script = {
725 testcase;
726 name = ohci_test;
727 common = tests/ohci_test.in;
728};
729
730script = {
731 testcase;
732 name = ehci_test;
733 common = tests/ehci_test.in;
734};
735
911bd640
BC
736script = {
737 testcase;
8c411768 738 name = example_grub_script_test;
8427685f 739 common = tests/example_grub_script_test.in;
8c411768
BC
740};
741
3d84cb17
VS
742script = {
743 testcase;
744 name = grub_script_eval;
745 common = tests/grub_script_eval.in;
746};
747
daf01d61
VS
748script = {
749 testcase;
750 name = grub_script_test;
751 common = tests/grub_script_test.in;
752};
753
911bd640
BC
754script = {
755 testcase;
8c411768 756 name = grub_script_echo1;
8427685f 757 common = tests/grub_script_echo1.in;
8c411768
BC
758};
759
ac6fd218
VS
760script = {
761 testcase;
762 name = grub_script_leading_whitespace;
763 common = tests/grub_script_leading_whitespace.in;
764};
765
911bd640
BC
766script = {
767 testcase;
8c411768 768 name = grub_script_echo_keywords;
8427685f 769 common = tests/grub_script_echo_keywords.in;
8c411768
BC
770};
771
911bd640
BC
772script = {
773 testcase;
8c411768 774 name = grub_script_vars1;
8427685f 775 common = tests/grub_script_vars1.in;
8c411768
BC
776};
777
911bd640
BC
778script = {
779 testcase;
8c411768 780 name = grub_script_for1;
8427685f 781 common = tests/grub_script_for1.in;
8c411768
BC
782};
783
911bd640
BC
784script = {
785 testcase;
8c411768 786 name = grub_script_while1;
8427685f 787 common = tests/grub_script_while1.in;
8c411768
BC
788};
789
911bd640
BC
790script = {
791 testcase;
8c411768 792 name = grub_script_if;
8427685f 793 common = tests/grub_script_if.in;
8c411768
BC
794};
795
911bd640
BC
796script = {
797 testcase;
8c411768 798 name = grub_script_blanklines;
8427685f 799 common = tests/grub_script_blanklines.in;
8c411768
BC
800};
801
911bd640
BC
802script = {
803 testcase;
8c411768 804 name = grub_script_final_semicolon;
8427685f 805 common = tests/grub_script_final_semicolon.in;
8c411768
BC
806};
807
911bd640
BC
808script = {
809 testcase;
8c411768 810 name = grub_script_dollar;
8427685f 811 common = tests/grub_script_dollar.in;
8c411768
BC
812};
813
911bd640
BC
814script = {
815 testcase;
8c411768 816 name = grub_script_comments;
8427685f 817 common = tests/grub_script_comments.in;
8c411768
BC
818};
819
16c7cb32
BC
820script = {
821 testcase;
822 name = grub_script_functions;
8427685f 823 common = tests/grub_script_functions.in;
16c7cb32
BC
824};
825
826script = {
827 testcase;
828 name = grub_script_break;
8427685f 829 common = tests/grub_script_break.in;
16c7cb32
BC
830};
831
832script = {
833 testcase;
834 name = grub_script_continue;
8427685f 835 common = tests/grub_script_continue.in;
16c7cb32
BC
836};
837
838script = {
839 testcase;
840 name = grub_script_shift;
8427685f 841 common = tests/grub_script_shift.in;
16c7cb32
BC
842};
843
928bad47
BC
844script = {
845 testcase;
846 name = grub_script_blockarg;
847 common = tests/grub_script_blockarg.in;
848};
849
47b4c2c3
BC
850script = {
851 testcase;
852 name = grub_script_setparams;
853 common = tests/grub_script_setparams.in;
854};
855
aa5cd41a
BC
856script = {
857 testcase;
858 name = grub_script_return;
859 common = tests/grub_script_return.in;
860};
861
ab8629d2
BC
862script = {
863 testcase;
864 name = grub_cmd_regexp;
865 common = tests/grub_cmd_regexp.in;
866};
867
e3734b84
VS
868script = {
869 testcase;
870 name = grub_cmd_date;
871 common = tests/grub_cmd_date.in;
872};
873
3f9634e5
VS
874script = {
875 testcase;
876 name = grub_cmd_set_date;
877 common = tests/grub_cmd_set_date.in;
878};
879
880script = {
881 testcase;
882 name = grub_cmd_sleep;
883 common = tests/grub_cmd_sleep.in;
884};
885
8fdefb92
BC
886script = {
887 testcase;
888 name = grub_script_expansion;
889 common = tests/grub_script_expansion.in;
890};
891
1bce65c7
BC
892script = {
893 testcase;
894 name = grub_script_not;
895 common = tests/grub_script_not.in;
896};
897
e639c204
CW
898script = {
899 testcase;
900 name = grub_script_no_commands;
901 common = tests/grub_script_no_commands.in;
902};
903
56672f4a 904script = {
905 testcase;
906 name = partmap_test;
907 common = tests/partmap_test.in;
908};
909
f93e89ef
VS
910script = {
911 testcase;
912 name = hddboot_test;
913 common = tests/hddboot_test.in;
914};
915
916script = {
917 testcase;
918 name = fddboot_test;
919 common = tests/fddboot_test.in;
920};
921
922script = {
923 testcase;
924 name = cdboot_test;
925 common = tests/cdboot_test.in;
926};
927
928script = {
929 testcase;
930 name = netboot_test;
931 common = tests/netboot_test.in;
932};
933
934script = {
935 testcase;
936 name = pseries_test;
937 common = tests/pseries_test.in;
938};
939
e7b8fd08
VS
940script = {
941 testcase;
942 name = core_compress_test;
943 common = tests/core_compress_test.in;
944};
945
f93e89ef
VS
946script = {
947 testcase;
948 name = xzcompress_test;
949 common = tests/xzcompress_test.in;
950};
951
952script = {
953 testcase;
954 name = gzcompress_test;
955 common = tests/gzcompress_test.in;
956};
957
958script = {
959 testcase;
960 name = lzocompress_test;
961 common = tests/lzocompress_test.in;
962};
963
79c93b42
BC
964script = {
965 testcase;
966 name = grub_cmd_echo;
967 common = tests/grub_cmd_echo.in;
968};
969
f7457fb2
VS
970script = {
971 testcase;
972 name = help_test;
973 common = tests/help_test.in;
974};
975
546fbe9b
VS
976script = {
977 testcase;
978 name = grub_script_gettext;
979 common = tests/grub_script_gettext.in;
980};
981
f7457fb2
VS
982script = {
983 testcase;
984 name = grub_script_escape_comma;
985 common = tests/grub_script_escape_comma.in;
986};
987
ce41ab7a
VS
988script = {
989 testcase;
990 name = grub_script_strcmp;
991 common = tests/grub_script_strcmp.in;
992};
993
7994a09a
BC
994script = {
995 testcase;
996 name = test_sha512sum;
997 common = tests/test_sha512sum.in;
998};
999
188929eb
BC
1000script = {
1001 testcase;
1002 name = test_unset;
1003 common = tests/test_unset.in;
1004};
1005
50361660
VS
1006script = {
1007 testcase;
1008 name = grub_func_test;
1009 common = tests/grub_func_test.in;
1010};
1011
3d46c22f
BC
1012script = {
1013 testcase;
1014 name = grub_cmd_tr;
1015 common = tests/grub_cmd_tr.in;
1016};
1017
911bd640
BC
1018program = {
1019 testcase;
8c411768 1020 name = example_unit_test;
8427685f
BC
1021 common = tests/example_unit_test.c;
1022 common = tests/lib/unit_test.c;
1023 common = grub-core/kern/list.c;
1024 common = grub-core/kern/misc.c;
1025 common = grub-core/tests/lib/test.c;
38631371 1026 ldadd = libgrubmods.a;
7efb5c9e 1027 ldadd = libgrubgcry.a;
38631371 1028 ldadd = libgrubkern.a;
dd363028 1029 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1030 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 1031};
fff175c7 1032
12d4f965
VS
1033program = {
1034 testcase;
1035 name = printf_test;
1036 common = tests/printf_unit_test.c;
1037 common = tests/lib/unit_test.c;
1038 common = grub-core/kern/list.c;
1039 common = grub-core/kern/misc.c;
1040 common = grub-core/tests/lib/test.c;
1041 ldadd = libgrubmods.a;
1042 ldadd = libgrubgcry.a;
38631371 1043 ldadd = libgrubkern.a;
dd363028 1044 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1045 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 1046};
fff175c7 1047
3d695d7b
VS
1048program = {
1049 testcase;
1050 name = date_test;
1051 common = tests/date_unit_test.c;
1052 common = tests/lib/unit_test.c;
1053 common = grub-core/kern/list.c;
1054 common = grub-core/kern/misc.c;
1055 common = grub-core/tests/lib/test.c;
1056 ldadd = libgrubmods.a;
1057 ldadd = libgrubgcry.a;
1058 ldadd = libgrubkern.a;
1059 ldadd = grub-core/gnulib/libgnu.a;
1060 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1061};
1062
1eed0e6e
VS
1063program = {
1064 testcase;
1065 name = priority_queue_unit_test;
1066 common = tests/priority_queue_unit_test.cc;
1067 common = tests/lib/unit_test.c;
1068 common = grub-core/kern/list.c;
1069 common = grub-core/kern/misc.c;
1070 common = grub-core/tests/lib/test.c;
1071 common = grub-core/lib/priority_queue.c;
1072 ldadd = libgrubmods.a;
1073 ldadd = libgrubgcry.a;
1074 ldadd = libgrubkern.a;
1075 ldadd = grub-core/gnulib/libgnu.a;
1076 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1077 condition = COND_HAVE_CXX;
1078};
1079
ce41ab7a
VS
1080program = {
1081 testcase;
1082 name = cmp_test;
1083 common = tests/cmp_unit_test.c;
1084 common = tests/lib/unit_test.c;
1085 common = grub-core/kern/list.c;
1086 common = grub-core/kern/misc.c;
1087 common = grub-core/tests/lib/test.c;
1088 ldadd = libgrubmods.a;
1089 ldadd = libgrubgcry.a;
1090 ldadd = libgrubkern.a;
1091 ldadd = grub-core/gnulib/libgnu.a;
1092 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1093};
1094
fff175c7
VS
1095program = {
1096 name = grub-menulst2cfg;
1097 mansection = 1;
1098 common = util/grub-menulst2cfg.c;
1099 common = grub-core/lib/legacy_parse.c;
e31bb619 1100 common = grub-core/lib/i386/pc/vesa_modes_table.c;
ae5540d3 1101 common = grub-core/osdep/init.c;
e31bb619 1102
38631371 1103 ldadd = libgrubmods.a;
7efb5c9e 1104 ldadd = libgrubgcry.a;
38631371 1105 ldadd = libgrubkern.a;
15c69261 1106 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1107 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
fff175c7 1108};
a79b8a15 1109
67ab8353
VS
1110program = {
1111 name = grub-glue-efi;
1112 mansection = 1;
1113
1114 common = util/grub-glue-efi.c;
6f652373 1115 common = util/glue-efi.c;
67ab8353 1116 common = grub-core/kern/emu/argp_common.c;
ae5540d3 1117 common = grub-core/osdep/init.c;
67ab8353
VS
1118
1119 ldadd = libgrubmods.a;
1120 ldadd = libgrubgcry.a;
1121 ldadd = libgrubkern.a;
1122 ldadd = grub-core/gnulib/libgnu.a;
1123 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1124};
1125
a79b8a15
VS
1126program = {
1127 name = grub-render-label;
1128 mansection = 1;
1129
1130 common = util/grub-render-label.c;
44d1c20a 1131 common = util/render-label.c;
a79b8a15
VS
1132 common = grub-core/kern/emu/argp_common.c;
1133 common = grub-core/kern/emu/hostfs.c;
1134 common = grub-core/disk/host.c;
ae5540d3 1135 common = grub-core/osdep/init.c;
a79b8a15
VS
1136
1137 ldadd = libgrubmods.a;
1138 ldadd = libgrubgcry.a;
1139 ldadd = libgrubkern.a;
1140 ldadd = grub-core/gnulib/libgnu.a;
1141 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1142};