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