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