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