]> git.proxmox.com Git - grub2.git/blame - Makefile.util.def
* tests/partmap_test.in: New test for partitions.
[grub2.git] / Makefile.util.def
CommitLineData
8c411768
BC
1AutoGen definitions Makefile.tpl;
2
3library = {
d5c3b7ce 4 name = libgrub.a;
8c411768
BC
5 cflags = '$(CFLAGS_GCRY)';
6 cppflags = '$(CPPFLAGS_GCRY)';
7
8427685f
BC
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;
4dfbc574 46 common = grub-core/fs/btrfs.c;
8427685f
BC
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;
b4a0c915 56 common = grub-core/fs/minix2.c;
8427685f
BC
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;
ad717fae 93 common = grub-core/partmap/sunpc.c;
8427685f
BC
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;
8c411768
BC
99};
100
101program = {
102 name = grub-bin2h;
8427685f 103 common = util/bin2h.c;
d5c3b7ce 104 ldadd = libgrub.a;
a7363f53 105 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768 106 mansection = 1;
8c411768
BC
107};
108
109program = {
110 name = grub-mkimage;
111 mansection = 1;
112
8427685f
BC
113 common = util/grub-mkimage.c;
114 common = util/resolve.c;
a60f6ee1 115 extra_dist = util/grub-mkimagexx.c;
8c411768 116
d5c3b7ce 117 ldadd = libgrub.a;
a7363f53 118 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
d270972a 119 cppflags = '-DGRUB_PKGLIBROOTDIR=\"$(pkglibrootdir)\"';
8c411768
BC
120};
121
122program = {
123 name = grub-mkrelpath;
124 mansection = 1;
125
8427685f 126 common = util/grub-mkrelpath.c;
8c411768 127
d5c3b7ce 128 ldadd = libgrub.a;
a7363f53 129 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
130};
131
132program = {
133 name = grub-script-check;
134 mansection = 1;
135
8427685f 136 common = util/grub-script-check.c;
8c411768 137
d5c3b7ce 138 ldadd = libgrub.a;
a7363f53 139 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
140};
141
142program = {
143 name = grub-editenv;
144 mansection = 1;
145
8427685f 146 common = util/grub-editenv.c;
8c411768 147
d5c3b7ce 148 ldadd = libgrub.a;
a7363f53 149 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
150};
151
152program = {
153 name = grub-mkpasswd-pbkdf2;
154 mansection = 1;
155
8427685f 156 common = util/grub-mkpasswd-pbkdf2.c;
8c411768 157
d5c3b7ce 158 ldadd = libgrub.a;
a7363f53 159 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
160 cflags = '$(CFLAGS_GCRY)';
161 cppflags = '$(CPPFLAGS_GCRY)';
8c411768
BC
162};
163
164program = {
165 name = grub-macho2img;
166 mansection = 1;
8427685f 167 common = util/grub-macho2img.c;
911bd640 168 condition = COND_APPLE_CC;
8c411768
BC
169};
170
171program = {
172 name = grub-pe2elf;
173 mansection = 1;
8427685f 174 common = util/grub-pe2elf.c;
8c411768 175
d5c3b7ce 176 ldadd = libgrub.a;
a7363f53 177 ldadd = '$(LIBINTL)';
911bd640 178 condition = COND_GRUB_PE2ELF;
8c411768
BC
179};
180
181program = {
182 name = grub-fstest;
183 mansection = 1;
8427685f 184 common = util/grub-fstest.c;
8c411768 185
d5c3b7ce 186 ldadd = libgrub.a;
a7363f53 187 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
8c411768
BC
188};
189
190program = {
191 name = grub-mkfont;
192 mansection = 1;
8427685f
BC
193 common = util/grub-mkfont.c;
194 common = grub-core/unidata.c;
8c411768 195
8c411768 196 cflags = '$(freetype_cflags)';
2d465fb0
BC
197
198 ldadd = libgrub.a;
a7363f53
BC
199 ldadd = '$(LIBINTL) $(LIBDEVMAPPER)';
200 ldadd = '$(freetype_libs)';
911bd640 201 condition = COND_GRUB_MKFONT;
8c411768
BC
202};
203
204program = {
205 name = grub-mkdevicemap;
206 installdir = sbin;
207 mansection = 8;
5815f2c1
BC
208
209 common = util/grub-mkdevicemap.c;
210 common = util/deviceiter.c;
8427685f 211 nosparc64 = util/devicemap.c;
8c411768 212
8c411768
BC
213 sparc64_ieee1275 = util/ieee1275/ofpath.c;
214 sparc64_ieee1275 = util/ieee1275/devicemap.c;
215
d5c3b7ce 216 ldadd = libgrub.a;
a7363f53 217 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
8c411768
BC
218};
219
220program = {
221 name = grub-probe;
222 installdir = sbin;
223 mansection = 8;
8427685f 224 common = util/grub-probe.c;
8c411768 225
d5c3b7ce 226 ldadd = libgrub.a;
a7363f53 227 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
8c411768
BC
228};
229
230program = {
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
d5c3b7ce 243 ldadd = libgrub.a;
a7363f53 244 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
911bd640
BC
245
246 enable = i386_pc;
247 enable = sparc64_ieee1275;
8c411768
BC
248};
249
250program = {
251 name = grub-ofpathname;
252 installdir = sbin;
8427685f
BC
253 ieee1275 = util/ieee1275/grub-ofpathname.c;
254 ieee1275 = util/ieee1275/ofpath.c;
8c411768 255
d5c3b7ce 256 ldadd = libgrub.a;
5bf84df4 257 ldadd = '$(LIBINTL) $(LIBDEVMAPPER) $(LIBUTIL)';
911bd640 258 enable = sparc64_ieee1275;
8c411768
BC
259};
260
261data = {
8427685f 262 common = util/grub.d/README;
8c411768 263 installdir = grubconf;
8c411768
BC
264};
265
266script = {
267 name = '00_header';
8427685f 268 common = util/grub.d/00_header.in;
8c411768 269 installdir = grubconf;
8c411768
BC
270};
271
272script = {
273 name = '10_windows';
8427685f 274 common = util/grub.d/10_windows.in;
8c411768 275 installdir = grubconf;
f7711f5e 276 condition = COND_HOST_WINDOWS;
8c411768
BC
277};
278
279script = {
280 name = '10_hurd';
8427685f 281 common = util/grub.d/10_hurd.in;
8c411768 282 installdir = grubconf;
f7711f5e 283 condition = COND_HOST_HURD;
5815f2c1
BC
284};
285
286script = {
f51c98c4 287 name = '10_kfreebsd';
5815f2c1
BC
288 common = util/grub.d/10_kfreebsd.in;
289 installdir = grubconf;
f7711f5e 290 condition = COND_HOST_KFREEBSD;
5815f2c1
BC
291};
292
293script = {
f51c98c4 294 name = '10_netbsd';
5815f2c1
BC
295 common = util/grub.d/10_netbsd.in;
296 installdir = grubconf;
f7711f5e 297 condition = COND_HOST_NETBSD;
8c411768
BC
298};
299
300script = {
301 name = '10_linux';
8427685f 302 common = util/grub.d/10_linux.in;
8c411768 303 installdir = grubconf;
f7711f5e
BC
304 condition = COND_HOST_LINUX;
305};
306
307script = {
308 name = '20_linux_xen';
309 common = util/grub.d/20_linux_xen.in;
310 installdir = grubconf;
311 condition = COND_HOST_LINUX;
8c411768
BC
312};
313
314script = {
315 name = '30_os-prober';
8427685f 316 common = util/grub.d/30_os-prober.in;
8c411768 317 installdir = grubconf;
8c411768
BC
318};
319
320script = {
321 name = '40_custom';
8427685f 322 common = util/grub.d/40_custom.in;
8c411768 323 installdir = grubconf;
8c411768
BC
324};
325
297f0c2b
BC
326script = {
327 name = '41_custom';
8427685f 328 common = util/grub.d/41_custom.in;
297f0c2b 329 installdir = grubconf;
297f0c2b
BC
330};
331
8c411768
BC
332script = {
333 mansection = 1;
334 name = grub-mkrescue;
eefe8abd 335 x86 = util/grub-mkrescue.in;
8c411768 336 powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in;
911bd640 337 enable = i386_pc;
f7711f5e 338 enable = x86_efi;
911bd640 339 enable = i386_qemu;
f5c1e402 340 enable = i386_multiboot;
911bd640
BC
341 enable = i386_coreboot;
342 enable = powerpc_ieee1275;
8c411768
BC
343};
344
345script = {
346 mansection = 8;
347 installdir = sbin;
348 name = grub-install;
8427685f
BC
349
350 mips = util/grub-install.in;
eefe8abd
VS
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;
8427685f 356
8c411768
BC
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;
911bd640 360
eefe8abd 361 enable = noemu;
8c411768
BC
362};
363
364script = {
365 name = grub-mkconfig;
8427685f 366 common = util/grub-mkconfig.in;
8c411768
BC
367 mansection = 8;
368 installdir = sbin;
8c411768
BC
369};
370
371script = {
372 name = grub-set-default;
8427685f 373 common = util/grub-set-default.in;
8c411768
BC
374 mansection = 8;
375 installdir = sbin;
8c411768
BC
376};
377
378script = {
379 name = grub-reboot;
8427685f 380 common = util/grub-reboot.in;
8c411768
BC
381 mansection = 8;
382 installdir = sbin;
8c411768
BC
383};
384
385script = {
386 name = grub-mkconfig_lib;
8427685f 387 common = util/grub-mkconfig_lib.in;
f7711f5e 388 installdir = noinst;
8c411768
BC
389};
390
391script = {
392 name = update-grub_lib;
8427685f 393 common = util/update-grub_lib.in;
f7711f5e 394 installdir = noinst;
8c411768
BC
395};
396
911bd640 397script = {
8c411768 398 name = grub-shell;
8427685f 399 common = tests/util/grub-shell.in;
f7711f5e 400 installdir = noinst;
8c411768
BC
401};
402
911bd640 403script = {
8c411768 404 name = grub-shell-tester;
8427685f 405 common = tests/util/grub-shell-tester.in;
f7711f5e 406 installdir = noinst;
8c411768
BC
407};
408
911bd640
BC
409script = {
410 testcase;
8c411768 411 name = example_scripted_test;
8427685f 412 common = tests/example_scripted_test.in;
8c411768
BC
413};
414
911bd640
BC
415script = {
416 testcase;
8c411768 417 name = example_grub_script_test;
8427685f 418 common = tests/example_grub_script_test.in;
8c411768
BC
419};
420
911bd640
BC
421script = {
422 testcase;
8c411768 423 name = grub_script_echo1;
8427685f 424 common = tests/grub_script_echo1.in;
8c411768
BC
425};
426
911bd640
BC
427script = {
428 testcase;
8c411768 429 name = grub_script_echo_keywords;
8427685f 430 common = tests/grub_script_echo_keywords.in;
8c411768
BC
431};
432
911bd640
BC
433script = {
434 testcase;
8c411768 435 name = grub_script_vars1;
8427685f 436 common = tests/grub_script_vars1.in;
8c411768
BC
437};
438
911bd640
BC
439script = {
440 testcase;
8c411768 441 name = grub_script_for1;
8427685f 442 common = tests/grub_script_for1.in;
8c411768
BC
443};
444
911bd640
BC
445script = {
446 testcase;
8c411768 447 name = grub_script_while1;
8427685f 448 common = tests/grub_script_while1.in;
8c411768
BC
449};
450
911bd640
BC
451script = {
452 testcase;
8c411768 453 name = grub_script_if;
8427685f 454 common = tests/grub_script_if.in;
8c411768
BC
455};
456
911bd640
BC
457script = {
458 testcase;
8c411768 459 name = grub_script_blanklines;
8427685f 460 common = tests/grub_script_blanklines.in;
8c411768
BC
461};
462
911bd640
BC
463script = {
464 testcase;
8c411768 465 name = grub_script_final_semicolon;
8427685f 466 common = tests/grub_script_final_semicolon.in;
8c411768
BC
467};
468
911bd640
BC
469script = {
470 testcase;
8c411768 471 name = grub_script_dollar;
8427685f 472 common = tests/grub_script_dollar.in;
8c411768
BC
473};
474
911bd640
BC
475script = {
476 testcase;
8c411768 477 name = grub_script_comments;
8427685f 478 common = tests/grub_script_comments.in;
8c411768
BC
479};
480
16c7cb32
BC
481script = {
482 testcase;
483 name = grub_script_functions;
8427685f 484 common = tests/grub_script_functions.in;
16c7cb32
BC
485};
486
487script = {
488 testcase;
489 name = grub_script_break;
8427685f 490 common = tests/grub_script_break.in;
16c7cb32
BC
491};
492
493script = {
494 testcase;
495 name = grub_script_continue;
8427685f 496 common = tests/grub_script_continue.in;
16c7cb32
BC
497};
498
499script = {
500 testcase;
501 name = grub_script_shift;
8427685f 502 common = tests/grub_script_shift.in;
16c7cb32
BC
503};
504
928bad47
BC
505script = {
506 testcase;
507 name = grub_script_blockarg;
508 common = tests/grub_script_blockarg.in;
509};
510
47b4c2c3
BC
511script = {
512 testcase;
513 name = grub_script_setparams;
514 common = tests/grub_script_setparams.in;
515};
516
aa5cd41a
BC
517script = {
518 testcase;
519 name = grub_script_return;
520 common = tests/grub_script_return.in;
521};
522
ab8629d2
BC
523script = {
524 testcase;
525 name = grub_cmd_regexp;
526 common = tests/grub_cmd_regexp.in;
527};
528
8fdefb92
BC
529script = {
530 testcase;
531 name = grub_script_expansion;
532 common = tests/grub_script_expansion.in;
533};
534
1bce65c7
BC
535script = {
536 testcase;
537 name = grub_script_not;
538 common = tests/grub_script_not.in;
539};
540
56672f4a 541script = {
542 testcase;
543 name = partmap_test;
544 common = tests/partmap_test.in;
545};
546
911bd640
BC
547program = {
548 testcase;
8c411768 549 name = example_unit_test;
8427685f
BC
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;
8c411768 555 cflags = -Wno-format;
297f0c2b 556 ldadd = libgrub.a;
a7363f53 557 ldadd = '$(LIBDEVMAPPER)';
8c411768 558};