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