4 bin_UTILITIES += grub-mkelfimage
5 grub_mkelfimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \
7 util/elf/grub-mkimage.c_DEPENDENCIES = Makefile
10 sbin_UTILITIES += grub-probe
11 util/grub-probe.c_DEPENDENCIES = grub_probe_init.h
12 grub_probe_SOURCES = util/grub-probe.c \
13 util/hostdisk.c util/misc.c util/getroot.c \
14 kern/device.c kern/disk.c kern/err.c kern/misc.c \
15 kern/parser.c kern/partition.c kern/file.c \
17 fs/affs.c fs/cpio.c fs/fat.c fs/ext2.c fs/hfs.c \
18 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
19 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
20 fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c fs/afs_be.c \
21 fs/befs.c fs/befs_be.c fs/tar.c \
23 partmap/msdos.c partmap/apple.c partmap/sun.c partmap/gpt.c\
24 kern/fs.c kern/env.c fs/fshelp.c \
25 disk/raid.c disk/mdraid_linux.c disk/lvm.c grub_probe_init.c
27 ifeq ($(enable_grub_fstest), yes)
28 bin_UTILITIES += grub-fstest
32 util/grub-fstest.c_DEPENDENCIES = grub_fstest_init.h
33 grub_fstest_SOURCES = util/grub-fstest.c util/hostfs.c util/misc.c \
34 kern/file.c kern/device.c kern/disk.c kern/err.c kern/misc.c \
35 disk/host.c disk/loopback.c kern/list.c kern/command.c \
36 lib/arg.c commands/extcmd.c normal/datetime.c normal/misc.c \
37 lib/hexdump.c lib/crc.c commands/blocklist.c commands/ls.c \
39 fs/affs.c fs/cpio.c fs/fat.c fs/ext2.c fs/hfs.c \
40 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
41 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
42 fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c fs/afs_be.c fs/befs.c \
43 fs/befs_be.c fs/tar.c \
45 kern/partition.c partmap/msdos.c partmap/apple.c partmap/sun.c \
47 kern/fs.c kern/env.c fs/fshelp.c disk/raid.c \
48 disk/raid5_recover.c disk/raid6_recover.c \
49 disk/mdraid_linux.c disk/dmraid_nvidia.c disk/lvm.c \
53 ifeq ($(enable_grub_mkfont), yes)
54 bin_UTILITIES += grub-mkfont
55 grub_mkfont_SOURCES = util/grub-mkfont.c util/misc.c
56 grub_mkfont_CFLAGS = $(freetype_cflags)
57 grub_mkfont_LDFLAGS = $(freetype_libs)
61 grub_script.tab.c grub_script.tab.h: script/sh/parser.y
62 $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/script/sh/parser.y
63 DISTCLEANFILES += grub_script.tab.c grub_script.tab.h
66 grub_emu_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES))
67 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
68 DISTCLEANFILES += grub_emu_init.lst
70 grub_emu_init.h: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh
71 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
72 DISTCLEANFILES += grub_emu_init.h
74 grub_emu_init.c: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_emu_init.h
75 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
76 DISTCLEANFILES += grub_emu_init.c
79 grub_probe_init.lst: geninit.sh $(filter-out grub_probe_init.c,$(grub_probe_SOURCES))
80 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
81 DISTCLEANFILES += grub_probe_init.lst
83 grub_probe_init.h: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninitheader.sh
84 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
85 DISTCLEANFILES += grub_probe_init.h
87 grub_probe_init.c: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninit.sh grub_probe_init.h
88 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
89 DISTCLEANFILES += grub_probe_init.c
92 grub_setup_init.lst: geninit.sh $(filter-out grub_setup_init.c,$(grub_setup_SOURCES))
93 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
94 DISTCLEANFILES += grub_setup_init.lst
96 grub_setup_init.h: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninitheader.sh
97 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
98 DISTCLEANFILES += grub_setup_init.h
100 grub_setup_init.c: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninit.sh grub_setup_init.h
101 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
102 DISTCLEANFILES += grub_setup_init.c
105 grub_fstest_init.lst: geninit.sh $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES))
106 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
107 DISTCLEANFILES += grub_fstest_init.lst
109 grub_fstest_init.h: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninitheader.sh
110 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
111 DISTCLEANFILES += grub_fstest_init.h
113 grub_fstest_init.c: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninit.sh grub_fstest_init.h
114 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
115 DISTCLEANFILES += grub_fstest_init.c
118 bin_UTILITIES += grub-editenv
119 grub_editenv_SOURCES = util/grub-editenv.c lib/envblk.c util/misc.c kern/misc.c kern/err.c
120 CLEANFILES += grub-editenv
122 # Needed for genmk.rb to work
124 bin_UTILITIES += grub-macho2img grub-pe2elf
127 grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c
128 CLEANFILES += grub-pe2elf
130 grub_macho2img_SOURCES = util/grub-macho2img.c
131 CLEANFILES += grub-macho2img
134 grub-mkconfig: util/grub-mkconfig.in config.status
135 ./config.status --file=$@:$<
137 sbin_SCRIPTS += grub-mkconfig
138 CLEANFILES += grub-mkconfig
140 grub-mkconfig_lib: util/grub-mkconfig_lib.in config.status
141 ./config.status --file=$@:$<
143 lib_SCRIPTS += grub-mkconfig_lib
144 CLEANFILES += grub-mkconfig_lib
146 update-grub_lib: util/update-grub_lib.in config.status
147 ./config.status --file=$@:$<
149 lib_SCRIPTS += update-grub_lib
150 CLEANFILES += update-grub_lib
152 %: util/grub.d/%.in config.status
153 ./config.status --file=$@:$<
155 grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom
156 ifneq (, $(host_kernel))
157 grub-mkconfig_SCRIPTS += 10_$(host_kernel)
160 CLEANFILES += $(grub-mkconfig_SCRIPTS)
162 grub-mkconfig_DATA += util/grub.d/README
165 pkglib_MODULES += fshelp.mod fat.mod ufs1.mod ufs2.mod ext2.mod ntfs.mod \
166 ntfscomp.mod minix.mod hfs.mod jfs.mod iso9660.mod xfs.mod \
167 affs.mod sfs.mod hfsplus.mod reiserfs.mod cpio.mod tar.mod \
168 udf.mod afs.mod afs_be.mod befs.mod befs_be.mod
171 fshelp_mod_SOURCES = fs/fshelp.c
172 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
173 fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
176 fat_mod_SOURCES = fs/fat.c
177 fat_mod_CFLAGS = $(COMMON_CFLAGS)
178 fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
181 ufs1_mod_SOURCES = fs/ufs.c
182 ufs1_mod_CFLAGS = $(COMMON_CFLAGS)
183 ufs1_mod_LDFLAGS = $(COMMON_LDFLAGS)
186 ufs2_mod_SOURCES = fs/ufs2.c
187 ufs2_mod_CFLAGS = $(COMMON_CFLAGS)
188 ufs2_mod_LDFLAGS = $(COMMON_LDFLAGS)
191 ext2_mod_SOURCES = fs/ext2.c
192 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
193 ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
196 ntfs_mod_SOURCES = fs/ntfs.c
197 ntfs_mod_CFLAGS = $(COMMON_CFLAGS)
198 ntfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
201 ntfscomp_mod_SOURCES = fs/ntfscomp.c
202 ntfscomp_mod_CFLAGS = $(COMMON_CFLAGS)
203 ntfscomp_mod_LDFLAGS = $(COMMON_LDFLAGS)
206 minix_mod_SOURCES = fs/minix.c
207 minix_mod_CFLAGS = $(COMMON_CFLAGS)
208 minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
211 hfs_mod_SOURCES = fs/hfs.c
212 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
213 hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
216 jfs_mod_SOURCES = fs/jfs.c
217 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
218 jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
221 iso9660_mod_SOURCES = fs/iso9660.c
222 iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
223 iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
226 xfs_mod_SOURCES = fs/xfs.c
227 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
228 xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
231 affs_mod_SOURCES = fs/affs.c
232 affs_mod_CFLAGS = $(COMMON_CFLAGS)
233 affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
236 sfs_mod_SOURCES = fs/sfs.c
237 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
238 sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
241 hfsplus_mod_SOURCES = fs/hfsplus.c
242 hfsplus_mod_CFLAGS = $(COMMON_CFLAGS)
243 hfsplus_mod_LDFLAGS = $(COMMON_LDFLAGS)
246 reiserfs_mod_SOURCES = fs/reiserfs.c
247 reiserfs_mod_CFLAGS = $(COMMON_CFLAGS)
248 reiserfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
251 cpio_mod_SOURCES = fs/cpio.c
252 cpio_mod_CFLAGS = $(COMMON_CFLAGS)
253 cpio_mod_LDFLAGS = $(COMMON_LDFLAGS)
256 tar_mod_SOURCES = fs/tar.c
257 tar_mod_CFLAGS = $(COMMON_CFLAGS)
258 tar_mod_LDFLAGS = $(COMMON_LDFLAGS)
261 udf_mod_SOURCES = fs/udf.c
262 udf_mod_CFLAGS = $(COMMON_CFLAGS)
263 udf_mod_LDFLAGS = $(COMMON_LDFLAGS)
266 afs_mod_SOURCES = fs/afs.c
267 afs_mod_CFLAGS = $(COMMON_CFLAGS)
268 afs_mod_LDFLAGS = $(COMMON_LDFLAGS)
271 afs_be_mod_SOURCES = fs/afs_be.c
272 afs_be_mod_CFLAGS = $(COMMON_CFLAGS)
273 afs_be_mod_LDFLAGS = $(COMMON_LDFLAGS)
276 befs_mod_SOURCES = fs/befs.c
277 befs_mod_CFLAGS = $(COMMON_CFLAGS)
278 befs_mod_LDFLAGS = $(COMMON_LDFLAGS)
281 befs_be_mod_SOURCES = fs/befs_be.c
282 befs_be_mod_CFLAGS = $(COMMON_CFLAGS)
283 befs_be_mod_LDFLAGS = $(COMMON_LDFLAGS)
287 pkglib_MODULES += part_amiga.mod
288 part_amiga_mod_SOURCES = partmap/amiga.c
289 part_amiga_mod_CFLAGS = $(COMMON_CFLAGS)
290 part_amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
292 pkglib_MODULES += part_apple.mod
293 part_apple_mod_SOURCES = partmap/apple.c
294 part_apple_mod_CFLAGS = $(COMMON_CFLAGS)
295 part_apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
297 pkglib_MODULES += part_msdos.mod
298 part_msdos_mod_SOURCES = partmap/msdos.c
299 part_msdos_mod_CFLAGS = $(COMMON_CFLAGS)
300 part_msdos_mod_LDFLAGS = $(COMMON_LDFLAGS)
302 pkglib_MODULES += part_sun.mod
303 part_sun_mod_SOURCES = partmap/sun.c
304 part_sun_mod_CFLAGS = $(COMMON_CFLAGS)
305 part_sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
307 pkglib_MODULES += part_acorn.mod
308 part_acorn_mod_SOURCES = partmap/acorn.c
309 part_acorn_mod_CFLAGS = $(COMMON_CFLAGS)
310 part_acorn_mod_LDFLAGS = $(COMMON_LDFLAGS)
312 pkglib_MODULES += part_gpt.mod
313 part_gpt_mod_SOURCES = partmap/gpt.c
314 part_gpt_mod_CFLAGS = $(COMMON_CFLAGS)
315 part_gpt_mod_LDFLAGS = $(COMMON_LDFLAGS)
317 # Special disk structures and generic drivers
319 pkglib_MODULES += raid.mod raid5rec.mod raid6rec.mod mdraid.mod dm_nv.mod \
323 raid_mod_SOURCES = disk/raid.c
324 raid_mod_CFLAGS = $(COMMON_CFLAGS)
325 raid_mod_LDFLAGS = $(COMMON_LDFLAGS)
328 raid5rec_mod_SOURCES = disk/raid5_recover.c
329 raid5rec_mod_CFLAGS = $(COMMON_CFLAGS)
330 raid5rec_mod_LDFLAGS = $(COMMON_LDFLAGS)
333 raid6rec_mod_SOURCES = disk/raid6_recover.c
334 raid6rec_mod_CFLAGS = $(COMMON_CFLAGS)
335 raid6rec_mod_LDFLAGS = $(COMMON_LDFLAGS)
338 mdraid_mod_SOURCES = disk/mdraid_linux.c
339 mdraid_mod_CFLAGS = $(COMMON_CFLAGS)
340 mdraid_mod_LDFLAGS = $(COMMON_LDFLAGS)
343 dm_nv_mod_SOURCES = disk/dmraid_nvidia.c
344 dm_nv_mod_CFLAGS = $(COMMON_CFLAGS)
345 dm_nv_mod_LDFLAGS = $(COMMON_LDFLAGS)
348 lvm_mod_SOURCES = disk/lvm.c
349 lvm_mod_CFLAGS = $(COMMON_CFLAGS)
350 lvm_mod_LDFLAGS = $(COMMON_LDFLAGS)
353 scsi_mod_SOURCES = disk/scsi.c
354 scsi_mod_CFLAGS = $(COMMON_CFLAGS)
355 scsi_mod_LDFLAGS = $(COMMON_LDFLAGS)
358 pkglib_MODULES += minicmd.mod extcmd.mod hello.mod handler.mod \
359 ls.mod cmp.mod cat.mod help.mod search.mod loopback.mod \
360 fs_file.mod fs_uuid.mod configfile.mod echo.mod \
361 terminfo.mod test.mod blocklist.mod hexdump.mod \
362 read.mod sleep.mod loadenv.mod crc.mod parttool.mod \
363 msdospart.mod memrw.mod normal.mod sh.mod \
364 gptsync.mod true.mod probe.mod password.mod \
368 password_mod_SOURCES = commands/password.c
369 password_mod_CFLAGS = $(COMMON_CFLAGS)
370 password_mod_LDFLAGS = $(COMMON_LDFLAGS)
373 gptsync_mod_SOURCES = commands/gptsync.c
374 gptsync_mod_CFLAGS = $(COMMON_CFLAGS)
375 gptsync_mod_LDFLAGS = $(COMMON_LDFLAGS)
378 minicmd_mod_SOURCES = commands/minicmd.c
379 minicmd_mod_CFLAGS = $(COMMON_CFLAGS)
380 minicmd_mod_LDFLAGS = $(COMMON_LDFLAGS)
383 extcmd_mod_SOURCES = commands/extcmd.c lib/arg.c
384 extcmd_mod_CFLAGS = $(COMMON_CFLAGS)
385 extcmd_mod_LDFLAGS = $(COMMON_LDFLAGS)
388 hello_mod_SOURCES = hello/hello.c
389 hello_mod_CFLAGS = $(COMMON_CFLAGS)
390 hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
393 parttool_mod_SOURCES = commands/parttool.c
394 parttool_mod_CFLAGS = $(COMMON_CFLAGS)
395 parttool_mod_LDFLAGS = $(COMMON_LDFLAGS)
398 msdospart_mod_SOURCES = parttool/msdospart.c
399 msdospart_mod_CFLAGS = $(COMMON_CFLAGS)
400 msdospart_mod_LDFLAGS = $(COMMON_LDFLAGS)
403 handler_mod_SOURCES = commands/handler.c
404 handler_mod_CFLAGS = $(COMMON_CFLAGS)
405 handler_mod_LDFLAGS = $(COMMON_LDFLAGS)
408 ls_mod_SOURCES = commands/ls.c
409 ls_mod_CFLAGS = $(COMMON_CFLAGS)
410 ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
413 cmp_mod_SOURCES = commands/cmp.c
414 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
415 cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
418 cat_mod_SOURCES = commands/cat.c
419 cat_mod_CFLAGS = $(COMMON_CFLAGS)
420 cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
423 echo_mod_SOURCES = commands/echo.c
424 echo_mod_CFLAGS = $(COMMON_CFLAGS)
425 echo_mod_LDFLAGS = $(COMMON_LDFLAGS)
428 help_mod_SOURCES = commands/help.c
429 help_mod_CFLAGS = $(COMMON_CFLAGS)
430 help_mod_LDFLAGS = $(COMMON_LDFLAGS)
433 search_mod_SOURCES = commands/search.c
434 search_mod_CFLAGS = $(COMMON_CFLAGS)
435 search_mod_LDFLAGS = $(COMMON_LDFLAGS)
438 test_mod_SOURCES = commands/test.c
439 test_mod_CFLAGS = $(COMMON_CFLAGS)
440 test_mod_LDFLAGS = $(COMMON_LDFLAGS)
443 loopback_mod_SOURCES = disk/loopback.c
444 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
445 loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
448 fs_file_mod_SOURCES = disk/fs_file.c
449 fs_file_mod_CFLAGS = $(COMMON_CFLAGS)
450 fs_file_mod_LDFLAGS = $(COMMON_LDFLAGS)
453 fs_uuid_mod_SOURCES = disk/fs_uuid.c
454 fs_uuid_mod_CFLAGS = $(COMMON_CFLAGS)
455 fs_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
458 configfile_mod_SOURCES = commands/configfile.c
459 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
460 configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
463 terminfo_mod_SOURCES = term/terminfo.c term/tparm.c
464 terminfo_mod_CFLAGS = $(COMMON_CFLAGS)
465 terminfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
468 blocklist_mod_SOURCES = commands/blocklist.c
469 blocklist_mod_CFLAGS = $(COMMON_CFLAGS)
470 blocklist_mod_LDFLAGS = $(COMMON_LDFLAGS)
473 hexdump_mod_SOURCES = commands/hexdump.c lib/hexdump.c
474 hexdump_mod_CFLAGS = $(COMMON_CFLAGS)
475 hexdump_mod_LDFLAGS = $(COMMON_LDFLAGS)
478 read_mod_SOURCES = commands/read.c
479 read_mod_CFLAGS = $(COMMON_CFLAGS)
480 read_mod_LDFLAGS = $(COMMON_LDFLAGS)
483 sleep_mod_SOURCES = commands/sleep.c
484 sleep_mod_CFLAGS = $(COMMON_CFLAGS)
485 sleep_mod_LDFLAGS = $(COMMON_LDFLAGS)
488 loadenv_mod_SOURCES = commands/loadenv.c lib/envblk.c
489 loadenv_mod_CFLAGS = $(COMMON_CFLAGS)
490 loadenv_mod_LDFLAGS = $(COMMON_LDFLAGS)
493 crc_mod_SOURCES = commands/crc.c lib/crc.c
494 crc_mod_CFLAGS = $(COMMON_CFLAGS)
495 crc_mod_LDFLAGS = $(COMMON_LDFLAGS)
498 memrw_mod_SOURCES = commands/memrw.c
499 memrw_mod_CFLAGS = $(COMMON_CFLAGS)
500 memrw_mod_LDFLAGS = $(COMMON_LDFLAGS)
503 true_mod_SOURCES = commands/true.c
504 true_mod_CFLAGS = $(COMMON_CFLAGS)
505 true_mod_LDFLAGS = $(COMMON_LDFLAGS)
508 probe_mod_SOURCES = commands/probe.c
509 probe_mod_CFLAGS = $(COMMON_CFLAGS)
510 probe_mod_LDFLAGS = $(COMMON_LDFLAGS)
513 keystatus_mod_SOURCES = commands/keystatus.c
514 keystatus_mod_CFLAGS = $(COMMON_CFLAGS)
515 keystatus_mod_LDFLAGS = $(COMMON_LDFLAGS)
518 normal_mod_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c \
519 normal/auth.c normal/autofs.c normal/handler.c \
520 normal/color.c normal/completion.c normal/datetime.c normal/menu.c \
521 normal/menu_entry.c normal/menu_text.c normal/menu_viewer.c \
523 normal_mod_CFLAGS = $(COMMON_CFLAGS)
524 normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
527 sh_mod_SOURCES = script/sh/main.c script/sh/script.c script/sh/execute.c \
528 script/sh/function.c script/sh/lexer.c grub_script.tab.c
529 sh_mod_CFLAGS = $(COMMON_CFLAGS)
530 sh_mod_LDFLAGS = $(COMMON_LDFLAGS)
532 # Common Video Subsystem specific modules.
533 pkglib_MODULES += video.mod videotest.mod bitmap.mod tga.mod jpeg.mod \
534 png.mod font.mod gfxterm.mod video_fb.mod
537 video_mod_SOURCES = video/video.c
538 video_mod_CFLAGS = $(COMMON_CFLAGS)
539 video_mod_LDFLAGS = $(COMMON_LDFLAGS)
541 video_fb_mod_SOURCES = video/fb/video_fb.c video/fb/fbblit.c \
542 video/fb/fbfill.c video/fb/fbutil.c
543 video_fb_mod_CFLAGS = $(COMMON_CFLAGS)
544 video_fb_mod_LDFLAGS = $(COMMON_LDFLAGS)
547 videotest_mod_SOURCES = commands/videotest.c
548 videotest_mod_CFLAGS = $(COMMON_CFLAGS)
549 videotest_mod_LDFLAGS = $(COMMON_LDFLAGS)
552 bitmap_mod_SOURCES = video/bitmap.c
553 bitmap_mod_CFLAGS = $(COMMON_CFLAGS)
554 bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
557 tga_mod_SOURCES = video/readers/tga.c
558 tga_mod_CFLAGS = $(COMMON_CFLAGS)
559 tga_mod_LDFLAGS = $(COMMON_LDFLAGS)
562 jpeg_mod_SOURCES = video/readers/jpeg.c
563 jpeg_mod_CFLAGS = $(COMMON_CFLAGS)
564 jpeg_mod_LDFLAGS = $(COMMON_LDFLAGS)
567 png_mod_SOURCES = video/readers/png.c
568 png_mod_CFLAGS = $(COMMON_CFLAGS)
569 png_mod_LDFLAGS = $(COMMON_LDFLAGS)
572 font_mod_SOURCES = font/font_cmd.c font/font.c
573 font_mod_CFLAGS = $(COMMON_CFLAGS)
574 font_mod_LDFLAGS = $(COMMON_LDFLAGS)
577 gfxterm_mod_SOURCES = term/gfxterm.c
578 gfxterm_mod_CFLAGS = $(COMMON_CFLAGS)
579 gfxterm_mod_LDFLAGS = $(COMMON_LDFLAGS)
582 pkglib_MODULES += gzio.mod bufio.mod elf.mod
585 elf_mod_SOURCES = kern/elf.c
586 elf_mod_CFLAGS = $(COMMON_CFLAGS)
587 elf_mod_LDFLAGS = $(COMMON_LDFLAGS)
590 gzio_mod_SOURCES = io/gzio.c
591 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
592 gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)
595 bufio_mod_SOURCES = io/bufio.c
596 bufio_mod_CFLAGS = $(COMMON_CFLAGS)
597 bufio_mod_LDFLAGS = $(COMMON_LDFLAGS)
600 pkglib_MODULES += xnu_uuid.mod
603 xnu_uuid_mod_SOURCES = commands/xnu_uuid.c
604 xnu_uuid_mod_CFLAGS = $(COMMON_CFLAGS)
605 xnu_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
607 pkglib_MODULES += setjmp.mod
608 setjmp_mod_SOURCES = lib/$(target_cpu)/setjmp.S
609 setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)
610 setjmp_mod_LDFLAGS = $(COMMON_LDFLAGS)