]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
merge mainline into ehci
[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 = util/getroot.c;
13 common = util/raid.c;
14 common = grub-core/kern/emu/hostdisk.c;
15 common = grub-core/kern/emu/misc.c;
16 common = grub-core/kern/emu/mm.c;
17 common = grub-core/kern/env.c;
18 common = grub-core/kern/err.c;
19 common = grub-core/kern/file.c;
20 common = grub-core/kern/fs.c;
21 common = grub-core/kern/list.c;
22 common = grub-core/kern/misc.c;
23 common = grub-core/kern/partition.c;
24 common = grub-core/lib/crypto.c;
25 common = grub-core/disk/luks.c;
26 common = grub-core/disk/geli.c;
27 common = grub-core/disk/cryptodisk.c;
28 common = grub-core/disk/AFSplitter.c;
29 common = grub-core/lib/pbkdf2.c;
30 common = grub-core/commands/extcmd.c;
31 common = grub-core/lib/arg.c;
32 common = grub-core/disk/ldm.c;
33 common = grub-core/disk/diskfilter.c;
34 common = grub-core/partmap/gpt.c;
35 };
36
37 library = {
38 name = libgrubmods.a;
39 cflags = '$(CFLAGS_POSIX) -Wno-undef';
40 cppflags = '-I$(top_srcdir)/grub-core/lib/minilzo -I$(srcdir)/grub-core/lib/xzembed -DMINILZO_HAVE_CONFIG_H';
41
42 common_nodist = grub_script.tab.c;
43 common_nodist = grub_script.yy.c;
44 common_nodist = libgrub_a_init.c;
45 common_nodist = grub_script.yy.h;
46 common_nodist = grub_script.tab.h;
47
48 common = grub-core/commands/blocklist.c;
49 common = grub-core/commands/xnu_uuid.c;
50 common = grub-core/commands/testload.c;
51 common = grub-core/commands/ls.c;
52 common = grub-core/disk/dmraid_nvidia.c;
53 common = grub-core/disk/loopback.c;
54 common = grub-core/disk/lvm.c;
55 common = grub-core/disk/mdraid_linux.c;
56 common = grub-core/disk/mdraid1x_linux.c;
57 common = grub-core/disk/raid5_recover.c;
58 common = grub-core/disk/raid6_recover.c;
59 common = grub-core/fs/affs.c;
60 common = grub-core/fs/afs.c;
61 common = grub-core/fs/bfs.c;
62 common = grub-core/fs/btrfs.c;
63 common = grub-core/fs/cpio.c;
64 common = grub-core/fs/cpio_be.c;
65 common = grub-core/fs/odc.c;
66 common = grub-core/fs/newc.c;
67 common = grub-core/fs/ext2.c;
68 common = grub-core/fs/fat.c;
69 common = grub-core/fs/exfat.c;
70 common = grub-core/fs/fshelp.c;
71 common = grub-core/fs/hfs.c;
72 common = grub-core/fs/hfsplus.c;
73 common = grub-core/fs/iso9660.c;
74 common = grub-core/fs/jfs.c;
75 common = grub-core/fs/minix.c;
76 common = grub-core/fs/minix2.c;
77 common = grub-core/fs/minix3.c;
78 common = grub-core/fs/nilfs2.c;
79 common = grub-core/fs/ntfs.c;
80 common = grub-core/fs/ntfscomp.c;
81 common = grub-core/fs/reiserfs.c;
82 common = grub-core/fs/romfs.c;
83 common = grub-core/fs/sfs.c;
84 common = grub-core/fs/squash4.c;
85 common = grub-core/fs/tar.c;
86 common = grub-core/fs/udf.c;
87 common = grub-core/fs/ufs2.c;
88 common = grub-core/fs/ufs.c;
89 common = grub-core/fs/xfs.c;
90 common = grub-core/fs/zfs/zfscrypt.c;
91 common = grub-core/fs/zfs/zfs.c;
92 common = grub-core/fs/zfs/zfsinfo.c;
93 common = grub-core/fs/zfs/zfs_lzjb.c;
94 common = grub-core/fs/zfs/zfs_sha256.c;
95 common = grub-core/fs/zfs/zfs_fletcher.c;
96 common = grub-core/lib/envblk.c;
97 common = grub-core/lib/hexdump.c;
98 common = grub-core/lib/LzFind.c;
99 common = grub-core/lib/LzmaEnc.c;
100 common = grub-core/lib/crc.c;
101 common = grub-core/lib/adler32.c;
102 common = grub-core/lib/crc64.c;
103 common = grub-core/normal/datetime.c;
104 common = grub-core/normal/misc.c;
105 common = grub-core/partmap/acorn.c;
106 common = grub-core/partmap/amiga.c;
107 common = grub-core/partmap/apple.c;
108 common = grub-core/partmap/msdos.c;
109 common = grub-core/partmap/sun.c;
110 common = grub-core/partmap/plan.c;
111 common = grub-core/partmap/dvh.c;
112 common = grub-core/partmap/sunpc.c;
113 common = grub-core/partmap/bsdlabel.c;
114 common = grub-core/script/function.c;
115 common = grub-core/script/lexer.c;
116 common = grub-core/script/main.c;
117 common = grub-core/script/script.c;
118 common = grub-core/script/argv.c;
119 common = grub-core/io/gzio.c;
120 common = grub-core/io/lzopio.c;
121 common = grub-core/kern/ia64/dl_helper.c;
122 common = grub-core/lib/minilzo/minilzo.c;
123 common = grub-core/lib/xzembed/xz_dec_bcj.c;
124 common = grub-core/lib/xzembed/xz_dec_lzma2.c;
125 common = grub-core/lib/xzembed/xz_dec_stream.c;
126 };
127
128 program = {
129 name = grub-bin2h;
130 common = util/bin2h.c;
131 ldadd = libgrubmods.a;
132 ldadd = libgrubgcry.a;
133 ldadd = libgrubkern.a;
134 ldadd = grub-core/gnulib/libgnu.a;
135 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
136 installdir = noinst;
137 };
138
139 program = {
140 name = grub-mkimage;
141 mansection = 1;
142
143 common = util/grub-mkimage.c;
144 common = util/resolve.c;
145 extra_dist = util/grub-mkimagexx.c;
146
147 ldadd = libgrubmods.a;
148 ldadd = libgrubgcry.a;
149 ldadd = libgrubkern.a;
150 ldadd = grub-core/gnulib/libgnu.a;
151 ldadd = '$(LIBLZMA)';
152 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
153 cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
154 };
155
156 program = {
157 name = grub-mkrelpath;
158 mansection = 1;
159
160 common = util/grub-mkrelpath.c;
161
162 ldadd = libgrubmods.a;
163 ldadd = libgrubgcry.a;
164 ldadd = libgrubkern.a;
165 ldadd = grub-core/gnulib/libgnu.a;
166 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
167 };
168
169 program = {
170 name = grub-script-check;
171 mansection = 1;
172
173 common = util/grub-script-check.c;
174
175 ldadd = libgrubmods.a;
176 ldadd = libgrubgcry.a;
177 ldadd = libgrubkern.a;
178 ldadd = grub-core/gnulib/libgnu.a;
179 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
180 };
181
182 program = {
183 name = grub-editenv;
184 mansection = 1;
185
186 common = util/grub-editenv.c;
187
188 ldadd = libgrubmods.a;
189 ldadd = libgrubgcry.a;
190 ldadd = libgrubkern.a;
191 ldadd = grub-core/gnulib/libgnu.a;
192 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
193 };
194
195 program = {
196 name = grub-mkpasswd-pbkdf2;
197 mansection = 1;
198
199 common = util/grub-mkpasswd-pbkdf2.c;
200
201 ldadd = libgrubmods.a;
202 ldadd = libgrubgcry.a;
203 ldadd = libgrubkern.a;
204 ldadd = grub-core/gnulib/libgnu.a;
205 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
206 cflags = '$(CFLAGS_GCRY)';
207 cppflags = '$(CPPFLAGS_GCRY)';
208 };
209
210 program = {
211 name = grub-macho2img;
212 mansection = 1;
213 common = util/grub-macho2img.c;
214 condition = COND_APPLE_CC;
215 };
216
217 program = {
218 name = grub-pe2elf;
219 mansection = 1;
220 common = util/grub-pe2elf.c;
221
222 ldadd = libgrubmods.a;
223 ldadd = libgrubgcry.a;
224 ldadd = libgrubkern.a;
225 ldadd = grub-core/gnulib/libgnu.a;
226 ldadd = '$(LIBINTL)';
227 condition = COND_GRUB_PE2ELF;
228 };
229
230 program = {
231 name = grub-fstest;
232 mansection = 1;
233 common_nodist = grub_fstest_init.c;
234 common = util/grub-fstest.c;
235 common = grub-core/kern/emu/hostfs.c;
236 common = grub-core/disk/host.c;
237
238 cflags = '$(CFLAGS_GCRY)';
239 cppflags = '$(CPPFLAGS_GCRY)';
240
241 ldadd = libgrubmods.a;
242 ldadd = libgrubgcry.a;
243 ldadd = libgrubkern.a;
244 ldadd = grub-core/gnulib/libgnu.a;
245 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
246 };
247
248 program = {
249 name = grub-mount;
250 mansection = 1;
251 common_nodist = grub_fstest_init.c;
252 common = util/grub-mount.c;
253 common = grub-core/kern/emu/hostfs.c;
254 common = grub-core/disk/host.c;
255
256 ldadd = libgrubmods.a;
257 ldadd = libgrubgcry.a;
258 ldadd = libgrubkern.a;
259 ldadd = grub-core/gnulib/libgnu.a;
260 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) -lfuse';
261 condition = COND_GRUB_MOUNT;
262 };
263
264 program = {
265 name = grub-mkfont;
266 mansection = 1;
267 common = util/grub-mkfont.c;
268 common = grub-core/unidata.c;
269
270 cflags = '$(freetype_cflags)';
271
272 ldadd = libgrubmods.a;
273 ldadd = libgrubgcry.a;
274 ldadd = libgrubkern.a;
275 ldadd = grub-core/gnulib/libgnu.a;
276 ldadd = '$(freetype_libs)';
277 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
278 condition = COND_GRUB_MKFONT;
279 };
280
281 program = {
282 name = grub-mkdevicemap;
283 installdir = sbin;
284 mansection = 8;
285
286 common = util/grub-mkdevicemap.c;
287 common = util/deviceiter.c;
288 common = util/devicemap.c;
289
290 ldadd = libgrubmods.a;
291 ldadd = libgrubgcry.a;
292 ldadd = libgrubkern.a;
293 ldadd = grub-core/gnulib/libgnu.a;
294 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
295 };
296
297 program = {
298 name = grub-probe;
299 installdir = sbin;
300 mansection = 8;
301 common = util/grub-probe.c;
302 common = util/ieee1275/ofpath.c;
303
304 ldadd = libgrubmods.a;
305 ldadd = libgrubgcry.a;
306 ldadd = libgrubkern.a;
307 ldadd = grub-core/gnulib/libgnu.a;
308 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
309 };
310
311 program = {
312 name = grub-setup;
313 installdir = sbin;
314 mansection = 8;
315 common = util/grub-setup.c;
316 common = util/lvm.c;
317 common = grub-core/lib/reed_solomon.c;
318
319 sparc64_ieee1275 = util/ieee1275/ofpath.c;
320
321 ldadd = libgrubmods.a;
322 ldadd = libgrubkern.a;
323 ldadd = libgrubgcry.a;
324 ldadd = grub-core/gnulib/libgnu.a;
325 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
326
327 enable = i386_pc;
328 enable = sparc64_ieee1275;
329 };
330
331 program = {
332 name = grub-ofpathname;
333 installdir = sbin;
334 mansection = 8;
335 ieee1275 = util/ieee1275/grub-ofpathname.c;
336 ieee1275 = util/ieee1275/ofpath.c;
337
338 ldadd = libgrubmods.a;
339 ldadd = libgrubgcry.a;
340 ldadd = libgrubkern.a;
341 ldadd = grub-core/gnulib/libgnu.a;
342 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL) $(LIBGEOM)';
343
344 enable = sparc64_ieee1275;
345 };
346
347 program = {
348 name = grub-mklayout;
349 mansection = 1;
350
351 common = util/grub-mklayout.c;
352
353 ldadd = libgrubmods.a;
354 ldadd = libgrubgcry.a;
355 ldadd = libgrubkern.a;
356 ldadd = grub-core/gnulib/libgnu.a;
357 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
358 };
359
360 data = {
361 common = util/grub.d/README;
362 installdir = grubconf;
363 };
364
365 script = {
366 name = '00_header';
367 common = util/grub.d/00_header.in;
368 installdir = grubconf;
369 };
370
371 script = {
372 name = '10_windows';
373 common = util/grub.d/10_windows.in;
374 installdir = grubconf;
375 condition = COND_HOST_WINDOWS;
376 };
377
378 script = {
379 name = '10_hurd';
380 common = util/grub.d/10_hurd.in;
381 installdir = grubconf;
382 condition = COND_HOST_HURD;
383 };
384
385 script = {
386 name = '10_kfreebsd';
387 common = util/grub.d/10_kfreebsd.in;
388 installdir = grubconf;
389 condition = COND_HOST_KFREEBSD;
390 };
391
392 script = {
393 name = '10_illumos';
394 common = util/grub.d/10_illumos.in;
395 installdir = grubconf;
396 condition = COND_HOST_ILLUMOS;
397 };
398
399 script = {
400 name = '10_netbsd';
401 common = util/grub.d/10_netbsd.in;
402 installdir = grubconf;
403 condition = COND_HOST_NETBSD;
404 };
405
406 script = {
407 name = '10_linux';
408 common = util/grub.d/10_linux.in;
409 installdir = grubconf;
410 condition = COND_HOST_LINUX;
411 };
412
413 script = {
414 name = '20_linux_xen';
415 common = util/grub.d/20_linux_xen.in;
416 installdir = grubconf;
417 condition = COND_HOST_LINUX;
418 };
419
420 script = {
421 name = '30_os-prober';
422 common = util/grub.d/30_os-prober.in;
423 installdir = grubconf;
424 };
425
426 script = {
427 name = '40_custom';
428 common = util/grub.d/40_custom.in;
429 installdir = grubconf;
430 };
431
432 script = {
433 name = '41_custom';
434 common = util/grub.d/41_custom.in;
435 installdir = grubconf;
436 };
437
438 script = {
439 mansection = 1;
440 name = grub-mkrescue;
441 x86 = util/grub-mkrescue.in;
442 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
443 enable = i386_pc;
444 enable = i386_efi;
445 enable = x86_64_efi;
446 enable = i386_qemu;
447 enable = i386_multiboot;
448 enable = i386_coreboot;
449 enable = powerpc_ieee1275;
450 };
451
452 script = {
453 mansection = 1;
454 name = grub-mkstandalone;
455 common = util/grub-mkstandalone.in;
456 };
457
458 script = {
459 mansection = 8;
460 installdir = sbin;
461 name = grub-install;
462
463 common = util/grub-install.in;
464 enable = noemu;
465 };
466
467 script = {
468 mansection = 8;
469 installdir = sbin;
470 name = grub-mknetdir;
471
472 common = util/grub-mknetdir.in;
473 };
474
475 script = {
476 name = grub-mkconfig;
477 common = util/grub-mkconfig.in;
478 mansection = 8;
479 installdir = sbin;
480 };
481
482 script = {
483 name = grub-set-default;
484 common = util/grub-set-default.in;
485 mansection = 8;
486 installdir = sbin;
487 };
488
489 script = {
490 name = grub-reboot;
491 common = util/grub-reboot.in;
492 mansection = 8;
493 installdir = sbin;
494 };
495
496 script = {
497 name = grub-mkconfig_lib;
498 common = util/grub-mkconfig_lib.in;
499 installdir = noinst;
500 };
501
502 script = {
503 name = grub-kbdcomp;
504 common = util/grub-kbdcomp.in;
505 };
506
507 script = {
508 name = grub-shell;
509 common = tests/util/grub-shell.in;
510 installdir = noinst;
511 };
512
513 script = {
514 name = grub-shell-tester;
515 common = tests/util/grub-shell-tester.in;
516 installdir = noinst;
517 };
518
519 script = {
520 testcase;
521 name = example_scripted_test;
522 common = tests/example_scripted_test.in;
523 };
524
525 script = {
526 testcase;
527 name = example_grub_script_test;
528 common = tests/example_grub_script_test.in;
529 };
530
531 script = {
532 testcase;
533 name = grub_script_echo1;
534 common = tests/grub_script_echo1.in;
535 };
536
537 script = {
538 testcase;
539 name = grub_script_echo_keywords;
540 common = tests/grub_script_echo_keywords.in;
541 };
542
543 script = {
544 testcase;
545 name = grub_script_vars1;
546 common = tests/grub_script_vars1.in;
547 };
548
549 script = {
550 testcase;
551 name = grub_script_for1;
552 common = tests/grub_script_for1.in;
553 };
554
555 script = {
556 testcase;
557 name = grub_script_while1;
558 common = tests/grub_script_while1.in;
559 };
560
561 script = {
562 testcase;
563 name = grub_script_if;
564 common = tests/grub_script_if.in;
565 };
566
567 script = {
568 testcase;
569 name = grub_script_blanklines;
570 common = tests/grub_script_blanklines.in;
571 };
572
573 script = {
574 testcase;
575 name = grub_script_final_semicolon;
576 common = tests/grub_script_final_semicolon.in;
577 };
578
579 script = {
580 testcase;
581 name = grub_script_dollar;
582 common = tests/grub_script_dollar.in;
583 };
584
585 script = {
586 testcase;
587 name = grub_script_comments;
588 common = tests/grub_script_comments.in;
589 };
590
591 script = {
592 testcase;
593 name = grub_script_functions;
594 common = tests/grub_script_functions.in;
595 };
596
597 script = {
598 testcase;
599 name = grub_script_break;
600 common = tests/grub_script_break.in;
601 };
602
603 script = {
604 testcase;
605 name = grub_script_continue;
606 common = tests/grub_script_continue.in;
607 };
608
609 script = {
610 testcase;
611 name = grub_script_shift;
612 common = tests/grub_script_shift.in;
613 };
614
615 script = {
616 testcase;
617 name = grub_script_blockarg;
618 common = tests/grub_script_blockarg.in;
619 };
620
621 script = {
622 testcase;
623 name = grub_script_setparams;
624 common = tests/grub_script_setparams.in;
625 };
626
627 script = {
628 testcase;
629 name = grub_script_return;
630 common = tests/grub_script_return.in;
631 };
632
633 script = {
634 testcase;
635 name = grub_cmd_regexp;
636 common = tests/grub_cmd_regexp.in;
637 };
638
639 script = {
640 testcase;
641 name = grub_script_expansion;
642 common = tests/grub_script_expansion.in;
643 };
644
645 script = {
646 testcase;
647 name = grub_script_not;
648 common = tests/grub_script_not.in;
649 };
650
651 script = {
652 testcase;
653 name = partmap_test;
654 common = tests/partmap_test.in;
655 };
656
657 script = {
658 testcase;
659 name = grub_cmd_echo;
660 common = tests/grub_cmd_echo.in;
661 };
662
663 program = {
664 testcase;
665 name = example_unit_test;
666 common = tests/example_unit_test.c;
667 common = tests/lib/unit_test.c;
668 common = grub-core/kern/list.c;
669 common = grub-core/kern/misc.c;
670 common = grub-core/tests/lib/test.c;
671 cflags = -Wno-format;
672 ldadd = libgrubmods.a;
673 ldadd = libgrubgcry.a;
674 ldadd = libgrubkern.a;
675 ldadd = grub-core/gnulib/libgnu.a;
676 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
677 };
678
679 program = {
680 testcase;
681 name = printf_test;
682 common = tests/printf_unit_test.c;
683 common = tests/lib/unit_test.c;
684 common = grub-core/kern/list.c;
685 common = grub-core/kern/misc.c;
686 common = grub-core/tests/lib/test.c;
687 ldadd = libgrubmods.a;
688 ldadd = libgrubgcry.a;
689 ldadd = libgrubkern.a;
690 ldadd = grub-core/gnulib/libgnu.a;
691 ldadd = '$(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
692 };
693
694 program = {
695 name = grub-menulst2cfg;
696 mansection = 1;
697 common = util/grub-menulst2cfg.c;
698 common = grub-core/lib/legacy_parse.c;
699 common = grub-core/lib/i386/pc/vesa_modes_table.c;
700
701 ldadd = libgrubmods.a;
702 ldadd = libgrubgcry.a;
703 ldadd = libgrubkern.a;
704 ldadd = grub-core/gnulib/libgnu.a;
705 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBZFS) $(LIBNVPAIR) $(LIBGEOM)';
706 };