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