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