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