21 |
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh |
kernel_syms.lst: $(addprefix include/grub/,$(grubof_HEADERS)) genkernsyms.sh |
22 |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
23 |
|
|
24 |
|
# For the parser. |
25 |
|
grub_script.tab.c: normal/parser.y |
26 |
|
$(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y |
27 |
|
grub_script.tab.h: normal/parser.y |
28 |
|
$(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y |
29 |
|
|
30 |
# Programs |
# Programs |
31 |
pkgdata_PROGRAMS = grubof |
pkgdata_PROGRAMS = grubof |
32 |
|
|
72 |
# For grub-emu |
# For grub-emu |
73 |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
74 |
commands/configfile.c commands/default.c commands/help.c \ |
commands/configfile.c commands/default.c commands/help.c \ |
75 |
commands/search.c commands/terminal.c commands/ls.c \ |
commands/search.c commands/terminal.c commands/test.c \ |
76 |
commands/timeout.c \ |
commands/ls.c commands/timeout.c \ |
77 |
commands/ieee1275/halt.c commands/ieee1275/reboot.c \ |
commands/ieee1275/halt.c commands/ieee1275/reboot.c \ |
78 |
disk/loopback.c \ |
disk/loopback.c \ |
79 |
fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c \ |
fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c \ |
83 |
kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c \ |
kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c \ |
84 |
kern/parser.c kern/partition.c kern/rescue.c kern/term.c \ |
kern/parser.c kern/partition.c kern/rescue.c kern/term.c \ |
85 |
normal/arg.c normal/cmdline.c normal/command.c \ |
normal/arg.c normal/cmdline.c normal/command.c \ |
86 |
normal/completion.c normal/context.c \ |
normal/completion.c normal/context.c normal/execute.c \ |
87 |
normal/main.c normal/menu.c normal/menu_entry.c normal/misc.c \ |
normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
88 |
|
normal/menu_entry.c normal/misc.c normal/script.c \ |
89 |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
90 |
util/console.c util/grub-emu.c util/misc.c \ |
util/console.c util/grub-emu.c util/misc.c \ |
91 |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
92 |
util/powerpc/ieee1275/misc.c |
util/powerpc/ieee1275/misc.c grub_script.tab.c |
93 |
CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_default.o grub_emu-commands_help.o grub_emu-commands_search.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_timeout.o grub_emu-commands_ieee1275_halt.o grub_emu-commands_ieee1275_reboot.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_completion.o grub_emu-normal_context.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_powerpc_ieee1275_misc.o |
CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_default.o grub_emu-commands_help.o grub_emu-commands_search.o grub_emu-commands_terminal.o grub_emu-commands_test.o grub_emu-commands_ls.o grub_emu-commands_timeout.o grub_emu-commands_ieee1275_halt.o grub_emu-commands_ieee1275_reboot.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_completion.o grub_emu-normal_context.o grub_emu-normal_execute.o grub_emu-normal_function.o grub_emu-normal_lexer.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_powerpc_ieee1275_misc.o grub_emu-grub_script_tab.o |
94 |
MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_configfile.d grub_emu-commands_default.d grub_emu-commands_help.d grub_emu-commands_search.d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_timeout.d grub_emu-commands_ieee1275_halt.d grub_emu-commands_ieee1275_reboot.d grub_emu-disk_loopback.d grub_emu-fs_affs.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_fshelp.d grub_emu-fs_hfs.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_sfs.d grub_emu-fs_ufs.d grub_emu-fs_xfs.d grub_emu-io_gzio.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_parser.d grub_emu-kern_partition.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_completion.d grub_emu-normal_context.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-normal_misc.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-partmap_sun.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_biosdisk.d grub_emu-util_i386_pc_getroot.d grub_emu-util_powerpc_ieee1275_misc.d |
MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_configfile.d grub_emu-commands_default.d grub_emu-commands_help.d grub_emu-commands_search.d grub_emu-commands_terminal.d grub_emu-commands_test.d grub_emu-commands_ls.d grub_emu-commands_timeout.d grub_emu-commands_ieee1275_halt.d grub_emu-commands_ieee1275_reboot.d grub_emu-disk_loopback.d grub_emu-fs_affs.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_fshelp.d grub_emu-fs_hfs.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_sfs.d grub_emu-fs_ufs.d grub_emu-fs_xfs.d grub_emu-io_gzio.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_parser.d grub_emu-kern_partition.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_completion.d grub_emu-normal_context.d grub_emu-normal_execute.d grub_emu-normal_function.d grub_emu-normal_lexer.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-normal_misc.d grub_emu-normal_script.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-partmap_sun.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_biosdisk.d grub_emu-util_i386_pc_getroot.d grub_emu-util_powerpc_ieee1275_misc.d grub_emu-grub_script_tab.d |
95 |
|
|
96 |
grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_default.o grub_emu-commands_help.o grub_emu-commands_search.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_timeout.o grub_emu-commands_ieee1275_halt.o grub_emu-commands_ieee1275_reboot.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_completion.o grub_emu-normal_context.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_powerpc_ieee1275_misc.o |
grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_default.o grub_emu-commands_help.o grub_emu-commands_search.o grub_emu-commands_terminal.o grub_emu-commands_test.o grub_emu-commands_ls.o grub_emu-commands_timeout.o grub_emu-commands_ieee1275_halt.o grub_emu-commands_ieee1275_reboot.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_fshelp.o grub_emu-fs_hfs.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_completion.o grub_emu-normal_context.o grub_emu-normal_execute.o grub_emu-normal_function.o grub_emu-normal_lexer.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_biosdisk.o grub_emu-util_i386_pc_getroot.o grub_emu-util_powerpc_ieee1275_misc.o grub_emu-grub_script_tab.o |
97 |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
98 |
|
|
99 |
grub_emu-commands_boot.o: commands/boot.c |
grub_emu-commands_boot.o: commands/boot.c |
160 |
|
|
161 |
-include grub_emu-commands_terminal.d |
-include grub_emu-commands_terminal.d |
162 |
|
|
163 |
|
grub_emu-commands_test.o: commands/test.c |
164 |
|
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
165 |
|
|
166 |
|
grub_emu-commands_test.d: commands/test.c |
167 |
|
set -e; $(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,test\.o[ :]*,grub_emu-commands_test.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
168 |
|
|
169 |
|
-include grub_emu-commands_test.d |
170 |
|
|
171 |
grub_emu-commands_ls.o: commands/ls.c |
grub_emu-commands_ls.o: commands/ls.c |
172 |
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
173 |
|
|
456 |
|
|
457 |
-include grub_emu-normal_context.d |
-include grub_emu-normal_context.d |
458 |
|
|
459 |
|
grub_emu-normal_execute.o: normal/execute.c |
460 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
461 |
|
|
462 |
|
grub_emu-normal_execute.d: normal/execute.c |
463 |
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,execute\.o[ :]*,grub_emu-normal_execute.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
464 |
|
|
465 |
|
-include grub_emu-normal_execute.d |
466 |
|
|
467 |
|
grub_emu-normal_function.o: normal/function.c |
468 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
469 |
|
|
470 |
|
grub_emu-normal_function.d: normal/function.c |
471 |
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,function\.o[ :]*,grub_emu-normal_function.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
472 |
|
|
473 |
|
-include grub_emu-normal_function.d |
474 |
|
|
475 |
|
grub_emu-normal_lexer.o: normal/lexer.c |
476 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
477 |
|
|
478 |
|
grub_emu-normal_lexer.d: normal/lexer.c |
479 |
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,lexer\.o[ :]*,grub_emu-normal_lexer.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
480 |
|
|
481 |
|
-include grub_emu-normal_lexer.d |
482 |
|
|
483 |
grub_emu-normal_main.o: normal/main.c |
grub_emu-normal_main.o: normal/main.c |
484 |
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
485 |
|
|
512 |
|
|
513 |
-include grub_emu-normal_misc.d |
-include grub_emu-normal_misc.d |
514 |
|
|
515 |
|
grub_emu-normal_script.o: normal/script.c |
516 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
517 |
|
|
518 |
|
grub_emu-normal_script.d: normal/script.c |
519 |
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,script\.o[ :]*,grub_emu-normal_script.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
520 |
|
|
521 |
|
-include grub_emu-normal_script.d |
522 |
|
|
523 |
grub_emu-partmap_amiga.o: partmap/amiga.c |
grub_emu-partmap_amiga.o: partmap/amiga.c |
524 |
$(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Ipartmap -I$(srcdir)/partmap $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
525 |
|
|
600 |
|
|
601 |
-include grub_emu-util_powerpc_ieee1275_misc.d |
-include grub_emu-util_powerpc_ieee1275_misc.d |
602 |
|
|
603 |
|
grub_emu-grub_script_tab.o: grub_script.tab.c |
604 |
|
$(BUILD_CC) -I. -I$(srcdir)/. $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
605 |
|
|
606 |
|
grub_emu-grub_script_tab.d: grub_script.tab.c |
607 |
|
set -e; $(BUILD_CC) -I. -I$(srcdir)/. $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,grub_script\.tab\.o[ :]*,grub_emu-grub_script_tab.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
608 |
|
|
609 |
|
-include grub_emu-grub_script_tab.d |
610 |
|
|
611 |
|
|
612 |
grub_emu_LDFLAGS = $(LIBCURSES) |
grub_emu_LDFLAGS = $(LIBCURSES) |
613 |
|
|
865 |
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \ |
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod amiga.mod apple.mod \ |
866 |
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod \ |
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod sun.mod \ |
867 |
default.mod timeout.mod configfile.mod search.mod gzio.mod xfs.mod \ |
default.mod timeout.mod configfile.mod search.mod gzio.mod xfs.mod \ |
868 |
affs.mod sfs.mod |
affs.mod sfs.mod test.mod |
869 |
|
|
870 |
# For fshelp.mod. |
# For fshelp.mod. |
871 |
fshelp_mod_SOURCES = fs/fshelp.c |
fshelp_mod_SOURCES = fs/fshelp.c |
1473 |
|
|
1474 |
# For normal.mod. |
# For normal.mod. |
1475 |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
1476 |
normal/completion.c normal/context.c normal/main.c \ |
normal/completion.c normal/context.c normal/execute.c \ |
1477 |
normal/menu.c normal/menu_entry.c normal/misc.c \ |
normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
1478 |
normal/powerpc/setjmp.S |
normal/menu_entry.c normal/misc.c grub_script.tab.c \ |
1479 |
CLEANFILES += normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_context.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-normal_powerpc_setjmp.o def-normal.lst und-normal.lst |
normal/script.c normal/powerpc/setjmp.S |
1480 |
MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_completion.d normal_mod-normal_context.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d normal_mod-normal_misc.d normal_mod-normal_powerpc_setjmp.d |
CLEANFILES += normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_context.o normal_mod-normal_execute.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_powerpc_setjmp.o def-normal.lst und-normal.lst |
1481 |
|
MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_completion.d normal_mod-normal_context.d normal_mod-normal_execute.d normal_mod-normal_function.d normal_mod-normal_lexer.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d normal_mod-normal_misc.d normal_mod-grub_script_tab.d normal_mod-normal_script.d normal_mod-normal_powerpc_setjmp.d |
1482 |
DEFSYMFILES += def-normal.lst |
DEFSYMFILES += def-normal.lst |
1483 |
UNDSYMFILES += und-normal.lst |
UNDSYMFILES += und-normal.lst |
1484 |
|
|
1487 |
$(LD) $(normal_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
$(LD) $(normal_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
1488 |
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
1489 |
|
|
1490 |
pre-normal.o: normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_context.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-normal_powerpc_setjmp.o |
pre-normal.o: normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_context.o normal_mod-normal_execute.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_powerpc_setjmp.o |
1491 |
-rm -f $@ |
-rm -f $@ |
1492 |
$(LD) $(normal_mod_LDFLAGS) -r -d -o $@ $^ |
$(LD) $(normal_mod_LDFLAGS) -r -d -o $@ $^ |
1493 |
|
|
1599 |
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1600 |
|
|
1601 |
|
|
1602 |
|
normal_mod-normal_execute.o: normal/execute.c |
1603 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1604 |
|
|
1605 |
|
normal_mod-normal_execute.d: normal/execute.c |
1606 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,execute\.o[ :]*,normal_mod-normal_execute.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1607 |
|
|
1608 |
|
-include normal_mod-normal_execute.d |
1609 |
|
|
1610 |
|
CLEANFILES += cmd-execute.lst fs-execute.lst |
1611 |
|
COMMANDFILES += cmd-execute.lst |
1612 |
|
FSFILES += fs-execute.lst |
1613 |
|
|
1614 |
|
cmd-execute.lst: normal/execute.c gencmdlist.sh |
1615 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
1616 |
|
|
1617 |
|
fs-execute.lst: normal/execute.c genfslist.sh |
1618 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1619 |
|
|
1620 |
|
|
1621 |
|
normal_mod-normal_function.o: normal/function.c |
1622 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1623 |
|
|
1624 |
|
normal_mod-normal_function.d: normal/function.c |
1625 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,function\.o[ :]*,normal_mod-normal_function.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1626 |
|
|
1627 |
|
-include normal_mod-normal_function.d |
1628 |
|
|
1629 |
|
CLEANFILES += cmd-function.lst fs-function.lst |
1630 |
|
COMMANDFILES += cmd-function.lst |
1631 |
|
FSFILES += fs-function.lst |
1632 |
|
|
1633 |
|
cmd-function.lst: normal/function.c gencmdlist.sh |
1634 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
1635 |
|
|
1636 |
|
fs-function.lst: normal/function.c genfslist.sh |
1637 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1638 |
|
|
1639 |
|
|
1640 |
|
normal_mod-normal_lexer.o: normal/lexer.c |
1641 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1642 |
|
|
1643 |
|
normal_mod-normal_lexer.d: normal/lexer.c |
1644 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,lexer\.o[ :]*,normal_mod-normal_lexer.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1645 |
|
|
1646 |
|
-include normal_mod-normal_lexer.d |
1647 |
|
|
1648 |
|
CLEANFILES += cmd-lexer.lst fs-lexer.lst |
1649 |
|
COMMANDFILES += cmd-lexer.lst |
1650 |
|
FSFILES += fs-lexer.lst |
1651 |
|
|
1652 |
|
cmd-lexer.lst: normal/lexer.c gencmdlist.sh |
1653 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
1654 |
|
|
1655 |
|
fs-lexer.lst: normal/lexer.c genfslist.sh |
1656 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1657 |
|
|
1658 |
|
|
1659 |
normal_mod-normal_main.o: normal/main.c |
normal_mod-normal_main.o: normal/main.c |
1660 |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1661 |
|
|
1732 |
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1733 |
|
|
1734 |
|
|
1735 |
|
normal_mod-grub_script_tab.o: grub_script.tab.c |
1736 |
|
$(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1737 |
|
|
1738 |
|
normal_mod-grub_script_tab.d: grub_script.tab.c |
1739 |
|
set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,grub_script\.tab\.o[ :]*,normal_mod-grub_script_tab.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1740 |
|
|
1741 |
|
-include normal_mod-grub_script_tab.d |
1742 |
|
|
1743 |
|
CLEANFILES += cmd-grub_script.tab.lst fs-grub_script.tab.lst |
1744 |
|
COMMANDFILES += cmd-grub_script.tab.lst |
1745 |
|
FSFILES += fs-grub_script.tab.lst |
1746 |
|
|
1747 |
|
cmd-grub_script.tab.lst: grub_script.tab.c gencmdlist.sh |
1748 |
|
set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
1749 |
|
|
1750 |
|
fs-grub_script.tab.lst: grub_script.tab.c genfslist.sh |
1751 |
|
set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1752 |
|
|
1753 |
|
|
1754 |
|
normal_mod-normal_script.o: normal/script.c |
1755 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1756 |
|
|
1757 |
|
normal_mod-normal_script.d: normal/script.c |
1758 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,script\.o[ :]*,normal_mod-normal_script.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1759 |
|
|
1760 |
|
-include normal_mod-normal_script.d |
1761 |
|
|
1762 |
|
CLEANFILES += cmd-script.lst fs-script.lst |
1763 |
|
COMMANDFILES += cmd-script.lst |
1764 |
|
FSFILES += fs-script.lst |
1765 |
|
|
1766 |
|
cmd-script.lst: normal/script.c gencmdlist.sh |
1767 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
1768 |
|
|
1769 |
|
fs-script.lst: normal/script.c genfslist.sh |
1770 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
1771 |
|
|
1772 |
|
|
1773 |
normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S |
normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S |
1774 |
$(CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $< |
$(CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $< |
1775 |
|
|
2841 |
|
|
2842 |
|
|
2843 |
gzio_mod_CFLAGS = $(COMMON_CFLAGS) |
gzio_mod_CFLAGS = $(COMMON_CFLAGS) |
2844 |
|
|
2845 |
|
# For test.mod. |
2846 |
|
test_mod_SOURCES = commands/test.c |
2847 |
|
CLEANFILES += test.mod mod-test.o mod-test.c pre-test.o test_mod-commands_test.o def-test.lst und-test.lst |
2848 |
|
MOSTLYCLEANFILES += test_mod-commands_test.d |
2849 |
|
DEFSYMFILES += def-test.lst |
2850 |
|
UNDSYMFILES += und-test.lst |
2851 |
|
|
2852 |
|
test.mod: pre-test.o mod-test.o |
2853 |
|
-rm -f $@ |
2854 |
|
$(LD) $(test_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
2855 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
2856 |
|
|
2857 |
|
pre-test.o: test_mod-commands_test.o |
2858 |
|
-rm -f $@ |
2859 |
|
$(LD) $(test_mod_LDFLAGS) -r -d -o $@ $^ |
2860 |
|
|
2861 |
|
mod-test.o: mod-test.c |
2862 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -c -o $@ $< |
2863 |
|
|
2864 |
|
mod-test.c: moddep.lst genmodsrc.sh |
2865 |
|
sh $(srcdir)/genmodsrc.sh 'test' $< > $@ || (rm -f $@; exit 1) |
2866 |
|
|
2867 |
|
def-test.lst: pre-test.o |
2868 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 test/' > $@ |
2869 |
|
|
2870 |
|
und-test.lst: pre-test.o |
2871 |
|
echo 'test' > $@ |
2872 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
2873 |
|
|
2874 |
|
test_mod-commands_test.o: commands/test.c |
2875 |
|
$(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -c -o $@ $< |
2876 |
|
|
2877 |
|
test_mod-commands_test.d: commands/test.c |
2878 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -M $< | sed 's,test\.o[ :]*,test_mod-commands_test.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
2879 |
|
|
2880 |
|
-include test_mod-commands_test.d |
2881 |
|
|
2882 |
|
CLEANFILES += cmd-test.lst fs-test.lst |
2883 |
|
COMMANDFILES += cmd-test.lst |
2884 |
|
FSFILES += fs-test.lst |
2885 |
|
|
2886 |
|
cmd-test.lst: commands/test.c gencmdlist.sh |
2887 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh test > $@ || (rm -f $@; exit 1) |
2888 |
|
|
2889 |
|
fs-test.lst: commands/test.c genfslist.sh |
2890 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh test > $@ || (rm -f $@; exit 1) |
2891 |
|
|
2892 |
|
|
2893 |
|
test_mod_CFLAGS = $(COMMON_CFLAGS) |
2894 |
CLEANFILES += moddep.lst command.lst fs.lst |
CLEANFILES += moddep.lst command.lst fs.lst |
2895 |
pkgdata_DATA += moddep.lst command.lst fs.lst |
pkgdata_DATA += moddep.lst command.lst fs.lst |
2896 |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |