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