]>
Commit | Line | Data |
---|---|---|
e56cdf21 | 1 | |
2 | # -*- makefile -*- | |
3 | ||
9304c1f8 | 4 | COMMON_ASFLAGS = -nostdinc -D__ASSEMBLY__ |
ad0bd20b | 5 | COMMON_CFLAGS = -ffreestanding -msoft-float |
ff04ec24 | 6 | COMMON_LDFLAGS += -nostdlib |
e56cdf21 | 7 | |
8 | # Images. | |
9 | ||
5f0413bd | 10 | MOSTLYCLEANFILES += kernel_elf_symlist.c kernel_syms.lst |
e56cdf21 | 11 | DEFSYMFILES += kernel_syms.lst |
12 | ||
2166cc83 | 13 | kernel_elf_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \ |
14 | env.h err.h file.h fs.h kernel.h misc.h mm.h net.h parser.h rescue.h \ | |
46e5e5cb | 15 | symbol.h term.h time.h types.h powerpc/libgcc.h loader.h partition.h \ |
16 | pc_partition.h ieee1275/ieee1275.h machine/kernel.h | |
e4b47e0c | 17 | |
5f0413bd | 18 | kernel_elf_symlist.c: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h gensymlist.sh |
7b455f4d | 19 | /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) |
e56cdf21 | 20 | |
5f0413bd | 21 | kernel_syms.lst: $(addprefix include/grub/,$(kernel_elf_HEADERS)) config.h genkernsyms.sh |
7b455f4d | 22 | /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) |
e56cdf21 | 23 | |
924b6140 | 24 | # Programs |
4931827f | 25 | pkglib_PROGRAMS = kernel.elf |
924b6140 | 26 | |
e56cdf21 | 27 | # Utilities. |
e02ac02c | 28 | bin_UTILITIES = grub-mkimage |
ccaa8a5f | 29 | sbin_UTILITIES = grub-mkdevicemap |
fd3e4ea5 | 30 | ifeq ($(enable_grub_emu), yes) |
fb36dc26 | 31 | sbin_UTILITIES += grub-emu |
fd3e4ea5 | 32 | endif |
e02ac02c | 33 | |
d0ff18e1 | 34 | # For grub-mkimage. |
5db82af6 | 35 | grub_mkimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \ |
d0ff18e1 | 36 | util/resolve.c |
5db82af6 | 37 | CLEANFILES += grub-mkimage grub_mkimage-util_elf_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o |
38 | MOSTLYCLEANFILES += grub_mkimage-util_elf_grub_mkimage.d grub_mkimage-util_misc.d grub_mkimage-util_resolve.d | |
d0ff18e1 | 39 | |
5db82af6 | 40 | grub-mkimage: $(grub_mkimage_DEPENDENCIES) grub_mkimage-util_elf_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o |
41 | $(CC) -o $@ grub_mkimage-util_elf_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o $(LDFLAGS) $(grub_mkimage_LDFLAGS) | |
d0ff18e1 | 42 | |
5db82af6 | 43 | grub_mkimage-util_elf_grub_mkimage.o: util/elf/grub-mkimage.c $(util/elf/grub-mkimage.c_DEPENDENCIES) |
44 | $(CC) -Iutil/elf -I$(srcdir)/util/elf $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< | |
45 | -include grub_mkimage-util_elf_grub_mkimage.d | |
d0ff18e1 | 46 | |
38da6516 | 47 | grub_mkimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
01b82a64 | 48 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< |
d0ff18e1 | 49 | -include grub_mkimage-util_misc.d |
50 | ||
38da6516 | 51 | grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) |
01b82a64 | 52 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< |
d0ff18e1 | 53 | -include grub_mkimage-util_resolve.d |
54 | ||
55 | ||
fb36dc26 | 56 | # For grub-mkdevicemap. |
7720a448 | 57 | grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ |
58 | util/ieee1275/get_disk_name.c | |
59 | CLEANFILES += grub-mkdevicemap grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_ieee1275_get_disk_name.o | |
60 | MOSTLYCLEANFILES += grub_mkdevicemap-util_grub_mkdevicemap.d grub_mkdevicemap-util_misc.d grub_mkdevicemap-util_ieee1275_get_disk_name.d | |
fb36dc26 | 61 | |
7720a448 | 62 | grub-mkdevicemap: $(grub_mkdevicemap_DEPENDENCIES) grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_ieee1275_get_disk_name.o |
63 | $(CC) -o $@ grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_ieee1275_get_disk_name.o $(LDFLAGS) $(grub_mkdevicemap_LDFLAGS) | |
fb36dc26 | 64 | |
38da6516 | 65 | grub_mkdevicemap-util_grub_mkdevicemap.o: util/grub-mkdevicemap.c $(util/grub-mkdevicemap.c_DEPENDENCIES) |
fb36dc26 | 66 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
67 | -include grub_mkdevicemap-util_grub_mkdevicemap.d | |
68 | ||
38da6516 | 69 | grub_mkdevicemap-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
fb36dc26 | 70 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
71 | -include grub_mkdevicemap-util_misc.d | |
72 | ||
38da6516 | 73 | grub_mkdevicemap-util_ieee1275_get_disk_name.o: util/ieee1275/get_disk_name.c $(util/ieee1275/get_disk_name.c_DEPENDENCIES) |
7720a448 | 74 | $(CC) -Iutil/ieee1275 -I$(srcdir)/util/ieee1275 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
75 | -include grub_mkdevicemap-util_ieee1275_get_disk_name.d | |
76 | ||
fb36dc26 | 77 | |
4b13b216 | 78 | # For grub-emu |
e1907778 | 79 | util/grub-emu.c_DEPENDENCIES = grub_emu_init.h |
80 | normal/execute.c_DEPENDENCIES = grub_script.tab.h | |
81 | grub-emu_DEPENDENCIES = grub_script.tab.c | |
93f3a1d8 | 82 | grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
4e93851c | 83 | commands/configfile.c commands/help.c \ |
b6b32745 | 84 | commands/search.c commands/terminal.c commands/test.c \ |
c405c391 | 85 | commands/ls.c commands/blocklist.c commands/hexdump.c \ |
a5ce3a4a | 86 | commands/ieee1275/halt.c commands/ieee1275/reboot.c \ |
93f3a1d8 | 87 | disk/loopback.c \ |
2a9525e6 | 88 | \ |
89 | fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \ | |
90 | fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \ | |
91 | fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \ | |
92 | fs/ufs.c fs/xfs.c \ | |
93 | \ | |
d9864ee1 | 94 | io/gzio.c \ |
2166cc83 | 95 | kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \ |
96 | kern/err.c kern/file.c kern/fs.c kern/loader.c kern/main.c \ | |
97 | kern/misc.c kern/parser.c kern/partition.c kern/rescue.c \ | |
98 | kern/term.c \ | |
8de3495c | 99 | normal/arg.c normal/cmdline.c normal/command.c \ |
4e93851c | 100 | normal/completion.c normal/execute.c \ |
b6b32745 | 101 | normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
102 | normal/menu_entry.c normal/misc.c normal/script.c \ | |
0ece25b1 | 103 | normal/color.c \ |
93f3a1d8 | 104 | partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
7f67dc13 | 105 | partmap/acorn.c \ |
c8cc3692 | 106 | util/console.c util/hostfs.c util/grub-emu.c util/misc.c \ |
3572d015 | 107 | util/biosdisk.c util/getroot.c \ |
6d099807 | 108 | util/powerpc/ieee1275/misc.c grub_script.tab.c grub_emu_init.c |
2a9525e6 | 109 | 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_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_blocklist.o grub_emu-commands_hexdump.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_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.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_elf.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_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-normal_color.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_powerpc_ieee1275_misc.o grub_emu-grub_script_tab.o grub_emu-grub_emu_init.o |
110 | MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_configfile.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_blocklist.d grub_emu-commands_hexdump.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_cpio.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_hfs.d grub_emu-fs_hfsplus.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_ntfs.d grub_emu-fs_ntfscomp.d grub_emu-fs_reiserfs.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_elf.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_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-normal_color.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-partmap_sun.d grub_emu-partmap_acorn.d grub_emu-util_console.d grub_emu-util_hostfs.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_biosdisk.d grub_emu-util_getroot.d grub_emu-util_powerpc_ieee1275_misc.d grub_emu-grub_script_tab.d grub_emu-grub_emu_init.d | |
93f3a1d8 | 111 | |
2a9525e6 | 112 | grub-emu: $(grub_emu_DEPENDENCIES) grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.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_blocklist.o grub_emu-commands_hexdump.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_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.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_elf.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_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-normal_color.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_powerpc_ieee1275_misc.o grub_emu-grub_script_tab.o grub_emu-grub_emu_init.o |
113 | $(CC) -o $@ grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.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_blocklist.o grub_emu-commands_hexdump.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_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.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_elf.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_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-normal_color.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_powerpc_ieee1275_misc.o grub_emu-grub_script_tab.o grub_emu-grub_emu_init.o $(LDFLAGS) $(grub_emu_LDFLAGS) | |
e56cdf21 | 114 | |
38da6516 | 115 | grub_emu-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES) |
01b82a64 | 116 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 117 | -include grub_emu-commands_boot.d |
e56cdf21 | 118 | |
38da6516 | 119 | grub_emu-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES) |
01b82a64 | 120 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 121 | -include grub_emu-commands_cat.d |
e56cdf21 | 122 | |
38da6516 | 123 | grub_emu-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) |
01b82a64 | 124 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 125 | -include grub_emu-commands_cmp.d |
e56cdf21 | 126 | |
38da6516 | 127 | grub_emu-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) |
01b82a64 | 128 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
062aaf39 | 129 | -include grub_emu-commands_configfile.d |
130 | ||
38da6516 | 131 | grub_emu-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES) |
01b82a64 | 132 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 133 | -include grub_emu-commands_help.d |
e56cdf21 | 134 | |
38da6516 | 135 | grub_emu-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES) |
01b82a64 | 136 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
6a85ce79 | 137 | -include grub_emu-commands_search.d |
138 | ||
38da6516 | 139 | grub_emu-commands_terminal.o: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) |
01b82a64 | 140 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 141 | -include grub_emu-commands_terminal.d |
e56cdf21 | 142 | |
38da6516 | 143 | grub_emu-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES) |
01b82a64 | 144 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 145 | -include grub_emu-commands_test.d |
146 | ||
38da6516 | 147 | grub_emu-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES) |
01b82a64 | 148 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 149 | -include grub_emu-commands_ls.d |
e56cdf21 | 150 | |
38da6516 | 151 | grub_emu-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) |
01b82a64 | 152 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
89a7d726 | 153 | -include grub_emu-commands_blocklist.d |
154 | ||
c405c391 | 155 | grub_emu-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) |
156 | $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< | |
157 | -include grub_emu-commands_hexdump.d | |
158 | ||
38da6516 | 159 | grub_emu-commands_ieee1275_halt.o: commands/ieee1275/halt.c $(commands/ieee1275/halt.c_DEPENDENCIES) |
01b82a64 | 160 | $(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
a5ce3a4a | 161 | -include grub_emu-commands_ieee1275_halt.d |
e56cdf21 | 162 | |
38da6516 | 163 | grub_emu-commands_ieee1275_reboot.o: commands/ieee1275/reboot.c $(commands/ieee1275/reboot.c_DEPENDENCIES) |
01b82a64 | 164 | $(CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
a5ce3a4a | 165 | -include grub_emu-commands_ieee1275_reboot.d |
e56cdf21 | 166 | |
38da6516 | 167 | grub_emu-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) |
01b82a64 | 168 | $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 169 | -include grub_emu-disk_loopback.d |
3f1578fe | 170 | |
38da6516 | 171 | grub_emu-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES) |
01b82a64 | 172 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
57bdbde3 | 173 | -include grub_emu-fs_affs.d |
174 | ||
2a9525e6 | 175 | grub_emu-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) |
176 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< | |
177 | -include grub_emu-fs_cpio.d | |
178 | ||
38da6516 | 179 | grub_emu-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) |
01b82a64 | 180 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 181 | -include grub_emu-fs_ext2.d |
3f1578fe | 182 | |
38da6516 | 183 | grub_emu-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES) |
01b82a64 | 184 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 185 | -include grub_emu-fs_fat.d |
e56cdf21 | 186 | |
38da6516 | 187 | grub_emu-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) |
01b82a64 | 188 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 189 | -include grub_emu-fs_hfs.d |
e56cdf21 | 190 | |
2a9525e6 | 191 | grub_emu-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) |
192 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< | |
193 | -include grub_emu-fs_hfsplus.d | |
194 | ||
38da6516 | 195 | grub_emu-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) |
01b82a64 | 196 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 197 | -include grub_emu-fs_iso9660.d |
e56cdf21 | 198 | |
38da6516 | 199 | grub_emu-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) |
01b82a64 | 200 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 201 | -include grub_emu-fs_jfs.d |
202 | ||
38da6516 | 203 | grub_emu-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES) |
01b82a64 | 204 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 205 | -include grub_emu-fs_minix.d |
e56cdf21 | 206 | |
2a9525e6 | 207 | grub_emu-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) |
01b82a64 | 208 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 209 | -include grub_emu-fs_ntfs.d |
66e19ef8 | 210 | |
2a9525e6 | 211 | grub_emu-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) |
01b82a64 | 212 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 213 | -include grub_emu-fs_ntfscomp.d |
b2499b29 | 214 | |
2a9525e6 | 215 | grub_emu-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) |
01b82a64 | 216 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 217 | -include grub_emu-fs_reiserfs.d |
50214199 | 218 | |
2a9525e6 | 219 | grub_emu-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) |
8f096014 | 220 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 221 | -include grub_emu-fs_sfs.d |
8f096014 | 222 | |
2a9525e6 | 223 | grub_emu-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) |
4bc72aa9 | 224 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 225 | -include grub_emu-fs_ufs.d |
4bc72aa9 | 226 | |
2a9525e6 | 227 | grub_emu-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) |
fc6e896c | 228 | $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
2a9525e6 | 229 | -include grub_emu-fs_xfs.d |
fc6e896c | 230 | |
38da6516 | 231 | grub_emu-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES) |
01b82a64 | 232 | $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
d9864ee1 | 233 | -include grub_emu-io_gzio.d |
234 | ||
38da6516 | 235 | grub_emu-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES) |
01b82a64 | 236 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 237 | -include grub_emu-kern_device.d |
66e19ef8 | 238 | |
38da6516 | 239 | grub_emu-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES) |
01b82a64 | 240 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 241 | -include grub_emu-kern_disk.d |
64372eb4 | 242 | |
38da6516 | 243 | grub_emu-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES) |
01b82a64 | 244 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 245 | -include grub_emu-kern_dl.d |
aa033560 | 246 | |
38da6516 | 247 | grub_emu-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES) |
2166cc83 | 248 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
249 | -include grub_emu-kern_elf.d | |
250 | ||
38da6516 | 251 | grub_emu-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES) |
01b82a64 | 252 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 253 | -include grub_emu-kern_env.d |
ad0bd20b | 254 | |
38da6516 | 255 | grub_emu-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
01b82a64 | 256 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 257 | -include grub_emu-kern_err.d |
258 | ||
38da6516 | 259 | grub_emu-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES) |
01b82a64 | 260 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 261 | -include grub_emu-kern_file.d |
262 | ||
38da6516 | 263 | grub_emu-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES) |
01b82a64 | 264 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 265 | -include grub_emu-kern_fs.d |
266 | ||
38da6516 | 267 | grub_emu-kern_loader.o: kern/loader.c $(kern/loader.c_DEPENDENCIES) |
01b82a64 | 268 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 269 | -include grub_emu-kern_loader.d |
270 | ||
38da6516 | 271 | grub_emu-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES) |
01b82a64 | 272 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 273 | -include grub_emu-kern_main.d |
274 | ||
38da6516 | 275 | grub_emu-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
01b82a64 | 276 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 277 | -include grub_emu-kern_misc.d |
278 | ||
38da6516 | 279 | grub_emu-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES) |
01b82a64 | 280 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
04ccf3ec | 281 | -include grub_emu-kern_parser.d |
282 | ||
38da6516 | 283 | grub_emu-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES) |
01b82a64 | 284 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 285 | -include grub_emu-kern_partition.d |
286 | ||
38da6516 | 287 | grub_emu-kern_rescue.o: kern/rescue.c $(kern/rescue.c_DEPENDENCIES) |
01b82a64 | 288 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 289 | -include grub_emu-kern_rescue.d |
290 | ||
38da6516 | 291 | grub_emu-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES) |
01b82a64 | 292 | $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 293 | -include grub_emu-kern_term.d |
294 | ||
38da6516 | 295 | grub_emu-normal_arg.o: normal/arg.c $(normal/arg.c_DEPENDENCIES) |
01b82a64 | 296 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 297 | -include grub_emu-normal_arg.d |
4ed2e1dd | 298 | |
38da6516 | 299 | grub_emu-normal_cmdline.o: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) |
01b82a64 | 300 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 301 | -include grub_emu-normal_cmdline.d |
e56cdf21 | 302 | |
38da6516 | 303 | grub_emu-normal_command.o: normal/command.c $(normal/command.c_DEPENDENCIES) |
01b82a64 | 304 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 305 | -include grub_emu-normal_command.d |
e56cdf21 | 306 | |
38da6516 | 307 | grub_emu-normal_completion.o: normal/completion.c $(normal/completion.c_DEPENDENCIES) |
01b82a64 | 308 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
8de3495c | 309 | -include grub_emu-normal_completion.d |
310 | ||
38da6516 | 311 | grub_emu-normal_execute.o: normal/execute.c $(normal/execute.c_DEPENDENCIES) |
01b82a64 | 312 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 313 | -include grub_emu-normal_execute.d |
314 | ||
38da6516 | 315 | grub_emu-normal_function.o: normal/function.c $(normal/function.c_DEPENDENCIES) |
01b82a64 | 316 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 317 | -include grub_emu-normal_function.d |
318 | ||
38da6516 | 319 | grub_emu-normal_lexer.o: normal/lexer.c $(normal/lexer.c_DEPENDENCIES) |
01b82a64 | 320 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 321 | -include grub_emu-normal_lexer.d |
322 | ||
38da6516 | 323 | grub_emu-normal_main.o: normal/main.c $(normal/main.c_DEPENDENCIES) |
01b82a64 | 324 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 325 | -include grub_emu-normal_main.d |
e56cdf21 | 326 | |
38da6516 | 327 | grub_emu-normal_menu.o: normal/menu.c $(normal/menu.c_DEPENDENCIES) |
01b82a64 | 328 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 329 | -include grub_emu-normal_menu.d |
e56cdf21 | 330 | |
38da6516 | 331 | grub_emu-normal_menu_entry.o: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) |
01b82a64 | 332 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4ed2e1dd | 333 | -include grub_emu-normal_menu_entry.d |
334 | ||
38da6516 | 335 | grub_emu-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES) |
01b82a64 | 336 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
992ffbbe | 337 | -include grub_emu-normal_misc.d |
338 | ||
38da6516 | 339 | grub_emu-normal_script.o: normal/script.c $(normal/script.c_DEPENDENCIES) |
01b82a64 | 340 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 341 | -include grub_emu-normal_script.d |
342 | ||
0ece25b1 | 343 | grub_emu-normal_color.o: normal/color.c $(normal/color.c_DEPENDENCIES) |
344 | $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< | |
345 | -include grub_emu-normal_color.d | |
346 | ||
38da6516 | 347 | grub_emu-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) |
01b82a64 | 348 | $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 349 | -include grub_emu-partmap_amiga.d |
cc2e748a | 350 | |
38da6516 | 351 | grub_emu-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) |
01b82a64 | 352 | $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 353 | -include grub_emu-partmap_apple.d |
354 | ||
38da6516 | 355 | grub_emu-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) |
01b82a64 | 356 | $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 357 | -include grub_emu-partmap_pc.d |
358 | ||
38da6516 | 359 | grub_emu-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) |
01b82a64 | 360 | $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
93f3a1d8 | 361 | -include grub_emu-partmap_sun.d |
3f1578fe | 362 | |
38da6516 | 363 | grub_emu-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) |
01b82a64 | 364 | $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
7f67dc13 | 365 | -include grub_emu-partmap_acorn.d |
366 | ||
38da6516 | 367 | grub_emu-util_console.o: util/console.c $(util/console.c_DEPENDENCIES) |
01b82a64 | 368 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 369 | -include grub_emu-util_console.d |
e56cdf21 | 370 | |
c8cc3692 | 371 | grub_emu-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES) |
372 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< | |
373 | -include grub_emu-util_hostfs.d | |
374 | ||
38da6516 | 375 | grub_emu-util_grub_emu.o: util/grub-emu.c $(util/grub-emu.c_DEPENDENCIES) |
01b82a64 | 376 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 377 | -include grub_emu-util_grub_emu.d |
e56cdf21 | 378 | |
38da6516 | 379 | grub_emu-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
01b82a64 | 380 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
4b13b216 | 381 | -include grub_emu-util_misc.d |
e56cdf21 | 382 | |
38da6516 | 383 | grub_emu-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES) |
3572d015 | 384 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
385 | -include grub_emu-util_biosdisk.d | |
93f3a1d8 | 386 | |
38da6516 | 387 | grub_emu-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES) |
3572d015 | 388 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
389 | -include grub_emu-util_getroot.d | |
e56cdf21 | 390 | |
38da6516 | 391 | grub_emu-util_powerpc_ieee1275_misc.o: util/powerpc/ieee1275/misc.c $(util/powerpc/ieee1275/misc.c_DEPENDENCIES) |
01b82a64 | 392 | $(CC) -Iutil/powerpc/ieee1275 -I$(srcdir)/util/powerpc/ieee1275 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
a5ce3a4a | 393 | -include grub_emu-util_powerpc_ieee1275_misc.d |
cc2e748a | 394 | |
38da6516 | 395 | grub_emu-grub_script_tab.o: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) |
01b82a64 | 396 | $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 397 | -include grub_emu-grub_script_tab.d |
398 | ||
38da6516 | 399 | grub_emu-grub_emu_init.o: grub_emu_init.c $(grub_emu_init.c_DEPENDENCIES) |
01b82a64 | 400 | $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
6d099807 | 401 | -include grub_emu-grub_emu_init.d |
402 | ||
cc2e748a | 403 | |
f4917dfd | 404 | grub_emu_LDFLAGS = $(LIBCURSES) |
e56cdf21 | 405 | |
5f0413bd | 406 | kernel_elf_SOURCES = kern/powerpc/ieee1275/crt0.S kern/powerpc/ieee1275/cmain.c \ |
04ccf3ec | 407 | kern/ieee1275/ieee1275.c kern/main.c kern/device.c \ |
2166cc83 | 408 | kern/disk.c kern/dl.c kern/err.c kern/file.c kern/fs.c \ |
04ccf3ec | 409 | kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \ |
410 | kern/powerpc/ieee1275/init.c term/ieee1275/ofconsole.c \ | |
411 | kern/powerpc/ieee1275/openfw.c disk/ieee1275/ofdisk.c \ | |
412 | kern/parser.c kern/partition.c kern/env.c kern/powerpc/dl.c \ | |
5f0413bd | 413 | kernel_elf_symlist.c kern/powerpc/cache.S |
2166cc83 | 414 | CLEANFILES += kernel.elf kernel_elf-kern_powerpc_ieee1275_crt0.o kernel_elf-kern_powerpc_ieee1275_cmain.o kernel_elf-kern_ieee1275_ieee1275.o kernel_elf-kern_main.o kernel_elf-kern_device.o kernel_elf-kern_disk.o kernel_elf-kern_dl.o kernel_elf-kern_err.o kernel_elf-kern_file.o kernel_elf-kern_fs.o kernel_elf-kern_misc.o kernel_elf-kern_mm.o kernel_elf-kern_loader.o kernel_elf-kern_rescue.o kernel_elf-kern_term.o kernel_elf-kern_powerpc_ieee1275_init.o kernel_elf-term_ieee1275_ofconsole.o kernel_elf-kern_powerpc_ieee1275_openfw.o kernel_elf-disk_ieee1275_ofdisk.o kernel_elf-kern_parser.o kernel_elf-kern_partition.o kernel_elf-kern_env.o kernel_elf-kern_powerpc_dl.o kernel_elf-kernel_elf_symlist.o kernel_elf-kern_powerpc_cache.o |
415 | MOSTLYCLEANFILES += kernel_elf-kern_powerpc_ieee1275_crt0.d kernel_elf-kern_powerpc_ieee1275_cmain.d kernel_elf-kern_ieee1275_ieee1275.d kernel_elf-kern_main.d kernel_elf-kern_device.d kernel_elf-kern_disk.d kernel_elf-kern_dl.d kernel_elf-kern_err.d kernel_elf-kern_file.d kernel_elf-kern_fs.d kernel_elf-kern_misc.d kernel_elf-kern_mm.d kernel_elf-kern_loader.d kernel_elf-kern_rescue.d kernel_elf-kern_term.d kernel_elf-kern_powerpc_ieee1275_init.d kernel_elf-term_ieee1275_ofconsole.d kernel_elf-kern_powerpc_ieee1275_openfw.d kernel_elf-disk_ieee1275_ofdisk.d kernel_elf-kern_parser.d kernel_elf-kern_partition.d kernel_elf-kern_env.d kernel_elf-kern_powerpc_dl.d kernel_elf-kernel_elf_symlist.d kernel_elf-kern_powerpc_cache.d | |
04ccf3ec | 416 | |
2166cc83 | 417 | kernel.elf: $(kernel_elf_DEPENDENCIES) kernel_elf-kern_powerpc_ieee1275_crt0.o kernel_elf-kern_powerpc_ieee1275_cmain.o kernel_elf-kern_ieee1275_ieee1275.o kernel_elf-kern_main.o kernel_elf-kern_device.o kernel_elf-kern_disk.o kernel_elf-kern_dl.o kernel_elf-kern_err.o kernel_elf-kern_file.o kernel_elf-kern_fs.o kernel_elf-kern_misc.o kernel_elf-kern_mm.o kernel_elf-kern_loader.o kernel_elf-kern_rescue.o kernel_elf-kern_term.o kernel_elf-kern_powerpc_ieee1275_init.o kernel_elf-term_ieee1275_ofconsole.o kernel_elf-kern_powerpc_ieee1275_openfw.o kernel_elf-disk_ieee1275_ofdisk.o kernel_elf-kern_parser.o kernel_elf-kern_partition.o kernel_elf-kern_env.o kernel_elf-kern_powerpc_dl.o kernel_elf-kernel_elf_symlist.o kernel_elf-kern_powerpc_cache.o |
418 | $(TARGET_CC) -o $@ kernel_elf-kern_powerpc_ieee1275_crt0.o kernel_elf-kern_powerpc_ieee1275_cmain.o kernel_elf-kern_ieee1275_ieee1275.o kernel_elf-kern_main.o kernel_elf-kern_device.o kernel_elf-kern_disk.o kernel_elf-kern_dl.o kernel_elf-kern_err.o kernel_elf-kern_file.o kernel_elf-kern_fs.o kernel_elf-kern_misc.o kernel_elf-kern_mm.o kernel_elf-kern_loader.o kernel_elf-kern_rescue.o kernel_elf-kern_term.o kernel_elf-kern_powerpc_ieee1275_init.o kernel_elf-term_ieee1275_ofconsole.o kernel_elf-kern_powerpc_ieee1275_openfw.o kernel_elf-disk_ieee1275_ofdisk.o kernel_elf-kern_parser.o kernel_elf-kern_partition.o kernel_elf-kern_env.o kernel_elf-kern_powerpc_dl.o kernel_elf-kernel_elf_symlist.o kernel_elf-kern_powerpc_cache.o $(TARGET_LDFLAGS) $(kernel_elf_LDFLAGS) | |
e56cdf21 | 419 | |
5f0413bd | 420 | kernel_elf-kern_powerpc_ieee1275_crt0.o: kern/powerpc/ieee1275/crt0.S |
01b82a64 | 421 | $(TARGET_CC) -Ikern/powerpc/ieee1275 -I$(srcdir)/kern/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 422 | -include kernel_elf-kern_powerpc_ieee1275_crt0.d |
9304c1f8 | 423 | |
5f0413bd | 424 | kernel_elf-kern_powerpc_ieee1275_cmain.o: kern/powerpc/ieee1275/cmain.c |
01b82a64 | 425 | $(TARGET_CC) -Ikern/powerpc/ieee1275 -I$(srcdir)/kern/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 426 | -include kernel_elf-kern_powerpc_ieee1275_cmain.d |
e56cdf21 | 427 | |
5f0413bd | 428 | kernel_elf-kern_ieee1275_ieee1275.o: kern/ieee1275/ieee1275.c |
01b82a64 | 429 | $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 430 | -include kernel_elf-kern_ieee1275_ieee1275.d |
e56cdf21 | 431 | |
5f0413bd | 432 | kernel_elf-kern_main.o: kern/main.c |
01b82a64 | 433 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 434 | -include kernel_elf-kern_main.d |
e56cdf21 | 435 | |
5f0413bd | 436 | kernel_elf-kern_device.o: kern/device.c |
01b82a64 | 437 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 438 | -include kernel_elf-kern_device.d |
e56cdf21 | 439 | |
5f0413bd | 440 | kernel_elf-kern_disk.o: kern/disk.c |
01b82a64 | 441 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 442 | -include kernel_elf-kern_disk.d |
e56cdf21 | 443 | |
5f0413bd | 444 | kernel_elf-kern_dl.o: kern/dl.c |
01b82a64 | 445 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 446 | -include kernel_elf-kern_dl.d |
e56cdf21 | 447 | |
2166cc83 | 448 | kernel_elf-kern_err.o: kern/err.c |
449 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< | |
450 | -include kernel_elf-kern_err.d | |
451 | ||
5f0413bd | 452 | kernel_elf-kern_file.o: kern/file.c |
01b82a64 | 453 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 454 | -include kernel_elf-kern_file.d |
e56cdf21 | 455 | |
5f0413bd | 456 | kernel_elf-kern_fs.o: kern/fs.c |
01b82a64 | 457 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 458 | -include kernel_elf-kern_fs.d |
e56cdf21 | 459 | |
5f0413bd | 460 | kernel_elf-kern_misc.o: kern/misc.c |
01b82a64 | 461 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 462 | -include kernel_elf-kern_misc.d |
e56cdf21 | 463 | |
5f0413bd | 464 | kernel_elf-kern_mm.o: kern/mm.c |
01b82a64 | 465 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 466 | -include kernel_elf-kern_mm.d |
e56cdf21 | 467 | |
5f0413bd | 468 | kernel_elf-kern_loader.o: kern/loader.c |
01b82a64 | 469 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 470 | -include kernel_elf-kern_loader.d |
e56cdf21 | 471 | |
5f0413bd | 472 | kernel_elf-kern_rescue.o: kern/rescue.c |
01b82a64 | 473 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 474 | -include kernel_elf-kern_rescue.d |
e56cdf21 | 475 | |
5f0413bd | 476 | kernel_elf-kern_term.o: kern/term.c |
01b82a64 | 477 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 478 | -include kernel_elf-kern_term.d |
e56cdf21 | 479 | |
5f0413bd | 480 | kernel_elf-kern_powerpc_ieee1275_init.o: kern/powerpc/ieee1275/init.c |
01b82a64 | 481 | $(TARGET_CC) -Ikern/powerpc/ieee1275 -I$(srcdir)/kern/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 482 | -include kernel_elf-kern_powerpc_ieee1275_init.d |
e56cdf21 | 483 | |
5f0413bd | 484 | kernel_elf-term_ieee1275_ofconsole.o: term/ieee1275/ofconsole.c |
01b82a64 | 485 | $(TARGET_CC) -Iterm/ieee1275 -I$(srcdir)/term/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 486 | -include kernel_elf-term_ieee1275_ofconsole.d |
e56cdf21 | 487 | |
5f0413bd | 488 | kernel_elf-kern_powerpc_ieee1275_openfw.o: kern/powerpc/ieee1275/openfw.c |
01b82a64 | 489 | $(TARGET_CC) -Ikern/powerpc/ieee1275 -I$(srcdir)/kern/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 490 | -include kernel_elf-kern_powerpc_ieee1275_openfw.d |
e56cdf21 | 491 | |
5f0413bd | 492 | kernel_elf-disk_ieee1275_ofdisk.o: disk/ieee1275/ofdisk.c |
01b82a64 | 493 | $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 494 | -include kernel_elf-disk_ieee1275_ofdisk.d |
e56cdf21 | 495 | |
5f0413bd | 496 | kernel_elf-kern_parser.o: kern/parser.c |
01b82a64 | 497 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 498 | -include kernel_elf-kern_parser.d |
04ccf3ec | 499 | |
5f0413bd | 500 | kernel_elf-kern_partition.o: kern/partition.c |
01b82a64 | 501 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 502 | -include kernel_elf-kern_partition.d |
66e19ef8 | 503 | |
5f0413bd | 504 | kernel_elf-kern_env.o: kern/env.c |
01b82a64 | 505 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 506 | -include kernel_elf-kern_env.d |
66e19ef8 | 507 | |
5f0413bd | 508 | kernel_elf-kern_powerpc_dl.o: kern/powerpc/dl.c |
01b82a64 | 509 | $(TARGET_CC) -Ikern/powerpc -I$(srcdir)/kern/powerpc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 510 | -include kernel_elf-kern_powerpc_dl.d |
64372eb4 | 511 | |
5f0413bd | 512 | kernel_elf-kernel_elf_symlist.o: kernel_elf_symlist.c |
01b82a64 | 513 | $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 514 | -include kernel_elf-kernel_elf_symlist.d |
aa033560 | 515 | |
5f0413bd | 516 | kernel_elf-kern_powerpc_cache.o: kern/powerpc/cache.S |
01b82a64 | 517 | $(TARGET_CC) -Ikern/powerpc -I$(srcdir)/kern/powerpc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_elf_CFLAGS) -MD -c -o $@ $< |
5f0413bd | 518 | -include kernel_elf-kern_powerpc_cache.d |
e56cdf21 | 519 | |
5f0413bd | 520 | kernel_elf_HEADERS = grub/powerpc/ieee1275/ieee1275.h |
521 | kernel_elf_CFLAGS = $(COMMON_CFLAGS) | |
522 | kernel_elf_ASFLAGS = $(COMMON_ASFLAGS) | |
523 | kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \ | |
a0cbb023 | 524 | -Wl,-N,-S,-Ttext,0x10000,-Bstatic |
e56cdf21 | 525 | |
4b60267d | 526 | # Scripts. |
527 | sbin_SCRIPTS = grub-install | |
528 | ||
529 | # For grub-install. | |
530 | grub_install_SOURCES = util/powerpc/ieee1275/grub-install.in | |
531 | CLEANFILES += grub-install | |
532 | ||
533 | grub-install: util/powerpc/ieee1275/grub-install.in config.status | |
534 | ./config.status --file=grub-install:util/powerpc/ieee1275/grub-install.in | |
535 | chmod +x $@ | |
536 | ||
537 | ||
924b6140 | 538 | # Modules. |
4931827f | 539 | pkglib_MODULES = halt.mod \ |
79bbb63f | 540 | _linux.mod \ |
541 | linux.mod \ | |
542 | normal.mod \ | |
543 | reboot.mod \ | |
d3cec7ce | 544 | suspend.mod \ |
545 | _multiboot.mod \ | |
546 | multiboot.mod | |
0229e5c0 | 547 | |
924b6140 | 548 | # For _linux.mod. |
549 | _linux_mod_SOURCES = loader/powerpc/ieee1275/linux.c | |
83709125 | 550 | CLEANFILES += _linux.mod mod-_linux.o mod-_linux.c pre-_linux.o _linux_mod-loader_powerpc_ieee1275_linux.o und-_linux.lst |
551 | ifneq ($(_linux_mod_EXPORTS),no) | |
552 | CLEANFILES += def-_linux.lst | |
924b6140 | 553 | DEFSYMFILES += def-_linux.lst |
83709125 | 554 | endif |
555 | MOSTLYCLEANFILES += _linux_mod-loader_powerpc_ieee1275_linux.d | |
924b6140 | 556 | UNDSYMFILES += und-_linux.lst |
557 | ||
558 | _linux.mod: pre-_linux.o mod-_linux.o | |
559 | -rm -f $@ | |
b977bf01 | 560 | $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
924b6140 | 561 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
562 | ||
e02ac02c | 563 | pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_powerpc_ieee1275_linux.o |
924b6140 | 564 | -rm -f $@ |
e02ac02c | 565 | $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _linux_mod-loader_powerpc_ieee1275_linux.o |
924b6140 | 566 | |
567 | mod-_linux.o: mod-_linux.c | |
b977bf01 | 568 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $< |
924b6140 | 569 | |
570 | mod-_linux.c: moddep.lst genmodsrc.sh | |
571 | sh $(srcdir)/genmodsrc.sh '_linux' $< > $@ || (rm -f $@; exit 1) | |
572 | ||
83709125 | 573 | ifneq ($(_linux_mod_EXPORTS),no) |
924b6140 | 574 | def-_linux.lst: pre-_linux.o |
575 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _linux/' > $@ | |
83709125 | 576 | endif |
924b6140 | 577 | |
578 | und-_linux.lst: pre-_linux.o | |
579 | echo '_linux' > $@ | |
580 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
581 | ||
582 | _linux_mod-loader_powerpc_ieee1275_linux.o: loader/powerpc/ieee1275/linux.c | |
46e5e5cb | 583 | $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 584 | -include _linux_mod-loader_powerpc_ieee1275_linux.d |
585 | ||
233b1628 | 586 | CLEANFILES += cmd-_linux_mod-loader_powerpc_ieee1275_linux.lst fs-_linux_mod-loader_powerpc_ieee1275_linux.lst |
587 | COMMANDFILES += cmd-_linux_mod-loader_powerpc_ieee1275_linux.lst | |
588 | FSFILES += fs-_linux_mod-loader_powerpc_ieee1275_linux.lst | |
7b1f4b57 | 589 | |
233b1628 | 590 | cmd-_linux_mod-loader_powerpc_ieee1275_linux.lst: loader/powerpc/ieee1275/linux.c gencmdlist.sh |
26c607b9 | 591 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 592 | |
233b1628 | 593 | fs-_linux_mod-loader_powerpc_ieee1275_linux.lst: loader/powerpc/ieee1275/linux.c genfslist.sh |
26c607b9 | 594 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1) |
39c9d41d | 595 | |
596 | ||
924b6140 | 597 | _linux_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 598 | _linux_mod_LDFLAGS = $(COMMON_LDFLAGS) |
57bdbde3 | 599 | |
924b6140 | 600 | # For linux.mod. |
601 | linux_mod_SOURCES = loader/powerpc/ieee1275/linux_normal.c | |
83709125 | 602 | CLEANFILES += linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_powerpc_ieee1275_linux_normal.o und-linux.lst |
603 | ifneq ($(linux_mod_EXPORTS),no) | |
604 | CLEANFILES += def-linux.lst | |
924b6140 | 605 | DEFSYMFILES += def-linux.lst |
83709125 | 606 | endif |
607 | MOSTLYCLEANFILES += linux_mod-loader_powerpc_ieee1275_linux_normal.d | |
924b6140 | 608 | UNDSYMFILES += und-linux.lst |
609 | ||
610 | linux.mod: pre-linux.o mod-linux.o | |
611 | -rm -f $@ | |
b977bf01 | 612 | $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
924b6140 | 613 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
614 | ||
e02ac02c | 615 | pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_powerpc_ieee1275_linux_normal.o |
924b6140 | 616 | -rm -f $@ |
e02ac02c | 617 | $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_powerpc_ieee1275_linux_normal.o |
924b6140 | 618 | |
619 | mod-linux.o: mod-linux.c | |
b977bf01 | 620 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $< |
924b6140 | 621 | |
622 | mod-linux.c: moddep.lst genmodsrc.sh | |
623 | sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1) | |
624 | ||
83709125 | 625 | ifneq ($(linux_mod_EXPORTS),no) |
924b6140 | 626 | def-linux.lst: pre-linux.o |
627 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@ | |
83709125 | 628 | endif |
924b6140 | 629 | |
630 | und-linux.lst: pre-linux.o | |
631 | echo 'linux' > $@ | |
632 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
633 | ||
634 | linux_mod-loader_powerpc_ieee1275_linux_normal.o: loader/powerpc/ieee1275/linux_normal.c | |
46e5e5cb | 635 | $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 636 | -include linux_mod-loader_powerpc_ieee1275_linux_normal.d |
637 | ||
233b1628 | 638 | CLEANFILES += cmd-linux_mod-loader_powerpc_ieee1275_linux_normal.lst fs-linux_mod-loader_powerpc_ieee1275_linux_normal.lst |
639 | COMMANDFILES += cmd-linux_mod-loader_powerpc_ieee1275_linux_normal.lst | |
640 | FSFILES += fs-linux_mod-loader_powerpc_ieee1275_linux_normal.lst | |
7b1f4b57 | 641 | |
233b1628 | 642 | cmd-linux_mod-loader_powerpc_ieee1275_linux_normal.lst: loader/powerpc/ieee1275/linux_normal.c gencmdlist.sh |
26c607b9 | 643 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 644 | |
233b1628 | 645 | fs-linux_mod-loader_powerpc_ieee1275_linux_normal.lst: loader/powerpc/ieee1275/linux_normal.c genfslist.sh |
26c607b9 | 646 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1) |
39c9d41d | 647 | |
648 | ||
924b6140 | 649 | linux_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 650 | linux_mod_LDFLAGS = $(COMMON_LDFLAGS) |
924b6140 | 651 | |
652 | # For normal.mod. | |
6ba4688b | 653 | normal_mod_DEPENDENCIES = grub_script.tab.c grub_script.tab.h |
4ed2e1dd | 654 | normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
4e93851c | 655 | normal/completion.c normal/execute.c \ |
b6b32745 | 656 | normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
657 | normal/menu_entry.c normal/misc.c grub_script.tab.c \ | |
0ece25b1 | 658 | normal/script.c normal/powerpc/setjmp.S normal/color.c |
659 | 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_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 normal_mod-normal_color.o und-normal.lst | |
83709125 | 660 | ifneq ($(normal_mod_EXPORTS),no) |
661 | CLEANFILES += def-normal.lst | |
924b6140 | 662 | DEFSYMFILES += def-normal.lst |
83709125 | 663 | endif |
0ece25b1 | 664 | MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_completion.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 normal_mod-normal_color.d |
924b6140 | 665 | UNDSYMFILES += und-normal.lst |
666 | ||
667 | normal.mod: pre-normal.o mod-normal.o | |
668 | -rm -f $@ | |
b977bf01 | 669 | $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
924b6140 | 670 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
671 | ||
0ece25b1 | 672 | pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.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 normal_mod-normal_color.o |
924b6140 | 673 | -rm -f $@ |
0ece25b1 | 674 | $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.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 normal_mod-normal_color.o |
924b6140 | 675 | |
676 | mod-normal.o: mod-normal.c | |
b977bf01 | 677 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
924b6140 | 678 | |
679 | mod-normal.c: moddep.lst genmodsrc.sh | |
680 | sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1) | |
681 | ||
83709125 | 682 | ifneq ($(normal_mod_EXPORTS),no) |
924b6140 | 683 | def-normal.lst: pre-normal.o |
684 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@ | |
83709125 | 685 | endif |
924b6140 | 686 | |
687 | und-normal.lst: pre-normal.o | |
688 | echo 'normal' > $@ | |
689 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
690 | ||
4ed2e1dd | 691 | normal_mod-normal_arg.o: normal/arg.c |
46e5e5cb | 692 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
4ed2e1dd | 693 | -include normal_mod-normal_arg.d |
694 | ||
233b1628 | 695 | CLEANFILES += cmd-normal_mod-normal_arg.lst fs-normal_mod-normal_arg.lst |
696 | COMMANDFILES += cmd-normal_mod-normal_arg.lst | |
697 | FSFILES += fs-normal_mod-normal_arg.lst | |
7b1f4b57 | 698 | |
233b1628 | 699 | cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh |
26c607b9 | 700 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 701 | |
233b1628 | 702 | fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh |
26c607b9 | 703 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 704 | |
705 | ||
924b6140 | 706 | normal_mod-normal_cmdline.o: normal/cmdline.c |
46e5e5cb | 707 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 708 | -include normal_mod-normal_cmdline.d |
709 | ||
233b1628 | 710 | CLEANFILES += cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmdline.lst |
711 | COMMANDFILES += cmd-normal_mod-normal_cmdline.lst | |
712 | FSFILES += fs-normal_mod-normal_cmdline.lst | |
7b1f4b57 | 713 | |
233b1628 | 714 | cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh |
26c607b9 | 715 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 716 | |
233b1628 | 717 | fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh |
26c607b9 | 718 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 719 | |
720 | ||
924b6140 | 721 | normal_mod-normal_command.o: normal/command.c |
46e5e5cb | 722 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 723 | -include normal_mod-normal_command.d |
724 | ||
233b1628 | 725 | CLEANFILES += cmd-normal_mod-normal_command.lst fs-normal_mod-normal_command.lst |
726 | COMMANDFILES += cmd-normal_mod-normal_command.lst | |
727 | FSFILES += fs-normal_mod-normal_command.lst | |
7b1f4b57 | 728 | |
233b1628 | 729 | cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh |
26c607b9 | 730 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 731 | |
233b1628 | 732 | fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh |
26c607b9 | 733 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 734 | |
735 | ||
8de3495c | 736 | normal_mod-normal_completion.o: normal/completion.c |
46e5e5cb | 737 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
8de3495c | 738 | -include normal_mod-normal_completion.d |
739 | ||
233b1628 | 740 | CLEANFILES += cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_completion.lst |
741 | COMMANDFILES += cmd-normal_mod-normal_completion.lst | |
742 | FSFILES += fs-normal_mod-normal_completion.lst | |
8de3495c | 743 | |
233b1628 | 744 | cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh |
26c607b9 | 745 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
8de3495c | 746 | |
233b1628 | 747 | fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh |
26c607b9 | 748 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
8de3495c | 749 | |
750 | ||
b6b32745 | 751 | normal_mod-normal_execute.o: normal/execute.c |
46e5e5cb | 752 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 753 | -include normal_mod-normal_execute.d |
754 | ||
233b1628 | 755 | CLEANFILES += cmd-normal_mod-normal_execute.lst fs-normal_mod-normal_execute.lst |
756 | COMMANDFILES += cmd-normal_mod-normal_execute.lst | |
757 | FSFILES += fs-normal_mod-normal_execute.lst | |
b6b32745 | 758 | |
233b1628 | 759 | cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh |
26c607b9 | 760 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 761 | |
233b1628 | 762 | fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh |
26c607b9 | 763 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 764 | |
765 | ||
766 | normal_mod-normal_function.o: normal/function.c | |
46e5e5cb | 767 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 768 | -include normal_mod-normal_function.d |
769 | ||
233b1628 | 770 | CLEANFILES += cmd-normal_mod-normal_function.lst fs-normal_mod-normal_function.lst |
771 | COMMANDFILES += cmd-normal_mod-normal_function.lst | |
772 | FSFILES += fs-normal_mod-normal_function.lst | |
b6b32745 | 773 | |
233b1628 | 774 | cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh |
26c607b9 | 775 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 776 | |
233b1628 | 777 | fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh |
26c607b9 | 778 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 779 | |
780 | ||
781 | normal_mod-normal_lexer.o: normal/lexer.c | |
46e5e5cb | 782 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 783 | -include normal_mod-normal_lexer.d |
784 | ||
233b1628 | 785 | CLEANFILES += cmd-normal_mod-normal_lexer.lst fs-normal_mod-normal_lexer.lst |
786 | COMMANDFILES += cmd-normal_mod-normal_lexer.lst | |
787 | FSFILES += fs-normal_mod-normal_lexer.lst | |
b6b32745 | 788 | |
233b1628 | 789 | cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh |
26c607b9 | 790 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 791 | |
233b1628 | 792 | fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh |
26c607b9 | 793 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 794 | |
795 | ||
924b6140 | 796 | normal_mod-normal_main.o: normal/main.c |
46e5e5cb | 797 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 798 | -include normal_mod-normal_main.d |
799 | ||
233b1628 | 800 | CLEANFILES += cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.lst |
801 | COMMANDFILES += cmd-normal_mod-normal_main.lst | |
802 | FSFILES += fs-normal_mod-normal_main.lst | |
7b1f4b57 | 803 | |
233b1628 | 804 | cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh |
26c607b9 | 805 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 806 | |
233b1628 | 807 | fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh |
26c607b9 | 808 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 809 | |
810 | ||
924b6140 | 811 | normal_mod-normal_menu.o: normal/menu.c |
46e5e5cb | 812 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
924b6140 | 813 | -include normal_mod-normal_menu.d |
814 | ||
233b1628 | 815 | CLEANFILES += cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.lst |
816 | COMMANDFILES += cmd-normal_mod-normal_menu.lst | |
817 | FSFILES += fs-normal_mod-normal_menu.lst | |
7b1f4b57 | 818 | |
233b1628 | 819 | cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh |
26c607b9 | 820 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 821 | |
233b1628 | 822 | fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh |
26c607b9 | 823 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 824 | |
825 | ||
4ed2e1dd | 826 | normal_mod-normal_menu_entry.o: normal/menu_entry.c |
46e5e5cb | 827 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
4ed2e1dd | 828 | -include normal_mod-normal_menu_entry.d |
924b6140 | 829 | |
233b1628 | 830 | CLEANFILES += cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_menu_entry.lst |
831 | COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst | |
832 | FSFILES += fs-normal_mod-normal_menu_entry.lst | |
7b1f4b57 | 833 | |
233b1628 | 834 | cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh |
26c607b9 | 835 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 836 | |
233b1628 | 837 | fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh |
26c607b9 | 838 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 839 | |
840 | ||
992ffbbe | 841 | normal_mod-normal_misc.o: normal/misc.c |
46e5e5cb | 842 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
992ffbbe | 843 | -include normal_mod-normal_misc.d |
844 | ||
233b1628 | 845 | CLEANFILES += cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.lst |
846 | COMMANDFILES += cmd-normal_mod-normal_misc.lst | |
847 | FSFILES += fs-normal_mod-normal_misc.lst | |
992ffbbe | 848 | |
233b1628 | 849 | cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh |
26c607b9 | 850 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
992ffbbe | 851 | |
233b1628 | 852 | fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh |
26c607b9 | 853 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
992ffbbe | 854 | |
855 | ||
b6b32745 | 856 | normal_mod-grub_script_tab.o: grub_script.tab.c |
46e5e5cb | 857 | $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 858 | -include normal_mod-grub_script_tab.d |
859 | ||
233b1628 | 860 | CLEANFILES += cmd-normal_mod-grub_script_tab.lst fs-normal_mod-grub_script_tab.lst |
861 | COMMANDFILES += cmd-normal_mod-grub_script_tab.lst | |
862 | FSFILES += fs-normal_mod-grub_script_tab.lst | |
b6b32745 | 863 | |
233b1628 | 864 | cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh |
26c607b9 | 865 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 866 | |
233b1628 | 867 | fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh |
26c607b9 | 868 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 869 | |
870 | ||
871 | normal_mod-normal_script.o: normal/script.c | |
46e5e5cb | 872 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
b6b32745 | 873 | -include normal_mod-normal_script.d |
874 | ||
233b1628 | 875 | CLEANFILES += cmd-normal_mod-normal_script.lst fs-normal_mod-normal_script.lst |
876 | COMMANDFILES += cmd-normal_mod-normal_script.lst | |
877 | FSFILES += fs-normal_mod-normal_script.lst | |
b6b32745 | 878 | |
233b1628 | 879 | cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh |
26c607b9 | 880 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 881 | |
233b1628 | 882 | fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh |
26c607b9 | 883 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
b6b32745 | 884 | |
885 | ||
924b6140 | 886 | normal_mod-normal_powerpc_setjmp.o: normal/powerpc/setjmp.S |
46e5e5cb | 887 | $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $< |
924b6140 | 888 | -include normal_mod-normal_powerpc_setjmp.d |
889 | ||
233b1628 | 890 | CLEANFILES += cmd-normal_mod-normal_powerpc_setjmp.lst fs-normal_mod-normal_powerpc_setjmp.lst |
891 | COMMANDFILES += cmd-normal_mod-normal_powerpc_setjmp.lst | |
892 | FSFILES += fs-normal_mod-normal_powerpc_setjmp.lst | |
7b1f4b57 | 893 | |
233b1628 | 894 | cmd-normal_mod-normal_powerpc_setjmp.lst: normal/powerpc/setjmp.S gencmdlist.sh |
26c607b9 | 895 | set -e; $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 896 | |
233b1628 | 897 | fs-normal_mod-normal_powerpc_setjmp.lst: normal/powerpc/setjmp.S genfslist.sh |
26c607b9 | 898 | set -e; $(TARGET_CC) -Inormal/powerpc -I$(srcdir)/normal/powerpc $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
39c9d41d | 899 | |
900 | ||
0ece25b1 | 901 | normal_mod-normal_color.o: normal/color.c |
902 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< | |
903 | -include normal_mod-normal_color.d | |
904 | ||
905 | CLEANFILES += cmd-normal_mod-normal_color.lst fs-normal_mod-normal_color.lst | |
906 | COMMANDFILES += cmd-normal_mod-normal_color.lst | |
907 | FSFILES += fs-normal_mod-normal_color.lst | |
908 | ||
909 | cmd-normal_mod-normal_color.lst: normal/color.c gencmdlist.sh | |
910 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) | |
911 | ||
912 | fs-normal_mod-normal_color.lst: normal/color.c genfslist.sh | |
913 | set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) | |
914 | ||
915 | ||
924b6140 | 916 | normal_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 917 | normal_mod_LDFLAGS = $(COMMON_LDFLAGS) |
924b6140 | 918 | normal_mod_ASFLAGS = $(COMMON_ASFLAGS) |
919 | ||
79bbb63f | 920 | # For suspend.mod |
921 | suspend_mod_SOURCES = commands/ieee1275/suspend.c | |
83709125 | 922 | CLEANFILES += suspend.mod mod-suspend.o mod-suspend.c pre-suspend.o suspend_mod-commands_ieee1275_suspend.o und-suspend.lst |
923 | ifneq ($(suspend_mod_EXPORTS),no) | |
924 | CLEANFILES += def-suspend.lst | |
79bbb63f | 925 | DEFSYMFILES += def-suspend.lst |
83709125 | 926 | endif |
927 | MOSTLYCLEANFILES += suspend_mod-commands_ieee1275_suspend.d | |
79bbb63f | 928 | UNDSYMFILES += und-suspend.lst |
924b6140 | 929 | |
79bbb63f | 930 | suspend.mod: pre-suspend.o mod-suspend.o |
924b6140 | 931 | -rm -f $@ |
b977bf01 | 932 | $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
924b6140 | 933 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
934 | ||
e02ac02c | 935 | pre-suspend.o: $(suspend_mod_DEPENDENCIES) suspend_mod-commands_ieee1275_suspend.o |
924b6140 | 936 | -rm -f $@ |
e02ac02c | 937 | $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ suspend_mod-commands_ieee1275_suspend.o |
924b6140 | 938 | |
79bbb63f | 939 | mod-suspend.o: mod-suspend.c |
b977bf01 | 940 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -c -o $@ $< |
924b6140 | 941 | |
79bbb63f | 942 | mod-suspend.c: moddep.lst genmodsrc.sh |
943 | sh $(srcdir)/genmodsrc.sh 'suspend' $< > $@ || (rm -f $@; exit 1) | |
924b6140 | 944 | |
83709125 | 945 | ifneq ($(suspend_mod_EXPORTS),no) |
79bbb63f | 946 | def-suspend.lst: pre-suspend.o |
947 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 suspend/' > $@ | |
83709125 | 948 | endif |
924b6140 | 949 | |
79bbb63f | 950 | und-suspend.lst: pre-suspend.o |
951 | echo 'suspend' > $@ | |
924b6140 | 952 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
953 | ||
79bbb63f | 954 | suspend_mod-commands_ieee1275_suspend.o: commands/ieee1275/suspend.c |
46e5e5cb | 955 | $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -MD -c -o $@ $< |
79bbb63f | 956 | -include suspend_mod-commands_ieee1275_suspend.d |
924b6140 | 957 | |
79bbb63f | 958 | CLEANFILES += cmd-suspend_mod-commands_ieee1275_suspend.lst fs-suspend_mod-commands_ieee1275_suspend.lst |
959 | COMMANDFILES += cmd-suspend_mod-commands_ieee1275_suspend.lst | |
960 | FSFILES += fs-suspend_mod-commands_ieee1275_suspend.lst | |
7b1f4b57 | 961 | |
79bbb63f | 962 | cmd-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c gencmdlist.sh |
26c607b9 | 963 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 964 | |
79bbb63f | 965 | fs-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c genfslist.sh |
26c607b9 | 966 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1) |
39c9d41d | 967 | |
968 | ||
79bbb63f | 969 | suspend_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 970 | suspend_mod_LDFLAGS = $(COMMON_LDFLAGS) |
924b6140 | 971 | |
79bbb63f | 972 | # For reboot.mod |
973 | reboot_mod_SOURCES = commands/ieee1275/reboot.c | |
83709125 | 974 | CLEANFILES += reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_ieee1275_reboot.o und-reboot.lst |
975 | ifneq ($(reboot_mod_EXPORTS),no) | |
976 | CLEANFILES += def-reboot.lst | |
79bbb63f | 977 | DEFSYMFILES += def-reboot.lst |
83709125 | 978 | endif |
979 | MOSTLYCLEANFILES += reboot_mod-commands_ieee1275_reboot.d | |
79bbb63f | 980 | UNDSYMFILES += und-reboot.lst |
924b6140 | 981 | |
79bbb63f | 982 | reboot.mod: pre-reboot.o mod-reboot.o |
924b6140 | 983 | -rm -f $@ |
b977bf01 | 984 | $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
924b6140 | 985 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
986 | ||
e02ac02c | 987 | pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_ieee1275_reboot.o |
924b6140 | 988 | -rm -f $@ |
e02ac02c | 989 | $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reboot_mod-commands_ieee1275_reboot.o |
924b6140 | 990 | |
79bbb63f | 991 | mod-reboot.o: mod-reboot.c |
b977bf01 | 992 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $< |
924b6140 | 993 | |
79bbb63f | 994 | mod-reboot.c: moddep.lst genmodsrc.sh |
995 | sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1) | |
924b6140 | 996 | |
83709125 | 997 | ifneq ($(reboot_mod_EXPORTS),no) |
79bbb63f | 998 | def-reboot.lst: pre-reboot.o |
999 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@ | |
83709125 | 1000 | endif |
924b6140 | 1001 | |
79bbb63f | 1002 | und-reboot.lst: pre-reboot.o |
1003 | echo 'reboot' > $@ | |
924b6140 | 1004 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
1005 | ||
79bbb63f | 1006 | reboot_mod-commands_ieee1275_reboot.o: commands/ieee1275/reboot.c |
46e5e5cb | 1007 | $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -MD -c -o $@ $< |
79bbb63f | 1008 | -include reboot_mod-commands_ieee1275_reboot.d |
7b1f4b57 | 1009 | |
79bbb63f | 1010 | CLEANFILES += cmd-reboot_mod-commands_ieee1275_reboot.lst fs-reboot_mod-commands_ieee1275_reboot.lst |
1011 | COMMANDFILES += cmd-reboot_mod-commands_ieee1275_reboot.lst | |
1012 | FSFILES += fs-reboot_mod-commands_ieee1275_reboot.lst | |
7b1f4b57 | 1013 | |
79bbb63f | 1014 | cmd-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c gencmdlist.sh |
26c607b9 | 1015 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1) |
39c9d41d | 1016 | |
79bbb63f | 1017 | fs-reboot_mod-commands_ieee1275_reboot.lst: commands/ieee1275/reboot.c genfslist.sh |
26c607b9 | 1018 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1) |
39c9d41d | 1019 | |
924b6140 | 1020 | |
79bbb63f | 1021 | reboot_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 1022 | reboot_mod_LDFLAGS = $(COMMON_LDFLAGS) |
c9f9c556 | 1023 | |
1024 | # For halt.mod | |
1025 | halt_mod_SOURCES = commands/ieee1275/halt.c | |
83709125 | 1026 | CLEANFILES += halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_ieee1275_halt.o und-halt.lst |
1027 | ifneq ($(halt_mod_EXPORTS),no) | |
1028 | CLEANFILES += def-halt.lst | |
c9f9c556 | 1029 | DEFSYMFILES += def-halt.lst |
83709125 | 1030 | endif |
1031 | MOSTLYCLEANFILES += halt_mod-commands_ieee1275_halt.d | |
c9f9c556 | 1032 | UNDSYMFILES += und-halt.lst |
1033 | ||
1034 | halt.mod: pre-halt.o mod-halt.o | |
1035 | -rm -f $@ | |
b977bf01 | 1036 | $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
c9f9c556 | 1037 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
1038 | ||
e02ac02c | 1039 | pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_ieee1275_halt.o |
c9f9c556 | 1040 | -rm -f $@ |
e02ac02c | 1041 | $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ halt_mod-commands_ieee1275_halt.o |
c9f9c556 | 1042 | |
1043 | mod-halt.o: mod-halt.c | |
b977bf01 | 1044 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $< |
c9f9c556 | 1045 | |
1046 | mod-halt.c: moddep.lst genmodsrc.sh | |
1047 | sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1) | |
1048 | ||
83709125 | 1049 | ifneq ($(halt_mod_EXPORTS),no) |
c9f9c556 | 1050 | def-halt.lst: pre-halt.o |
1051 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@ | |
83709125 | 1052 | endif |
c9f9c556 | 1053 | |
1054 | und-halt.lst: pre-halt.o | |
1055 | echo 'halt' > $@ | |
1056 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
1057 | ||
1058 | halt_mod-commands_ieee1275_halt.o: commands/ieee1275/halt.c | |
46e5e5cb | 1059 | $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -MD -c -o $@ $< |
c9f9c556 | 1060 | -include halt_mod-commands_ieee1275_halt.d |
1061 | ||
233b1628 | 1062 | CLEANFILES += cmd-halt_mod-commands_ieee1275_halt.lst fs-halt_mod-commands_ieee1275_halt.lst |
1063 | COMMANDFILES += cmd-halt_mod-commands_ieee1275_halt.lst | |
1064 | FSFILES += fs-halt_mod-commands_ieee1275_halt.lst | |
7b1f4b57 | 1065 | |
233b1628 | 1066 | cmd-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c gencmdlist.sh |
26c607b9 | 1067 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1) |
7b1f4b57 | 1068 | |
233b1628 | 1069 | fs-halt_mod-commands_ieee1275_halt.lst: commands/ieee1275/halt.c genfslist.sh |
26c607b9 | 1070 | set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1) |
39c9d41d | 1071 | |
1072 | ||
c9f9c556 | 1073 | halt_mod_CFLAGS = $(COMMON_CFLAGS) |
ff04ec24 | 1074 | halt_mod_LDFLAGS = $(COMMON_LDFLAGS) |
c9f9c556 | 1075 | |
d3cec7ce | 1076 | # For _multiboot.mod |
1077 | _multiboot_mod_SOURCES = loader/powerpc/ieee1275/multiboot2.c \ | |
1078 | loader/multiboot2.c \ | |
1079 | loader/multiboot_loader.c | |
1080 | CLEANFILES += _multiboot.mod mod-_multiboot.o mod-_multiboot.c pre-_multiboot.o _multiboot_mod-loader_powerpc_ieee1275_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o und-_multiboot.lst | |
1081 | ifneq ($(_multiboot_mod_EXPORTS),no) | |
1082 | CLEANFILES += def-_multiboot.lst | |
1083 | DEFSYMFILES += def-_multiboot.lst | |
1084 | endif | |
1085 | MOSTLYCLEANFILES += _multiboot_mod-loader_powerpc_ieee1275_multiboot2.d _multiboot_mod-loader_multiboot2.d _multiboot_mod-loader_multiboot_loader.d | |
1086 | UNDSYMFILES += und-_multiboot.lst | |
1087 | ||
1088 | _multiboot.mod: pre-_multiboot.o mod-_multiboot.o | |
1089 | -rm -f $@ | |
1090 | $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ | |
1091 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ | |
1092 | ||
1093 | pre-_multiboot.o: $(_multiboot_mod_DEPENDENCIES) _multiboot_mod-loader_powerpc_ieee1275_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o | |
1094 | -rm -f $@ | |
1095 | $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _multiboot_mod-loader_powerpc_ieee1275_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o | |
1096 | ||
1097 | mod-_multiboot.o: mod-_multiboot.c | |
1098 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -c -o $@ $< | |
1099 | ||
1100 | mod-_multiboot.c: moddep.lst genmodsrc.sh | |
1101 | sh $(srcdir)/genmodsrc.sh '_multiboot' $< > $@ || (rm -f $@; exit 1) | |
1102 | ||
1103 | ifneq ($(_multiboot_mod_EXPORTS),no) | |
1104 | def-_multiboot.lst: pre-_multiboot.o | |
1105 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _multiboot/' > $@ | |
1106 | endif | |
1107 | ||
1108 | und-_multiboot.lst: pre-_multiboot.o | |
1109 | echo '_multiboot' > $@ | |
1110 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
1111 | ||
1112 | _multiboot_mod-loader_powerpc_ieee1275_multiboot2.o: loader/powerpc/ieee1275/multiboot2.c | |
46e5e5cb | 1113 | $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $< |
d3cec7ce | 1114 | -include _multiboot_mod-loader_powerpc_ieee1275_multiboot2.d |
1115 | ||
1116 | CLEANFILES += cmd-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst fs-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst | |
1117 | COMMANDFILES += cmd-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst | |
1118 | FSFILES += fs-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst | |
1119 | ||
1120 | cmd-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst: loader/powerpc/ieee1275/multiboot2.c gencmdlist.sh | |
1121 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1122 | ||
1123 | fs-_multiboot_mod-loader_powerpc_ieee1275_multiboot2.lst: loader/powerpc/ieee1275/multiboot2.c genfslist.sh | |
1124 | set -e; $(TARGET_CC) -Iloader/powerpc/ieee1275 -I$(srcdir)/loader/powerpc/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1125 | ||
1126 | ||
1127 | _multiboot_mod-loader_multiboot2.o: loader/multiboot2.c | |
46e5e5cb | 1128 | $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $< |
d3cec7ce | 1129 | -include _multiboot_mod-loader_multiboot2.d |
1130 | ||
1131 | CLEANFILES += cmd-_multiboot_mod-loader_multiboot2.lst fs-_multiboot_mod-loader_multiboot2.lst | |
1132 | COMMANDFILES += cmd-_multiboot_mod-loader_multiboot2.lst | |
1133 | FSFILES += fs-_multiboot_mod-loader_multiboot2.lst | |
1134 | ||
1135 | cmd-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c gencmdlist.sh | |
1136 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1137 | ||
1138 | fs-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c genfslist.sh | |
1139 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1140 | ||
1141 | ||
1142 | _multiboot_mod-loader_multiboot_loader.o: loader/multiboot_loader.c | |
46e5e5cb | 1143 | $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $< |
d3cec7ce | 1144 | -include _multiboot_mod-loader_multiboot_loader.d |
1145 | ||
1146 | CLEANFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst fs-_multiboot_mod-loader_multiboot_loader.lst | |
1147 | COMMANDFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst | |
1148 | FSFILES += fs-_multiboot_mod-loader_multiboot_loader.lst | |
1149 | ||
1150 | cmd-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c gencmdlist.sh | |
1151 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1152 | ||
1153 | fs-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c genfslist.sh | |
1154 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1) | |
1155 | ||
1156 | ||
1157 | _multiboot_mod_CFLAGS = $(COMMON_CFLAGS) | |
1158 | _multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
1159 | ||
1160 | # For multiboot.mod | |
1161 | multiboot_mod_SOURCES = loader/multiboot_loader_normal.c | |
1162 | CLEANFILES += multiboot.mod mod-multiboot.o mod-multiboot.c pre-multiboot.o multiboot_mod-loader_multiboot_loader_normal.o und-multiboot.lst | |
1163 | ifneq ($(multiboot_mod_EXPORTS),no) | |
1164 | CLEANFILES += def-multiboot.lst | |
1165 | DEFSYMFILES += def-multiboot.lst | |
1166 | endif | |
1167 | MOSTLYCLEANFILES += multiboot_mod-loader_multiboot_loader_normal.d | |
1168 | UNDSYMFILES += und-multiboot.lst | |
1169 | ||
1170 | multiboot.mod: pre-multiboot.o mod-multiboot.o | |
1171 | -rm -f $@ | |
1172 | $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ | |
1173 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ | |
1174 | ||
1175 | pre-multiboot.o: $(multiboot_mod_DEPENDENCIES) multiboot_mod-loader_multiboot_loader_normal.o | |
1176 | -rm -f $@ | |
1177 | $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ multiboot_mod-loader_multiboot_loader_normal.o | |
1178 | ||
1179 | mod-multiboot.o: mod-multiboot.c | |
1180 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -c -o $@ $< | |
1181 | ||
1182 | mod-multiboot.c: moddep.lst genmodsrc.sh | |
1183 | sh $(srcdir)/genmodsrc.sh 'multiboot' $< > $@ || (rm -f $@; exit 1) | |
1184 | ||
1185 | ifneq ($(multiboot_mod_EXPORTS),no) | |
1186 | def-multiboot.lst: pre-multiboot.o | |
1187 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 multiboot/' > $@ | |
1188 | endif | |
1189 | ||
1190 | und-multiboot.lst: pre-multiboot.o | |
1191 | echo 'multiboot' > $@ | |
1192 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
1193 | ||
1194 | multiboot_mod-loader_multiboot_loader_normal.o: loader/multiboot_loader_normal.c | |
46e5e5cb | 1195 | $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $< |
d3cec7ce | 1196 | -include multiboot_mod-loader_multiboot_loader_normal.d |
1197 | ||
1198 | CLEANFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst fs-multiboot_mod-loader_multiboot_loader_normal.lst | |
1199 | COMMANDFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst | |
1200 | FSFILES += fs-multiboot_mod-loader_multiboot_loader_normal.lst | |
1201 | ||
1202 | cmd-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c gencmdlist.sh | |
1203 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1) | |
1204 | ||
1205 | fs-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c genfslist.sh | |
1206 | set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1) | |
1207 | ||
1208 | ||
1209 | multiboot_mod_CFLAGS = $(COMMON_CFLAGS) | |
1210 | multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
1211 | ||
1212 | ||
79bbb63f | 1213 | include $(srcdir)/conf/common.mk |
a0cbb023 | 1214 |