]>
Commit | Line | Data |
---|---|---|
83709125 | 1 | # -*- makefile -*- |
2 | ||
3 | COMMON_ASFLAGS = -nostdinc -fno-builtin -m32 | |
4 | COMMON_CFLAGS = -fno-builtin -m32 | |
ff04ec24 | 5 | COMMON_LDFLAGS = -melf_i386 -nostdlib |
83709125 | 6 | |
7 | # Utilities. | |
8 | bin_UTILITIES = grub-mkimage | |
ccaa8a5f | 9 | sbin_UTILITIES = grub-mkdevicemap |
fd3e4ea5 | 10 | #ifeq ($(enable_grub_emu), yes) |
11 | #sbin_UTILITIES += grub-emu | |
12 | #endif | |
83709125 | 13 | |
14 | # For grub-mkimage. | |
15 | grub_mkimage_SOURCES = util/i386/efi/grub-mkimage.c util/misc.c \ | |
16 | util/resolve.c | |
17 | CLEANFILES += grub-mkimage grub_mkimage-util_i386_efi_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o | |
18 | MOSTLYCLEANFILES += grub_mkimage-util_i386_efi_grub_mkimage.d grub_mkimage-util_misc.d grub_mkimage-util_resolve.d | |
19 | ||
e02ac02c | 20 | grub-mkimage: $(grub_mkimage_DEPENDENCIES) grub_mkimage-util_i386_efi_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o |
21 | $(CC) -o $@ grub_mkimage-util_i386_efi_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o $(LDFLAGS) $(grub_mkimage_LDFLAGS) | |
83709125 | 22 | |
38da6516 | 23 | grub_mkimage-util_i386_efi_grub_mkimage.o: util/i386/efi/grub-mkimage.c $(util/i386/efi/grub-mkimage.c_DEPENDENCIES) |
01b82a64 | 24 | $(CC) -Iutil/i386/efi -I$(srcdir)/util/i386/efi $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< |
83709125 | 25 | -include grub_mkimage-util_i386_efi_grub_mkimage.d |
26 | ||
38da6516 | 27 | grub_mkimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
01b82a64 | 28 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< |
83709125 | 29 | -include grub_mkimage-util_misc.d |
30 | ||
38da6516 | 31 | grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) |
01b82a64 | 32 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< |
83709125 | 33 | -include grub_mkimage-util_resolve.d |
34 | ||
35 | ||
36 | # For grub-setup. | |
3572d015 | 37 | #grub_setup_SOURCES = util/i386/pc/grub-setup.c util/biosdisk.c \ |
38 | # util/misc.c util/getroot.c kern/device.c kern/disk.c \ | |
83709125 | 39 | # kern/err.c kern/misc.c fs/fat.c fs/ext2.c fs/xfs.c fs/affs.c \ |
40 | # fs/sfs.c kern/parser.c kern/partition.c partmap/pc.c \ | |
41 | # fs/ufs.c fs/minix.c fs/hfs.c fs/jfs.c fs/hfsplus.c kern/file.c \ | |
42 | # kern/fs.c kern/env.c fs/fshelp.c | |
43 | ||
44 | # For grub-mkdevicemap. | |
7720a448 | 45 | grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ |
46 | util/i386/get_disk_name.c | |
47 | CLEANFILES += grub-mkdevicemap grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o | |
48 | MOSTLYCLEANFILES += grub_mkdevicemap-util_grub_mkdevicemap.d grub_mkdevicemap-util_misc.d grub_mkdevicemap-util_i386_get_disk_name.d | |
46b9d128 | 49 | |
7720a448 | 50 | grub-mkdevicemap: $(grub_mkdevicemap_DEPENDENCIES) grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o |
51 | $(CC) -o $@ grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o $(LDFLAGS) $(grub_mkdevicemap_LDFLAGS) | |
46b9d128 | 52 | |
38da6516 | 53 | grub_mkdevicemap-util_grub_mkdevicemap.o: util/grub-mkdevicemap.c $(util/grub-mkdevicemap.c_DEPENDENCIES) |
46b9d128 | 54 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
55 | -include grub_mkdevicemap-util_grub_mkdevicemap.d | |
56 | ||
38da6516 | 57 | grub_mkdevicemap-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
46b9d128 | 58 | $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
59 | -include grub_mkdevicemap-util_misc.d | |
60 | ||
38da6516 | 61 | grub_mkdevicemap-util_i386_get_disk_name.o: util/i386/get_disk_name.c $(util/i386/get_disk_name.c_DEPENDENCIES) |
7720a448 | 62 | $(CC) -Iutil/i386 -I$(srcdir)/util/i386 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
63 | -include grub_mkdevicemap-util_i386_get_disk_name.d | |
64 | ||
83709125 | 65 | |
83709125 | 66 | # For grub-emu. |
e1907778 | 67 | util/grub-emu.c_DEPENDENCIES = grub_emu_init.h |
68 | normal/execute.c_DEPENDENCIES = grub_script.tab.h | |
69 | grub-emu_DEPENDENCIES = grub_script.tab.c | |
4e93851c | 70 | grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ |
71 | commands/configfile.c commands/help.c \ | |
83709125 | 72 | commands/terminal.c commands/ls.c commands/test.c \ |
c405c391 | 73 | commands/search.c commands/hexdump.c \ |
83709125 | 74 | commands/i386/pc/halt.c commands/i386/pc/reboot.c \ |
fb36dc26 | 75 | commands/i386/cpuid.c \ |
83709125 | 76 | disk/loopback.c \ |
2a9525e6 | 77 | \ |
78 | fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \ | |
79 | fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \ | |
80 | fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \ | |
81 | fs/ufs.c fs/xfs.c \ | |
82 | \ | |
83709125 | 83 | io/gzio.c \ |
8b6a8d2a | 84 | kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \ |
85 | kern/err.c \ | |
83709125 | 86 | normal/execute.c kern/file.c kern/fs.c normal/lexer.c \ |
87 | kern/loader.c kern/main.c kern/misc.c kern/parser.c \ | |
88 | grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \ | |
89 | normal/arg.c normal/cmdline.c normal/command.c normal/function.c\ | |
90 | normal/completion.c normal/context.c normal/main.c \ | |
91 | normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \ | |
0ece25b1 | 92 | normal/color.c \ |
83709125 | 93 | partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \ |
94 | partmap/acorn.c partmap/gpt.c \ | |
c8cc3692 | 95 | util/console.c util/hostfs.c util/grub-emu.c util/misc.c \ |
46b9d128 | 96 | util/biosdisk.c util/getroot.c \ |
83709125 | 97 | util/i386/pc/misc.c grub_emu_init.c |
98 | ||
99 | grub_emu_LDFLAGS = $(LIBCURSES) | |
100 | ||
83709125 | 101 | # Scripts. |
46b9d128 | 102 | sbin_SCRIPTS = grub-install |
83709125 | 103 | |
104 | # For grub-install. | |
46b9d128 | 105 | grub_install_SOURCES = util/i386/efi/grub-install.in |
106 | CLEANFILES += grub-install | |
107 | ||
108 | grub-install: util/i386/efi/grub-install.in config.status | |
109 | ./config.status --file=grub-install:util/i386/efi/grub-install.in | |
110 | chmod +x $@ | |
111 | ||
83709125 | 112 | |
113 | # Modules. | |
4931827f | 114 | pkglib_MODULES = kernel.mod normal.mod _chain.mod chain.mod \ |
fb36dc26 | 115 | _linux.mod linux.mod cpuid.mod |
83709125 | 116 | |
117 | # For kernel.mod. | |
118 | kernel_mod_EXPORTS = no | |
119 | kernel_mod_SOURCES = kern/i386/efi/startup.S kern/main.c kern/device.c \ | |
120 | kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \ | |
121 | kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \ | |
122 | kern/i386/dl.c kern/i386/efi/init.c kern/parser.c kern/partition.c \ | |
976a4ea0 | 123 | kern/env.c symlist.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c \ |
9cacaa17 | 124 | term/efi/console.c disk/efi/efidisk.c |
125 | CLEANFILES += kernel.mod mod-kernel.o mod-kernel.c pre-kernel.o kernel_mod-kern_i386_efi_startup.o kernel_mod-kern_main.o kernel_mod-kern_device.o kernel_mod-kern_disk.o kernel_mod-kern_dl.o kernel_mod-kern_file.o kernel_mod-kern_fs.o kernel_mod-kern_err.o kernel_mod-kern_misc.o kernel_mod-kern_mm.o kernel_mod-kern_loader.o kernel_mod-kern_rescue.o kernel_mod-kern_term.o kernel_mod-kern_i386_dl.o kernel_mod-kern_i386_efi_init.o kernel_mod-kern_parser.o kernel_mod-kern_partition.o kernel_mod-kern_env.o kernel_mod-symlist.o kernel_mod-kern_efi_efi.o kernel_mod-kern_efi_init.o kernel_mod-kern_efi_mm.o kernel_mod-term_efi_console.o kernel_mod-disk_efi_efidisk.o und-kernel.lst | |
83709125 | 126 | ifneq ($(kernel_mod_EXPORTS),no) |
127 | CLEANFILES += def-kernel.lst | |
128 | DEFSYMFILES += def-kernel.lst | |
129 | endif | |
9cacaa17 | 130 | MOSTLYCLEANFILES += kernel_mod-kern_i386_efi_startup.d kernel_mod-kern_main.d kernel_mod-kern_device.d kernel_mod-kern_disk.d kernel_mod-kern_dl.d kernel_mod-kern_file.d kernel_mod-kern_fs.d kernel_mod-kern_err.d kernel_mod-kern_misc.d kernel_mod-kern_mm.d kernel_mod-kern_loader.d kernel_mod-kern_rescue.d kernel_mod-kern_term.d kernel_mod-kern_i386_dl.d kernel_mod-kern_i386_efi_init.d kernel_mod-kern_parser.d kernel_mod-kern_partition.d kernel_mod-kern_env.d kernel_mod-symlist.d kernel_mod-kern_efi_efi.d kernel_mod-kern_efi_init.d kernel_mod-kern_efi_mm.d kernel_mod-term_efi_console.d kernel_mod-disk_efi_efidisk.d |
83709125 | 131 | UNDSYMFILES += und-kernel.lst |
132 | ||
133 | kernel.mod: pre-kernel.o mod-kernel.o | |
134 | -rm -f $@ | |
b977bf01 | 135 | $(TARGET_CC) $(kernel_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
83709125 | 136 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
137 | ||
e02ac02c | 138 | pre-kernel.o: $(kernel_mod_DEPENDENCIES) kernel_mod-kern_i386_efi_startup.o kernel_mod-kern_main.o kernel_mod-kern_device.o kernel_mod-kern_disk.o kernel_mod-kern_dl.o kernel_mod-kern_file.o kernel_mod-kern_fs.o kernel_mod-kern_err.o kernel_mod-kern_misc.o kernel_mod-kern_mm.o kernel_mod-kern_loader.o kernel_mod-kern_rescue.o kernel_mod-kern_term.o kernel_mod-kern_i386_dl.o kernel_mod-kern_i386_efi_init.o kernel_mod-kern_parser.o kernel_mod-kern_partition.o kernel_mod-kern_env.o kernel_mod-symlist.o kernel_mod-kern_efi_efi.o kernel_mod-kern_efi_init.o kernel_mod-kern_efi_mm.o kernel_mod-term_efi_console.o kernel_mod-disk_efi_efidisk.o |
83709125 | 139 | -rm -f $@ |
e02ac02c | 140 | $(TARGET_CC) $(kernel_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ kernel_mod-kern_i386_efi_startup.o kernel_mod-kern_main.o kernel_mod-kern_device.o kernel_mod-kern_disk.o kernel_mod-kern_dl.o kernel_mod-kern_file.o kernel_mod-kern_fs.o kernel_mod-kern_err.o kernel_mod-kern_misc.o kernel_mod-kern_mm.o kernel_mod-kern_loader.o kernel_mod-kern_rescue.o kernel_mod-kern_term.o kernel_mod-kern_i386_dl.o kernel_mod-kern_i386_efi_init.o kernel_mod-kern_parser.o kernel_mod-kern_partition.o kernel_mod-kern_env.o kernel_mod-symlist.o kernel_mod-kern_efi_efi.o kernel_mod-kern_efi_init.o kernel_mod-kern_efi_mm.o kernel_mod-term_efi_console.o kernel_mod-disk_efi_efidisk.o |
83709125 | 141 | |
142 | mod-kernel.o: mod-kernel.c | |
b977bf01 | 143 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -c -o $@ $< |
83709125 | 144 | |
145 | mod-kernel.c: moddep.lst genmodsrc.sh | |
146 | sh $(srcdir)/genmodsrc.sh 'kernel' $< > $@ || (rm -f $@; exit 1) | |
147 | ||
148 | ifneq ($(kernel_mod_EXPORTS),no) | |
149 | def-kernel.lst: pre-kernel.o | |
150 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 kernel/' > $@ | |
151 | endif | |
152 | ||
153 | und-kernel.lst: pre-kernel.o | |
154 | echo 'kernel' > $@ | |
155 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
156 | ||
157 | kernel_mod-kern_i386_efi_startup.o: kern/i386/efi/startup.S | |
46e5e5cb | 158 | $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_mod_ASFLAGS) -MD -c -o $@ $< |
83709125 | 159 | -include kernel_mod-kern_i386_efi_startup.d |
160 | ||
161 | CLEANFILES += cmd-kernel_mod-kern_i386_efi_startup.lst fs-kernel_mod-kern_i386_efi_startup.lst | |
162 | COMMANDFILES += cmd-kernel_mod-kern_i386_efi_startup.lst | |
163 | FSFILES += fs-kernel_mod-kern_i386_efi_startup.lst | |
164 | ||
165 | cmd-kernel_mod-kern_i386_efi_startup.lst: kern/i386/efi/startup.S gencmdlist.sh | |
26c607b9 | 166 | set -e; $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 167 | |
168 | fs-kernel_mod-kern_i386_efi_startup.lst: kern/i386/efi/startup.S genfslist.sh | |
26c607b9 | 169 | set -e; $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(kernel_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 170 | |
171 | ||
172 | kernel_mod-kern_main.o: kern/main.c | |
46e5e5cb | 173 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 174 | -include kernel_mod-kern_main.d |
175 | ||
176 | CLEANFILES += cmd-kernel_mod-kern_main.lst fs-kernel_mod-kern_main.lst | |
177 | COMMANDFILES += cmd-kernel_mod-kern_main.lst | |
178 | FSFILES += fs-kernel_mod-kern_main.lst | |
179 | ||
180 | cmd-kernel_mod-kern_main.lst: kern/main.c gencmdlist.sh | |
26c607b9 | 181 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 182 | |
183 | fs-kernel_mod-kern_main.lst: kern/main.c genfslist.sh | |
26c607b9 | 184 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 185 | |
186 | ||
187 | kernel_mod-kern_device.o: kern/device.c | |
46e5e5cb | 188 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 189 | -include kernel_mod-kern_device.d |
190 | ||
191 | CLEANFILES += cmd-kernel_mod-kern_device.lst fs-kernel_mod-kern_device.lst | |
192 | COMMANDFILES += cmd-kernel_mod-kern_device.lst | |
193 | FSFILES += fs-kernel_mod-kern_device.lst | |
194 | ||
195 | cmd-kernel_mod-kern_device.lst: kern/device.c gencmdlist.sh | |
26c607b9 | 196 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 197 | |
198 | fs-kernel_mod-kern_device.lst: kern/device.c genfslist.sh | |
26c607b9 | 199 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 200 | |
201 | ||
202 | kernel_mod-kern_disk.o: kern/disk.c | |
46e5e5cb | 203 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 204 | -include kernel_mod-kern_disk.d |
205 | ||
206 | CLEANFILES += cmd-kernel_mod-kern_disk.lst fs-kernel_mod-kern_disk.lst | |
207 | COMMANDFILES += cmd-kernel_mod-kern_disk.lst | |
208 | FSFILES += fs-kernel_mod-kern_disk.lst | |
209 | ||
210 | cmd-kernel_mod-kern_disk.lst: kern/disk.c gencmdlist.sh | |
26c607b9 | 211 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 212 | |
213 | fs-kernel_mod-kern_disk.lst: kern/disk.c genfslist.sh | |
26c607b9 | 214 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 215 | |
216 | ||
217 | kernel_mod-kern_dl.o: kern/dl.c | |
46e5e5cb | 218 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 219 | -include kernel_mod-kern_dl.d |
220 | ||
221 | CLEANFILES += cmd-kernel_mod-kern_dl.lst fs-kernel_mod-kern_dl.lst | |
222 | COMMANDFILES += cmd-kernel_mod-kern_dl.lst | |
223 | FSFILES += fs-kernel_mod-kern_dl.lst | |
224 | ||
225 | cmd-kernel_mod-kern_dl.lst: kern/dl.c gencmdlist.sh | |
26c607b9 | 226 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 227 | |
228 | fs-kernel_mod-kern_dl.lst: kern/dl.c genfslist.sh | |
26c607b9 | 229 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 230 | |
231 | ||
232 | kernel_mod-kern_file.o: kern/file.c | |
46e5e5cb | 233 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 234 | -include kernel_mod-kern_file.d |
235 | ||
236 | CLEANFILES += cmd-kernel_mod-kern_file.lst fs-kernel_mod-kern_file.lst | |
237 | COMMANDFILES += cmd-kernel_mod-kern_file.lst | |
238 | FSFILES += fs-kernel_mod-kern_file.lst | |
239 | ||
240 | cmd-kernel_mod-kern_file.lst: kern/file.c gencmdlist.sh | |
26c607b9 | 241 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 242 | |
243 | fs-kernel_mod-kern_file.lst: kern/file.c genfslist.sh | |
26c607b9 | 244 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 245 | |
246 | ||
247 | kernel_mod-kern_fs.o: kern/fs.c | |
46e5e5cb | 248 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 249 | -include kernel_mod-kern_fs.d |
250 | ||
251 | CLEANFILES += cmd-kernel_mod-kern_fs.lst fs-kernel_mod-kern_fs.lst | |
252 | COMMANDFILES += cmd-kernel_mod-kern_fs.lst | |
253 | FSFILES += fs-kernel_mod-kern_fs.lst | |
254 | ||
255 | cmd-kernel_mod-kern_fs.lst: kern/fs.c gencmdlist.sh | |
26c607b9 | 256 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 257 | |
258 | fs-kernel_mod-kern_fs.lst: kern/fs.c genfslist.sh | |
26c607b9 | 259 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 260 | |
261 | ||
262 | kernel_mod-kern_err.o: kern/err.c | |
46e5e5cb | 263 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 264 | -include kernel_mod-kern_err.d |
265 | ||
266 | CLEANFILES += cmd-kernel_mod-kern_err.lst fs-kernel_mod-kern_err.lst | |
267 | COMMANDFILES += cmd-kernel_mod-kern_err.lst | |
268 | FSFILES += fs-kernel_mod-kern_err.lst | |
269 | ||
270 | cmd-kernel_mod-kern_err.lst: kern/err.c gencmdlist.sh | |
26c607b9 | 271 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 272 | |
273 | fs-kernel_mod-kern_err.lst: kern/err.c genfslist.sh | |
26c607b9 | 274 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 275 | |
276 | ||
277 | kernel_mod-kern_misc.o: kern/misc.c | |
46e5e5cb | 278 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 279 | -include kernel_mod-kern_misc.d |
280 | ||
281 | CLEANFILES += cmd-kernel_mod-kern_misc.lst fs-kernel_mod-kern_misc.lst | |
282 | COMMANDFILES += cmd-kernel_mod-kern_misc.lst | |
283 | FSFILES += fs-kernel_mod-kern_misc.lst | |
284 | ||
285 | cmd-kernel_mod-kern_misc.lst: kern/misc.c gencmdlist.sh | |
26c607b9 | 286 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 287 | |
288 | fs-kernel_mod-kern_misc.lst: kern/misc.c genfslist.sh | |
26c607b9 | 289 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 290 | |
291 | ||
292 | kernel_mod-kern_mm.o: kern/mm.c | |
46e5e5cb | 293 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 294 | -include kernel_mod-kern_mm.d |
295 | ||
296 | CLEANFILES += cmd-kernel_mod-kern_mm.lst fs-kernel_mod-kern_mm.lst | |
297 | COMMANDFILES += cmd-kernel_mod-kern_mm.lst | |
298 | FSFILES += fs-kernel_mod-kern_mm.lst | |
299 | ||
300 | cmd-kernel_mod-kern_mm.lst: kern/mm.c gencmdlist.sh | |
26c607b9 | 301 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 302 | |
303 | fs-kernel_mod-kern_mm.lst: kern/mm.c genfslist.sh | |
26c607b9 | 304 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 305 | |
306 | ||
307 | kernel_mod-kern_loader.o: kern/loader.c | |
46e5e5cb | 308 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 309 | -include kernel_mod-kern_loader.d |
310 | ||
311 | CLEANFILES += cmd-kernel_mod-kern_loader.lst fs-kernel_mod-kern_loader.lst | |
312 | COMMANDFILES += cmd-kernel_mod-kern_loader.lst | |
313 | FSFILES += fs-kernel_mod-kern_loader.lst | |
314 | ||
315 | cmd-kernel_mod-kern_loader.lst: kern/loader.c gencmdlist.sh | |
26c607b9 | 316 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 317 | |
318 | fs-kernel_mod-kern_loader.lst: kern/loader.c genfslist.sh | |
26c607b9 | 319 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 320 | |
321 | ||
322 | kernel_mod-kern_rescue.o: kern/rescue.c | |
46e5e5cb | 323 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 324 | -include kernel_mod-kern_rescue.d |
325 | ||
326 | CLEANFILES += cmd-kernel_mod-kern_rescue.lst fs-kernel_mod-kern_rescue.lst | |
327 | COMMANDFILES += cmd-kernel_mod-kern_rescue.lst | |
328 | FSFILES += fs-kernel_mod-kern_rescue.lst | |
329 | ||
330 | cmd-kernel_mod-kern_rescue.lst: kern/rescue.c gencmdlist.sh | |
26c607b9 | 331 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 332 | |
333 | fs-kernel_mod-kern_rescue.lst: kern/rescue.c genfslist.sh | |
26c607b9 | 334 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 335 | |
336 | ||
337 | kernel_mod-kern_term.o: kern/term.c | |
46e5e5cb | 338 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 339 | -include kernel_mod-kern_term.d |
340 | ||
341 | CLEANFILES += cmd-kernel_mod-kern_term.lst fs-kernel_mod-kern_term.lst | |
342 | COMMANDFILES += cmd-kernel_mod-kern_term.lst | |
343 | FSFILES += fs-kernel_mod-kern_term.lst | |
344 | ||
345 | cmd-kernel_mod-kern_term.lst: kern/term.c gencmdlist.sh | |
26c607b9 | 346 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 347 | |
348 | fs-kernel_mod-kern_term.lst: kern/term.c genfslist.sh | |
26c607b9 | 349 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 350 | |
351 | ||
352 | kernel_mod-kern_i386_dl.o: kern/i386/dl.c | |
46e5e5cb | 353 | $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 354 | -include kernel_mod-kern_i386_dl.d |
355 | ||
356 | CLEANFILES += cmd-kernel_mod-kern_i386_dl.lst fs-kernel_mod-kern_i386_dl.lst | |
357 | COMMANDFILES += cmd-kernel_mod-kern_i386_dl.lst | |
358 | FSFILES += fs-kernel_mod-kern_i386_dl.lst | |
359 | ||
360 | cmd-kernel_mod-kern_i386_dl.lst: kern/i386/dl.c gencmdlist.sh | |
26c607b9 | 361 | set -e; $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 362 | |
363 | fs-kernel_mod-kern_i386_dl.lst: kern/i386/dl.c genfslist.sh | |
26c607b9 | 364 | set -e; $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 365 | |
366 | ||
367 | kernel_mod-kern_i386_efi_init.o: kern/i386/efi/init.c | |
46e5e5cb | 368 | $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 369 | -include kernel_mod-kern_i386_efi_init.d |
370 | ||
371 | CLEANFILES += cmd-kernel_mod-kern_i386_efi_init.lst fs-kernel_mod-kern_i386_efi_init.lst | |
372 | COMMANDFILES += cmd-kernel_mod-kern_i386_efi_init.lst | |
373 | FSFILES += fs-kernel_mod-kern_i386_efi_init.lst | |
374 | ||
375 | cmd-kernel_mod-kern_i386_efi_init.lst: kern/i386/efi/init.c gencmdlist.sh | |
26c607b9 | 376 | set -e; $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 377 | |
378 | fs-kernel_mod-kern_i386_efi_init.lst: kern/i386/efi/init.c genfslist.sh | |
26c607b9 | 379 | set -e; $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 380 | |
381 | ||
382 | kernel_mod-kern_parser.o: kern/parser.c | |
46e5e5cb | 383 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 384 | -include kernel_mod-kern_parser.d |
385 | ||
386 | CLEANFILES += cmd-kernel_mod-kern_parser.lst fs-kernel_mod-kern_parser.lst | |
387 | COMMANDFILES += cmd-kernel_mod-kern_parser.lst | |
388 | FSFILES += fs-kernel_mod-kern_parser.lst | |
389 | ||
390 | cmd-kernel_mod-kern_parser.lst: kern/parser.c gencmdlist.sh | |
26c607b9 | 391 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 392 | |
393 | fs-kernel_mod-kern_parser.lst: kern/parser.c genfslist.sh | |
26c607b9 | 394 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 395 | |
396 | ||
397 | kernel_mod-kern_partition.o: kern/partition.c | |
46e5e5cb | 398 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 399 | -include kernel_mod-kern_partition.d |
400 | ||
401 | CLEANFILES += cmd-kernel_mod-kern_partition.lst fs-kernel_mod-kern_partition.lst | |
402 | COMMANDFILES += cmd-kernel_mod-kern_partition.lst | |
403 | FSFILES += fs-kernel_mod-kern_partition.lst | |
404 | ||
405 | cmd-kernel_mod-kern_partition.lst: kern/partition.c gencmdlist.sh | |
26c607b9 | 406 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 407 | |
408 | fs-kernel_mod-kern_partition.lst: kern/partition.c genfslist.sh | |
26c607b9 | 409 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 410 | |
411 | ||
412 | kernel_mod-kern_env.o: kern/env.c | |
46e5e5cb | 413 | $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 414 | -include kernel_mod-kern_env.d |
415 | ||
416 | CLEANFILES += cmd-kernel_mod-kern_env.lst fs-kernel_mod-kern_env.lst | |
417 | COMMANDFILES += cmd-kernel_mod-kern_env.lst | |
418 | FSFILES += fs-kernel_mod-kern_env.lst | |
419 | ||
420 | cmd-kernel_mod-kern_env.lst: kern/env.c gencmdlist.sh | |
26c607b9 | 421 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 422 | |
423 | fs-kernel_mod-kern_env.lst: kern/env.c genfslist.sh | |
26c607b9 | 424 | set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 425 | |
426 | ||
427 | kernel_mod-symlist.o: symlist.c | |
46e5e5cb | 428 | $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 429 | -include kernel_mod-symlist.d |
430 | ||
431 | CLEANFILES += cmd-kernel_mod-symlist.lst fs-kernel_mod-symlist.lst | |
432 | COMMANDFILES += cmd-kernel_mod-symlist.lst | |
433 | FSFILES += fs-kernel_mod-symlist.lst | |
434 | ||
435 | cmd-kernel_mod-symlist.lst: symlist.c gencmdlist.sh | |
26c607b9 | 436 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 437 | |
438 | fs-kernel_mod-symlist.lst: symlist.c genfslist.sh | |
26c607b9 | 439 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 440 | |
441 | ||
442 | kernel_mod-kern_efi_efi.o: kern/efi/efi.c | |
46e5e5cb | 443 | $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 444 | -include kernel_mod-kern_efi_efi.d |
445 | ||
446 | CLEANFILES += cmd-kernel_mod-kern_efi_efi.lst fs-kernel_mod-kern_efi_efi.lst | |
447 | COMMANDFILES += cmd-kernel_mod-kern_efi_efi.lst | |
448 | FSFILES += fs-kernel_mod-kern_efi_efi.lst | |
449 | ||
450 | cmd-kernel_mod-kern_efi_efi.lst: kern/efi/efi.c gencmdlist.sh | |
26c607b9 | 451 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 452 | |
453 | fs-kernel_mod-kern_efi_efi.lst: kern/efi/efi.c genfslist.sh | |
26c607b9 | 454 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
83709125 | 455 | |
456 | ||
976a4ea0 | 457 | kernel_mod-kern_efi_init.o: kern/efi/init.c |
46e5e5cb | 458 | $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
976a4ea0 | 459 | -include kernel_mod-kern_efi_init.d |
460 | ||
461 | CLEANFILES += cmd-kernel_mod-kern_efi_init.lst fs-kernel_mod-kern_efi_init.lst | |
462 | COMMANDFILES += cmd-kernel_mod-kern_efi_init.lst | |
463 | FSFILES += fs-kernel_mod-kern_efi_init.lst | |
464 | ||
465 | cmd-kernel_mod-kern_efi_init.lst: kern/efi/init.c gencmdlist.sh | |
26c607b9 | 466 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 467 | |
468 | fs-kernel_mod-kern_efi_init.lst: kern/efi/init.c genfslist.sh | |
26c607b9 | 469 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 470 | |
471 | ||
472 | kernel_mod-kern_efi_mm.o: kern/efi/mm.c | |
46e5e5cb | 473 | $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
976a4ea0 | 474 | -include kernel_mod-kern_efi_mm.d |
475 | ||
476 | CLEANFILES += cmd-kernel_mod-kern_efi_mm.lst fs-kernel_mod-kern_efi_mm.lst | |
477 | COMMANDFILES += cmd-kernel_mod-kern_efi_mm.lst | |
478 | FSFILES += fs-kernel_mod-kern_efi_mm.lst | |
479 | ||
480 | cmd-kernel_mod-kern_efi_mm.lst: kern/efi/mm.c gencmdlist.sh | |
26c607b9 | 481 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 482 | |
483 | fs-kernel_mod-kern_efi_mm.lst: kern/efi/mm.c genfslist.sh | |
26c607b9 | 484 | set -e; $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 485 | |
486 | ||
487 | kernel_mod-term_efi_console.o: term/efi/console.c | |
46e5e5cb | 488 | $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
976a4ea0 | 489 | -include kernel_mod-term_efi_console.d |
490 | ||
491 | CLEANFILES += cmd-kernel_mod-term_efi_console.lst fs-kernel_mod-term_efi_console.lst | |
492 | COMMANDFILES += cmd-kernel_mod-term_efi_console.lst | |
493 | FSFILES += fs-kernel_mod-term_efi_console.lst | |
494 | ||
495 | cmd-kernel_mod-term_efi_console.lst: term/efi/console.c gencmdlist.sh | |
26c607b9 | 496 | set -e; $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 497 | |
498 | fs-kernel_mod-term_efi_console.lst: term/efi/console.c genfslist.sh | |
26c607b9 | 499 | set -e; $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
976a4ea0 | 500 | |
501 | ||
9cacaa17 | 502 | kernel_mod-disk_efi_efidisk.o: disk/efi/efidisk.c |
46e5e5cb | 503 | $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -MD -c -o $@ $< |
9cacaa17 | 504 | -include kernel_mod-disk_efi_efidisk.d |
505 | ||
506 | CLEANFILES += cmd-kernel_mod-disk_efi_efidisk.lst fs-kernel_mod-disk_efi_efidisk.lst | |
507 | COMMANDFILES += cmd-kernel_mod-disk_efi_efidisk.lst | |
508 | FSFILES += fs-kernel_mod-disk_efi_efidisk.lst | |
509 | ||
510 | cmd-kernel_mod-disk_efi_efidisk.lst: disk/efi/efidisk.c gencmdlist.sh | |
26c607b9 | 511 | set -e; $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh kernel > $@ || (rm -f $@; exit 1) |
9cacaa17 | 512 | |
513 | fs-kernel_mod-disk_efi_efidisk.lst: disk/efi/efidisk.c genfslist.sh | |
26c607b9 | 514 | set -e; $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh kernel > $@ || (rm -f $@; exit 1) |
9cacaa17 | 515 | |
516 | ||
2166cc83 | 517 | kernel_mod_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \ |
518 | env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \ | |
46e5e5cb | 519 | partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \ |
520 | efi/efi.h efi/time.h efi/disk.h | |
83709125 | 521 | kernel_mod_CFLAGS = $(COMMON_CFLAGS) |
522 | kernel_mod_ASFLAGS = $(COMMON_ASFLAGS) | |
523 | kernel_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
524 | ||
525 | MOSTLYCLEANFILES += symlist.c | |
526 | MOSTLYCLEANFILES += symlist.c kernel_syms.lst | |
527 | DEFSYMFILES += kernel_syms.lst | |
528 | ||
7b455f4d | 529 | symlist.c: $(addprefix include/grub/,$(kernel_mod_HEADERS)) config.h gensymlist.sh |
530 | /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) | |
83709125 | 531 | |
7b455f4d | 532 | kernel_syms.lst: $(addprefix include/grub/,$(kernel_mod_HEADERS)) config.h genkernsyms.sh |
533 | /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) | |
83709125 | 534 | |
535 | # For normal.mod. | |
6ba4688b | 536 | normal_mod_DEPENDENCIES = grub_script.tab.c grub_script.tab.h |
83709125 | 537 | normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \ |
4e93851c | 538 | normal/completion.c normal/execute.c \ |
83709125 | 539 | normal/function.c normal/lexer.c normal/main.c normal/menu.c \ |
540 | normal/menu_entry.c normal/misc.c grub_script.tab.c \ | |
0ece25b1 | 541 | normal/script.c normal/i386/setjmp.S normal/color.c |
542 | 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_i386_setjmp.o normal_mod-normal_color.o und-normal.lst | |
83709125 | 543 | ifneq ($(normal_mod_EXPORTS),no) |
544 | CLEANFILES += def-normal.lst | |
545 | DEFSYMFILES += def-normal.lst | |
546 | endif | |
0ece25b1 | 547 | 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_i386_setjmp.d normal_mod-normal_color.d |
83709125 | 548 | UNDSYMFILES += und-normal.lst |
549 | ||
550 | normal.mod: pre-normal.o mod-normal.o | |
551 | -rm -f $@ | |
b977bf01 | 552 | $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
83709125 | 553 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
554 | ||
0ece25b1 | 555 | 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_i386_setjmp.o normal_mod-normal_color.o |
83709125 | 556 | -rm -f $@ |
0ece25b1 | 557 | $(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_i386_setjmp.o normal_mod-normal_color.o |
83709125 | 558 | |
559 | mod-normal.o: mod-normal.c | |
b977bf01 | 560 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
83709125 | 561 | |
562 | mod-normal.c: moddep.lst genmodsrc.sh | |
563 | sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1) | |
564 | ||
565 | ifneq ($(normal_mod_EXPORTS),no) | |
566 | def-normal.lst: pre-normal.o | |
567 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@ | |
568 | endif | |
569 | ||
570 | und-normal.lst: pre-normal.o | |
571 | echo 'normal' > $@ | |
572 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
573 | ||
574 | normal_mod-normal_arg.o: normal/arg.c | |
46e5e5cb | 575 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 576 | -include normal_mod-normal_arg.d |
577 | ||
578 | CLEANFILES += cmd-normal_mod-normal_arg.lst fs-normal_mod-normal_arg.lst | |
579 | COMMANDFILES += cmd-normal_mod-normal_arg.lst | |
580 | FSFILES += fs-normal_mod-normal_arg.lst | |
581 | ||
582 | cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh | |
26c607b9 | 583 | 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) |
83709125 | 584 | |
585 | fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh | |
26c607b9 | 586 | 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) |
83709125 | 587 | |
588 | ||
589 | normal_mod-normal_cmdline.o: normal/cmdline.c | |
46e5e5cb | 590 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 591 | -include normal_mod-normal_cmdline.d |
592 | ||
593 | CLEANFILES += cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmdline.lst | |
594 | COMMANDFILES += cmd-normal_mod-normal_cmdline.lst | |
595 | FSFILES += fs-normal_mod-normal_cmdline.lst | |
596 | ||
597 | cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh | |
26c607b9 | 598 | 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) |
83709125 | 599 | |
600 | fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh | |
26c607b9 | 601 | 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) |
83709125 | 602 | |
603 | ||
604 | normal_mod-normal_command.o: normal/command.c | |
46e5e5cb | 605 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 606 | -include normal_mod-normal_command.d |
607 | ||
608 | CLEANFILES += cmd-normal_mod-normal_command.lst fs-normal_mod-normal_command.lst | |
609 | COMMANDFILES += cmd-normal_mod-normal_command.lst | |
610 | FSFILES += fs-normal_mod-normal_command.lst | |
611 | ||
612 | cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh | |
26c607b9 | 613 | 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) |
83709125 | 614 | |
615 | fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh | |
26c607b9 | 616 | 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) |
83709125 | 617 | |
618 | ||
619 | normal_mod-normal_completion.o: normal/completion.c | |
46e5e5cb | 620 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 621 | -include normal_mod-normal_completion.d |
622 | ||
623 | CLEANFILES += cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_completion.lst | |
624 | COMMANDFILES += cmd-normal_mod-normal_completion.lst | |
625 | FSFILES += fs-normal_mod-normal_completion.lst | |
626 | ||
627 | cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh | |
26c607b9 | 628 | 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) |
83709125 | 629 | |
630 | fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh | |
26c607b9 | 631 | 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) |
83709125 | 632 | |
633 | ||
83709125 | 634 | normal_mod-normal_execute.o: normal/execute.c |
46e5e5cb | 635 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 636 | -include normal_mod-normal_execute.d |
637 | ||
638 | CLEANFILES += cmd-normal_mod-normal_execute.lst fs-normal_mod-normal_execute.lst | |
639 | COMMANDFILES += cmd-normal_mod-normal_execute.lst | |
640 | FSFILES += fs-normal_mod-normal_execute.lst | |
641 | ||
642 | cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh | |
26c607b9 | 643 | 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) |
83709125 | 644 | |
645 | fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh | |
26c607b9 | 646 | 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) |
83709125 | 647 | |
648 | ||
649 | normal_mod-normal_function.o: normal/function.c | |
46e5e5cb | 650 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 651 | -include normal_mod-normal_function.d |
652 | ||
653 | CLEANFILES += cmd-normal_mod-normal_function.lst fs-normal_mod-normal_function.lst | |
654 | COMMANDFILES += cmd-normal_mod-normal_function.lst | |
655 | FSFILES += fs-normal_mod-normal_function.lst | |
656 | ||
657 | cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh | |
26c607b9 | 658 | 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) |
83709125 | 659 | |
660 | fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh | |
26c607b9 | 661 | 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) |
83709125 | 662 | |
663 | ||
664 | normal_mod-normal_lexer.o: normal/lexer.c | |
46e5e5cb | 665 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 666 | -include normal_mod-normal_lexer.d |
667 | ||
668 | CLEANFILES += cmd-normal_mod-normal_lexer.lst fs-normal_mod-normal_lexer.lst | |
669 | COMMANDFILES += cmd-normal_mod-normal_lexer.lst | |
670 | FSFILES += fs-normal_mod-normal_lexer.lst | |
671 | ||
672 | cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh | |
26c607b9 | 673 | 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) |
83709125 | 674 | |
675 | fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh | |
26c607b9 | 676 | 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) |
83709125 | 677 | |
678 | ||
679 | normal_mod-normal_main.o: normal/main.c | |
46e5e5cb | 680 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 681 | -include normal_mod-normal_main.d |
682 | ||
683 | CLEANFILES += cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.lst | |
684 | COMMANDFILES += cmd-normal_mod-normal_main.lst | |
685 | FSFILES += fs-normal_mod-normal_main.lst | |
686 | ||
687 | cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh | |
26c607b9 | 688 | 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) |
83709125 | 689 | |
690 | fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh | |
26c607b9 | 691 | 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) |
83709125 | 692 | |
693 | ||
694 | normal_mod-normal_menu.o: normal/menu.c | |
46e5e5cb | 695 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 696 | -include normal_mod-normal_menu.d |
697 | ||
698 | CLEANFILES += cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.lst | |
699 | COMMANDFILES += cmd-normal_mod-normal_menu.lst | |
700 | FSFILES += fs-normal_mod-normal_menu.lst | |
701 | ||
702 | cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh | |
26c607b9 | 703 | 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) |
83709125 | 704 | |
705 | fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh | |
26c607b9 | 706 | 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) |
83709125 | 707 | |
708 | ||
709 | normal_mod-normal_menu_entry.o: normal/menu_entry.c | |
46e5e5cb | 710 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 711 | -include normal_mod-normal_menu_entry.d |
712 | ||
713 | CLEANFILES += cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_menu_entry.lst | |
714 | COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst | |
715 | FSFILES += fs-normal_mod-normal_menu_entry.lst | |
716 | ||
717 | cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh | |
26c607b9 | 718 | 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) |
83709125 | 719 | |
720 | fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh | |
26c607b9 | 721 | 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) |
83709125 | 722 | |
723 | ||
724 | normal_mod-normal_misc.o: normal/misc.c | |
46e5e5cb | 725 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 726 | -include normal_mod-normal_misc.d |
727 | ||
728 | CLEANFILES += cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.lst | |
729 | COMMANDFILES += cmd-normal_mod-normal_misc.lst | |
730 | FSFILES += fs-normal_mod-normal_misc.lst | |
731 | ||
732 | cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh | |
26c607b9 | 733 | 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) |
83709125 | 734 | |
735 | fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh | |
26c607b9 | 736 | 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) |
83709125 | 737 | |
738 | ||
739 | normal_mod-grub_script_tab.o: grub_script.tab.c | |
46e5e5cb | 740 | $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 741 | -include normal_mod-grub_script_tab.d |
742 | ||
743 | CLEANFILES += cmd-normal_mod-grub_script_tab.lst fs-normal_mod-grub_script_tab.lst | |
744 | COMMANDFILES += cmd-normal_mod-grub_script_tab.lst | |
745 | FSFILES += fs-normal_mod-grub_script_tab.lst | |
746 | ||
747 | cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh | |
26c607b9 | 748 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
83709125 | 749 | |
750 | fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh | |
26c607b9 | 751 | set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
83709125 | 752 | |
753 | ||
754 | normal_mod-normal_script.o: normal/script.c | |
46e5e5cb | 755 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
83709125 | 756 | -include normal_mod-normal_script.d |
757 | ||
758 | CLEANFILES += cmd-normal_mod-normal_script.lst fs-normal_mod-normal_script.lst | |
759 | COMMANDFILES += cmd-normal_mod-normal_script.lst | |
760 | FSFILES += fs-normal_mod-normal_script.lst | |
761 | ||
762 | cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh | |
26c607b9 | 763 | 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) |
83709125 | 764 | |
765 | fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh | |
26c607b9 | 766 | 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) |
83709125 | 767 | |
768 | ||
769 | normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S | |
46e5e5cb | 770 | $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $< |
83709125 | 771 | -include normal_mod-normal_i386_setjmp.d |
772 | ||
773 | CLEANFILES += cmd-normal_mod-normal_i386_setjmp.lst fs-normal_mod-normal_i386_setjmp.lst | |
774 | COMMANDFILES += cmd-normal_mod-normal_i386_setjmp.lst | |
775 | FSFILES += fs-normal_mod-normal_i386_setjmp.lst | |
776 | ||
777 | cmd-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S gencmdlist.sh | |
26c607b9 | 778 | set -e; $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
83709125 | 779 | |
780 | fs-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S genfslist.sh | |
26c607b9 | 781 | set -e; $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
83709125 | 782 | |
783 | ||
0ece25b1 | 784 | normal_mod-normal_color.o: normal/color.c |
785 | $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< | |
786 | -include normal_mod-normal_color.d | |
787 | ||
788 | CLEANFILES += cmd-normal_mod-normal_color.lst fs-normal_mod-normal_color.lst | |
789 | COMMANDFILES += cmd-normal_mod-normal_color.lst | |
790 | FSFILES += fs-normal_mod-normal_color.lst | |
791 | ||
792 | cmd-normal_mod-normal_color.lst: normal/color.c gencmdlist.sh | |
793 | 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) | |
794 | ||
795 | fs-normal_mod-normal_color.lst: normal/color.c genfslist.sh | |
796 | 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) | |
797 | ||
798 | ||
83709125 | 799 | normal_mod_CFLAGS = $(COMMON_CFLAGS) |
800 | normal_mod_ASFLAGS = $(COMMON_ASFLAGS) | |
801 | normal_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
802 | ||
7f362539 | 803 | # For _chain.mod. |
804 | _chain_mod_SOURCES = loader/efi/chainloader.c | |
805 | CLEANFILES += _chain.mod mod-_chain.o mod-_chain.c pre-_chain.o _chain_mod-loader_efi_chainloader.o und-_chain.lst | |
806 | ifneq ($(_chain_mod_EXPORTS),no) | |
807 | CLEANFILES += def-_chain.lst | |
808 | DEFSYMFILES += def-_chain.lst | |
809 | endif | |
810 | MOSTLYCLEANFILES += _chain_mod-loader_efi_chainloader.d | |
811 | UNDSYMFILES += und-_chain.lst | |
812 | ||
813 | _chain.mod: pre-_chain.o mod-_chain.o | |
814 | -rm -f $@ | |
b977bf01 | 815 | $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
7f362539 | 816 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
817 | ||
e02ac02c | 818 | pre-_chain.o: $(_chain_mod_DEPENDENCIES) _chain_mod-loader_efi_chainloader.o |
7f362539 | 819 | -rm -f $@ |
e02ac02c | 820 | $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _chain_mod-loader_efi_chainloader.o |
7f362539 | 821 | |
822 | mod-_chain.o: mod-_chain.c | |
b977bf01 | 823 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -c -o $@ $< |
7f362539 | 824 | |
825 | mod-_chain.c: moddep.lst genmodsrc.sh | |
826 | sh $(srcdir)/genmodsrc.sh '_chain' $< > $@ || (rm -f $@; exit 1) | |
827 | ||
828 | ifneq ($(_chain_mod_EXPORTS),no) | |
829 | def-_chain.lst: pre-_chain.o | |
830 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _chain/' > $@ | |
831 | endif | |
832 | ||
833 | und-_chain.lst: pre-_chain.o | |
834 | echo '_chain' > $@ | |
835 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
836 | ||
837 | _chain_mod-loader_efi_chainloader.o: loader/efi/chainloader.c | |
46e5e5cb | 838 | $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -MD -c -o $@ $< |
7f362539 | 839 | -include _chain_mod-loader_efi_chainloader.d |
840 | ||
841 | CLEANFILES += cmd-_chain_mod-loader_efi_chainloader.lst fs-_chain_mod-loader_efi_chainloader.lst | |
842 | COMMANDFILES += cmd-_chain_mod-loader_efi_chainloader.lst | |
843 | FSFILES += fs-_chain_mod-loader_efi_chainloader.lst | |
844 | ||
845 | cmd-_chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c gencmdlist.sh | |
26c607b9 | 846 | set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1) |
7f362539 | 847 | |
848 | fs-_chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c genfslist.sh | |
26c607b9 | 849 | set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1) |
7f362539 | 850 | |
851 | ||
852 | _chain_mod_CFLAGS = $(COMMON_CFLAGS) | |
853 | _chain_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
854 | ||
855 | # For chain.mod. | |
856 | chain_mod_SOURCES = loader/efi/chainloader_normal.c | |
857 | CLEANFILES += chain.mod mod-chain.o mod-chain.c pre-chain.o chain_mod-loader_efi_chainloader_normal.o und-chain.lst | |
858 | ifneq ($(chain_mod_EXPORTS),no) | |
859 | CLEANFILES += def-chain.lst | |
860 | DEFSYMFILES += def-chain.lst | |
861 | endif | |
862 | MOSTLYCLEANFILES += chain_mod-loader_efi_chainloader_normal.d | |
863 | UNDSYMFILES += und-chain.lst | |
864 | ||
865 | chain.mod: pre-chain.o mod-chain.o | |
866 | -rm -f $@ | |
b977bf01 | 867 | $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
7f362539 | 868 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
869 | ||
e02ac02c | 870 | pre-chain.o: $(chain_mod_DEPENDENCIES) chain_mod-loader_efi_chainloader_normal.o |
7f362539 | 871 | -rm -f $@ |
e02ac02c | 872 | $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ chain_mod-loader_efi_chainloader_normal.o |
7f362539 | 873 | |
874 | mod-chain.o: mod-chain.c | |
b977bf01 | 875 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $< |
7f362539 | 876 | |
877 | mod-chain.c: moddep.lst genmodsrc.sh | |
878 | sh $(srcdir)/genmodsrc.sh 'chain' $< > $@ || (rm -f $@; exit 1) | |
879 | ||
880 | ifneq ($(chain_mod_EXPORTS),no) | |
881 | def-chain.lst: pre-chain.o | |
882 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 chain/' > $@ | |
883 | endif | |
884 | ||
885 | und-chain.lst: pre-chain.o | |
886 | echo 'chain' > $@ | |
887 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
888 | ||
889 | chain_mod-loader_efi_chainloader_normal.o: loader/efi/chainloader_normal.c | |
46e5e5cb | 890 | $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -MD -c -o $@ $< |
7f362539 | 891 | -include chain_mod-loader_efi_chainloader_normal.d |
892 | ||
893 | CLEANFILES += cmd-chain_mod-loader_efi_chainloader_normal.lst fs-chain_mod-loader_efi_chainloader_normal.lst | |
894 | COMMANDFILES += cmd-chain_mod-loader_efi_chainloader_normal.lst | |
895 | FSFILES += fs-chain_mod-loader_efi_chainloader_normal.lst | |
896 | ||
897 | cmd-chain_mod-loader_efi_chainloader_normal.lst: loader/efi/chainloader_normal.c gencmdlist.sh | |
26c607b9 | 898 | set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1) |
7f362539 | 899 | |
900 | fs-chain_mod-loader_efi_chainloader_normal.lst: loader/efi/chainloader_normal.c genfslist.sh | |
26c607b9 | 901 | set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1) |
7f362539 | 902 | |
903 | ||
904 | chain_mod_CFLAGS = $(COMMON_CFLAGS) | |
905 | chain_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
906 | ||
118f4fb3 | 907 | # For _linux.mod. |
908 | _linux_mod_SOURCES = loader/i386/efi/linux.c | |
909 | CLEANFILES += _linux.mod mod-_linux.o mod-_linux.c pre-_linux.o _linux_mod-loader_i386_efi_linux.o und-_linux.lst | |
910 | ifneq ($(_linux_mod_EXPORTS),no) | |
911 | CLEANFILES += def-_linux.lst | |
912 | DEFSYMFILES += def-_linux.lst | |
913 | endif | |
914 | MOSTLYCLEANFILES += _linux_mod-loader_i386_efi_linux.d | |
915 | UNDSYMFILES += und-_linux.lst | |
916 | ||
917 | _linux.mod: pre-_linux.o mod-_linux.o | |
918 | -rm -f $@ | |
b977bf01 | 919 | $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
118f4fb3 | 920 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
921 | ||
e02ac02c | 922 | pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_i386_efi_linux.o |
118f4fb3 | 923 | -rm -f $@ |
e02ac02c | 924 | $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _linux_mod-loader_i386_efi_linux.o |
118f4fb3 | 925 | |
926 | mod-_linux.o: mod-_linux.c | |
b977bf01 | 927 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $< |
118f4fb3 | 928 | |
929 | mod-_linux.c: moddep.lst genmodsrc.sh | |
930 | sh $(srcdir)/genmodsrc.sh '_linux' $< > $@ || (rm -f $@; exit 1) | |
931 | ||
932 | ifneq ($(_linux_mod_EXPORTS),no) | |
933 | def-_linux.lst: pre-_linux.o | |
934 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _linux/' > $@ | |
935 | endif | |
936 | ||
937 | und-_linux.lst: pre-_linux.o | |
938 | echo '_linux' > $@ | |
939 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
940 | ||
941 | _linux_mod-loader_i386_efi_linux.o: loader/i386/efi/linux.c | |
46e5e5cb | 942 | $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -MD -c -o $@ $< |
118f4fb3 | 943 | -include _linux_mod-loader_i386_efi_linux.d |
944 | ||
945 | CLEANFILES += cmd-_linux_mod-loader_i386_efi_linux.lst fs-_linux_mod-loader_i386_efi_linux.lst | |
946 | COMMANDFILES += cmd-_linux_mod-loader_i386_efi_linux.lst | |
947 | FSFILES += fs-_linux_mod-loader_i386_efi_linux.lst | |
948 | ||
949 | cmd-_linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c gencmdlist.sh | |
26c607b9 | 950 | set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1) |
118f4fb3 | 951 | |
952 | fs-_linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c genfslist.sh | |
26c607b9 | 953 | set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1) |
118f4fb3 | 954 | |
955 | ||
956 | _linux_mod_CFLAGS = $(COMMON_CFLAGS) | |
957 | _linux_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
958 | ||
959 | # For linux.mod. | |
960 | linux_mod_SOURCES = loader/i386/efi/linux_normal.c | |
961 | CLEANFILES += linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_efi_linux_normal.o und-linux.lst | |
962 | ifneq ($(linux_mod_EXPORTS),no) | |
963 | CLEANFILES += def-linux.lst | |
964 | DEFSYMFILES += def-linux.lst | |
965 | endif | |
966 | MOSTLYCLEANFILES += linux_mod-loader_i386_efi_linux_normal.d | |
967 | UNDSYMFILES += und-linux.lst | |
968 | ||
969 | linux.mod: pre-linux.o mod-linux.o | |
970 | -rm -f $@ | |
b977bf01 | 971 | $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ |
118f4fb3 | 972 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ |
973 | ||
e02ac02c | 974 | pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_efi_linux_normal.o |
118f4fb3 | 975 | -rm -f $@ |
e02ac02c | 976 | $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_i386_efi_linux_normal.o |
118f4fb3 | 977 | |
978 | mod-linux.o: mod-linux.c | |
b977bf01 | 979 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $< |
118f4fb3 | 980 | |
981 | mod-linux.c: moddep.lst genmodsrc.sh | |
982 | sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1) | |
983 | ||
984 | ifneq ($(linux_mod_EXPORTS),no) | |
985 | def-linux.lst: pre-linux.o | |
986 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@ | |
987 | endif | |
988 | ||
989 | und-linux.lst: pre-linux.o | |
990 | echo 'linux' > $@ | |
991 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
992 | ||
993 | linux_mod-loader_i386_efi_linux_normal.o: loader/i386/efi/linux_normal.c | |
46e5e5cb | 994 | $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $< |
118f4fb3 | 995 | -include linux_mod-loader_i386_efi_linux_normal.d |
996 | ||
997 | CLEANFILES += cmd-linux_mod-loader_i386_efi_linux_normal.lst fs-linux_mod-loader_i386_efi_linux_normal.lst | |
998 | COMMANDFILES += cmd-linux_mod-loader_i386_efi_linux_normal.lst | |
999 | FSFILES += fs-linux_mod-loader_i386_efi_linux_normal.lst | |
1000 | ||
1001 | cmd-linux_mod-loader_i386_efi_linux_normal.lst: loader/i386/efi/linux_normal.c gencmdlist.sh | |
26c607b9 | 1002 | set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1) |
118f4fb3 | 1003 | |
1004 | fs-linux_mod-loader_i386_efi_linux_normal.lst: loader/i386/efi/linux_normal.c genfslist.sh | |
26c607b9 | 1005 | set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1) |
118f4fb3 | 1006 | |
1007 | ||
1008 | linux_mod_CFLAGS = $(COMMON_CFLAGS) | |
1009 | linux_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
1010 | ||
fb36dc26 | 1011 | # For cpuid.mod. |
1012 | cpuid_mod_SOURCES = commands/i386/cpuid.c | |
1013 | CLEANFILES += cpuid.mod mod-cpuid.o mod-cpuid.c pre-cpuid.o cpuid_mod-commands_i386_cpuid.o und-cpuid.lst | |
1014 | ifneq ($(cpuid_mod_EXPORTS),no) | |
1015 | CLEANFILES += def-cpuid.lst | |
1016 | DEFSYMFILES += def-cpuid.lst | |
1017 | endif | |
1018 | MOSTLYCLEANFILES += cpuid_mod-commands_i386_cpuid.d | |
1019 | UNDSYMFILES += und-cpuid.lst | |
1020 | ||
1021 | cpuid.mod: pre-cpuid.o mod-cpuid.o | |
1022 | -rm -f $@ | |
1023 | $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^ | |
1024 | $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@ | |
1025 | ||
1026 | pre-cpuid.o: $(cpuid_mod_DEPENDENCIES) cpuid_mod-commands_i386_cpuid.o | |
1027 | -rm -f $@ | |
1028 | $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpuid_mod-commands_i386_cpuid.o | |
1029 | ||
1030 | mod-cpuid.o: mod-cpuid.c | |
1031 | $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -c -o $@ $< | |
1032 | ||
1033 | mod-cpuid.c: moddep.lst genmodsrc.sh | |
1034 | sh $(srcdir)/genmodsrc.sh 'cpuid' $< > $@ || (rm -f $@; exit 1) | |
1035 | ||
1036 | ifneq ($(cpuid_mod_EXPORTS),no) | |
1037 | def-cpuid.lst: pre-cpuid.o | |
1038 | $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpuid/' > $@ | |
1039 | endif | |
1040 | ||
1041 | und-cpuid.lst: pre-cpuid.o | |
1042 | echo 'cpuid' > $@ | |
1043 | $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ | |
1044 | ||
1045 | cpuid_mod-commands_i386_cpuid.o: commands/i386/cpuid.c | |
46e5e5cb | 1046 | $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -MD -c -o $@ $< |
fb36dc26 | 1047 | -include cpuid_mod-commands_i386_cpuid.d |
1048 | ||
1049 | CLEANFILES += cmd-cpuid_mod-commands_i386_cpuid.lst fs-cpuid_mod-commands_i386_cpuid.lst | |
1050 | COMMANDFILES += cmd-cpuid_mod-commands_i386_cpuid.lst | |
1051 | FSFILES += fs-cpuid_mod-commands_i386_cpuid.lst | |
1052 | ||
1053 | cmd-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c gencmdlist.sh | |
1054 | set -e; $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh cpuid > $@ || (rm -f $@; exit 1) | |
1055 | ||
1056 | fs-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c genfslist.sh | |
1057 | set -e; $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh cpuid > $@ || (rm -f $@; exit 1) | |
1058 | ||
1059 | ||
1060 | cpuid_mod_CFLAGS = $(COMMON_CFLAGS) | |
1061 | cpuid_mod_LDFLAGS = $(COMMON_LDFLAGS) | |
1062 | ||
83709125 | 1063 | include $(srcdir)/conf/common.mk |