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