]>
Commit | Line | Data |
---|---|---|
8c411768 BC |
1 | AutoGen definitions Makefile.tpl; |
2 | ||
3 | library = { | |
4 | name = libutil.a; | |
5 | cflags = '$(CFLAGS_GCRY)'; | |
6 | cppflags = '$(CPPFLAGS_GCRY)'; | |
7 | ||
8 | nodist = grub_script.tab.c; | |
9 | nodist = grub_script.yy.c; | |
10 | nodist = libutil_a_init.c; | |
11 | ||
12 | source = grub-core/gnulib/error.c; | |
13 | source = grub-core/gnulib/fnmatch.c; | |
14 | source = grub-core/gnulib/getdelim.c; | |
15 | source = grub-core/gnulib/getline.c; | |
16 | source = grub-core/gnulib/getopt1.c; | |
17 | source = grub-core/gnulib/getopt.c; | |
18 | source = grub-core/gnulib/progname.c; | |
19 | ||
20 | source = util/misc.c; | |
21 | source = grub-core/kern/misc.c; | |
22 | source = grub-core/kern/emu/misc.c; | |
23 | source = grub-core/kern/emu/hostfs.c; | |
24 | source = grub-core/kern/emu/getroot.c; | |
25 | source = grub-core/kern/emu/hostdisk.c; | |
26 | ||
27 | source = grub-core/commands/blocklist.c; | |
28 | source = grub-core/commands/extcmd.c; | |
29 | source = grub-core/commands/ls.c; | |
30 | source = grub-core/disk/dmraid_nvidia.c; | |
31 | source = grub-core/disk/host.c; | |
32 | source = grub-core/disk/loopback.c; | |
33 | source = grub-core/disk/lvm.c; | |
34 | source = grub-core/disk/mdraid_linux.c; | |
35 | source = grub-core/disk/raid5_recover.c; | |
36 | source = grub-core/disk/raid6_recover.c; | |
37 | source = grub-core/disk/raid.c; | |
38 | source = grub-core/fs/affs.c; | |
39 | source = grub-core/fs/afs_be.c; | |
40 | source = grub-core/fs/afs.c; | |
41 | source = grub-core/fs/befs_be.c; | |
42 | source = grub-core/fs/befs.c; | |
43 | source = grub-core/fs/cpio.c; | |
44 | source = grub-core/fs/ext2.c; | |
45 | source = grub-core/fs/fat.c; | |
46 | source = grub-core/fs/fshelp.c; | |
47 | source = grub-core/fs/hfs.c; | |
48 | source = grub-core/fs/hfsplus.c; | |
49 | source = grub-core/fs/iso9660.c; | |
50 | source = grub-core/fs/jfs.c; | |
51 | source = grub-core/fs/minix.c; | |
52 | source = grub-core/fs/nilfs2.c; | |
53 | source = grub-core/fs/ntfs.c; | |
54 | source = grub-core/fs/ntfscomp.c; | |
55 | source = grub-core/fs/reiserfs.c; | |
56 | source = grub-core/fs/sfs.c; | |
57 | source = grub-core/fs/tar.c; | |
58 | source = grub-core/fs/udf.c; | |
59 | source = grub-core/fs/ufs2.c; | |
60 | source = grub-core/fs/ufs.c; | |
61 | source = grub-core/fs/xfs.c; | |
62 | source = grub-core/kern/command.c; | |
63 | source = grub-core/kern/device.c; | |
64 | source = grub-core/kern/disk.c; | |
65 | source = grub-core/kern/env.c; | |
66 | source = grub-core/kern/err.c; | |
67 | source = grub-core/kern/file.c; | |
68 | source = grub-core/kern/fs.c; | |
69 | source = grub-core/kern/handler.c; | |
70 | source = grub-core/kern/list.c; | |
71 | source = grub-core/kern/parser.c; | |
72 | source = grub-core/kern/partition.c; | |
73 | source = grub-core/lib/arg.c; | |
74 | source = grub-core/lib/crc.c; | |
75 | source = grub-core/lib/crypto.c; | |
76 | source = grub-core/lib/envblk.c; | |
77 | source = grub-core/lib/hexdump.c; | |
78 | source = grub-core/lib/libgcrypt-grub/cipher/sha512.c; | |
79 | source = grub-core/lib/LzFind.c; | |
80 | source = grub-core/lib/LzmaEnc.c; | |
81 | source = grub-core/lib/pbkdf2.c; | |
82 | source = grub-core/normal/datetime.c; | |
83 | source = grub-core/normal/misc.c; | |
84 | source = grub-core/partmap/acorn.c; | |
85 | source = grub-core/partmap/amiga.c; | |
86 | source = grub-core/partmap/apple.c; | |
87 | source = grub-core/partmap/gpt.c; | |
88 | source = grub-core/partmap/msdos.c; | |
89 | source = grub-core/partmap/sun.c; | |
90 | source = grub-core/script/function.c; | |
91 | source = grub-core/script/lexer.c; | |
92 | source = grub-core/script/main.c; | |
93 | source = grub-core/script/script.c; | |
94 | common; | |
95 | }; | |
96 | ||
97 | program = { | |
98 | name = grub-bin2h; | |
99 | source = util/bin2h.c; | |
100 | ldadd = libutil.a; | |
101 | mansection = 1; | |
102 | common; | |
103 | }; | |
104 | ||
105 | program = { | |
106 | name = grub-mkimage; | |
107 | mansection = 1; | |
108 | ||
109 | source = util/grub-mkrawimage.c; | |
110 | source = util/resolve.c; | |
111 | ||
112 | x86_efi = util/i386/efi/grub-mkimage.c; | |
113 | x86_efi = util/resolve.c; | |
114 | ||
115 | ldadd = libutil.a; | |
116 | ||
117 | sparc64_ieee1275_cppflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
118 | mips_cppflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
119 | i386_pc_cppflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
120 | i386_qemu_cppflags = '-DGRUB_KERNEL_MACHINE_LINK_ADDR=$(GRUB_KERNEL_MACHINE_LINK_ADDR)'; | |
121 | ||
122 | i386_pc; i386_qemu; mips; sparc64_ieee1275; | |
123 | }; | |
124 | ||
125 | program = { | |
126 | name = grub-mkelfimage; | |
127 | mansection = 1; | |
128 | source = util/elf/grub-mkimage.c; | |
129 | source = util/resolve.c; | |
130 | ||
131 | ldadd = libutil.a; | |
132 | common; | |
133 | }; | |
134 | ||
135 | program = { | |
136 | name = grub-mkisofs; | |
137 | mansection = 1; | |
138 | source = util/mkisofs/eltorito.c; | |
139 | source = util/mkisofs/hash.c; | |
140 | source = util/mkisofs/joliet.c; | |
141 | source = util/mkisofs/match.c; | |
142 | source = util/mkisofs/mkisofs.c; | |
143 | source = util/mkisofs/multi.c; | |
144 | source = util/mkisofs/name.c; | |
145 | source = util/mkisofs/rock.c; | |
146 | source = util/mkisofs/tree.c; | |
147 | source = util/mkisofs/write.c; | |
148 | source = grub-core/gnulib/progname.c; | |
149 | source = grub-core/gnulib/error.c; | |
150 | cflags = '$(CFLAGS_MKISOFS)'; | |
151 | cppflags = '$(CPPFLAGS_MKISOFS)'; | |
152 | common; | |
153 | }; | |
154 | ||
155 | program = { | |
156 | name = grub-mkrelpath; | |
157 | mansection = 1; | |
158 | ||
159 | source = util/grub-mkrelpath.c; | |
160 | ||
161 | ldadd = libutil.a; | |
162 | common; | |
163 | }; | |
164 | ||
165 | program = { | |
166 | name = grub-script-check; | |
167 | mansection = 1; | |
168 | ||
169 | source = util/grub-script-check.c; | |
170 | ||
171 | ldadd = libutil.a; | |
172 | common; | |
173 | }; | |
174 | ||
175 | program = { | |
176 | name = grub-editenv; | |
177 | mansection = 1; | |
178 | ||
179 | source = util/grub-editenv.c; | |
180 | ||
181 | ldadd = libutil.a; | |
182 | common; | |
183 | }; | |
184 | ||
185 | program = { | |
186 | name = grub-mkpasswd-pbkdf2; | |
187 | mansection = 1; | |
188 | ||
189 | source = util/grub-mkpasswd-pbkdf2.c; | |
190 | ||
191 | ldadd = libutil.a; | |
192 | cflags = '$(CFLAGS_GCRY)'; | |
193 | cppflags = '$(CPPFLAGS_GCRY)'; | |
194 | common; | |
195 | }; | |
196 | ||
197 | program = { | |
198 | name = grub-macho2img; | |
199 | mansection = 1; | |
200 | source = util/grub-macho2img.c; | |
201 | }; | |
202 | ||
203 | program = { | |
204 | name = grub-pe2elf; | |
205 | mansection = 1; | |
206 | source = util/grub-pe2elf.c; | |
207 | ||
208 | ldadd = libutil.a; | |
209 | }; | |
210 | ||
211 | program = { | |
212 | name = grub-fstest; | |
213 | mansection = 1; | |
214 | source = util/grub-fstest.c; | |
215 | ||
216 | ldadd = libutil.a; | |
217 | enable = COND_GRUB_FSTEST; | |
218 | common; | |
219 | }; | |
220 | ||
221 | program = { | |
222 | name = grub-mkfont; | |
223 | mansection = 1; | |
224 | source = util/grub-mkfont.c; | |
225 | ||
226 | ldadd = libutil.a; | |
227 | cflags = '$(freetype_cflags)'; | |
228 | ldflags = '$(freetype_libs)'; | |
229 | common; | |
230 | enable = COND_GRUB_MKFONT; | |
231 | }; | |
232 | ||
233 | program = { | |
234 | name = grub-mkdevicemap; | |
235 | installdir = sbin; | |
236 | mansection = 8; | |
237 | source = util/grub-mkdevicemap.c; | |
238 | source = util/deviceiter.c; | |
239 | source = util/devicemap.c; | |
240 | ||
241 | sparc64_ieee1275 = util/grub-mkdevicemap.c; | |
242 | sparc64_ieee1275 = util/deviceiter.c; | |
243 | sparc64_ieee1275 = util/ieee1275/ofpath.c; | |
244 | sparc64_ieee1275 = util/ieee1275/devicemap.c; | |
245 | ||
246 | ldadd = libutil.a; | |
247 | common; | |
248 | }; | |
249 | ||
250 | program = { | |
251 | name = grub-probe; | |
252 | installdir = sbin; | |
253 | mansection = 8; | |
254 | source = util/grub-probe.c; | |
255 | ||
256 | ldadd = libutil.a; | |
257 | common; | |
258 | }; | |
259 | ||
260 | program = { | |
261 | name = grub-setup; | |
262 | installdir = sbin; | |
263 | mansection = 8; | |
264 | i386_pc = util/i386/pc/grub-setup.c; | |
265 | i386_pc = util/raid.c; | |
266 | i386_pc = util/lvm.c; | |
267 | ||
268 | sparc64_ieee1275 = util/ieee1275/ofpath.c; | |
269 | sparc64_ieee1275 = util/sparc64/ieee1275/grub-setup.c; | |
270 | sparc64_ieee1275 = util/raid.c; | |
271 | sparc64_ieee1275 = util/lvm.c; | |
272 | ||
273 | ldadd = libutil.a; | |
274 | }; | |
275 | ||
276 | program = { | |
277 | name = grub-ofpathname; | |
278 | installdir = sbin; | |
279 | source = util/ieee1275/grub-ofpathname.c; | |
280 | source = util/ieee1275/ofpath.c; | |
281 | ||
282 | ldadd = libutil.a; | |
283 | sparc64_ieee1275; | |
284 | }; | |
285 | ||
286 | data = { | |
287 | source = util/grub.d/README; | |
288 | installdir = grubconf; | |
289 | common; | |
290 | }; | |
291 | ||
292 | script = { | |
293 | name = '00_header'; | |
294 | source = util/grub.d/00_header.in; | |
295 | installdir = grubconf; | |
296 | common; | |
297 | }; | |
298 | ||
299 | script = { | |
300 | name = '10_windows'; | |
301 | source = util/grub.d/10_windows.in; | |
302 | installdir = grubconf; | |
303 | }; | |
304 | ||
305 | script = { | |
306 | name = '10_hurd'; | |
307 | source = util/grub.d/10_hurd.in; | |
308 | installdir = grubconf; | |
309 | }; | |
310 | ||
311 | script = { | |
312 | name = '10_linux'; | |
313 | source = util/grub.d/10_linux.in; | |
314 | installdir = grubconf; | |
315 | common; | |
316 | }; | |
317 | ||
318 | script = { | |
319 | name = '30_os-prober'; | |
320 | source = util/grub.d/30_os-prober.in; | |
321 | installdir = grubconf; | |
322 | common; | |
323 | }; | |
324 | ||
325 | script = { | |
326 | name = '40_custom'; | |
327 | source = util/grub.d/40_custom.in; | |
328 | installdir = grubconf; | |
329 | common; | |
330 | }; | |
331 | ||
332 | script = { | |
333 | mansection = 1; | |
334 | name = grub-mkrescue; | |
335 | source = util/grub-mkrescue.in; | |
336 | powerpc_ieee1275 = util/powerpc/ieee1275/grub-mkrescue.in; | |
337 | i386_pc; | |
338 | i386_qemu; | |
339 | i386_coreboot; | |
340 | }; | |
341 | ||
342 | script = { | |
343 | mansection = 8; | |
344 | installdir = sbin; | |
345 | name = grub-install; | |
346 | source = util/grub-install.in; | |
347 | x86_efi = util/i386/efi/grub-install.in; | |
348 | i386_ieee1275 = util/ieee1275/grub-install.in; | |
349 | powerpc_ieee1275 = util/ieee1275/grub-install.in; | |
350 | mips; | |
351 | i386_pc; | |
352 | i386_qemu; | |
353 | i386_coreboot; | |
354 | }; | |
355 | ||
356 | script = { | |
357 | name = grub-mkconfig; | |
358 | source = util/grub-mkconfig.in; | |
359 | mansection = 8; | |
360 | installdir = sbin; | |
361 | common; | |
362 | }; | |
363 | ||
364 | script = { | |
365 | name = grub-set-default; | |
366 | source = util/grub-set-default.in; | |
367 | mansection = 8; | |
368 | installdir = sbin; | |
369 | common; | |
370 | }; | |
371 | ||
372 | script = { | |
373 | name = grub-reboot; | |
374 | source = util/grub-reboot.in; | |
375 | mansection = 8; | |
376 | installdir = sbin; | |
377 | common; | |
378 | }; | |
379 | ||
380 | script = { | |
381 | name = grub-mkconfig_lib; | |
382 | source = util/grub-mkconfig_lib.in; | |
383 | installdir = pkglib; | |
384 | common; | |
385 | }; | |
386 | ||
387 | script = { | |
388 | name = update-grub_lib; | |
389 | source = util/update-grub_lib.in; | |
390 | installdir = pkglib; | |
391 | common; | |
392 | }; | |
393 | ||
394 | test_script = { | |
395 | name = grub-shell; | |
396 | source = tests/util/grub-shell.in; | |
397 | common; | |
398 | }; | |
399 | ||
400 | test_script = { | |
401 | name = grub-shell-tester; | |
402 | source = tests/util/grub-shell-tester.in; | |
403 | common; | |
404 | }; | |
405 | ||
406 | test_script = { | |
407 | name = example_scripted_test; | |
408 | source = tests/example_scripted_test.in; | |
409 | common; | |
410 | }; | |
411 | ||
412 | test_script = { | |
413 | name = example_grub_script_test; | |
414 | source = tests/example_grub_script_test.in; | |
415 | common; | |
416 | }; | |
417 | ||
418 | test_script = { | |
419 | name = grub_script_echo1; | |
420 | source = tests/grub_script_echo1.in; | |
421 | common; | |
422 | enable; | |
423 | }; | |
424 | ||
425 | test_script = { | |
426 | name = grub_script_echo_keywords; | |
427 | source = tests/grub_script_echo_keywords.in; | |
428 | common; | |
429 | enable; | |
430 | }; | |
431 | ||
432 | test_script = { | |
433 | name = grub_script_vars1; | |
434 | source = tests/grub_script_vars1.in; | |
435 | common; | |
436 | enable; | |
437 | }; | |
438 | ||
439 | test_script = { | |
440 | name = grub_script_for1; | |
441 | source = tests/grub_script_for1.in; | |
442 | common; | |
443 | enable; | |
444 | }; | |
445 | ||
446 | test_script = { | |
447 | name = grub_script_while1; | |
448 | source = tests/grub_script_while1.in; | |
449 | common; | |
450 | enable; | |
451 | }; | |
452 | ||
453 | test_script = { | |
454 | name = grub_script_if; | |
455 | source = tests/grub_script_if.in; | |
456 | common; | |
457 | enable; | |
458 | }; | |
459 | ||
460 | test_script = { | |
461 | name = grub_script_blanklines; | |
462 | source = tests/grub_script_blanklines.in; | |
463 | common; | |
464 | enable; | |
465 | }; | |
466 | ||
467 | test_script = { | |
468 | name = grub_script_final_semicolon; | |
469 | source = tests/grub_script_final_semicolon.in; | |
470 | common; | |
471 | enable; | |
472 | }; | |
473 | ||
474 | test_script = { | |
475 | name = grub_script_dollar; | |
476 | source = tests/grub_script_dollar.in; | |
477 | common; | |
478 | enable; | |
479 | }; | |
480 | ||
481 | test_script = { | |
482 | name = grub_script_comments; | |
483 | source = tests/grub_script_comments.in; | |
484 | common; | |
485 | enable; | |
486 | }; | |
487 | ||
488 | test_program = { | |
489 | name = example_unit_test; | |
490 | source = tests/example_unit_test.c; | |
491 | source = tests/lib/unit_test.c; | |
492 | source = grub-core/kern/list.c; | |
493 | source = grub-core/kern/misc.c; | |
494 | source = grub-core/tests/lib/test.c; | |
495 | cflags = -Wno-format; | |
496 | common; | |
497 | }; |