504 |
-include grub_setup-fs_fshelp.d |
-include grub_setup-fs_fshelp.d |
505 |
|
|
506 |
|
|
507 |
# For grub |
# For grub_emu. |
508 |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
509 |
commands/help.c commands/terminal.c commands/ls.c \ |
commands/default.c commands/help.c commands/terminal.c \ |
510 |
|
commands/ls.c commands/timeout.c \ |
511 |
commands/i386/pc/halt.c commands/i386/pc/reboot.c \ |
commands/i386/pc/halt.c commands/i386/pc/reboot.c \ |
512 |
disk/loopback.c \ |
disk/loopback.c \ |
513 |
fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c fs/jfs.c \ |
fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c fs/jfs.c \ |
515 |
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 \ |
516 |
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 \ |
517 |
kern/partition.c kern/rescue.c kern/term.c \ |
kern/partition.c kern/rescue.c kern/term.c \ |
518 |
normal/arg.c normal/cmdline.c normal/command.c normal/main.c \ |
normal/arg.c normal/cmdline.c normal/command.c normal/context.c \ |
519 |
normal/menu.c normal/menu_entry.c \ |
normal/main.c normal/menu.c normal/menu_entry.c \ |
520 |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
521 |
util/console.c util/grub-emu.c util/misc.c \ |
util/console.c util/grub-emu.c util/misc.c \ |
522 |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
util/i386/pc/biosdisk.c util/i386/pc/getroot.c \ |
523 |
util/i386/pc/misc.c |
util/i386/pc/misc.c |
524 |
CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.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_ufs.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_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_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.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_default.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.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_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_ufs.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_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_context.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.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 |
525 |
MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_reboot.d grub_emu-disk_loopback.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_ufs.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_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_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.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_default.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_ls.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_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_ufs.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_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_context.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.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 |
526 |
|
|
527 |
grub-emu: grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-disk_loopback.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_ufs.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_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_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.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_default.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.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_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_ufs.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_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_context.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.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 |
528 |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
529 |
|
|
530 |
grub_emu-commands_boot.o: commands/boot.c |
grub_emu-commands_boot.o: commands/boot.c |
551 |
|
|
552 |
-include grub_emu-commands_cmp.d |
-include grub_emu-commands_cmp.d |
553 |
|
|
554 |
|
grub_emu-commands_default.o: commands/default.c |
555 |
|
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
556 |
|
|
557 |
|
grub_emu-commands_default.d: commands/default.c |
558 |
|
set -e; $(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,default\.o[ :]*,grub_emu-commands_default.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
559 |
|
|
560 |
|
-include grub_emu-commands_default.d |
561 |
|
|
562 |
grub_emu-commands_help.o: commands/help.c |
grub_emu-commands_help.o: commands/help.c |
563 |
$(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 $@ $< |
564 |
|
|
583 |
|
|
584 |
-include grub_emu-commands_ls.d |
-include grub_emu-commands_ls.d |
585 |
|
|
586 |
|
grub_emu-commands_timeout.o: commands/timeout.c |
587 |
|
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
588 |
|
|
589 |
|
grub_emu-commands_timeout.d: commands/timeout.c |
590 |
|
set -e; $(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,timeout\.o[ :]*,grub_emu-commands_timeout.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
591 |
|
|
592 |
|
-include grub_emu-commands_timeout.d |
593 |
|
|
594 |
grub_emu-commands_i386_pc_halt.o: commands/i386/pc/halt.c |
grub_emu-commands_i386_pc_halt.o: commands/i386/pc/halt.c |
595 |
$(BUILD_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
$(BUILD_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
596 |
|
|
807 |
|
|
808 |
-include grub_emu-normal_command.d |
-include grub_emu-normal_command.d |
809 |
|
|
810 |
|
grub_emu-normal_context.o: normal/context.c |
811 |
|
$(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
812 |
|
|
813 |
|
grub_emu-normal_context.d: normal/context.c |
814 |
|
set -e; $(BUILD_CC) -Inormal -I$(srcdir)/normal $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,context\.o[ :]*,grub_emu-normal_context.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
815 |
|
|
816 |
|
-include grub_emu-normal_context.d |
817 |
|
|
818 |
grub_emu-normal_main.o: normal/main.c |
grub_emu-normal_main.o: normal/main.c |
819 |
$(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 $@ $< |
820 |
|
|
940 |
|
|
941 |
|
|
942 |
# Modules. |
# Modules. |
943 |
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \ |
pkgdata_MODULES = _chain.mod _linux.mod linux.mod fat.mod ufs.mod \ |
944 |
hfs.mod jfs.mod normal.mod hello.mod vga.mod font.mod _multiboot.mod ls.mod \ |
ext2.mod minix.mod hfs.mod jfs.mod normal.mod hello.mod vga.mod \ |
945 |
boot.mod cmp.mod cat.mod terminal.mod fshelp.mod chain.mod multiboot.mod \ |
font.mod _multiboot.mod ls.mod boot.mod cmp.mod cat.mod \ |
946 |
amiga.mod apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod help.mod |
terminal.mod fshelp.mod chain.mod multiboot.mod amiga.mod \ |
947 |
|
apple.mod pc.mod sun.mod loopback.mod reboot.mod halt.mod \ |
948 |
|
help.mod default.mod timeout.mod |
949 |
|
|
950 |
# For _chain.mod. |
# For _chain.mod. |
951 |
_chain_mod_SOURCES = loader/i386/pc/chainloader.c |
_chain_mod_SOURCES = loader/i386/pc/chainloader.c |
1382 |
|
|
1383 |
# For normal.mod. |
# For normal.mod. |
1384 |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
1385 |
normal/main.c normal/menu.c normal/menu_entry.c \ |
normal/context.c normal/main.c normal/menu.c \ |
1386 |
normal/i386/setjmp.S |
normal/menu_entry.c normal/i386/setjmp.S |
1387 |
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_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_i386_setjmp.o def-normal.lst und-normal.lst |
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_context.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_i386_setjmp.o def-normal.lst und-normal.lst |
1388 |
MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d normal_mod-normal_i386_setjmp.d |
MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.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_i386_setjmp.d |
1389 |
DEFSYMFILES += def-normal.lst |
DEFSYMFILES += def-normal.lst |
1390 |
UNDSYMFILES += und-normal.lst |
UNDSYMFILES += und-normal.lst |
1391 |
|
|
1394 |
$(LD) -r -d -o $@ $^ |
$(LD) -r -d -o $@ $^ |
1395 |
$(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 $@ |
1396 |
|
|
1397 |
pre-normal.o: normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.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_context.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_i386_setjmp.o |
1398 |
-rm -f $@ |
-rm -f $@ |
1399 |
$(LD) -r -d -o $@ $^ |
$(LD) -r -d -o $@ $^ |
1400 |
|
|
1435 |
|
|
1436 |
-include normal_mod-normal_command.d |
-include normal_mod-normal_command.d |
1437 |
|
|
1438 |
|
normal_mod-normal_context.o: normal/context.c |
1439 |
|
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1440 |
|
|
1441 |
|
normal_mod-normal_context.d: normal/context.c |
1442 |
|
set -e; $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -M $< | sed 's,context\.o[ :]*,normal_mod-normal_context.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1443 |
|
|
1444 |
|
-include normal_mod-normal_context.d |
1445 |
|
|
1446 |
normal_mod-normal_main.o: normal/main.c |
normal_mod-normal_main.o: normal/main.c |
1447 |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
$(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
1448 |
|
|
2179 |
-include loopback_mod-disk_loopback.d |
-include loopback_mod-disk_loopback.d |
2180 |
|
|
2181 |
loopback_mod_CFLAGS = $(COMMON_CFLAGS) |
loopback_mod_CFLAGS = $(COMMON_CFLAGS) |
2182 |
|
|
2183 |
|
# For default.mod |
2184 |
|
default_mod_SOURCES = commands/default.c |
2185 |
|
CLEANFILES += default.mod mod-default.o mod-default.c pre-default.o default_mod-commands_default.o def-default.lst und-default.lst |
2186 |
|
MOSTLYCLEANFILES += default_mod-commands_default.d |
2187 |
|
DEFSYMFILES += def-default.lst |
2188 |
|
UNDSYMFILES += und-default.lst |
2189 |
|
|
2190 |
|
default.mod: pre-default.o mod-default.o |
2191 |
|
-rm -f $@ |
2192 |
|
$(LD) -r -d -o $@ $^ |
2193 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
2194 |
|
|
2195 |
|
pre-default.o: default_mod-commands_default.o |
2196 |
|
-rm -f $@ |
2197 |
|
$(LD) -r -d -o $@ $^ |
2198 |
|
|
2199 |
|
mod-default.o: mod-default.c |
2200 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(default_mod_CFLAGS) -c -o $@ $< |
2201 |
|
|
2202 |
|
mod-default.c: moddep.lst genmodsrc.sh |
2203 |
|
sh $(srcdir)/genmodsrc.sh 'default' $< > $@ || (rm -f $@; exit 1) |
2204 |
|
|
2205 |
|
def-default.lst: pre-default.o |
2206 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 default/' > $@ |
2207 |
|
|
2208 |
|
und-default.lst: pre-default.o |
2209 |
|
echo 'default' > $@ |
2210 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
2211 |
|
|
2212 |
|
default_mod-commands_default.o: commands/default.c |
2213 |
|
$(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(default_mod_CFLAGS) -c -o $@ $< |
2214 |
|
|
2215 |
|
default_mod-commands_default.d: commands/default.c |
2216 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(default_mod_CFLAGS) -M $< | sed 's,default\.o[ :]*,default_mod-commands_default.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
2217 |
|
|
2218 |
|
-include default_mod-commands_default.d |
2219 |
|
|
2220 |
|
default_mod_CFLAGS = $(COMMON_CFLAGS) |
2221 |
|
|
2222 |
|
# For timeout.mod |
2223 |
|
timeout_mod_SOURCES = commands/timeout.c |
2224 |
|
CLEANFILES += timeout.mod mod-timeout.o mod-timeout.c pre-timeout.o timeout_mod-commands_timeout.o def-timeout.lst und-timeout.lst |
2225 |
|
MOSTLYCLEANFILES += timeout_mod-commands_timeout.d |
2226 |
|
DEFSYMFILES += def-timeout.lst |
2227 |
|
UNDSYMFILES += und-timeout.lst |
2228 |
|
|
2229 |
|
timeout.mod: pre-timeout.o mod-timeout.o |
2230 |
|
-rm -f $@ |
2231 |
|
$(LD) -r -d -o $@ $^ |
2232 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
2233 |
|
|
2234 |
|
pre-timeout.o: timeout_mod-commands_timeout.o |
2235 |
|
-rm -f $@ |
2236 |
|
$(LD) -r -d -o $@ $^ |
2237 |
|
|
2238 |
|
mod-timeout.o: mod-timeout.c |
2239 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(timeout_mod_CFLAGS) -c -o $@ $< |
2240 |
|
|
2241 |
|
mod-timeout.c: moddep.lst genmodsrc.sh |
2242 |
|
sh $(srcdir)/genmodsrc.sh 'timeout' $< > $@ || (rm -f $@; exit 1) |
2243 |
|
|
2244 |
|
def-timeout.lst: pre-timeout.o |
2245 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 timeout/' > $@ |
2246 |
|
|
2247 |
|
und-timeout.lst: pre-timeout.o |
2248 |
|
echo 'timeout' > $@ |
2249 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
2250 |
|
|
2251 |
|
timeout_mod-commands_timeout.o: commands/timeout.c |
2252 |
|
$(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(timeout_mod_CFLAGS) -c -o $@ $< |
2253 |
|
|
2254 |
|
timeout_mod-commands_timeout.d: commands/timeout.c |
2255 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(timeout_mod_CFLAGS) -M $< | sed 's,timeout\.o[ :]*,timeout_mod-commands_timeout.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
2256 |
|
|
2257 |
|
-include timeout_mod-commands_timeout.d |
2258 |
|
|
2259 |
|
timeout_mod_CFLAGS = $(COMMON_CFLAGS) |
2260 |
CLEANFILES += moddep.lst |
CLEANFILES += moddep.lst |
2261 |
pkgdata_DATA += moddep.lst |
pkgdata_DATA += moddep.lst |
2262 |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |