]> git.proxmox.com Git - grub2.git/blame - Makefile.util.def
Fix UUID command. Reported by: Jordan Uggla
[grub2.git] / Makefile.util.def
CommitLineData
8c411768
BC
1AutoGen definitions Makefile.tpl;
2
3library = {
d5c3b7ce 4 name = libgrub.a;
8c411768
BC
5 cflags = '$(CFLAGS_GCRY)';
6 cppflags = '$(CPPFLAGS_GCRY)';
7
8427685f
BC
8 common_nodist = grub_script.tab.c;
9 common_nodist = grub_script.yy.c;
10 common_nodist = libgrub_a_init.c;
11 common_nodist = grub_script.yy.h;
12 common_nodist = grub_script.tab.h;
13
14 common = grub-core/gnulib/error.c;
15 common = grub-core/gnulib/fnmatch.c;
16 common = grub-core/gnulib/getdelim.c;
17 common = grub-core/gnulib/getline.c;
18 common = grub-core/gnulib/getopt1.c;
19 common = grub-core/gnulib/getopt.c;
20 common = grub-core/gnulib/progname.c;
21
22 common = util/misc.c;
23 common = grub-core/kern/misc.c;
24 common = grub-core/kern/emu/mm.c;
25 common = grub-core/kern/emu/misc.c;
8427685f
BC
26 common = grub-core/kern/emu/getroot.c;
27 common = grub-core/kern/emu/hostdisk.c;
28
29 common = grub-core/commands/blocklist.c;
30 common = grub-core/commands/extcmd.c;
31 common = grub-core/commands/ls.c;
32 common = grub-core/disk/dmraid_nvidia.c;
8427685f
BC
33 common = grub-core/disk/loopback.c;
34 common = grub-core/disk/lvm.c;
35 common = grub-core/disk/mdraid_linux.c;
36 common = grub-core/disk/raid5_recover.c;
37 common = grub-core/disk/raid6_recover.c;
38 common = grub-core/disk/raid.c;
39 common = grub-core/fs/affs.c;
40 common = grub-core/fs/afs_be.c;
41 common = grub-core/fs/afs.c;
42 common = grub-core/fs/befs_be.c;
43 common = grub-core/fs/befs.c;
4dfbc574 44 common = grub-core/fs/btrfs.c;
8427685f
BC
45 common = grub-core/fs/cpio.c;
46 common = grub-core/fs/ext2.c;
47 common = grub-core/fs/fat.c;
48 common = grub-core/fs/fshelp.c;
49 common = grub-core/fs/hfs.c;
50 common = grub-core/fs/hfsplus.c;
51 common = grub-core/fs/iso9660.c;
52 common = grub-core/fs/jfs.c;
53 common = grub-core/fs/minix.c;
b4a0c915 54 common = grub-core/fs/minix2.c;
8427685f
BC
55 common = grub-core/fs/nilfs2.c;
56 common = grub-core/fs/ntfs.c;
57 common = grub-core/fs/ntfscomp.c;
58 common = grub-core/fs/reiserfs.c;
59 common = grub-core/fs/sfs.c;
60 common = grub-core/fs/tar.c;
61 common = grub-core/fs/udf.c;
62 common = grub-core/fs/ufs2.c;
63 common = grub-core/fs/ufs.c;
64 common = grub-core/fs/xfs.c;
65 common = grub-core/kern/command.c;
66 common = grub-core/kern/device.c;
67 common = grub-core/kern/disk.c;
68 common = grub-core/kern/env.c;
69 common = grub-core/kern/err.c;
70 common = grub-core/kern/file.c;
71 common = grub-core/kern/fs.c;
72 common = grub-core/kern/list.c;
73 common = grub-core/kern/partition.c;
74 common = grub-core/lib/arg.c;
75 common = grub-core/lib/crc.c;
76 common = grub-core/lib/crypto.c;
77 common = grub-core/lib/envblk.c;
78 common = grub-core/lib/hexdump.c;
79 common = grub-core/lib/libgcrypt-grub/cipher/sha512.c;
80 common = grub-core/lib/LzFind.c;
81 common = grub-core/lib/LzmaEnc.c;
82 common = grub-core/lib/pbkdf2.c;
83 common = grub-core/normal/datetime.c;
84 common = grub-core/normal/misc.c;
85 common = grub-core/partmap/acorn.c;
86 common = grub-core/partmap/amiga.c;
87 common = grub-core/partmap/apple.c;
88 common = grub-core/partmap/gpt.c;
89 common = grub-core/partmap/msdos.c;
90 common = grub-core/partmap/sun.c;
ad717fae 91 common = grub-core/partmap/sunpc.c;
8427685f
BC
92 common = grub-core/script/function.c;
93 common = grub-core/script/lexer.c;
94 common = grub-core/script/main.c;
95 common = grub-core/script/script.c;
96 common = grub-core/script/argv.c;
8c411768
BC
97};
98
99program = {
100 name = grub-bin2h;
8427685f 101 common = util/bin2h.c;
d5c3b7ce 102 ldadd = libgrub.a;
a7363f53 103 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768 104 mansection = 1;
8c411768
BC
105};
106
107program = {
108 name = grub-mkimage;
109 mansection = 1;
110
8427685f
BC
111 common = util/grub-mkimage.c;
112 common = util/resolve.c;
a60f6ee1 113 extra_dist = util/grub-mkimagexx.c;
8c411768 114
d5c3b7ce 115 ldadd = libgrub.a;
a7363f53 116 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
d270972a 117 cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
8c411768
BC
118};
119
120program = {
121 name = grub-mkrelpath;
122 mansection = 1;
123
8427685f 124 common = util/grub-mkrelpath.c;
8c411768 125
d5c3b7ce 126 ldadd = libgrub.a;
a7363f53 127 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
128};
129
130program = {
131 name = grub-script-check;
132 mansection = 1;
133
8427685f 134 common = util/grub-script-check.c;
8c411768 135
d5c3b7ce 136 ldadd = libgrub.a;
a7363f53 137 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
138};
139
140program = {
141 name = grub-editenv;
142 mansection = 1;
143
8427685f 144 common = util/grub-editenv.c;
8c411768 145
d5c3b7ce 146 ldadd = libgrub.a;
a7363f53 147 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
148};
149
150program = {
151 name = grub-mkpasswd-pbkdf2;
152 mansection = 1;
153
8427685f 154 common = util/grub-mkpasswd-pbkdf2.c;
8c411768 155
d5c3b7ce 156 ldadd = libgrub.a;
a7363f53 157 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
158 cflags = '$(CFLAGS_GCRY)';
159 cppflags = '$(CPPFLAGS_GCRY)';
8c411768
BC
160};
161
162program = {
163 name = grub-macho2img;
164 mansection = 1;
8427685f 165 common = util/grub-macho2img.c;
911bd640 166 condition = COND_APPLE_CC;
8c411768
BC
167};
168
169program = {
170 name = grub-pe2elf;
171 mansection = 1;
8427685f 172 common = util/grub-pe2elf.c;
8c411768 173
d5c3b7ce 174 ldadd = libgrub.a;
a7363f53 175 ldadd = '$(LIBINTL)';
911bd640 176 condition = COND_GRUB_PE2ELF;
8c411768
BC
177};
178
179program = {
180 name = grub-fstest;
181 mansection = 1;
905f7773 182 common_nodist = grub_fstest_init.c;
8427685f 183 common = util/grub-fstest.c;
b6a690ee
CW
184 common = grub-core/kern/emu/hostfs.c;
185 common = grub-core/disk/host.c;
8c411768 186
d5c3b7ce 187 ldadd = libgrub.a;
a7363f53 188 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
189};
190
191program = {
192 name = grub-mkfont;
193 mansection = 1;
8427685f
BC
194 common = util/grub-mkfont.c;
195 common = grub-core/unidata.c;
8c411768 196
8c411768 197 cflags = '$(freetype_cflags)';
2d465fb0
BC
198
199 ldadd = libgrub.a;
a7363f53
BC
200 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
201 ldadd = '$(freetype_libs)';
911bd640 202 condition = COND_GRUB_MKFONT;
8c411768
BC
203};
204
205program = {
206 name = grub-mkdevicemap;
207 installdir = sbin;
208 mansection = 8;
5815f2c1
BC
209
210 common = util/grub-mkdevicemap.c;
211 common = util/deviceiter.c;
8427685f 212 nosparc64 = util/devicemap.c;
8c411768 213
8c411768
BC
214 sparc64_ieee1275 = util/ieee1275/ofpath.c;
215 sparc64_ieee1275 = util/ieee1275/devicemap.c;
216
d5c3b7ce 217 ldadd = libgrub.a;
a7363f53 218 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
8c411768
BC
219};
220
221program = {
222 name = grub-probe;
223 installdir = sbin;
224 mansection = 8;
8427685f 225 common = util/grub-probe.c;
8c411768 226
d5c3b7ce 227 ldadd = libgrub.a;
a7363f53 228 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
8c411768
BC
229};
230
231program = {
232 name = grub-setup;
233 installdir = sbin;
234 mansection = 8;
235 i386_pc = util/i386/pc/grub-setup.c;
236 i386_pc = util/raid.c;
237 i386_pc = util/lvm.c;
238
239 sparc64_ieee1275 = util/ieee1275/ofpath.c;
240 sparc64_ieee1275 = util/sparc64/ieee1275/grub-setup.c;
241 sparc64_ieee1275 = util/raid.c;
242 sparc64_ieee1275 = util/lvm.c;
243
d5c3b7ce 244 ldadd = libgrub.a;
a7363f53 245 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
911bd640
BC
246
247 enable = i386_pc;
248 enable = sparc64_ieee1275;
8c411768
BC
249};
250
251program = {
252 name = grub-ofpathname;
253 installdir = sbin;
8427685f
BC
254 ieee1275 = util/ieee1275/grub-ofpathname.c;
255 ieee1275 = util/ieee1275/ofpath.c;
8c411768 256
d5c3b7ce 257 ldadd = libgrub.a;
5bf84df4 258 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
911bd640 259 enable = sparc64_ieee1275;
8c411768
BC
260};
261
262data = {
8427685f 263 common = util/grub.d/README;
8c411768 264 installdir = grubconf;
8c411768
BC
265};
266
267script = {
268 name = '00_header';
8427685f 269 common = util/grub.d/00_header.in;
8c411768 270 installdir = grubconf;
8c411768
BC
271};
272
273script = {
274 name = '10_windows';
8427685f 275 common = util/grub.d/10_windows.in;
8c411768 276 installdir = grubconf;
f7711f5e 277 condition = COND_HOST_WINDOWS;
8c411768
BC
278};
279
280script = {
281 name = '10_hurd';
8427685f 282 common = util/grub.d/10_hurd.in;
8c411768 283 installdir = grubconf;
f7711f5e 284 condition = COND_HOST_HURD;
5815f2c1
BC
285};
286
287script = {
f51c98c4 288 name = '10_kfreebsd';
5815f2c1
BC
289 common = util/grub.d/10_kfreebsd.in;
290 installdir = grubconf;
f7711f5e 291 condition = COND_HOST_KFREEBSD;
5815f2c1
BC
292};
293
294script = {
f51c98c4 295 name = '10_netbsd';
5815f2c1
BC
296 common = util/grub.d/10_netbsd.in;
297 installdir = grubconf;
f7711f5e 298 condition = COND_HOST_NETBSD;
8c411768
BC
299};
300
301script = {
302 name = '10_linux';
8427685f 303 common = util/grub.d/10_linux.in;
8c411768 304 installdir = grubconf;
f7711f5e
BC
305 condition = COND_HOST_LINUX;
306};
307
308script = {
309 name = '20_linux_xen';
310 common = util/grub.d/20_linux_xen.in;
311 installdir = grubconf;
312 condition = COND_HOST_LINUX;
8c411768
BC
313};
314
315script = {
316 name = '30_os-prober';
8427685f 317 common = util/grub.d/30_os-prober.in;
8c411768 318 installdir = grubconf;
8c411768
BC
319};
320
321script = {
322 name = '40_custom';
8427685f 323 common = util/grub.d/40_custom.in;
8c411768 324 installdir = grubconf;
8c411768
BC
325};
326
297f0c2b
BC
327script = {
328 name = '41_custom';
8427685f 329 common = util/grub.d/41_custom.in;
297f0c2b 330 installdir = grubconf;
297f0c2b
BC
331};
332
8c411768
BC
333script = {
334 mansection = 1;
335 name = grub-mkrescue;
eefe8abd 336 x86 = util/grub-mkrescue.in;
8c411768 337 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
911bd640 338 enable = i386_pc;
f7711f5e 339 enable = x86_efi;
911bd640 340 enable = i386_qemu;
f5c1e402 341 enable = i386_multiboot;
911bd640
BC
342 enable = i386_coreboot;
343 enable = powerpc_ieee1275;
8c411768
BC
344};
345
346script = {
347 mansection = 8;
348 installdir = sbin;
349 name = grub-install;
8427685f
BC
350
351 mips = util/grub-install.in;
eefe8abd
VS
352 i386_pc = util/grub-install.in;
353 i386_qemu = util/grub-install.in;
354 i386_coreboot = util/grub-install.in;
355 i386_multiboot = util/grub-install.in;
356 sparc64_ieee1275 = util/grub-install.in;
8427685f 357
8c411768
BC
358 x86_efi = util/i386/efi/grub-install.in;
359 i386_ieee1275 = util/ieee1275/grub-install.in;
360 powerpc_ieee1275 = util/ieee1275/grub-install.in;
911bd640 361
eefe8abd 362 enable = noemu;
8c411768
BC
363};
364
365script = {
366 name = grub-mkconfig;
8427685f 367 common = util/grub-mkconfig.in;
8c411768
BC
368 mansection = 8;
369 installdir = sbin;
8c411768
BC
370};
371
372script = {
373 name = grub-set-default;
8427685f 374 common = util/grub-set-default.in;
8c411768
BC
375 mansection = 8;
376 installdir = sbin;
8c411768
BC
377};
378
379script = {
380 name = grub-reboot;
8427685f 381 common = util/grub-reboot.in;
8c411768
BC
382 mansection = 8;
383 installdir = sbin;
8c411768
BC
384};
385
386script = {
387 name = grub-mkconfig_lib;
8427685f 388 common = util/grub-mkconfig_lib.in;
f7711f5e 389 installdir = noinst;
8c411768
BC
390};
391
392script = {
393 name = update-grub_lib;
8427685f 394 common = util/update-grub_lib.in;
f7711f5e 395 installdir = noinst;
8c411768
BC
396};
397
911bd640 398script = {
8c411768 399 name = grub-shell;
8427685f 400 common = tests/util/grub-shell.in;
f7711f5e 401 installdir = noinst;
8c411768
BC
402};
403
911bd640 404script = {
8c411768 405 name = grub-shell-tester;
8427685f 406 common = tests/util/grub-shell-tester.in;
f7711f5e 407 installdir = noinst;
8c411768
BC
408};
409
911bd640
BC
410script = {
411 testcase;
8c411768 412 name = example_scripted_test;
8427685f 413 common = tests/example_scripted_test.in;
8c411768
BC
414};
415
911bd640
BC
416script = {
417 testcase;
8c411768 418 name = example_grub_script_test;
8427685f 419 common = tests/example_grub_script_test.in;
8c411768
BC
420};
421
911bd640
BC
422script = {
423 testcase;
8c411768 424 name = grub_script_echo1;
8427685f 425 common = tests/grub_script_echo1.in;
8c411768
BC
426};
427
911bd640
BC
428script = {
429 testcase;
8c411768 430 name = grub_script_echo_keywords;
8427685f 431 common = tests/grub_script_echo_keywords.in;
8c411768
BC
432};
433
911bd640
BC
434script = {
435 testcase;
8c411768 436 name = grub_script_vars1;
8427685f 437 common = tests/grub_script_vars1.in;
8c411768
BC
438};
439
911bd640
BC
440script = {
441 testcase;
8c411768 442 name = grub_script_for1;
8427685f 443 common = tests/grub_script_for1.in;
8c411768
BC
444};
445
911bd640
BC
446script = {
447 testcase;
8c411768 448 name = grub_script_while1;
8427685f 449 common = tests/grub_script_while1.in;
8c411768
BC
450};
451
911bd640
BC
452script = {
453 testcase;
8c411768 454 name = grub_script_if;
8427685f 455 common = tests/grub_script_if.in;
8c411768
BC
456};
457
911bd640
BC
458script = {
459 testcase;
8c411768 460 name = grub_script_blanklines;
8427685f 461 common = tests/grub_script_blanklines.in;
8c411768
BC
462};
463
911bd640
BC
464script = {
465 testcase;
8c411768 466 name = grub_script_final_semicolon;
8427685f 467 common = tests/grub_script_final_semicolon.in;
8c411768
BC
468};
469
911bd640
BC
470script = {
471 testcase;
8c411768 472 name = grub_script_dollar;
8427685f 473 common = tests/grub_script_dollar.in;
8c411768
BC
474};
475
911bd640
BC
476script = {
477 testcase;
8c411768 478 name = grub_script_comments;
8427685f 479 common = tests/grub_script_comments.in;
8c411768
BC
480};
481
16c7cb32
BC
482script = {
483 testcase;
484 name = grub_script_functions;
8427685f 485 common = tests/grub_script_functions.in;
16c7cb32
BC
486};
487
488script = {
489 testcase;
490 name = grub_script_break;
8427685f 491 common = tests/grub_script_break.in;
16c7cb32
BC
492};
493
494script = {
495 testcase;
496 name = grub_script_continue;
8427685f 497 common = tests/grub_script_continue.in;
16c7cb32
BC
498};
499
500script = {
501 testcase;
502 name = grub_script_shift;
8427685f 503 common = tests/grub_script_shift.in;
16c7cb32
BC
504};
505
928bad47
BC
506script = {
507 testcase;
508 name = grub_script_blockarg;
509 common = tests/grub_script_blockarg.in;
510};
511
47b4c2c3
BC
512script = {
513 testcase;
514 name = grub_script_setparams;
515 common = tests/grub_script_setparams.in;
516};
517
aa5cd41a
BC
518script = {
519 testcase;
520 name = grub_script_return;
521 common = tests/grub_script_return.in;
522};
523
ab8629d2
BC
524script = {
525 testcase;
526 name = grub_cmd_regexp;
527 common = tests/grub_cmd_regexp.in;
528};
529
8fdefb92
BC
530script = {
531 testcase;
532 name = grub_script_expansion;
533 common = tests/grub_script_expansion.in;
534};
535
1bce65c7
BC
536script = {
537 testcase;
538 name = grub_script_not;
539 common = tests/grub_script_not.in;
540};
541
56672f4a 542script = {
543 testcase;
544 name = partmap_test;
545 common = tests/partmap_test.in;
546};
547
911bd640
BC
548program = {
549 testcase;
8c411768 550 name = example_unit_test;
8427685f
BC
551 common = tests/example_unit_test.c;
552 common = tests/lib/unit_test.c;
553 common = grub-core/kern/list.c;
554 common = grub-core/kern/misc.c;
555 common = grub-core/tests/lib/test.c;
8c411768 556 cflags = -Wno-format;
297f0c2b 557 ldadd = libgrub.a;
a7363f53 558 ldadd = '$(LIBDEVMAPPER)';
8c411768 559};
fff175c7
VS
560
561program = {
562 name = grub-menulst2cfg;
563 mansection = 1;
564 common = util/grub-menulst2cfg.c;
565 common = grub-core/lib/legacy_parse.c;
566 ldadd = libgrub.a;
567 ldflags = '$(LIBDEVMAPPER)';
568};