]> git.proxmox.com Git - grub2.git/blob - Makefile.util.def
C part of Reed-Solomon
[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)';
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)';
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)';
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)';
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)';
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)';
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)';
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)';
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)';
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 common = util/reed_solomon.c;
248
249 sparc64_ieee1275 = util/ieee1275/ofpath.c;
250
251 ldadd = libgrub.a;
252 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
253 ldadd = grub-core/gnulib/libgnu.a;
254
255 enable = i386_pc;
256 enable = sparc64_ieee1275;
257 };
258
259 program = {
260 name = grub-ofpathname;
261 installdir = sbin;
262 ieee1275 = util/ieee1275/grub-ofpathname.c;
263 ieee1275 = util/ieee1275/ofpath.c;
264
265 ldadd = libgrub.a;
266 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
267 ldadd = grub-core/gnulib/libgnu.a;
268 enable = sparc64_ieee1275;
269 };
270
271 program = {
272 name = grub-mklayout;
273 mansection = 1;
274
275 common = util/grub-mklayout.c;
276
277 ldadd = libgrub.a;
278 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
279 ldadd = grub-core/gnulib/libgnu.a;
280 };
281
282 data = {
283 common = util/grub.d/README;
284 installdir = grubconf;
285 };
286
287 script = {
288 name = '00_header';
289 common = util/grub.d/00_header.in;
290 installdir = grubconf;
291 };
292
293 script = {
294 name = '10_windows';
295 common = util/grub.d/10_windows.in;
296 installdir = grubconf;
297 condition = COND_HOST_WINDOWS;
298 };
299
300 script = {
301 name = '10_hurd';
302 common = util/grub.d/10_hurd.in;
303 installdir = grubconf;
304 condition = COND_HOST_HURD;
305 };
306
307 script = {
308 name = '10_kfreebsd';
309 common = util/grub.d/10_kfreebsd.in;
310 installdir = grubconf;
311 condition = COND_HOST_KFREEBSD;
312 };
313
314 script = {
315 name = '10_netbsd';
316 common = util/grub.d/10_netbsd.in;
317 installdir = grubconf;
318 condition = COND_HOST_NETBSD;
319 };
320
321 script = {
322 name = '10_linux';
323 common = util/grub.d/10_linux.in;
324 installdir = grubconf;
325 condition = COND_HOST_LINUX;
326 };
327
328 script = {
329 name = '20_linux_xen';
330 common = util/grub.d/20_linux_xen.in;
331 installdir = grubconf;
332 condition = COND_HOST_LINUX;
333 };
334
335 script = {
336 name = '30_os-prober';
337 common = util/grub.d/30_os-prober.in;
338 installdir = grubconf;
339 };
340
341 script = {
342 name = '40_custom';
343 common = util/grub.d/40_custom.in;
344 installdir = grubconf;
345 };
346
347 script = {
348 name = '41_custom';
349 common = util/grub.d/41_custom.in;
350 installdir = grubconf;
351 };
352
353 script = {
354 mansection = 1;
355 name = grub-mkrescue;
356 x86 = util/grub-mkrescue.in;
357 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
358 enable = i386_pc;
359 enable = x86_efi;
360 enable = i386_qemu;
361 enable = i386_multiboot;
362 enable = i386_coreboot;
363 enable = powerpc_ieee1275;
364 };
365
366 script = {
367 mansection = 8;
368 installdir = sbin;
369 name = grub-install;
370
371 common = util/grub-install.in;
372 enable = noemu;
373 };
374
375 script = {
376 mansection = 8;
377 installdir = sbin;
378 name = grub-mknetdir;
379
380 common = util/grub-mknetdir.in;
381 };
382
383 script = {
384 name = grub-mkconfig;
385 common = util/grub-mkconfig.in;
386 mansection = 8;
387 installdir = sbin;
388 };
389
390 script = {
391 name = grub-set-default;
392 common = util/grub-set-default.in;
393 mansection = 8;
394 installdir = sbin;
395 };
396
397 script = {
398 name = grub-reboot;
399 common = util/grub-reboot.in;
400 mansection = 8;
401 installdir = sbin;
402 };
403
404 script = {
405 name = grub-mkconfig_lib;
406 common = util/grub-mkconfig_lib.in;
407 installdir = noinst;
408 };
409
410 script = {
411 name = update-grub_lib;
412 common = util/update-grub_lib.in;
413 installdir = noinst;
414 };
415
416 script = {
417 name = grub-kbdcomp;
418 common = util/grub-kbdcomp.in;
419 };
420
421 script = {
422 name = grub-shell;
423 common = tests/util/grub-shell.in;
424 installdir = noinst;
425 };
426
427 script = {
428 name = grub-shell-tester;
429 common = tests/util/grub-shell-tester.in;
430 installdir = noinst;
431 };
432
433 script = {
434 testcase;
435 name = example_scripted_test;
436 common = tests/example_scripted_test.in;
437 };
438
439 script = {
440 testcase;
441 name = example_grub_script_test;
442 common = tests/example_grub_script_test.in;
443 };
444
445 script = {
446 testcase;
447 name = grub_script_echo1;
448 common = tests/grub_script_echo1.in;
449 };
450
451 script = {
452 testcase;
453 name = grub_script_echo_keywords;
454 common = tests/grub_script_echo_keywords.in;
455 };
456
457 script = {
458 testcase;
459 name = grub_script_vars1;
460 common = tests/grub_script_vars1.in;
461 };
462
463 script = {
464 testcase;
465 name = grub_script_for1;
466 common = tests/grub_script_for1.in;
467 };
468
469 script = {
470 testcase;
471 name = grub_script_while1;
472 common = tests/grub_script_while1.in;
473 };
474
475 script = {
476 testcase;
477 name = grub_script_if;
478 common = tests/grub_script_if.in;
479 };
480
481 script = {
482 testcase;
483 name = grub_script_blanklines;
484 common = tests/grub_script_blanklines.in;
485 };
486
487 script = {
488 testcase;
489 name = grub_script_final_semicolon;
490 common = tests/grub_script_final_semicolon.in;
491 };
492
493 script = {
494 testcase;
495 name = grub_script_dollar;
496 common = tests/grub_script_dollar.in;
497 };
498
499 script = {
500 testcase;
501 name = grub_script_comments;
502 common = tests/grub_script_comments.in;
503 };
504
505 script = {
506 testcase;
507 name = grub_script_functions;
508 common = tests/grub_script_functions.in;
509 };
510
511 script = {
512 testcase;
513 name = grub_script_break;
514 common = tests/grub_script_break.in;
515 };
516
517 script = {
518 testcase;
519 name = grub_script_continue;
520 common = tests/grub_script_continue.in;
521 };
522
523 script = {
524 testcase;
525 name = grub_script_shift;
526 common = tests/grub_script_shift.in;
527 };
528
529 script = {
530 testcase;
531 name = grub_script_blockarg;
532 common = tests/grub_script_blockarg.in;
533 };
534
535 script = {
536 testcase;
537 name = grub_script_setparams;
538 common = tests/grub_script_setparams.in;
539 };
540
541 script = {
542 testcase;
543 name = grub_script_return;
544 common = tests/grub_script_return.in;
545 };
546
547 script = {
548 testcase;
549 name = grub_cmd_regexp;
550 common = tests/grub_cmd_regexp.in;
551 };
552
553 script = {
554 testcase;
555 name = grub_script_expansion;
556 common = tests/grub_script_expansion.in;
557 };
558
559 script = {
560 testcase;
561 name = grub_script_not;
562 common = tests/grub_script_not.in;
563 };
564
565 script = {
566 testcase;
567 name = partmap_test;
568 common = tests/partmap_test.in;
569 };
570
571 script = {
572 testcase;
573 name = grub_cmd_echo;
574 common = tests/grub_cmd_echo.in;
575 };
576
577 program = {
578 testcase;
579 name = example_unit_test;
580 common = tests/example_unit_test.c;
581 common = tests/lib/unit_test.c;
582 common = grub-core/kern/list.c;
583 common = grub-core/kern/misc.c;
584 common = grub-core/tests/lib/test.c;
585 cflags = -Wno-format;
586 ldadd = libgrub.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)';
599 ldadd = grub-core/gnulib/libgnu.a;
600 };