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