274 |
symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) gensymlist.sh |
symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) gensymlist.sh |
275 |
sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@ |
sh $(srcdir)/gensymlist.sh $(filter %.h,$^) > $@ |
276 |
|
|
277 |
|
# For the parser. |
278 |
|
grub_script.tab.c: normal/parser.y |
279 |
|
$(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y |
280 |
|
grub_script.tab.h: normal/parser.y |
281 |
|
$(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y |
282 |
|
|
283 |
|
|
284 |
kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) genkernsyms.sh |
kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) genkernsyms.sh |
285 |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
sh $(srcdir)/genkernsyms.sh $(filter %h,$^) > $@ |
286 |
|
|
755 |
# For grub-emu. |
# For grub-emu. |
756 |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
757 |
commands/configfile.c commands/default.c commands/help.c \ |
commands/configfile.c commands/default.c commands/help.c \ |
758 |
commands/terminal.c commands/ls.c commands/search.c \ |
commands/terminal.c commands/ls.c commands/test.c \ |
759 |
commands/timeout.c \ |
commands/search.c commands/timeout.c \ |
760 |
commands/i386/pc/halt.c commands/i386/pc/reboot.c \ |
commands/i386/pc/halt.c commands/i386/pc/reboot.c \ |
761 |
disk/loopback.c \ |
disk/loopback.c \ |
762 |
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 \ |
763 |
fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c \ |
fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c \ |
764 |
io/gzio.c \ |
io/gzio.c \ |
765 |
kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c \ |
kern/device.c kern/disk.c kern/dl.c kern/env.c kern/err.c \ |
766 |
kern/file.c kern/fs.c kern/loader.c kern/main.c kern/misc.c \ |
normal/execute.c kern/file.c kern/fs.c normal/lexer.c \ |
767 |
kern/parser.c kern/partition.c kern/rescue.c kern/term.c \ |
kern/loader.c kern/main.c kern/misc.c kern/parser.c \ |
768 |
normal/arg.c normal/cmdline.c normal/command.c \ |
grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \ |
769 |
|
normal/arg.c normal/cmdline.c normal/command.c normal/function.c\ |
770 |
normal/completion.c normal/context.c normal/main.c \ |
normal/completion.c normal/context.c normal/main.c \ |
771 |
normal/menu.c normal/menu_entry.c normal/misc.c \ |
normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \ |
772 |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
773 |
util/console.c util/grub-emu.c util/misc.c \ |
util/console.c util/grub-emu.c util/misc.c \ |
774 |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
775 |
util/i386/pc/misc.c |
util/i386/pc/misc.c |
776 |
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_terminal.o grub_emu-commands_ls.o grub_emu-commands_search.o grub_emu-commands_timeout.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_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_i386_pc_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_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_timeout.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_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-normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-grub_script_tab.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_function.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-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_i386_pc_misc.o |
777 |
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_terminal.d grub_emu-commands_ls.d grub_emu-commands_search.d grub_emu-commands_timeout.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_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_i386_pc_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_terminal.d grub_emu-commands_ls.d grub_emu-commands_test.d grub_emu-commands_search.d grub_emu-commands_timeout.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_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-normal_execute.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-normal_lexer.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_parser.d grub_emu-grub_script_tab.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_function.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-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_i386_pc_misc.d |
778 |
|
|
779 |
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_terminal.o grub_emu-commands_ls.o grub_emu-commands_search.o grub_emu-commands_timeout.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_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_i386_pc_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_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_timeout.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_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-normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-grub_script_tab.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_function.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-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_i386_pc_misc.o |
780 |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
781 |
|
|
782 |
grub_emu-commands_boot.o: commands/boot.c |
grub_emu-commands_boot.o: commands/boot.c |
843 |
|
|
844 |
-include grub_emu-commands_ls.d |
-include grub_emu-commands_ls.d |
845 |
|
|
846 |
|
grub_emu-commands_test.o: commands/test.c |
847 |
|
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
848 |
|
|
849 |
|
grub_emu-commands_test.d: commands/test.c |
850 |
|
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 $@ |
851 |
|
|
852 |
|
-include grub_emu-commands_test.d |
853 |
|
|
854 |
grub_emu-commands_search.o: commands/search.c |
grub_emu-commands_search.o: commands/search.c |
855 |
$(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 $@ $< |
856 |
|
|
1027 |
|
|
1028 |
-include grub_emu-kern_err.d |
-include grub_emu-kern_err.d |
1029 |
|
|
1030 |
|
grub_emu-normal_execute.o: normal/execute.c |
1031 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1032 |
|
|
1033 |
|
grub_emu-normal_execute.d: normal/execute.c |
1034 |
|
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 $@ |
1035 |
|
|
1036 |
|
-include grub_emu-normal_execute.d |
1037 |
|
|
1038 |
grub_emu-kern_file.o: kern/file.c |
grub_emu-kern_file.o: kern/file.c |
1039 |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1040 |
|
|
1051 |
|
|
1052 |
-include grub_emu-kern_fs.d |
-include grub_emu-kern_fs.d |
1053 |
|
|
1054 |
|
grub_emu-normal_lexer.o: normal/lexer.c |
1055 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1056 |
|
|
1057 |
|
grub_emu-normal_lexer.d: normal/lexer.c |
1058 |
|
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 $@ |
1059 |
|
|
1060 |
|
-include grub_emu-normal_lexer.d |
1061 |
|
|
1062 |
grub_emu-kern_loader.o: kern/loader.c |
grub_emu-kern_loader.o: kern/loader.c |
1063 |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1064 |
|
|
1091 |
|
|
1092 |
-include grub_emu-kern_parser.d |
-include grub_emu-kern_parser.d |
1093 |
|
|
1094 |
|
grub_emu-grub_script_tab.o: grub_script.tab.c |
1095 |
|
$(BUILD_CC) -I. -I$(srcdir)/. $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1096 |
|
|
1097 |
|
grub_emu-grub_script_tab.d: grub_script.tab.c |
1098 |
|
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 $@ |
1099 |
|
|
1100 |
|
-include grub_emu-grub_script_tab.d |
1101 |
|
|
1102 |
grub_emu-kern_partition.o: kern/partition.c |
grub_emu-kern_partition.o: kern/partition.c |
1103 |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Ikern -I$(srcdir)/kern $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1104 |
|
|
1147 |
|
|
1148 |
-include grub_emu-normal_command.d |
-include grub_emu-normal_command.d |
1149 |
|
|
1150 |
|
grub_emu-normal_function.o: normal/function.c |
1151 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1152 |
|
|
1153 |
|
grub_emu-normal_function.d: normal/function.c |
1154 |
|
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 $@ |
1155 |
|
|
1156 |
|
-include grub_emu-normal_function.d |
1157 |
|
|
1158 |
grub_emu-normal_completion.o: normal/completion.c |
grub_emu-normal_completion.o: normal/completion.c |
1159 |
$(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 $@ $< |
1160 |
|
|
1203 |
|
|
1204 |
-include grub_emu-normal_misc.d |
-include grub_emu-normal_misc.d |
1205 |
|
|
1206 |
|
grub_emu-normal_script.o: normal/script.c |
1207 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
1208 |
|
|
1209 |
|
grub_emu-normal_script.d: normal/script.c |
1210 |
|
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 $@ |
1211 |
|
|
1212 |
|
-include grub_emu-normal_script.d |
1213 |
|
|
1214 |
grub_emu-partmap_amiga.o: partmap/amiga.c |
grub_emu-partmap_amiga.o: partmap/amiga.c |
1215 |
$(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 $@ $< |
1216 |
|
|
1331 |
apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod \ |
apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod \ |
1332 |
help.mod default.mod timeout.mod configfile.mod vbe.mod \ |
help.mod default.mod timeout.mod configfile.mod vbe.mod \ |
1333 |
vesafb.mod vbetest.mod vbeinfo.mod search.mod gzio.mod \ |
vesafb.mod vbetest.mod vbeinfo.mod search.mod gzio.mod \ |
1334 |
terminfo.mod serial.mod xfs.mod affs.mod sfs.mod |
terminfo.mod serial.mod xfs.mod affs.mod sfs.mod test.mod |
1335 |
|
|
1336 |
# For _chain.mod. |
# For _chain.mod. |
1337 |
_chain_mod_SOURCES = loader/i386/pc/chainloader.c |
_chain_mod_SOURCES = loader/i386/pc/chainloader.c |
2054 |
|
|
2055 |
# For normal.mod. |
# For normal.mod. |
2056 |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
2057 |
normal/completion.c normal/context.c normal/main.c \ |
normal/completion.c normal/context.c normal/execute.c \ |
2058 |
normal/menu.c normal/menu_entry.c normal/misc.c \ |
normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
2059 |
normal/i386/setjmp.S |
normal/menu_entry.c normal/misc.c grub_script.tab.c \ |
2060 |
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_i386_setjmp.o def-normal.lst und-normal.lst |
normal/script.c normal/i386/setjmp.S |
2061 |
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_i386_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_i386_setjmp.o def-normal.lst und-normal.lst |
2062 |
|
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_i386_setjmp.d |
2063 |
DEFSYMFILES += def-normal.lst |
DEFSYMFILES += def-normal.lst |
2064 |
UNDSYMFILES += und-normal.lst |
UNDSYMFILES += und-normal.lst |
2065 |
|
|
2068 |
$(LD) $(normal_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
$(LD) $(normal_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
2069 |
$(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 $@ |
2070 |
|
|
2071 |
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_i386_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_i386_setjmp.o |
2072 |
-rm -f $@ |
-rm -f $@ |
2073 |
$(LD) $(normal_mod_LDFLAGS) -r -d -o $@ $^ |
$(LD) $(normal_mod_LDFLAGS) -r -d -o $@ $^ |
2074 |
|
|
2180 |
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) |
2181 |
|
|
2182 |
|
|
2183 |
|
normal_mod-normal_execute.o: normal/execute.c |
2184 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2185 |
|
|
2186 |
|
normal_mod-normal_execute.d: normal/execute.c |
2187 |
|
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 $@ |
2188 |
|
|
2189 |
|
-include normal_mod-normal_execute.d |
2190 |
|
|
2191 |
|
CLEANFILES += cmd-execute.lst fs-execute.lst |
2192 |
|
COMMANDFILES += cmd-execute.lst |
2193 |
|
FSFILES += fs-execute.lst |
2194 |
|
|
2195 |
|
cmd-execute.lst: normal/execute.c gencmdlist.sh |
2196 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
2197 |
|
|
2198 |
|
fs-execute.lst: normal/execute.c genfslist.sh |
2199 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
2200 |
|
|
2201 |
|
|
2202 |
|
normal_mod-normal_function.o: normal/function.c |
2203 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2204 |
|
|
2205 |
|
normal_mod-normal_function.d: normal/function.c |
2206 |
|
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 $@ |
2207 |
|
|
2208 |
|
-include normal_mod-normal_function.d |
2209 |
|
|
2210 |
|
CLEANFILES += cmd-function.lst fs-function.lst |
2211 |
|
COMMANDFILES += cmd-function.lst |
2212 |
|
FSFILES += fs-function.lst |
2213 |
|
|
2214 |
|
cmd-function.lst: normal/function.c gencmdlist.sh |
2215 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
2216 |
|
|
2217 |
|
fs-function.lst: normal/function.c genfslist.sh |
2218 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
2219 |
|
|
2220 |
|
|
2221 |
|
normal_mod-normal_lexer.o: normal/lexer.c |
2222 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2223 |
|
|
2224 |
|
normal_mod-normal_lexer.d: normal/lexer.c |
2225 |
|
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 $@ |
2226 |
|
|
2227 |
|
-include normal_mod-normal_lexer.d |
2228 |
|
|
2229 |
|
CLEANFILES += cmd-lexer.lst fs-lexer.lst |
2230 |
|
COMMANDFILES += cmd-lexer.lst |
2231 |
|
FSFILES += fs-lexer.lst |
2232 |
|
|
2233 |
|
cmd-lexer.lst: normal/lexer.c gencmdlist.sh |
2234 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
2235 |
|
|
2236 |
|
fs-lexer.lst: normal/lexer.c genfslist.sh |
2237 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
2238 |
|
|
2239 |
|
|
2240 |
normal_mod-normal_main.o: normal/main.c |
normal_mod-normal_main.o: normal/main.c |
2241 |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2242 |
|
|
2313 |
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) |
2314 |
|
|
2315 |
|
|
2316 |
|
normal_mod-grub_script_tab.o: grub_script.tab.c |
2317 |
|
$(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2318 |
|
|
2319 |
|
normal_mod-grub_script_tab.d: grub_script.tab.c |
2320 |
|
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 $@ |
2321 |
|
|
2322 |
|
-include normal_mod-grub_script_tab.d |
2323 |
|
|
2324 |
|
CLEANFILES += cmd-grub_script.tab.lst fs-grub_script.tab.lst |
2325 |
|
COMMANDFILES += cmd-grub_script.tab.lst |
2326 |
|
FSFILES += fs-grub_script.tab.lst |
2327 |
|
|
2328 |
|
cmd-grub_script.tab.lst: grub_script.tab.c gencmdlist.sh |
2329 |
|
set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
2330 |
|
|
2331 |
|
fs-grub_script.tab.lst: grub_script.tab.c genfslist.sh |
2332 |
|
set -e; $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
2333 |
|
|
2334 |
|
|
2335 |
|
normal_mod-normal_script.o: normal/script.c |
2336 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
2337 |
|
|
2338 |
|
normal_mod-normal_script.d: normal/script.c |
2339 |
|
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 $@ |
2340 |
|
|
2341 |
|
-include normal_mod-normal_script.d |
2342 |
|
|
2343 |
|
CLEANFILES += cmd-script.lst fs-script.lst |
2344 |
|
COMMANDFILES += cmd-script.lst |
2345 |
|
FSFILES += fs-script.lst |
2346 |
|
|
2347 |
|
cmd-script.lst: normal/script.c gencmdlist.sh |
2348 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
2349 |
|
|
2350 |
|
fs-script.lst: normal/script.c genfslist.sh |
2351 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
2352 |
|
|
2353 |
|
|
2354 |
normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S |
normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S |
2355 |
$(CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $< |
$(CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(CPPFLAGS) $(ASFLAGS) $(normal_mod_ASFLAGS) -c -o $@ $< |
2356 |
|
|
3871 |
|
|
3872 |
gzio_mod_CFLAGS = $(COMMON_CFLAGS) |
gzio_mod_CFLAGS = $(COMMON_CFLAGS) |
3873 |
gzio_mod_LDFLAGS = $(COMMON_LDFLAGS) |
gzio_mod_LDFLAGS = $(COMMON_LDFLAGS) |
3874 |
|
|
3875 |
|
# For test.mod. |
3876 |
|
test_mod_SOURCES = commands/test.c |
3877 |
|
CLEANFILES += test.mod mod-test.o mod-test.c pre-test.o test_mod-commands_test.o def-test.lst und-test.lst |
3878 |
|
MOSTLYCLEANFILES += test_mod-commands_test.d |
3879 |
|
DEFSYMFILES += def-test.lst |
3880 |
|
UNDSYMFILES += und-test.lst |
3881 |
|
|
3882 |
|
test.mod: pre-test.o mod-test.o |
3883 |
|
-rm -f $@ |
3884 |
|
$(LD) $(test_mod_LDFLAGS) $(LDFLAGS) -r -d -o $@ $^ |
3885 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
3886 |
|
|
3887 |
|
pre-test.o: test_mod-commands_test.o |
3888 |
|
-rm -f $@ |
3889 |
|
$(LD) $(test_mod_LDFLAGS) -r -d -o $@ $^ |
3890 |
|
|
3891 |
|
mod-test.o: mod-test.c |
3892 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -c -o $@ $< |
3893 |
|
|
3894 |
|
mod-test.c: moddep.lst genmodsrc.sh |
3895 |
|
sh $(srcdir)/genmodsrc.sh 'test' $< > $@ || (rm -f $@; exit 1) |
3896 |
|
|
3897 |
|
def-test.lst: pre-test.o |
3898 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 test/' > $@ |
3899 |
|
|
3900 |
|
und-test.lst: pre-test.o |
3901 |
|
echo 'test' > $@ |
3902 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
3903 |
|
|
3904 |
|
test_mod-commands_test.o: commands/test.c |
3905 |
|
$(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -c -o $@ $< |
3906 |
|
|
3907 |
|
test_mod-commands_test.d: commands/test.c |
3908 |
|
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 $@ |
3909 |
|
|
3910 |
|
-include test_mod-commands_test.d |
3911 |
|
|
3912 |
|
CLEANFILES += cmd-test.lst fs-test.lst |
3913 |
|
COMMANDFILES += cmd-test.lst |
3914 |
|
FSFILES += fs-test.lst |
3915 |
|
|
3916 |
|
cmd-test.lst: commands/test.c gencmdlist.sh |
3917 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh test > $@ || (rm -f $@; exit 1) |
3918 |
|
|
3919 |
|
fs-test.lst: commands/test.c genfslist.sh |
3920 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh test > $@ || (rm -f $@; exit 1) |
3921 |
|
|
3922 |
|
|
3923 |
|
test_mod_CFLAGS = $(COMMON_CFLAGS) |
3924 |
|
test_mod_LDFLAGS = $(COMMON_LDFLAGS) |
3925 |
CLEANFILES += moddep.lst command.lst fs.lst |
CLEANFILES += moddep.lst command.lst fs.lst |
3926 |
pkgdata_DATA += moddep.lst command.lst fs.lst |
pkgdata_DATA += moddep.lst command.lst fs.lst |
3927 |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |