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