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