]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
NetBSD build fix for getline function conflict from gnulib.
[grub2.git] / Makefile.util.def
1 AutoGen definitions Makefile.tpl;
2
3 library = {
4 name = libgrubkern.a;
5 cflags = '$(CFLAGS_GNULIB)';
6 cppflags = '$(CPPFLAGS_GNULIB)';
7
8 common = util/misc.c;
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;
16 common = grub-core/kern/env.c;
17 common = grub-core/kern/err.c;
18 common = grub-core/kern/file.c;
19 common = grub-core/kern/fs.c;
20 common = grub-core/kern/list.c;
21 common = grub-core/kern/misc.c;
22 common = grub-core/kern/partition.c;
23 };
24
25 library = {
26 name = libgrubmods.a;
27 cflags = '$(CFLAGS_GCRY)';
28 cppflags = '$(CPPFLAGS_GCRY)';
29
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
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;
40 common = grub-core/disk/loopback.c;
41 common = grub-core/disk/lvm.c;
42 common = grub-core/disk/mdraid_linux.c;
43 common = grub-core/disk/mdraid1x_linux.c;
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;
52 common = grub-core/fs/btrfs.c;
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;
62 common = grub-core/fs/minix2.c;
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;
73 common = grub-core/lib/arg.c;
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;
78 common = grub-core/lib/libgcrypt-grub/cipher/crc.c;
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;
90 common = grub-core/partmap/sunpc.c;
91 common = grub-core/partmap/bsdlabel.c;
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;
97 };
98
99 program = {
100 name = grub-bin2h;
101 common = util/bin2h.c;
102 ldadd = libgrubmods.a;
103 ldadd = libgrubkern.a;
104 ldadd = grub-core/gnulib/libgnu.a;
105 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
106 mansection = 1;
107 };
108
109 program = {
110 name = grub-mkimage;
111 mansection = 1;
112
113 common = util/grub-mkimage.c;
114 common = util/resolve.c;
115 extra_dist = util/grub-mkimagexx.c;
116
117 ldadd = libgrubmods.a;
118 ldadd = libgrubkern.a;
119 ldadd = grub-core/gnulib/libgnu.a;
120 ldadd = '$(LIBLZMA)';
121 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
122 cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
123 };
124
125 program = {
126 name = grub-mkrelpath;
127 mansection = 1;
128
129 common = util/grub-mkrelpath.c;
130
131 ldadd = libgrubmods.a;
132 ldadd = libgrubkern.a;
133 ldadd = grub-core/gnulib/libgnu.a;
134 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
135 };
136
137 program = {
138 name = grub-script-check;
139 mansection = 1;
140
141 common = util/grub-script-check.c;
142
143 ldadd = libgrubmods.a;
144 ldadd = libgrubkern.a;
145 ldadd = grub-core/gnulib/libgnu.a;
146 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
147 };
148
149 program = {
150 name = grub-editenv;
151 mansection = 1;
152
153 common = util/grub-editenv.c;
154
155 ldadd = libgrubmods.a;
156 ldadd = libgrubkern.a;
157 ldadd = grub-core/gnulib/libgnu.a;
158 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
159 };
160
161 program = {
162 name = grub-mkpasswd-pbkdf2;
163 mansection = 1;
164
165 common = util/grub-mkpasswd-pbkdf2.c;
166
167 ldadd = libgrubmods.a;
168 ldadd = libgrubkern.a;
169 ldadd = grub-core/gnulib/libgnu.a;
170 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
171 cflags = '$(CFLAGS_GCRY)';
172 cppflags = '$(CPPFLAGS_GCRY)';
173 };
174
175 program = {
176 name = grub-macho2img;
177 mansection = 1;
178 common = util/grub-macho2img.c;
179 condition = COND_APPLE_CC;
180 };
181
182 program = {
183 name = grub-pe2elf;
184 mansection = 1;
185 common = util/grub-pe2elf.c;
186
187 ldadd = libgrubmods.a;
188 ldadd = libgrubkern.a;
189 ldadd = grub-core/gnulib/libgnu.a;
190 ldadd = '$(LIBINTL)';
191 condition = COND_GRUB_PE2ELF;
192 };
193
194 program = {
195 name = grub-fstest;
196 mansection = 1;
197 common_nodist = grub_fstest_init.c;
198 common = util/grub-fstest.c;
199 common = grub-core/kern/emu/hostfs.c;
200 common = grub-core/disk/host.c;
201
202 cflags = '$(CFLAGS_GCRY)';
203 cppflags = '$(CPPFLAGS_GCRY)';
204
205 ldadd = libgrubmods.a;
206 ldadd = libgrubkern.a;
207 ldadd = grub-core/gnulib/libgnu.a;
208 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
209 };
210
211 program = {
212 name = grub-mkfont;
213 mansection = 1;
214 common = util/grub-mkfont.c;
215 common = grub-core/unidata.c;
216
217 cflags = '$(freetype_cflags)';
218
219 ldadd = libgrubmods.a;
220 ldadd = libgrubkern.a;
221 ldadd = grub-core/gnulib/libgnu.a;
222 ldadd = '$(freetype_libs)';
223 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
224 condition = COND_GRUB_MKFONT;
225 };
226
227 program = {
228 name = grub-mkdevicemap;
229 installdir = sbin;
230 mansection = 8;
231
232 common = util/grub-mkdevicemap.c;
233 common = util/deviceiter.c;
234 nosparc64 = util/devicemap.c;
235
236 sparc64_ieee1275 = util/ieee1275/ofpath.c;
237 sparc64_ieee1275 = util/ieee1275/devicemap.c;
238
239 ldadd = libgrubmods.a;
240 ldadd = libgrubkern.a;
241 ldadd = grub-core/gnulib/libgnu.a;
242 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
243 };
244
245 program = {
246 name = grub-probe;
247 installdir = sbin;
248 mansection = 8;
249 common = util/grub-probe.c;
250
251 ldadd = libgrubmods.a;
252 ldadd = libgrubkern.a;
253 ldadd = grub-core/gnulib/libgnu.a;
254 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
255 };
256
257 program = {
258 name = grub-setup;
259 installdir = sbin;
260 mansection = 8;
261 common = util/grub-setup.c;
262 common = util/raid.c;
263 common = util/lvm.c;
264 common = grub-core/lib/reed_solomon.c;
265
266 sparc64_ieee1275 = util/ieee1275/ofpath.c;
267
268 ldadd = libgrubmods.a;
269 ldadd = libgrubkern.a;
270 ldadd = grub-core/gnulib/libgnu.a;
271 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR)';
272
273 enable = i386_pc;
274 enable = sparc64_ieee1275;
275 };
276
277 program = {
278 name = grub-ofpathname;
279 installdir = sbin;
280 ieee1275 = util/ieee1275/grub-ofpathname.c;
281 ieee1275 = util/ieee1275/ofpath.c;
282
283 ldadd = libgrubmods.a;
284 ldadd = libgrubkern.a;
285 ldadd = grub-core/gnulib/libgnu.a;
286 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
287
288 enable = sparc64_ieee1275;
289 };
290
291 program = {
292 name = grub-mklayout;
293 mansection = 1;
294
295 common = util/grub-mklayout.c;
296
297 ldadd = libgrubmods.a;
298 ldadd = libgrubkern.a;
299 ldadd = grub-core/gnulib/libgnu.a;
300 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
301 };
302
303 data = {
304 common = util/grub.d/README;
305 installdir = grubconf;
306 };
307
308 script = {
309 name = '00_header';
310 common = util/grub.d/00_header.in;
311 installdir = grubconf;
312 };
313
314 script = {
315 name = '10_windows';
316 common = util/grub.d/10_windows.in;
317 installdir = grubconf;
318 condition = COND_HOST_WINDOWS;
319 };
320
321 script = {
322 name = '10_hurd';
323 common = util/grub.d/10_hurd.in;
324 installdir = grubconf;
325 condition = COND_HOST_HURD;
326 };
327
328 script = {
329 name = '10_kfreebsd';
330 common = util/grub.d/10_kfreebsd.in;
331 installdir = grubconf;
332 condition = COND_HOST_KFREEBSD;
333 };
334
335 script = {
336 name = '10_netbsd';
337 common = util/grub.d/10_netbsd.in;
338 installdir = grubconf;
339 condition = COND_HOST_NETBSD;
340 };
341
342 script = {
343 name = '10_linux';
344 common = util/grub.d/10_linux.in;
345 installdir = grubconf;
346 condition = COND_HOST_LINUX;
347 };
348
349 script = {
350 name = '20_linux_xen';
351 common = util/grub.d/20_linux_xen.in;
352 installdir = grubconf;
353 condition = COND_HOST_LINUX;
354 };
355
356 script = {
357 name = '30_os-prober';
358 common = util/grub.d/30_os-prober.in;
359 installdir = grubconf;
360 };
361
362 script = {
363 name = '40_custom';
364 common = util/grub.d/40_custom.in;
365 installdir = grubconf;
366 };
367
368 script = {
369 name = '41_custom';
370 common = util/grub.d/41_custom.in;
371 installdir = grubconf;
372 };
373
374 script = {
375 mansection = 1;
376 name = grub-mkrescue;
377 x86 = util/grub-mkrescue.in;
378 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
379 enable = i386_pc;
380 enable = x86_efi;
381 enable = i386_qemu;
382 enable = i386_multiboot;
383 enable = i386_coreboot;
384 enable = powerpc_ieee1275;
385 };
386
387 script = {
388 mansection = 8;
389 installdir = sbin;
390 name = grub-install;
391
392 common = util/grub-install.in;
393 enable = noemu;
394 };
395
396 script = {
397 mansection = 8;
398 installdir = sbin;
399 name = grub-mknetdir;
400
401 common = util/grub-mknetdir.in;
402 };
403
404 script = {
405 name = grub-mkconfig;
406 common = util/grub-mkconfig.in;
407 mansection = 8;
408 installdir = sbin;
409 };
410
411 script = {
412 name = grub-set-default;
413 common = util/grub-set-default.in;
414 mansection = 8;
415 installdir = sbin;
416 };
417
418 script = {
419 name = grub-reboot;
420 common = util/grub-reboot.in;
421 mansection = 8;
422 installdir = sbin;
423 };
424
425 script = {
426 name = grub-mkconfig_lib;
427 common = util/grub-mkconfig_lib.in;
428 installdir = noinst;
429 };
430
431 script = {
432 name = update-grub_lib;
433 common = util/update-grub_lib.in;
434 installdir = noinst;
435 };
436
437 script = {
438 name = grub-kbdcomp;
439 common = util/grub-kbdcomp.in;
440 };
441
442 script = {
443 name = grub-shell;
444 common = tests/util/grub-shell.in;
445 installdir = noinst;
446 };
447
448 script = {
449 name = grub-shell-tester;
450 common = tests/util/grub-shell-tester.in;
451 installdir = noinst;
452 };
453
454 script = {
455 testcase;
456 name = example_scripted_test;
457 common = tests/example_scripted_test.in;
458 };
459
460 script = {
461 testcase;
462 name = example_grub_script_test;
463 common = tests/example_grub_script_test.in;
464 };
465
466 script = {
467 testcase;
468 name = grub_script_echo1;
469 common = tests/grub_script_echo1.in;
470 };
471
472 script = {
473 testcase;
474 name = grub_script_echo_keywords;
475 common = tests/grub_script_echo_keywords.in;
476 };
477
478 script = {
479 testcase;
480 name = grub_script_vars1;
481 common = tests/grub_script_vars1.in;
482 };
483
484 script = {
485 testcase;
486 name = grub_script_for1;
487 common = tests/grub_script_for1.in;
488 };
489
490 script = {
491 testcase;
492 name = grub_script_while1;
493 common = tests/grub_script_while1.in;
494 };
495
496 script = {
497 testcase;
498 name = grub_script_if;
499 common = tests/grub_script_if.in;
500 };
501
502 script = {
503 testcase;
504 name = grub_script_blanklines;
505 common = tests/grub_script_blanklines.in;
506 };
507
508 script = {
509 testcase;
510 name = grub_script_final_semicolon;
511 common = tests/grub_script_final_semicolon.in;
512 };
513
514 script = {
515 testcase;
516 name = grub_script_dollar;
517 common = tests/grub_script_dollar.in;
518 };
519
520 script = {
521 testcase;
522 name = grub_script_comments;
523 common = tests/grub_script_comments.in;
524 };
525
526 script = {
527 testcase;
528 name = grub_script_functions;
529 common = tests/grub_script_functions.in;
530 };
531
532 script = {
533 testcase;
534 name = grub_script_break;
535 common = tests/grub_script_break.in;
536 };
537
538 script = {
539 testcase;
540 name = grub_script_continue;
541 common = tests/grub_script_continue.in;
542 };
543
544 script = {
545 testcase;
546 name = grub_script_shift;
547 common = tests/grub_script_shift.in;
548 };
549
550 script = {
551 testcase;
552 name = grub_script_blockarg;
553 common = tests/grub_script_blockarg.in;
554 };
555
556 script = {
557 testcase;
558 name = grub_script_setparams;
559 common = tests/grub_script_setparams.in;
560 };
561
562 script = {
563 testcase;
564 name = grub_script_return;
565 common = tests/grub_script_return.in;
566 };
567
568 script = {
569 testcase;
570 name = grub_cmd_regexp;
571 common = tests/grub_cmd_regexp.in;
572 };
573
574 script = {
575 testcase;
576 name = grub_script_expansion;
577 common = tests/grub_script_expansion.in;
578 };
579
580 script = {
581 testcase;
582 name = grub_script_not;
583 common = tests/grub_script_not.in;
584 };
585
586 script = {
587 testcase;
588 name = partmap_test;
589 common = tests/partmap_test.in;
590 };
591
592 script = {
593 testcase;
594 name = grub_cmd_echo;
595 common = tests/grub_cmd_echo.in;
596 };
597
598 program = {
599 testcase;
600 name = example_unit_test;
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;
606 cflags = -Wno-format;
607 ldadd = libgrubmods.a;
608 ldadd = libgrubkern.a;
609 ldadd = grub-core/gnulib/libgnu.a;
610 ldadd = '$(LIBDEVMAPPER)';
611 };
612
613 program = {
614 name = grub-menulst2cfg;
615 mansection = 1;
616 common = util/grub-menulst2cfg.c;
617 common = grub-core/lib/legacy_parse.c;
618 common = grub-core/lib/i386/pc/vesa_modes_table.c;
619
620 ldadd = libgrubmods.a;
621 ldadd = libgrubkern.a;
622 ldadd = grub-core/gnulib/libgnu.a;
623 ldflags = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR)';
624 };