71 |
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \ |
normal/cmdline.c normal/command.c normal/main.c normal/menu.c \ |
72 |
normal/arg.c kern/partition.c \ |
normal/arg.c kern/partition.c \ |
73 |
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \ |
util/console.c util/grub-emu.c util/misc.c util/i386/pc/getroot.c \ |
74 |
kern/env.c disk/loopback.c commands/ls.c \ |
kern/env.c disk/loopback.c commands/ls.c commands/help.c \ |
75 |
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c |
commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c |
76 |
CLEANFILES += grub-emu grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o |
CLEANFILES += grub-emu grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o |
77 |
MOSTLYCLEANFILES += grub_emu-kern_main.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_err.d grub_emu-kern_misc.d grub_emu-kern_loader.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-partmap_amiga.d grub_emu-partmap_pc.d grub_emu-partmap_apple.d grub_emu-fs_fshelp.d grub_emu-util_i386_pc_biosdisk.d grub_emu-fs_fat.d grub_emu-fs_ext2.d grub_emu-fs_ufs.d grub_emu-fs_minix.d grub_emu-fs_hfs.d grub_emu-fs_jfs.d grub_emu-fs_iso9660.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_arg.d grub_emu-kern_partition.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_getroot.d grub_emu-kern_env.d grub_emu-disk_loopback.d grub_emu-commands_ls.d grub_emu-commands_terminal.d grub_emu-commands_boot.d grub_emu-commands_cmp.d grub_emu-commands_cat.d |
MOSTLYCLEANFILES += grub_emu-kern_main.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-kern_err.d grub_emu-kern_misc.d grub_emu-kern_loader.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-partmap_amiga.d grub_emu-partmap_pc.d grub_emu-partmap_apple.d grub_emu-fs_fshelp.d grub_emu-util_i386_pc_biosdisk.d grub_emu-fs_fat.d grub_emu-fs_ext2.d grub_emu-fs_ufs.d grub_emu-fs_minix.d grub_emu-fs_hfs.d grub_emu-fs_jfs.d grub_emu-fs_iso9660.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_main.d grub_emu-normal_menu.d grub_emu-normal_arg.d grub_emu-kern_partition.d grub_emu-util_console.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_i386_pc_getroot.d grub_emu-kern_env.d grub_emu-disk_loopback.d grub_emu-commands_ls.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_boot.d grub_emu-commands_cmp.d grub_emu-commands_cat.d |
78 |
|
|
79 |
grub-emu: grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o |
grub-emu: grub_emu-kern_main.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-kern_err.o grub_emu-kern_misc.o grub_emu-kern_loader.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-partmap_amiga.o grub_emu-partmap_pc.o grub_emu-partmap_apple.o grub_emu-fs_fshelp.o grub_emu-util_i386_pc_biosdisk.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_ufs.o grub_emu-fs_minix.o grub_emu-fs_hfs.o grub_emu-fs_jfs.o grub_emu-fs_iso9660.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_main.o grub_emu-normal_menu.o grub_emu-normal_arg.o grub_emu-kern_partition.o grub_emu-util_console.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_i386_pc_getroot.o grub_emu-kern_env.o grub_emu-disk_loopback.o grub_emu-commands_ls.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_boot.o grub_emu-commands_cmp.o grub_emu-commands_cat.o |
80 |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(grub_emu_LDFLAGS) |
81 |
|
|
82 |
grub_emu-kern_main.o: kern/main.c |
grub_emu-kern_main.o: kern/main.c |
367 |
|
|
368 |
-include grub_emu-commands_ls.d |
-include grub_emu-commands_ls.d |
369 |
|
|
370 |
|
grub_emu-commands_help.o: commands/help.c |
371 |
|
$(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -c -o $@ $< |
372 |
|
|
373 |
|
grub_emu-commands_help.d: commands/help.c |
374 |
|
set -e; $(BUILD_CC) -Icommands -I$(srcdir)/commands $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -M $< | sed 's,help\.o[ :]*,grub_emu-commands_help.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
375 |
|
|
376 |
|
-include grub_emu-commands_help.d |
377 |
|
|
378 |
grub_emu-commands_terminal.o: commands/terminal.c |
grub_emu-commands_terminal.o: commands/terminal.c |
379 |
$(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 $@ $< |
380 |
|
|
641 |
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \ |
pkgdata_MODULES = _linux.mod linux.mod fat.mod ufs.mod ext2.mod minix.mod \ |
642 |
hfs.mod jfs.mod normal.mod hello.mod font.mod \ |
hfs.mod jfs.mod normal.mod hello.mod font.mod \ |
643 |
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 \ |
644 |
pc.mod suspend.mod loopback.mod |
pc.mod suspend.mod loopback.mod help.mod reboot.mod halt.mod |
645 |
|
|
646 |
# For fshelp.mod. |
# For fshelp.mod. |
647 |
fshelp_mod_SOURCES = fs/fshelp.c |
fshelp_mod_SOURCES = fs/fshelp.c |
1511 |
-include suspend_mod-commands_ieee1275_suspend.d |
-include suspend_mod-commands_ieee1275_suspend.d |
1512 |
|
|
1513 |
suspend_mod_CFLAGS = $(COMMON_CFLAGS) |
suspend_mod_CFLAGS = $(COMMON_CFLAGS) |
1514 |
|
|
1515 |
|
# For reboot.mod |
1516 |
|
reboot_mod_SOURCES = commands/ieee1275/reboot.c |
1517 |
|
CLEANFILES += reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_ieee1275_reboot.o def-reboot.lst und-reboot.lst |
1518 |
|
MOSTLYCLEANFILES += reboot_mod-commands_ieee1275_reboot.d |
1519 |
|
DEFSYMFILES += def-reboot.lst |
1520 |
|
UNDSYMFILES += und-reboot.lst |
1521 |
|
|
1522 |
|
reboot.mod: pre-reboot.o mod-reboot.o |
1523 |
|
-rm -f $@ |
1524 |
|
$(LD) -r -d -o $@ $^ |
1525 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
1526 |
|
|
1527 |
|
pre-reboot.o: reboot_mod-commands_ieee1275_reboot.o |
1528 |
|
-rm -f $@ |
1529 |
|
$(LD) -r -d -o $@ $^ |
1530 |
|
|
1531 |
|
mod-reboot.o: mod-reboot.c |
1532 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $< |
1533 |
|
|
1534 |
|
mod-reboot.c: moddep.lst genmodsrc.sh |
1535 |
|
sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1) |
1536 |
|
|
1537 |
|
def-reboot.lst: pre-reboot.o |
1538 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@ |
1539 |
|
|
1540 |
|
und-reboot.lst: pre-reboot.o |
1541 |
|
echo 'reboot' > $@ |
1542 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
1543 |
|
|
1544 |
|
reboot_mod-commands_ieee1275_reboot.o: commands/ieee1275/reboot.c |
1545 |
|
$(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $< |
1546 |
|
|
1547 |
|
reboot_mod-commands_ieee1275_reboot.d: commands/ieee1275/reboot.c |
1548 |
|
set -e; $(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) $(reboot_mod_CFLAGS) -M $< | sed 's,reboot\.o[ :]*,reboot_mod-commands_ieee1275_reboot.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1549 |
|
|
1550 |
|
-include reboot_mod-commands_ieee1275_reboot.d |
1551 |
|
|
1552 |
|
reboot_mod_CFLAGS = $(COMMON_CFLAGS) |
1553 |
|
|
1554 |
|
# For halt.mod |
1555 |
|
halt_mod_SOURCES = commands/ieee1275/halt.c |
1556 |
|
CLEANFILES += halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_ieee1275_halt.o def-halt.lst und-halt.lst |
1557 |
|
MOSTLYCLEANFILES += halt_mod-commands_ieee1275_halt.d |
1558 |
|
DEFSYMFILES += def-halt.lst |
1559 |
|
UNDSYMFILES += und-halt.lst |
1560 |
|
|
1561 |
|
halt.mod: pre-halt.o mod-halt.o |
1562 |
|
-rm -f $@ |
1563 |
|
$(LD) -r -d -o $@ $^ |
1564 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
1565 |
|
|
1566 |
|
pre-halt.o: halt_mod-commands_ieee1275_halt.o |
1567 |
|
-rm -f $@ |
1568 |
|
$(LD) -r -d -o $@ $^ |
1569 |
|
|
1570 |
|
mod-halt.o: mod-halt.c |
1571 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $< |
1572 |
|
|
1573 |
|
mod-halt.c: moddep.lst genmodsrc.sh |
1574 |
|
sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1) |
1575 |
|
|
1576 |
|
def-halt.lst: pre-halt.o |
1577 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@ |
1578 |
|
|
1579 |
|
und-halt.lst: pre-halt.o |
1580 |
|
echo 'halt' > $@ |
1581 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
1582 |
|
|
1583 |
|
halt_mod-commands_ieee1275_halt.o: commands/ieee1275/halt.c |
1584 |
|
$(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $< |
1585 |
|
|
1586 |
|
halt_mod-commands_ieee1275_halt.d: commands/ieee1275/halt.c |
1587 |
|
set -e; $(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) $(halt_mod_CFLAGS) -M $< | sed 's,halt\.o[ :]*,halt_mod-commands_ieee1275_halt.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1588 |
|
|
1589 |
|
-include halt_mod-commands_ieee1275_halt.d |
1590 |
|
|
1591 |
|
halt_mod_CFLAGS = $(COMMON_CFLAGS) |
1592 |
|
|
1593 |
|
# For help.mod. |
1594 |
|
help_mod_SOURCES = commands/help.c |
1595 |
|
CLEANFILES += help.mod mod-help.o mod-help.c pre-help.o help_mod-commands_help.o def-help.lst und-help.lst |
1596 |
|
MOSTLYCLEANFILES += help_mod-commands_help.d |
1597 |
|
DEFSYMFILES += def-help.lst |
1598 |
|
UNDSYMFILES += und-help.lst |
1599 |
|
|
1600 |
|
help.mod: pre-help.o mod-help.o |
1601 |
|
-rm -f $@ |
1602 |
|
$(LD) -r -d -o $@ $^ |
1603 |
|
$(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
1604 |
|
|
1605 |
|
pre-help.o: help_mod-commands_help.o |
1606 |
|
-rm -f $@ |
1607 |
|
$(LD) -r -d -o $@ $^ |
1608 |
|
|
1609 |
|
mod-help.o: mod-help.c |
1610 |
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -c -o $@ $< |
1611 |
|
|
1612 |
|
mod-help.c: moddep.lst genmodsrc.sh |
1613 |
|
sh $(srcdir)/genmodsrc.sh 'help' $< > $@ || (rm -f $@; exit 1) |
1614 |
|
|
1615 |
|
def-help.lst: pre-help.o |
1616 |
|
$(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 help/' > $@ |
1617 |
|
|
1618 |
|
und-help.lst: pre-help.o |
1619 |
|
echo 'help' > $@ |
1620 |
|
$(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
1621 |
|
|
1622 |
|
help_mod-commands_help.o: commands/help.c |
1623 |
|
$(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -c -o $@ $< |
1624 |
|
|
1625 |
|
help_mod-commands_help.d: commands/help.c |
1626 |
|
set -e; $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) $(help_mod_CFLAGS) -M $< | sed 's,help\.o[ :]*,help_mod-commands_help.o $@ : ,g' > $@; [ -s $@ ] || rm -f $@ |
1627 |
|
|
1628 |
|
-include help_mod-commands_help.d |
1629 |
|
|
1630 |
|
help_mod_CFLAGS = $(COMMON_CFLAGS) |
1631 |
CLEANFILES += moddep.lst |
CLEANFILES += moddep.lst |
1632 |
pkgdata_DATA += moddep.lst |
pkgdata_DATA += moddep.lst |
1633 |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |
moddep.lst: $(DEFSYMFILES) $(UNDSYMFILES) genmoddep |