]> git.proxmox.com Git - grub2.git/blame - Makefile.util.def
Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
[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 174 common = grub-core/osdep/config.c;
4e7d433d 175 extra_dist = grub-core/osdep/aros/config.c;
cd46aa6c
VS
176 extra_dist = grub-core/osdep/windows/config.c;
177 extra_dist = grub-core/osdep/unix/config.c;
178 common = util/config.c;
c76899a0 179
854f383c 180 common = grub-core/kern/arm/dl_helper.c;
389b31cd 181
a60f6ee1 182 extra_dist = util/grub-mkimagexx.c;
8c411768 183
38631371 184 ldadd = libgrubmods.a;
dcd73ec0 185 ldadd = libgrubgcry.a;
38631371 186 ldadd = libgrubkern.a;
4b2047e2 187 ldadd = grub-core/gnulib/libgnu.a;
2c44e493 188 ldadd = '$(LIBLZMA)';
f4727da9 189 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8151bc82 190 cppflags = '-DGRUB_PKGLIBDIR=\"$(pkglibdir)\"';
8c411768
BC
191};
192
193program = {
194 name = grub-mkrelpath;
195 mansection = 1;
196
8427685f 197 common = util/grub-mkrelpath.c;
6a656b0e 198 common = grub-core/kern/emu/argp_common.c;
ae5540d3 199 common = grub-core/osdep/init.c;
8c411768 200
38631371 201 ldadd = libgrubmods.a;
7efb5c9e 202 ldadd = libgrubgcry.a;
38631371 203 ldadd = libgrubkern.a;
15c69261 204 ldadd = grub-core/gnulib/libgnu.a;
20fd15f9 205 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
206};
207
208program = {
209 name = grub-script-check;
210 mansection = 1;
211
8427685f 212 common = util/grub-script-check.c;
6a656b0e 213 common = grub-core/kern/emu/argp_common.c;
ae5540d3 214 common = grub-core/osdep/init.c;
8c411768 215
38631371 216 ldadd = libgrubmods.a;
7efb5c9e 217 ldadd = libgrubgcry.a;
38631371 218 ldadd = libgrubkern.a;
15c69261 219 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 220 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
221};
222
223program = {
224 name = grub-editenv;
225 mansection = 1;
226
8427685f 227 common = util/grub-editenv.c;
bacfefbb 228 common = util/editenv.c;
ae5540d3 229 common = grub-core/osdep/init.c;
8c411768 230
38631371 231 ldadd = libgrubmods.a;
7efb5c9e 232 ldadd = libgrubgcry.a;
38631371 233 ldadd = libgrubkern.a;
15c69261 234 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 235 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
236};
237
238program = {
239 name = grub-mkpasswd-pbkdf2;
240 mansection = 1;
241
8427685f 242 common = util/grub-mkpasswd-pbkdf2.c;
6a656b0e 243 common = grub-core/kern/emu/argp_common.c;
672fa55e 244 common = grub-core/osdep/random.c;
ae5540d3 245 common = grub-core/osdep/init.c;
8c411768 246
38631371 247 ldadd = libgrubmods.a;
dcd73ec0 248 ldadd = libgrubgcry.a;
38631371 249 ldadd = libgrubkern.a;
15c69261 250 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 251 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
252};
253
254program = {
255 name = grub-macho2img;
256 mansection = 1;
8427685f 257 common = util/grub-macho2img.c;
a9f25a08 258 condition = COND_APPLE_LINKER;
8c411768
BC
259};
260
8c411768
BC
261program = {
262 name = grub-fstest;
263 mansection = 1;
905f7773 264 common_nodist = grub_fstest_init.c;
8427685f 265 common = util/grub-fstest.c;
b6a690ee
CW
266 common = grub-core/kern/emu/hostfs.c;
267 common = grub-core/disk/host.c;
ae5540d3 268 common = grub-core/osdep/init.c;
8c411768 269
38631371 270 ldadd = libgrubmods.a;
dcd73ec0 271 ldadd = libgrubgcry.a;
38631371 272 ldadd = libgrubkern.a;
15c69261 273 ldadd = grub-core/gnulib/libgnu.a;
20fd15f9 274 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
275};
276
92bb0786 277program = {
89644ef1 278 name = grub-mount;
92bb0786
VS
279 mansection = 1;
280 common_nodist = grub_fstest_init.c;
89644ef1 281 common = util/grub-mount.c;
92bb0786
VS
282 common = grub-core/kern/emu/hostfs.c;
283 common = grub-core/disk/host.c;
f8f3f155 284 common = grub-core/osdep/init.c;
92bb0786
VS
285
286 ldadd = libgrubmods.a;
f1f233ba 287 ldadd = libgrubgcry.a;
92bb0786
VS
288 ldadd = libgrubkern.a;
289 ldadd = grub-core/gnulib/libgnu.a;
794c8c33 290 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM) -lfuse';
897e6207 291 condition = COND_GRUB_MOUNT;
8c411768
BC
292};
293
294program = {
295 name = grub-mkfont;
296 mansection = 1;
8427685f 297 common = util/grub-mkfont.c;
6a656b0e 298 common = grub-core/kern/emu/argp_common.c;
ae5540d3 299 common = grub-core/osdep/init.c;
8c411768 300
8c411768 301 cflags = '$(freetype_cflags)';
7c9d0c39 302 cppflags = '-DGRUB_MKFONT=1';
2d465fb0 303
ae5540d3
VS
304 ldadd = libgrubmods.a;
305 ldadd = libgrubgcry.a;
306 ldadd = libgrubkern.a;
32af299a 307 ldadd = grub-core/gnulib/libgnu.a;
a7363f53 308 ldadd = '$(freetype_libs)';
ae5540d3 309 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
911bd640 310 condition = COND_GRUB_MKFONT;
8c411768
BC
311};
312
8c411768
BC
313program = {
314 name = grub-probe;
315 installdir = sbin;
316 mansection = 8;
8427685f 317 common = util/grub-probe.c;
cd46aa6c 318 common = util/probe.c;
9a2c903f 319 common = grub-core/osdep/ofpath.c;
6a656b0e 320 common = grub-core/kern/emu/argp_common.c;
ae5540d3 321 common = grub-core/osdep/init.c;
8c411768 322
38631371 323 ldadd = libgrubmods.a;
dcd73ec0 324 ldadd = libgrubgcry.a;
38631371 325 ldadd = libgrubkern.a;
15c69261 326 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 327 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
328};
329
330program = {
c36e5cd1 331 name = grub-bios-setup;
8c411768
BC
332 installdir = sbin;
333 mansection = 8;
d2ea4551 334 common = util/grub-setup.c;
c06c7520 335 common = util/setup_bios.c;
8104063c 336 extra_dist = util/setup.c;
6a656b0e 337 common = grub-core/kern/emu/argp_common.c;
419cbeb0 338 common = grub-core/lib/reed_solomon.c;
5a869940
VS
339 common = grub-core/osdep/blocklist.c;
340 extra_dist = grub-core/osdep/generic/blocklist.c;
341 extra_dist = grub-core/osdep/linux/blocklist.c;
342 extra_dist = grub-core/osdep/windows/blocklist.c;
ae5540d3 343 common = grub-core/osdep/init.c;
8c411768 344
38631371
BC
345 ldadd = libgrubmods.a;
346 ldadd = libgrubkern.a;
7efb5c9e 347 ldadd = libgrubgcry.a;
15c69261 348 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 349 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
c06c7520 350 cppflags = '-DGRUB_SETUP_FUNC=grub_util_bios_setup';
c36e5cd1 351};
911bd640 352
c36e5cd1
VS
353program = {
354 name = grub-sparc64-setup;
355 installdir = sbin;
356 mansection = 8;
357 common = util/grub-setup.c;
c06c7520 358 common = util/setup_sparc.c;
c36e5cd1
VS
359 common = grub-core/kern/emu/argp_common.c;
360 common = grub-core/lib/reed_solomon.c;
9a2c903f 361 common = grub-core/osdep/ofpath.c;
5a869940 362 common = grub-core/osdep/blocklist.c;
ae5540d3 363 common = grub-core/osdep/init.c;
c36e5cd1
VS
364
365 ldadd = libgrubmods.a;
366 ldadd = libgrubkern.a;
367 ldadd = libgrubgcry.a;
368 ldadd = grub-core/gnulib/libgnu.a;
369 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
c06c7520 370 cppflags = '-DGRUB_SETUP_FUNC=grub_util_sparc_setup';
8c411768
BC
371};
372
373program = {
374 name = grub-ofpathname;
375 installdir = sbin;
63e3eea9 376 mansection = 8;
6c21f5d7 377 common = util/ieee1275/grub-ofpathname.c;
9a2c903f 378 common = grub-core/osdep/ofpath.c;
ae5540d3 379 common = grub-core/osdep/init.c;
8c411768 380
38631371 381 ldadd = libgrubmods.a;
7efb5c9e 382 ldadd = libgrubgcry.a;
38631371 383 ldadd = libgrubkern.a;
15c69261 384 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 385 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
8c411768
BC
386};
387
5aaf2c18
VS
388program = {
389 name = grub-mklayout;
390 mansection = 1;
391
392 common = util/grub-mklayout.c;
6a656b0e 393 common = grub-core/kern/emu/argp_common.c;
ae5540d3 394 common = grub-core/osdep/init.c;
5aaf2c18 395
38631371 396 ldadd = libgrubmods.a;
7efb5c9e 397 ldadd = libgrubgcry.a;
38631371 398 ldadd = libgrubkern.a;
15c69261 399 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 400 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
5aaf2c18
VS
401};
402
8c411768 403data = {
8427685f 404 common = util/grub.d/README;
8c411768 405 installdir = grubconf;
8c411768
BC
406};
407
408script = {
409 name = '00_header';
8427685f 410 common = util/grub.d/00_header.in;
8c411768 411 installdir = grubconf;
8c411768
BC
412};
413
414script = {
415 name = '10_windows';
8427685f 416 common = util/grub.d/10_windows.in;
8c411768 417 installdir = grubconf;
f7711f5e 418 condition = COND_HOST_WINDOWS;
8c411768
BC
419};
420
421script = {
422 name = '10_hurd';
8427685f 423 common = util/grub.d/10_hurd.in;
8c411768 424 installdir = grubconf;
f7711f5e 425 condition = COND_HOST_HURD;
5815f2c1
BC
426};
427
428script = {
f51c98c4 429 name = '10_kfreebsd';
5815f2c1
BC
430 common = util/grub.d/10_kfreebsd.in;
431 installdir = grubconf;
f7711f5e 432 condition = COND_HOST_KFREEBSD;
5815f2c1
BC
433};
434
958ee221
VS
435script = {
436 name = '10_illumos';
437 common = util/grub.d/10_illumos.in;
438 installdir = grubconf;
439 condition = COND_HOST_ILLUMOS;
440};
441
5815f2c1 442script = {
f51c98c4 443 name = '10_netbsd';
5815f2c1
BC
444 common = util/grub.d/10_netbsd.in;
445 installdir = grubconf;
f7711f5e 446 condition = COND_HOST_NETBSD;
8c411768
BC
447};
448
449script = {
450 name = '10_linux';
8427685f 451 common = util/grub.d/10_linux.in;
8c411768 452 installdir = grubconf;
f7711f5e
BC
453 condition = COND_HOST_LINUX;
454};
455
b105df76
VS
456script = {
457 name = '10_xnu';
458 common = util/grub.d/10_xnu.in;
459 installdir = grubconf;
460 condition = COND_HOST_XNU;
461};
462
f7711f5e
BC
463script = {
464 name = '20_linux_xen';
465 common = util/grub.d/20_linux_xen.in;
466 installdir = grubconf;
467 condition = COND_HOST_LINUX;
8c411768
BC
468};
469
470script = {
471 name = '30_os-prober';
8427685f 472 common = util/grub.d/30_os-prober.in;
8c411768 473 installdir = grubconf;
8c411768
BC
474};
475
476script = {
477 name = '40_custom';
8427685f 478 common = util/grub.d/40_custom.in;
8c411768 479 installdir = grubconf;
8c411768
BC
480};
481
297f0c2b
BC
482script = {
483 name = '41_custom';
8427685f 484 common = util/grub.d/41_custom.in;
297f0c2b 485 installdir = grubconf;
297f0c2b
BC
486};
487
cd46aa6c 488program = {
8c411768
BC
489 mansection = 1;
490 name = grub-mkrescue;
cd46aa6c
VS
491
492 common = util/grub-mkrescue.c;
493 common = util/render-label.c;
494 common = util/glue-efi.c;
495 common = util/mkimage.c;
496 common = util/grub-install-common.c;
497 common = util/setup_bios.c;
498 common = util/setup_sparc.c;
499 common = grub-core/lib/reed_solomon.c;
500 common = grub-core/osdep/random.c;
501 common = grub-core/osdep/ofpath.c;
502 common = grub-core/osdep/platform.c;
503 common = grub-core/osdep/platform_unix.c;
504 common = grub-core/osdep/compress.c;
505 extra_dist = grub-core/osdep/unix/compress.c;
506 extra_dist = grub-core/osdep/basic/compress.c;
507 common = util/editenv.c;
508 common = grub-core/osdep/blocklist.c;
509 common = grub-core/osdep/config.c;
510 common = util/config.c;
511
512 common = grub-core/kern/emu/hostfs.c;
513 common = grub-core/disk/host.c;
514
515 common = grub-core/kern/arm/dl_helper.c;
516
517 common = util/resolve.c;
518
519 common = grub-core/kern/emu/argp_common.c;
520 common = grub-core/osdep/init.c;
521
522 ldadd = '$(LIBLZMA)';
523 ldadd = libgrubmods.a;
524 ldadd = libgrubgcry.a;
525 ldadd = libgrubkern.a;
526 ldadd = grub-core/gnulib/libgnu.a;
527 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
528
529 condition = COND_HAVE_EXEC;
8c411768
BC
530};
531
cd46aa6c 532program = {
41aa28ea
VS
533 mansection = 1;
534 name = grub-mkstandalone;
cd46aa6c
VS
535 common = util/grub-mkstandalone.c;
536
537 common = util/render-label.c;
538 common = util/glue-efi.c;
539 common = util/mkimage.c;
540 common = util/grub-install-common.c;
541 common = util/setup_bios.c;
542 common = util/setup_sparc.c;
543 common = grub-core/lib/reed_solomon.c;
544 common = grub-core/osdep/random.c;
545 common = grub-core/osdep/ofpath.c;
546 common = grub-core/osdep/platform.c;
547 common = grub-core/osdep/platform_unix.c;
548 extra_dist = grub-core/osdep/linux/platform.c;
549 extra_dist = grub-core/osdep/basic/platform.c;
550 extra_dist = grub-core/osdep/basic/no_platform.c;
551 extra_dist = grub-core/osdep/unix/platform.c;
552 common = grub-core/osdep/compress.c;
553 common = util/editenv.c;
554 common = grub-core/osdep/blocklist.c;
555 common = grub-core/osdep/config.c;
556 common = util/config.c;
557
558 common = grub-core/kern/emu/hostfs.c;
559 common = grub-core/disk/host.c;
560
561 common = grub-core/kern/arm/dl_helper.c;
562
563 common = util/resolve.c;
564
565 common = grub-core/kern/emu/argp_common.c;
566 common = grub-core/osdep/init.c;
567
568 ldadd = '$(LIBLZMA)';
569 ldadd = libgrubmods.a;
570 ldadd = libgrubgcry.a;
571 ldadd = libgrubkern.a;
572 ldadd = grub-core/gnulib/libgnu.a;
573 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
41aa28ea
VS
574};
575
cd46aa6c 576program = {
8c411768
BC
577 mansection = 8;
578 installdir = sbin;
579 name = grub-install;
8427685f 580
cd46aa6c
VS
581 common = util/grub-install.c;
582 common = util/probe.c;
583 common = util/mkimage.c;
584 common = util/grub-install-common.c;
585 common = util/setup_bios.c;
586 common = util/setup_sparc.c;
587 common = grub-core/lib/reed_solomon.c;
588 common = grub-core/osdep/random.c;
589 common = grub-core/osdep/ofpath.c;
590 common = grub-core/osdep/platform.c;
591 common = grub-core/osdep/platform_unix.c;
592 common = grub-core/osdep/compress.c;
593 common = util/editenv.c;
594 common = grub-core/osdep/blocklist.c;
595 common = grub-core/osdep/config.c;
596 common = util/config.c;
597
598 common = grub-core/kern/arm/dl_helper.c;
599
600 common = util/resolve.c;
eefe8abd 601 enable = noemu;
cd46aa6c
VS
602 common = grub-core/kern/emu/argp_common.c;
603 common = grub-core/osdep/init.c;
604
605 ldadd = '$(LIBLZMA)';
606 ldadd = libgrubmods.a;
607 ldadd = libgrubgcry.a;
608 ldadd = libgrubkern.a;
609 ldadd = grub-core/gnulib/libgnu.a;
610 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768
BC
611};
612
cd46aa6c 613program = {
288c757d
CW
614 mansection = 1;
615 installdir = bin;
8395034b
VS
616 name = grub-mknetdir;
617
cd46aa6c
VS
618 common = util/grub-mknetdir.c;
619
620 common = util/mkimage.c;
621 common = util/grub-install-common.c;
622 common = util/setup_bios.c;
623 common = util/setup_sparc.c;
624 common = grub-core/lib/reed_solomon.c;
625 common = grub-core/osdep/random.c;
626 common = grub-core/osdep/ofpath.c;
627 common = grub-core/osdep/platform.c;
628 common = grub-core/osdep/platform_unix.c;
629 common = grub-core/osdep/compress.c;
630 common = util/editenv.c;
631 common = grub-core/osdep/blocklist.c;
632 common = grub-core/osdep/config.c;
633 common = util/config.c;
634
635 common = grub-core/kern/arm/dl_helper.c;
636
637 common = util/resolve.c;
638 common = grub-core/kern/emu/argp_common.c;
639 common = grub-core/osdep/init.c;
640
641 ldadd = '$(LIBLZMA)';
642 ldadd = libgrubmods.a;
643 ldadd = libgrubgcry.a;
644 ldadd = libgrubkern.a;
645 ldadd = grub-core/gnulib/libgnu.a;
646 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8395034b
VS
647};
648
8c411768
BC
649script = {
650 name = grub-mkconfig;
8427685f 651 common = util/grub-mkconfig.in;
8c411768
BC
652 mansection = 8;
653 installdir = sbin;
8c411768
BC
654};
655
656script = {
657 name = grub-set-default;
8427685f 658 common = util/grub-set-default.in;
8c411768
BC
659 mansection = 8;
660 installdir = sbin;
8c411768
BC
661};
662
663script = {
664 name = grub-reboot;
8427685f 665 common = util/grub-reboot.in;
8c411768
BC
666 mansection = 8;
667 installdir = sbin;
8c411768
BC
668};
669
670script = {
671 name = grub-mkconfig_lib;
8427685f 672 common = util/grub-mkconfig_lib.in;
f7711f5e 673 installdir = noinst;
8c411768
BC
674};
675
5aaf2c18
VS
676script = {
677 name = grub-kbdcomp;
678 common = util/grub-kbdcomp.in;
c76899a0 679 mansection = 1;
5aaf2c18
VS
680};
681
911bd640 682script = {
8c411768 683 name = grub-shell;
8427685f 684 common = tests/util/grub-shell.in;
f7711f5e 685 installdir = noinst;
8c411768
BC
686};
687
911bd640 688script = {
8c411768 689 name = grub-shell-tester;
8427685f 690 common = tests/util/grub-shell-tester.in;
f7711f5e 691 installdir = noinst;
8c411768
BC
692};
693
7d44ff7d
VS
694script = {
695 name = grub-fs-tester;
696 common = tests/util/grub-fs-tester.in;
697 installdir = noinst;
698 dependencies = garbage-gen;
699};
700
701script = {
702 testcase;
703 name = ext234_test;
704 common = tests/ext234_test.in;
705};
706
707script = {
708 testcase;
709 name = squashfs_test;
710 common = tests/squashfs_test.in;
711};
712
713script = {
714 testcase;
715 name = iso9660_test;
716 common = tests/iso9660_test.in;
717};
718
719script = {
720 testcase;
721 name = hfsplus_test;
722 common = tests/hfsplus_test.in;
723};
724
725script = {
726 testcase;
727 name = ntfs_test;
728 common = tests/ntfs_test.in;
729};
730
731script = {
732 testcase;
733 name = reiserfs_test;
734 common = tests/reiserfs_test.in;
735};
736
737script = {
738 testcase;
739 name = fat_test;
740 common = tests/fat_test.in;
741};
742
743script = {
744 testcase;
745 name = minixfs_test;
746 common = tests/minixfs_test.in;
747};
748
749script = {
750 testcase;
751 name = xfs_test;
752 common = tests/xfs_test.in;
753};
754
755script = {
756 testcase;
757 name = nilfs2_test;
758 common = tests/nilfs2_test.in;
759};
760
761script = {
762 testcase;
763 name = romfs_test;
764 common = tests/romfs_test.in;
765};
766
767script = {
768 testcase;
769 name = exfat_test;
770 common = tests/exfat_test.in;
771};
772
773script = {
774 testcase;
775 name = tar_test;
776 common = tests/tar_test.in;
777};
778
779script = {
780 testcase;
781 name = udf_test;
782 common = tests/udf_test.in;
783};
784
785script = {
786 testcase;
787 name = hfs_test;
788 common = tests/hfs_test.in;
789};
790
791script = {
792 testcase;
793 name = jfs_test;
794 common = tests/jfs_test.in;
795};
796
797script = {
798 testcase;
799 name = btrfs_test;
800 common = tests/btrfs_test.in;
801};
802
803script = {
804 testcase;
805 name = zfs_test;
806 common = tests/zfs_test.in;
807};
808
809script = {
810 testcase;
811 name = cpio_test;
812 common = tests/cpio_test.in;
813};
814
911bd640
BC
815script = {
816 testcase;
8c411768 817 name = example_scripted_test;
8427685f 818 common = tests/example_scripted_test.in;
8c411768
BC
819};
820
43fe02cb
VS
821script = {
822 testcase;
823 name = gettext_strings_test;
824 common = tests/gettext_strings_test.in;
62b15edf 825 extra_dist = po/exclude.pot;
43fe02cb
VS
826};
827
f7457fb2
VS
828script = {
829 testcase;
830 name = pata_test;
831 common = tests/pata_test.in;
832};
833
834script = {
835 testcase;
836 name = ahci_test;
837 common = tests/ahci_test.in;
838};
839
840script = {
841 testcase;
842 name = uhci_test;
843 common = tests/uhci_test.in;
844};
845
846script = {
847 testcase;
848 name = ohci_test;
849 common = tests/ohci_test.in;
850};
851
852script = {
853 testcase;
854 name = ehci_test;
855 common = tests/ehci_test.in;
856};
857
911bd640
BC
858script = {
859 testcase;
8c411768 860 name = example_grub_script_test;
8427685f 861 common = tests/example_grub_script_test.in;
8c411768
BC
862};
863
3d84cb17
VS
864script = {
865 testcase;
866 name = grub_script_eval;
867 common = tests/grub_script_eval.in;
868};
869
daf01d61
VS
870script = {
871 testcase;
872 name = grub_script_test;
873 common = tests/grub_script_test.in;
874};
875
911bd640
BC
876script = {
877 testcase;
8c411768 878 name = grub_script_echo1;
8427685f 879 common = tests/grub_script_echo1.in;
8c411768
BC
880};
881
ac6fd218
VS
882script = {
883 testcase;
884 name = grub_script_leading_whitespace;
885 common = tests/grub_script_leading_whitespace.in;
886};
887
911bd640
BC
888script = {
889 testcase;
8c411768 890 name = grub_script_echo_keywords;
8427685f 891 common = tests/grub_script_echo_keywords.in;
8c411768
BC
892};
893
911bd640
BC
894script = {
895 testcase;
8c411768 896 name = grub_script_vars1;
8427685f 897 common = tests/grub_script_vars1.in;
8c411768
BC
898};
899
911bd640
BC
900script = {
901 testcase;
8c411768 902 name = grub_script_for1;
8427685f 903 common = tests/grub_script_for1.in;
8c411768
BC
904};
905
911bd640
BC
906script = {
907 testcase;
8c411768 908 name = grub_script_while1;
8427685f 909 common = tests/grub_script_while1.in;
8c411768
BC
910};
911
911bd640
BC
912script = {
913 testcase;
8c411768 914 name = grub_script_if;
8427685f 915 common = tests/grub_script_if.in;
8c411768
BC
916};
917
911bd640
BC
918script = {
919 testcase;
8c411768 920 name = grub_script_blanklines;
8427685f 921 common = tests/grub_script_blanklines.in;
8c411768
BC
922};
923
911bd640
BC
924script = {
925 testcase;
8c411768 926 name = grub_script_final_semicolon;
8427685f 927 common = tests/grub_script_final_semicolon.in;
8c411768
BC
928};
929
911bd640
BC
930script = {
931 testcase;
8c411768 932 name = grub_script_dollar;
8427685f 933 common = tests/grub_script_dollar.in;
8c411768
BC
934};
935
911bd640
BC
936script = {
937 testcase;
8c411768 938 name = grub_script_comments;
8427685f 939 common = tests/grub_script_comments.in;
8c411768
BC
940};
941
16c7cb32
BC
942script = {
943 testcase;
944 name = grub_script_functions;
8427685f 945 common = tests/grub_script_functions.in;
16c7cb32
BC
946};
947
948script = {
949 testcase;
950 name = grub_script_break;
8427685f 951 common = tests/grub_script_break.in;
16c7cb32
BC
952};
953
954script = {
955 testcase;
956 name = grub_script_continue;
8427685f 957 common = tests/grub_script_continue.in;
16c7cb32
BC
958};
959
960script = {
961 testcase;
962 name = grub_script_shift;
8427685f 963 common = tests/grub_script_shift.in;
16c7cb32
BC
964};
965
928bad47
BC
966script = {
967 testcase;
968 name = grub_script_blockarg;
969 common = tests/grub_script_blockarg.in;
970};
971
47b4c2c3
BC
972script = {
973 testcase;
974 name = grub_script_setparams;
975 common = tests/grub_script_setparams.in;
976};
977
aa5cd41a
BC
978script = {
979 testcase;
980 name = grub_script_return;
981 common = tests/grub_script_return.in;
982};
983
ab8629d2
BC
984script = {
985 testcase;
986 name = grub_cmd_regexp;
987 common = tests/grub_cmd_regexp.in;
988};
989
e3734b84
VS
990script = {
991 testcase;
992 name = grub_cmd_date;
993 common = tests/grub_cmd_date.in;
994};
995
3f9634e5
VS
996script = {
997 testcase;
998 name = grub_cmd_set_date;
999 common = tests/grub_cmd_set_date.in;
1000};
1001
1002script = {
1003 testcase;
1004 name = grub_cmd_sleep;
1005 common = tests/grub_cmd_sleep.in;
1006};
1007
8fdefb92
BC
1008script = {
1009 testcase;
1010 name = grub_script_expansion;
1011 common = tests/grub_script_expansion.in;
1012};
1013
1bce65c7
BC
1014script = {
1015 testcase;
1016 name = grub_script_not;
1017 common = tests/grub_script_not.in;
1018};
1019
e639c204
CW
1020script = {
1021 testcase;
1022 name = grub_script_no_commands;
1023 common = tests/grub_script_no_commands.in;
1024};
1025
56672f4a 1026script = {
1027 testcase;
1028 name = partmap_test;
1029 common = tests/partmap_test.in;
1030};
1031
f93e89ef
VS
1032script = {
1033 testcase;
1034 name = hddboot_test;
1035 common = tests/hddboot_test.in;
1036};
1037
1038script = {
1039 testcase;
1040 name = fddboot_test;
1041 common = tests/fddboot_test.in;
1042};
1043
1044script = {
1045 testcase;
1046 name = cdboot_test;
1047 common = tests/cdboot_test.in;
1048};
1049
1050script = {
1051 testcase;
1052 name = netboot_test;
1053 common = tests/netboot_test.in;
1054};
1055
1056script = {
1057 testcase;
1058 name = pseries_test;
1059 common = tests/pseries_test.in;
1060};
1061
e7b8fd08
VS
1062script = {
1063 testcase;
1064 name = core_compress_test;
1065 common = tests/core_compress_test.in;
1066};
1067
f93e89ef
VS
1068script = {
1069 testcase;
1070 name = xzcompress_test;
1071 common = tests/xzcompress_test.in;
1072};
1073
1074script = {
1075 testcase;
1076 name = gzcompress_test;
1077 common = tests/gzcompress_test.in;
1078};
1079
1080script = {
1081 testcase;
1082 name = lzocompress_test;
1083 common = tests/lzocompress_test.in;
1084};
1085
79c93b42
BC
1086script = {
1087 testcase;
1088 name = grub_cmd_echo;
1089 common = tests/grub_cmd_echo.in;
1090};
1091
f7457fb2
VS
1092script = {
1093 testcase;
1094 name = help_test;
1095 common = tests/help_test.in;
1096};
1097
546fbe9b
VS
1098script = {
1099 testcase;
1100 name = grub_script_gettext;
1101 common = tests/grub_script_gettext.in;
1102};
1103
f7457fb2
VS
1104script = {
1105 testcase;
1106 name = grub_script_escape_comma;
1107 common = tests/grub_script_escape_comma.in;
1108};
1109
ce41ab7a
VS
1110script = {
1111 testcase;
1112 name = grub_script_strcmp;
1113 common = tests/grub_script_strcmp.in;
1114};
1115
7994a09a
BC
1116script = {
1117 testcase;
1118 name = test_sha512sum;
1119 common = tests/test_sha512sum.in;
1120};
1121
188929eb
BC
1122script = {
1123 testcase;
1124 name = test_unset;
1125 common = tests/test_unset.in;
1126};
1127
50361660
VS
1128script = {
1129 testcase;
1130 name = grub_func_test;
1131 common = tests/grub_func_test.in;
1132};
1133
3d46c22f
BC
1134script = {
1135 testcase;
1136 name = grub_cmd_tr;
1137 common = tests/grub_cmd_tr.in;
1138};
1139
911bd640
BC
1140program = {
1141 testcase;
8c411768 1142 name = example_unit_test;
8427685f
BC
1143 common = tests/example_unit_test.c;
1144 common = tests/lib/unit_test.c;
1145 common = grub-core/kern/list.c;
1146 common = grub-core/kern/misc.c;
1147 common = grub-core/tests/lib/test.c;
38631371 1148 ldadd = libgrubmods.a;
7efb5c9e 1149 ldadd = libgrubgcry.a;
38631371 1150 ldadd = libgrubkern.a;
dd363028 1151 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1152 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 1153};
fff175c7 1154
12d4f965
VS
1155program = {
1156 testcase;
1157 name = printf_test;
1158 common = tests/printf_unit_test.c;
1159 common = tests/lib/unit_test.c;
1160 common = grub-core/kern/list.c;
1161 common = grub-core/kern/misc.c;
1162 common = grub-core/tests/lib/test.c;
1163 ldadd = libgrubmods.a;
1164 ldadd = libgrubgcry.a;
38631371 1165 ldadd = libgrubkern.a;
dd363028 1166 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1167 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
8c411768 1168};
fff175c7 1169
3d695d7b
VS
1170program = {
1171 testcase;
1172 name = date_test;
1173 common = tests/date_unit_test.c;
1174 common = tests/lib/unit_test.c;
1175 common = grub-core/kern/list.c;
1176 common = grub-core/kern/misc.c;
1177 common = grub-core/tests/lib/test.c;
1178 ldadd = libgrubmods.a;
1179 ldadd = libgrubgcry.a;
1180 ldadd = libgrubkern.a;
1181 ldadd = grub-core/gnulib/libgnu.a;
1182 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1183};
1184
1eed0e6e
VS
1185program = {
1186 testcase;
1187 name = priority_queue_unit_test;
1188 common = tests/priority_queue_unit_test.cc;
1189 common = tests/lib/unit_test.c;
1190 common = grub-core/kern/list.c;
1191 common = grub-core/kern/misc.c;
1192 common = grub-core/tests/lib/test.c;
1193 common = grub-core/lib/priority_queue.c;
1194 ldadd = libgrubmods.a;
1195 ldadd = libgrubgcry.a;
1196 ldadd = libgrubkern.a;
1197 ldadd = grub-core/gnulib/libgnu.a;
1198 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1199 condition = COND_HAVE_CXX;
1200};
1201
ce41ab7a
VS
1202program = {
1203 testcase;
1204 name = cmp_test;
1205 common = tests/cmp_unit_test.c;
1206 common = tests/lib/unit_test.c;
1207 common = grub-core/kern/list.c;
1208 common = grub-core/kern/misc.c;
1209 common = grub-core/tests/lib/test.c;
1210 ldadd = libgrubmods.a;
1211 ldadd = libgrubgcry.a;
1212 ldadd = libgrubkern.a;
1213 ldadd = grub-core/gnulib/libgnu.a;
1214 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1215};
1216
fff175c7
VS
1217program = {
1218 name = grub-menulst2cfg;
1219 mansection = 1;
1220 common = util/grub-menulst2cfg.c;
1221 common = grub-core/lib/legacy_parse.c;
e31bb619 1222 common = grub-core/lib/i386/pc/vesa_modes_table.c;
ae5540d3 1223 common = grub-core/osdep/init.c;
e31bb619 1224
38631371 1225 ldadd = libgrubmods.a;
7efb5c9e 1226 ldadd = libgrubgcry.a;
38631371 1227 ldadd = libgrubkern.a;
15c69261 1228 ldadd = grub-core/gnulib/libgnu.a;
f4727da9 1229 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
fff175c7 1230};
a79b8a15 1231
67ab8353
VS
1232program = {
1233 name = grub-glue-efi;
1234 mansection = 1;
1235
1236 common = util/grub-glue-efi.c;
6f652373 1237 common = util/glue-efi.c;
67ab8353 1238 common = grub-core/kern/emu/argp_common.c;
ae5540d3 1239 common = grub-core/osdep/init.c;
67ab8353
VS
1240
1241 ldadd = libgrubmods.a;
1242 ldadd = libgrubgcry.a;
1243 ldadd = libgrubkern.a;
1244 ldadd = grub-core/gnulib/libgnu.a;
1245 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1246};
1247
a79b8a15
VS
1248program = {
1249 name = grub-render-label;
1250 mansection = 1;
1251
1252 common = util/grub-render-label.c;
44d1c20a 1253 common = util/render-label.c;
a79b8a15
VS
1254 common = grub-core/kern/emu/argp_common.c;
1255 common = grub-core/kern/emu/hostfs.c;
1256 common = grub-core/disk/host.c;
ae5540d3 1257 common = grub-core/osdep/init.c;
a79b8a15
VS
1258
1259 ldadd = libgrubmods.a;
1260 ldadd = libgrubgcry.a;
1261 ldadd = libgrubkern.a;
1262 ldadd = grub-core/gnulib/libgnu.a;
1263 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
1264};