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