GRUB-1.98 changes
[grub2/jjazz.git] / conf / i386-efi.mk
blob94e5e4372a390dc5ea3064756d3a412fb062edff
1 # -*- makefile -*-
2 # Generated by genmk.rb, please don't edit!
4 COMMON_ASFLAGS = -nostdinc -fno-builtin -m32
5 COMMON_CFLAGS = -fno-builtin -m32
6 COMMON_LDFLAGS = -melf_i386 -nostdlib
8 # Used by various components. These rules need to precede them.
9 script/lexer.c_DEPENDENCIES = grub_script.tab.h
11 # Utilities.
12 bin_UTILITIES = grub-mkimage
14 # For grub-mkimage.
15 grub_mkimage_SOURCES = gnulib/progname.c util/i386/efi/grub-mkimage.c \
16 util/misc.c util/resolve.c
18 clean-utility-grub-mkimage.1:
19 rm -f grub-mkimage$(EXEEXT) grub_mkimage-gnulib_progname.o grub_mkimage-util_i386_efi_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o
21 CLEAN_UTILITY_TARGETS += clean-utility-grub-mkimage.1
23 mostlyclean-utility-grub-mkimage.1:
24 rm -f grub_mkimage-gnulib_progname.d grub_mkimage-util_i386_efi_grub_mkimage.d grub_mkimage-util_misc.d grub_mkimage-util_resolve.d
26 MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-mkimage.1
28 grub_mkimage_OBJECTS += grub_mkimage-gnulib_progname.o grub_mkimage-util_i386_efi_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o
30 grub_mkimage-gnulib_progname.o: gnulib/progname.c $(gnulib/progname.c_DEPENDENCIES)
31 $(CC) -Ignulib -I$(srcdir)/gnulib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
32 -include grub_mkimage-gnulib_progname.d
34 grub_mkimage-util_i386_efi_grub_mkimage.o: util/i386/efi/grub-mkimage.c $(util/i386/efi/grub-mkimage.c_DEPENDENCIES)
35 $(CC) -Iutil/i386/efi -I$(srcdir)/util/i386/efi $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
36 -include grub_mkimage-util_i386_efi_grub_mkimage.d
38 grub_mkimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
39 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
40 -include grub_mkimage-util_misc.d
42 grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES)
43 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
44 -include grub_mkimage-util_resolve.d
46 util/i386/efi/grub-mkimage.c_DEPENDENCIES = Makefile
48 # For grub-setup.
49 #grub_setup_SOURCES = util/i386/pc/grub-setup.c util/hostdisk.c \
50 # util/misc.c util/getroot.c kern/device.c kern/disk.c \
51 # kern/err.c kern/misc.c fs/fat.c fs/ext2.c fs/xfs.c fs/affs.c \
52 # fs/sfs.c kern/parser.c kern/partition.c partmap/msdos.c \
53 # fs/ufs.c fs/ufs2.c fs/minix.c fs/hfs.c fs/jfs.c fs/hfsplus.c kern/file.c \
54 # kern/fs.c kern/env.c fs/fshelp.c
56 # Scripts.
57 sbin_SCRIPTS = grub-install
59 # For grub-install.
60 grub_install_SOURCES = util/i386/efi/grub-install.in
61 CLEANFILES += grub-install
63 grub-install: util/i386/efi/grub-install.in $(util/i386/efi/grub-install.in_DEPENDENCIES) config.status
64 ./config.status --file=-:util/i386/efi/grub-install.in | sed -e 's,@pkglib_DATA@,$(pkglib_DATA),g' > $@
65 chmod +x $@
68 # Modules.
69 pkglib_PROGRAMS = kernel.img
70 pkglib_MODULES = chain.mod appleldr.mod \
71 linux.mod halt.mod reboot.mod pci.mod lspci.mod \
72 datetime.mod date.mod datehook.mod loadbios.mod \
73 fixvideo.mod mmap.mod acpi.mod
75 # For kernel.img.
76 kernel_img_RELOCATABLE = yes
77 kernel_img_SOURCES = kern/i386/efi/startup.S kern/main.c kern/device.c \
78 kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
79 kern/misc.c kern/mm.c kern/term.c \
80 kern/rescue_parser.c kern/rescue_reader.c \
81 kern/$(target_cpu)/dl.c kern/i386/efi/init.c kern/parser.c kern/partition.c \
82 kern/env.c symlist.c kern/efi/efi.c kern/efi/init.c kern/efi/mm.c \
83 term/efi/console.c disk/efi/efidisk.c \
84 kern/time.c kern/list.c kern/handler.c kern/command.c kern/corecmd.c \
85 kern/i386/tsc.c kern/i386/pit.c \
86 kern/generic/rtc_get_time_ms.c \
87 kern/generic/millisleep.c
88 CLEANFILES += kernel.img kernel_img-kern_i386_efi_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_efi_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-symlist.o kernel_img-kern_efi_efi.o kernel_img-kern_efi_init.o kernel_img-kern_efi_mm.o kernel_img-term_efi_console.o kernel_img-disk_efi_efidisk.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o
89 MOSTLYCLEANFILES += kernel_img-kern_i386_efi_startup.d kernel_img-kern_main.d kernel_img-kern_device.d kernel_img-kern_disk.d kernel_img-kern_dl.d kernel_img-kern_file.d kernel_img-kern_fs.d kernel_img-kern_err.d kernel_img-kern_misc.d kernel_img-kern_mm.d kernel_img-kern_term.d kernel_img-kern_rescue_parser.d kernel_img-kern_rescue_reader.d kernel_img-kern___target_cpu__dl.d kernel_img-kern_i386_efi_init.d kernel_img-kern_parser.d kernel_img-kern_partition.d kernel_img-kern_env.d kernel_img-symlist.d kernel_img-kern_efi_efi.d kernel_img-kern_efi_init.d kernel_img-kern_efi_mm.d kernel_img-term_efi_console.d kernel_img-disk_efi_efidisk.d kernel_img-kern_time.d kernel_img-kern_list.d kernel_img-kern_handler.d kernel_img-kern_command.d kernel_img-kern_corecmd.d kernel_img-kern_i386_tsc.d kernel_img-kern_i386_pit.d kernel_img-kern_generic_rtc_get_time_ms.d kernel_img-kern_generic_millisleep.d
91 ifeq ($(kernel_img_RELOCATABLE),yes)
92 kernel.img: $(kernel_img_DEPENDENCIES) kernel_img-kern_i386_efi_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_efi_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-symlist.o kernel_img-kern_efi_efi.o kernel_img-kern_efi_init.o kernel_img-kern_efi_mm.o kernel_img-term_efi_console.o kernel_img-disk_efi_efidisk.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o
93 $(TARGET_CC) -Wl,-r,-d -o $@ kernel_img-kern_i386_efi_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_efi_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-symlist.o kernel_img-kern_efi_efi.o kernel_img-kern_efi_init.o kernel_img-kern_efi_mm.o kernel_img-term_efi_console.o kernel_img-disk_efi_efidisk.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS)
94 $(STRIP) --strip-unneeded -K start -R .note -R .comment $@
95 else
96 kernel.img: $(kernel_img_DEPENDENCIES) kernel_img-kern_i386_efi_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_efi_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-symlist.o kernel_img-kern_efi_efi.o kernel_img-kern_efi_init.o kernel_img-kern_efi_mm.o kernel_img-term_efi_console.o kernel_img-disk_efi_efidisk.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o
97 $(TARGET_CC) -o $@ kernel_img-kern_i386_efi_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_efi_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-symlist.o kernel_img-kern_efi_efi.o kernel_img-kern_efi_init.o kernel_img-kern_efi_mm.o kernel_img-term_efi_console.o kernel_img-disk_efi_efidisk.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS)
98 $(STRIP) -R .rel.dyn -R .reginfo -R .note -R .comment $@
99 endif
101 kernel_img-kern_i386_efi_startup.o: kern/i386/efi/startup.S $(kern/i386/efi/startup.S_DEPENDENCIES)
102 $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_ASFLAGS) -MD -c -o $@ $<
104 -include kernel_img-kern_i386_efi_startup.d
106 kernel_img-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES)
107 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
109 -include kernel_img-kern_main.d
111 kernel_img-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
112 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
114 -include kernel_img-kern_device.d
116 kernel_img-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
117 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
119 -include kernel_img-kern_disk.d
121 kernel_img-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES)
122 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
124 -include kernel_img-kern_dl.d
126 kernel_img-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
127 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
129 -include kernel_img-kern_file.d
131 kernel_img-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
132 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
134 -include kernel_img-kern_fs.d
136 kernel_img-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
137 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
139 -include kernel_img-kern_err.d
141 kernel_img-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
142 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
144 -include kernel_img-kern_misc.d
146 kernel_img-kern_mm.o: kern/mm.c $(kern/mm.c_DEPENDENCIES)
147 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
149 -include kernel_img-kern_mm.d
151 kernel_img-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES)
152 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
154 -include kernel_img-kern_term.d
156 kernel_img-kern_rescue_parser.o: kern/rescue_parser.c $(kern/rescue_parser.c_DEPENDENCIES)
157 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
159 -include kernel_img-kern_rescue_parser.d
161 kernel_img-kern_rescue_reader.o: kern/rescue_reader.c $(kern/rescue_reader.c_DEPENDENCIES)
162 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
164 -include kernel_img-kern_rescue_reader.d
166 kernel_img-kern___target_cpu__dl.o: kern/$(target_cpu)/dl.c $(kern/$(target_cpu)/dl.c_DEPENDENCIES)
167 $(TARGET_CC) -Ikern/$(target_cpu) -I$(srcdir)/kern/$(target_cpu) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
169 -include kernel_img-kern___target_cpu__dl.d
171 kernel_img-kern_i386_efi_init.o: kern/i386/efi/init.c $(kern/i386/efi/init.c_DEPENDENCIES)
172 $(TARGET_CC) -Ikern/i386/efi -I$(srcdir)/kern/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
174 -include kernel_img-kern_i386_efi_init.d
176 kernel_img-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
177 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
179 -include kernel_img-kern_parser.d
181 kernel_img-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
182 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
184 -include kernel_img-kern_partition.d
186 kernel_img-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
187 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
189 -include kernel_img-kern_env.d
191 kernel_img-symlist.o: symlist.c $(symlist.c_DEPENDENCIES)
192 $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
194 -include kernel_img-symlist.d
196 kernel_img-kern_efi_efi.o: kern/efi/efi.c $(kern/efi/efi.c_DEPENDENCIES)
197 $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
199 -include kernel_img-kern_efi_efi.d
201 kernel_img-kern_efi_init.o: kern/efi/init.c $(kern/efi/init.c_DEPENDENCIES)
202 $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
204 -include kernel_img-kern_efi_init.d
206 kernel_img-kern_efi_mm.o: kern/efi/mm.c $(kern/efi/mm.c_DEPENDENCIES)
207 $(TARGET_CC) -Ikern/efi -I$(srcdir)/kern/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
209 -include kernel_img-kern_efi_mm.d
211 kernel_img-term_efi_console.o: term/efi/console.c $(term/efi/console.c_DEPENDENCIES)
212 $(TARGET_CC) -Iterm/efi -I$(srcdir)/term/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
214 -include kernel_img-term_efi_console.d
216 kernel_img-disk_efi_efidisk.o: disk/efi/efidisk.c $(disk/efi/efidisk.c_DEPENDENCIES)
217 $(TARGET_CC) -Idisk/efi -I$(srcdir)/disk/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
219 -include kernel_img-disk_efi_efidisk.d
221 kernel_img-kern_time.o: kern/time.c $(kern/time.c_DEPENDENCIES)
222 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
224 -include kernel_img-kern_time.d
226 kernel_img-kern_list.o: kern/list.c $(kern/list.c_DEPENDENCIES)
227 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
229 -include kernel_img-kern_list.d
231 kernel_img-kern_handler.o: kern/handler.c $(kern/handler.c_DEPENDENCIES)
232 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
234 -include kernel_img-kern_handler.d
236 kernel_img-kern_command.o: kern/command.c $(kern/command.c_DEPENDENCIES)
237 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
239 -include kernel_img-kern_command.d
241 kernel_img-kern_corecmd.o: kern/corecmd.c $(kern/corecmd.c_DEPENDENCIES)
242 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
244 -include kernel_img-kern_corecmd.d
246 kernel_img-kern_i386_tsc.o: kern/i386/tsc.c $(kern/i386/tsc.c_DEPENDENCIES)
247 $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
249 -include kernel_img-kern_i386_tsc.d
251 kernel_img-kern_i386_pit.o: kern/i386/pit.c $(kern/i386/pit.c_DEPENDENCIES)
252 $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
254 -include kernel_img-kern_i386_pit.d
256 kernel_img-kern_generic_rtc_get_time_ms.o: kern/generic/rtc_get_time_ms.c $(kern/generic/rtc_get_time_ms.c_DEPENDENCIES)
257 $(TARGET_CC) -Ikern/generic -I$(srcdir)/kern/generic $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
259 -include kernel_img-kern_generic_rtc_get_time_ms.d
261 kernel_img-kern_generic_millisleep.o: kern/generic/millisleep.c $(kern/generic/millisleep.c_DEPENDENCIES)
262 $(TARGET_CC) -Ikern/generic -I$(srcdir)/kern/generic $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
264 -include kernel_img-kern_generic_millisleep.d
266 kernel_img_HEADERS = boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
267 env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
268 partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \
269 efi/efi.h efi/time.h efi/disk.h i386/pit.h list.h handler.h command.h \
270 i18n.h env_private.h
271 kernel_img_CFLAGS = $(COMMON_CFLAGS)
272 kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
273 kernel_img_LDFLAGS = $(COMMON_LDFLAGS)
275 MOSTLYCLEANFILES += symlist.c
276 MOSTLYCLEANFILES += symlist.c kernel_syms.lst
277 DEFSYMFILES += kernel_syms.lst
279 symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h gensymlist.sh
280 /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
282 kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h genkernsyms.sh
283 /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
285 # For boot.mod.
286 pkglib_MODULES += boot.mod
287 boot_mod_SOURCES = commands/boot.c
289 clean-module-boot.mod.1:
290 rm -f boot.mod mod-boot.o mod-boot.c pre-boot.o boot_mod-commands_boot.o und-boot.lst
292 CLEAN_MODULE_TARGETS += clean-module-boot.mod.1
294 clean-module-boot.mod-symbol.1:
295 rm -f def-boot.lst
297 CLEAN_MODULE_TARGETS += clean-module-boot.mod-symbol.1
298 DEFSYMFILES += def-boot.lst
299 mostlyclean-module-boot.mod.1:
300 rm -f boot_mod-commands_boot.d
302 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-boot.mod.1
303 UNDSYMFILES += und-boot.lst
305 ifneq ($(TARGET_APPLE_CC),1)
306 boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF)
307 -rm -f $@
308 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-boot.o mod-boot.o
309 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
310 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
311 else
312 boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF)
313 -rm -f $@
314 -rm -f $@.bin
315 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-boot.o mod-boot.o
316 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
317 -rm -f $@.bin
318 endif
320 pre-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o
321 -rm -f $@
322 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ boot_mod-commands_boot.o
324 mod-boot.o: mod-boot.c
325 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $<
327 mod-boot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
328 sh $(srcdir)/genmodsrc.sh 'boot' $< > $@ || (rm -f $@; exit 1)
330 ifneq ($(TARGET_APPLE_CC),1)
331 def-boot.lst: pre-boot.o
332 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 boot/' > $@
333 else
334 def-boot.lst: pre-boot.o
335 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 boot/' > $@
336 endif
338 und-boot.lst: pre-boot.o
339 echo 'boot' > $@
340 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
342 boot_mod-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES)
343 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -MD -c -o $@ $<
344 -include boot_mod-commands_boot.d
346 clean-module-boot_mod-commands_boot-extra.1:
347 rm -f cmd-boot_mod-commands_boot.lst fs-boot_mod-commands_boot.lst partmap-boot_mod-commands_boot.lst handler-boot_mod-commands_boot.lst parttool-boot_mod-commands_boot.lst video-boot_mod-commands_boot.lst terminal-boot_mod-commands_boot.lst
349 CLEAN_MODULE_TARGETS += clean-module-boot_mod-commands_boot-extra.1
351 COMMANDFILES += cmd-boot_mod-commands_boot.lst
352 FSFILES += fs-boot_mod-commands_boot.lst
353 PARTTOOLFILES += parttool-boot_mod-commands_boot.lst
354 PARTMAPFILES += partmap-boot_mod-commands_boot.lst
355 HANDLERFILES += handler-boot_mod-commands_boot.lst
356 TERMINALFILES += terminal-boot_mod-commands_boot.lst
357 VIDEOFILES += video-boot_mod-commands_boot.lst
359 cmd-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) gencmdlist.sh
360 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
362 fs-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genfslist.sh
363 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
365 parttool-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genparttoollist.sh
366 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh boot > $@ || (rm -f $@; exit 1)
368 partmap-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genpartmaplist.sh
369 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh boot > $@ || (rm -f $@; exit 1)
371 handler-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genhandlerlist.sh
372 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh boot > $@ || (rm -f $@; exit 1)
374 terminal-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genterminallist.sh
375 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh boot > $@ || (rm -f $@; exit 1)
377 video-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genvideolist.sh
378 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh boot > $@ || (rm -f $@; exit 1)
380 boot_mod_CFLAGS = $(COMMON_CFLAGS)
381 boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
383 # For acpi.mod.
384 acpi_mod_SOURCES = commands/acpi.c commands/efi/acpi.c
386 clean-module-acpi.mod.1:
387 rm -f acpi.mod mod-acpi.o mod-acpi.c pre-acpi.o acpi_mod-commands_acpi.o acpi_mod-commands_efi_acpi.o und-acpi.lst
389 CLEAN_MODULE_TARGETS += clean-module-acpi.mod.1
391 clean-module-acpi.mod-symbol.1:
392 rm -f def-acpi.lst
394 CLEAN_MODULE_TARGETS += clean-module-acpi.mod-symbol.1
395 DEFSYMFILES += def-acpi.lst
396 mostlyclean-module-acpi.mod.1:
397 rm -f acpi_mod-commands_acpi.d acpi_mod-commands_efi_acpi.d
399 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-acpi.mod.1
400 UNDSYMFILES += und-acpi.lst
402 ifneq ($(TARGET_APPLE_CC),1)
403 acpi.mod: pre-acpi.o mod-acpi.o $(TARGET_OBJ2ELF)
404 -rm -f $@
405 $(TARGET_CC) $(acpi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-acpi.o mod-acpi.o
406 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
407 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
408 else
409 acpi.mod: pre-acpi.o mod-acpi.o $(TARGET_OBJ2ELF)
410 -rm -f $@
411 -rm -f $@.bin
412 $(TARGET_CC) $(acpi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-acpi.o mod-acpi.o
413 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
414 -rm -f $@.bin
415 endif
417 pre-acpi.o: $(acpi_mod_DEPENDENCIES) acpi_mod-commands_acpi.o acpi_mod-commands_efi_acpi.o
418 -rm -f $@
419 $(TARGET_CC) $(acpi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ acpi_mod-commands_acpi.o acpi_mod-commands_efi_acpi.o
421 mod-acpi.o: mod-acpi.c
422 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -c -o $@ $<
424 mod-acpi.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
425 sh $(srcdir)/genmodsrc.sh 'acpi' $< > $@ || (rm -f $@; exit 1)
427 ifneq ($(TARGET_APPLE_CC),1)
428 def-acpi.lst: pre-acpi.o
429 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 acpi/' > $@
430 else
431 def-acpi.lst: pre-acpi.o
432 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 acpi/' > $@
433 endif
435 und-acpi.lst: pre-acpi.o
436 echo 'acpi' > $@
437 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
439 acpi_mod-commands_acpi.o: commands/acpi.c $(commands/acpi.c_DEPENDENCIES)
440 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -MD -c -o $@ $<
441 -include acpi_mod-commands_acpi.d
443 clean-module-acpi_mod-commands_acpi-extra.1:
444 rm -f cmd-acpi_mod-commands_acpi.lst fs-acpi_mod-commands_acpi.lst partmap-acpi_mod-commands_acpi.lst handler-acpi_mod-commands_acpi.lst parttool-acpi_mod-commands_acpi.lst video-acpi_mod-commands_acpi.lst terminal-acpi_mod-commands_acpi.lst
446 CLEAN_MODULE_TARGETS += clean-module-acpi_mod-commands_acpi-extra.1
448 COMMANDFILES += cmd-acpi_mod-commands_acpi.lst
449 FSFILES += fs-acpi_mod-commands_acpi.lst
450 PARTTOOLFILES += parttool-acpi_mod-commands_acpi.lst
451 PARTMAPFILES += partmap-acpi_mod-commands_acpi.lst
452 HANDLERFILES += handler-acpi_mod-commands_acpi.lst
453 TERMINALFILES += terminal-acpi_mod-commands_acpi.lst
454 VIDEOFILES += video-acpi_mod-commands_acpi.lst
456 cmd-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) gencmdlist.sh
457 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh acpi > $@ || (rm -f $@; exit 1)
459 fs-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genfslist.sh
460 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh acpi > $@ || (rm -f $@; exit 1)
462 parttool-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genparttoollist.sh
463 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh acpi > $@ || (rm -f $@; exit 1)
465 partmap-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genpartmaplist.sh
466 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh acpi > $@ || (rm -f $@; exit 1)
468 handler-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genhandlerlist.sh
469 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh acpi > $@ || (rm -f $@; exit 1)
471 terminal-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genterminallist.sh
472 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh acpi > $@ || (rm -f $@; exit 1)
474 video-acpi_mod-commands_acpi.lst: commands/acpi.c $(commands/acpi.c_DEPENDENCIES) genvideolist.sh
475 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh acpi > $@ || (rm -f $@; exit 1)
477 acpi_mod-commands_efi_acpi.o: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES)
478 $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -MD -c -o $@ $<
479 -include acpi_mod-commands_efi_acpi.d
481 clean-module-acpi_mod-commands_efi_acpi-extra.1:
482 rm -f cmd-acpi_mod-commands_efi_acpi.lst fs-acpi_mod-commands_efi_acpi.lst partmap-acpi_mod-commands_efi_acpi.lst handler-acpi_mod-commands_efi_acpi.lst parttool-acpi_mod-commands_efi_acpi.lst video-acpi_mod-commands_efi_acpi.lst terminal-acpi_mod-commands_efi_acpi.lst
484 CLEAN_MODULE_TARGETS += clean-module-acpi_mod-commands_efi_acpi-extra.1
486 COMMANDFILES += cmd-acpi_mod-commands_efi_acpi.lst
487 FSFILES += fs-acpi_mod-commands_efi_acpi.lst
488 PARTTOOLFILES += parttool-acpi_mod-commands_efi_acpi.lst
489 PARTMAPFILES += partmap-acpi_mod-commands_efi_acpi.lst
490 HANDLERFILES += handler-acpi_mod-commands_efi_acpi.lst
491 TERMINALFILES += terminal-acpi_mod-commands_efi_acpi.lst
492 VIDEOFILES += video-acpi_mod-commands_efi_acpi.lst
494 cmd-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) gencmdlist.sh
495 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh acpi > $@ || (rm -f $@; exit 1)
497 fs-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genfslist.sh
498 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh acpi > $@ || (rm -f $@; exit 1)
500 parttool-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genparttoollist.sh
501 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh acpi > $@ || (rm -f $@; exit 1)
503 partmap-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genpartmaplist.sh
504 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh acpi > $@ || (rm -f $@; exit 1)
506 handler-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genhandlerlist.sh
507 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh acpi > $@ || (rm -f $@; exit 1)
509 terminal-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genterminallist.sh
510 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh acpi > $@ || (rm -f $@; exit 1)
512 video-acpi_mod-commands_efi_acpi.lst: commands/efi/acpi.c $(commands/efi/acpi.c_DEPENDENCIES) genvideolist.sh
513 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acpi_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh acpi > $@ || (rm -f $@; exit 1)
515 acpi_mod_CFLAGS = $(COMMON_CFLAGS)
516 acpi_mod_LDFLAGS = $(COMMON_LDFLAGS)
518 # For mmap.mod.
519 mmap_mod_SOURCES = mmap/mmap.c mmap/i386/uppermem.c mmap/i386/mmap.c \
520 mmap/efi/mmap.c
522 clean-module-mmap.mod.1:
523 rm -f mmap.mod mod-mmap.o mod-mmap.c pre-mmap.o mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o mmap_mod-mmap_efi_mmap.o und-mmap.lst
525 CLEAN_MODULE_TARGETS += clean-module-mmap.mod.1
527 clean-module-mmap.mod-symbol.1:
528 rm -f def-mmap.lst
530 CLEAN_MODULE_TARGETS += clean-module-mmap.mod-symbol.1
531 DEFSYMFILES += def-mmap.lst
532 mostlyclean-module-mmap.mod.1:
533 rm -f mmap_mod-mmap_mmap.d mmap_mod-mmap_i386_uppermem.d mmap_mod-mmap_i386_mmap.d mmap_mod-mmap_efi_mmap.d
535 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-mmap.mod.1
536 UNDSYMFILES += und-mmap.lst
538 ifneq ($(TARGET_APPLE_CC),1)
539 mmap.mod: pre-mmap.o mod-mmap.o $(TARGET_OBJ2ELF)
540 -rm -f $@
541 $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-mmap.o mod-mmap.o
542 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
543 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
544 else
545 mmap.mod: pre-mmap.o mod-mmap.o $(TARGET_OBJ2ELF)
546 -rm -f $@
547 -rm -f $@.bin
548 $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-mmap.o mod-mmap.o
549 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
550 -rm -f $@.bin
551 endif
553 pre-mmap.o: $(mmap_mod_DEPENDENCIES) mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o mmap_mod-mmap_efi_mmap.o
554 -rm -f $@
555 $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o mmap_mod-mmap_efi_mmap.o
557 mod-mmap.o: mod-mmap.c
558 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -c -o $@ $<
560 mod-mmap.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
561 sh $(srcdir)/genmodsrc.sh 'mmap' $< > $@ || (rm -f $@; exit 1)
563 ifneq ($(TARGET_APPLE_CC),1)
564 def-mmap.lst: pre-mmap.o
565 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 mmap/' > $@
566 else
567 def-mmap.lst: pre-mmap.o
568 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 mmap/' > $@
569 endif
571 und-mmap.lst: pre-mmap.o
572 echo 'mmap' > $@
573 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
575 mmap_mod-mmap_mmap.o: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES)
576 $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $<
577 -include mmap_mod-mmap_mmap.d
579 clean-module-mmap_mod-mmap_mmap-extra.1:
580 rm -f cmd-mmap_mod-mmap_mmap.lst fs-mmap_mod-mmap_mmap.lst partmap-mmap_mod-mmap_mmap.lst handler-mmap_mod-mmap_mmap.lst parttool-mmap_mod-mmap_mmap.lst video-mmap_mod-mmap_mmap.lst terminal-mmap_mod-mmap_mmap.lst
582 CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_mmap-extra.1
584 COMMANDFILES += cmd-mmap_mod-mmap_mmap.lst
585 FSFILES += fs-mmap_mod-mmap_mmap.lst
586 PARTTOOLFILES += parttool-mmap_mod-mmap_mmap.lst
587 PARTMAPFILES += partmap-mmap_mod-mmap_mmap.lst
588 HANDLERFILES += handler-mmap_mod-mmap_mmap.lst
589 TERMINALFILES += terminal-mmap_mod-mmap_mmap.lst
590 VIDEOFILES += video-mmap_mod-mmap_mmap.lst
592 cmd-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) gencmdlist.sh
593 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1)
595 fs-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genfslist.sh
596 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1)
598 parttool-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genparttoollist.sh
599 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1)
601 partmap-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genpartmaplist.sh
602 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1)
604 handler-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genhandlerlist.sh
605 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1)
607 terminal-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genterminallist.sh
608 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh mmap > $@ || (rm -f $@; exit 1)
610 video-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genvideolist.sh
611 set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh mmap > $@ || (rm -f $@; exit 1)
613 mmap_mod-mmap_i386_uppermem.o: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES)
614 $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $<
615 -include mmap_mod-mmap_i386_uppermem.d
617 clean-module-mmap_mod-mmap_i386_uppermem-extra.1:
618 rm -f cmd-mmap_mod-mmap_i386_uppermem.lst fs-mmap_mod-mmap_i386_uppermem.lst partmap-mmap_mod-mmap_i386_uppermem.lst handler-mmap_mod-mmap_i386_uppermem.lst parttool-mmap_mod-mmap_i386_uppermem.lst video-mmap_mod-mmap_i386_uppermem.lst terminal-mmap_mod-mmap_i386_uppermem.lst
620 CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_i386_uppermem-extra.1
622 COMMANDFILES += cmd-mmap_mod-mmap_i386_uppermem.lst
623 FSFILES += fs-mmap_mod-mmap_i386_uppermem.lst
624 PARTTOOLFILES += parttool-mmap_mod-mmap_i386_uppermem.lst
625 PARTMAPFILES += partmap-mmap_mod-mmap_i386_uppermem.lst
626 HANDLERFILES += handler-mmap_mod-mmap_i386_uppermem.lst
627 TERMINALFILES += terminal-mmap_mod-mmap_i386_uppermem.lst
628 VIDEOFILES += video-mmap_mod-mmap_i386_uppermem.lst
630 cmd-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) gencmdlist.sh
631 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1)
633 fs-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genfslist.sh
634 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1)
636 parttool-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genparttoollist.sh
637 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1)
639 partmap-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genpartmaplist.sh
640 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1)
642 handler-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genhandlerlist.sh
643 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1)
645 terminal-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genterminallist.sh
646 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh mmap > $@ || (rm -f $@; exit 1)
648 video-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genvideolist.sh
649 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh mmap > $@ || (rm -f $@; exit 1)
651 mmap_mod-mmap_i386_mmap.o: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES)
652 $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $<
653 -include mmap_mod-mmap_i386_mmap.d
655 clean-module-mmap_mod-mmap_i386_mmap-extra.1:
656 rm -f cmd-mmap_mod-mmap_i386_mmap.lst fs-mmap_mod-mmap_i386_mmap.lst partmap-mmap_mod-mmap_i386_mmap.lst handler-mmap_mod-mmap_i386_mmap.lst parttool-mmap_mod-mmap_i386_mmap.lst video-mmap_mod-mmap_i386_mmap.lst terminal-mmap_mod-mmap_i386_mmap.lst
658 CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_i386_mmap-extra.1
660 COMMANDFILES += cmd-mmap_mod-mmap_i386_mmap.lst
661 FSFILES += fs-mmap_mod-mmap_i386_mmap.lst
662 PARTTOOLFILES += parttool-mmap_mod-mmap_i386_mmap.lst
663 PARTMAPFILES += partmap-mmap_mod-mmap_i386_mmap.lst
664 HANDLERFILES += handler-mmap_mod-mmap_i386_mmap.lst
665 TERMINALFILES += terminal-mmap_mod-mmap_i386_mmap.lst
666 VIDEOFILES += video-mmap_mod-mmap_i386_mmap.lst
668 cmd-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) gencmdlist.sh
669 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1)
671 fs-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genfslist.sh
672 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1)
674 parttool-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genparttoollist.sh
675 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1)
677 partmap-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genpartmaplist.sh
678 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1)
680 handler-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genhandlerlist.sh
681 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1)
683 terminal-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genterminallist.sh
684 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh mmap > $@ || (rm -f $@; exit 1)
686 video-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genvideolist.sh
687 set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh mmap > $@ || (rm -f $@; exit 1)
689 mmap_mod-mmap_efi_mmap.o: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES)
690 $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $<
691 -include mmap_mod-mmap_efi_mmap.d
693 clean-module-mmap_mod-mmap_efi_mmap-extra.1:
694 rm -f cmd-mmap_mod-mmap_efi_mmap.lst fs-mmap_mod-mmap_efi_mmap.lst partmap-mmap_mod-mmap_efi_mmap.lst handler-mmap_mod-mmap_efi_mmap.lst parttool-mmap_mod-mmap_efi_mmap.lst video-mmap_mod-mmap_efi_mmap.lst terminal-mmap_mod-mmap_efi_mmap.lst
696 CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_efi_mmap-extra.1
698 COMMANDFILES += cmd-mmap_mod-mmap_efi_mmap.lst
699 FSFILES += fs-mmap_mod-mmap_efi_mmap.lst
700 PARTTOOLFILES += parttool-mmap_mod-mmap_efi_mmap.lst
701 PARTMAPFILES += partmap-mmap_mod-mmap_efi_mmap.lst
702 HANDLERFILES += handler-mmap_mod-mmap_efi_mmap.lst
703 TERMINALFILES += terminal-mmap_mod-mmap_efi_mmap.lst
704 VIDEOFILES += video-mmap_mod-mmap_efi_mmap.lst
706 cmd-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) gencmdlist.sh
707 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1)
709 fs-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genfslist.sh
710 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1)
712 parttool-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genparttoollist.sh
713 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1)
715 partmap-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genpartmaplist.sh
716 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1)
718 handler-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genhandlerlist.sh
719 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1)
721 terminal-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genterminallist.sh
722 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh mmap > $@ || (rm -f $@; exit 1)
724 video-mmap_mod-mmap_efi_mmap.lst: mmap/efi/mmap.c $(mmap/efi/mmap.c_DEPENDENCIES) genvideolist.sh
725 set -e; $(TARGET_CC) -Immap/efi -I$(srcdir)/mmap/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh mmap > $@ || (rm -f $@; exit 1)
727 mmap_mod_CFLAGS = $(COMMON_CFLAGS)
728 mmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
730 # For chain.mod.
731 chain_mod_SOURCES = loader/efi/chainloader.c
733 clean-module-chain.mod.1:
734 rm -f chain.mod mod-chain.o mod-chain.c pre-chain.o chain_mod-loader_efi_chainloader.o und-chain.lst
736 CLEAN_MODULE_TARGETS += clean-module-chain.mod.1
738 clean-module-chain.mod-symbol.1:
739 rm -f def-chain.lst
741 CLEAN_MODULE_TARGETS += clean-module-chain.mod-symbol.1
742 DEFSYMFILES += def-chain.lst
743 mostlyclean-module-chain.mod.1:
744 rm -f chain_mod-loader_efi_chainloader.d
746 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-chain.mod.1
747 UNDSYMFILES += und-chain.lst
749 ifneq ($(TARGET_APPLE_CC),1)
750 chain.mod: pre-chain.o mod-chain.o $(TARGET_OBJ2ELF)
751 -rm -f $@
752 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-chain.o mod-chain.o
753 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
754 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
755 else
756 chain.mod: pre-chain.o mod-chain.o $(TARGET_OBJ2ELF)
757 -rm -f $@
758 -rm -f $@.bin
759 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-chain.o mod-chain.o
760 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
761 -rm -f $@.bin
762 endif
764 pre-chain.o: $(chain_mod_DEPENDENCIES) chain_mod-loader_efi_chainloader.o
765 -rm -f $@
766 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ chain_mod-loader_efi_chainloader.o
768 mod-chain.o: mod-chain.c
769 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $<
771 mod-chain.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
772 sh $(srcdir)/genmodsrc.sh 'chain' $< > $@ || (rm -f $@; exit 1)
774 ifneq ($(TARGET_APPLE_CC),1)
775 def-chain.lst: pre-chain.o
776 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 chain/' > $@
777 else
778 def-chain.lst: pre-chain.o
779 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 chain/' > $@
780 endif
782 und-chain.lst: pre-chain.o
783 echo 'chain' > $@
784 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
786 chain_mod-loader_efi_chainloader.o: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES)
787 $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -MD -c -o $@ $<
788 -include chain_mod-loader_efi_chainloader.d
790 clean-module-chain_mod-loader_efi_chainloader-extra.1:
791 rm -f cmd-chain_mod-loader_efi_chainloader.lst fs-chain_mod-loader_efi_chainloader.lst partmap-chain_mod-loader_efi_chainloader.lst handler-chain_mod-loader_efi_chainloader.lst parttool-chain_mod-loader_efi_chainloader.lst video-chain_mod-loader_efi_chainloader.lst terminal-chain_mod-loader_efi_chainloader.lst
793 CLEAN_MODULE_TARGETS += clean-module-chain_mod-loader_efi_chainloader-extra.1
795 COMMANDFILES += cmd-chain_mod-loader_efi_chainloader.lst
796 FSFILES += fs-chain_mod-loader_efi_chainloader.lst
797 PARTTOOLFILES += parttool-chain_mod-loader_efi_chainloader.lst
798 PARTMAPFILES += partmap-chain_mod-loader_efi_chainloader.lst
799 HANDLERFILES += handler-chain_mod-loader_efi_chainloader.lst
800 TERMINALFILES += terminal-chain_mod-loader_efi_chainloader.lst
801 VIDEOFILES += video-chain_mod-loader_efi_chainloader.lst
803 cmd-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) gencmdlist.sh
804 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)
806 fs-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genfslist.sh
807 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)
809 parttool-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genparttoollist.sh
810 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh chain > $@ || (rm -f $@; exit 1)
812 partmap-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genpartmaplist.sh
813 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh chain > $@ || (rm -f $@; exit 1)
815 handler-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genhandlerlist.sh
816 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh chain > $@ || (rm -f $@; exit 1)
818 terminal-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genterminallist.sh
819 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh chain > $@ || (rm -f $@; exit 1)
821 video-chain_mod-loader_efi_chainloader.lst: loader/efi/chainloader.c $(loader/efi/chainloader.c_DEPENDENCIES) genvideolist.sh
822 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh chain > $@ || (rm -f $@; exit 1)
824 chain_mod_CFLAGS = $(COMMON_CFLAGS)
825 chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
827 # For appleldr.mod.
828 appleldr_mod_SOURCES = loader/efi/appleloader.c
830 clean-module-appleldr.mod.1:
831 rm -f appleldr.mod mod-appleldr.o mod-appleldr.c pre-appleldr.o appleldr_mod-loader_efi_appleloader.o und-appleldr.lst
833 CLEAN_MODULE_TARGETS += clean-module-appleldr.mod.1
835 clean-module-appleldr.mod-symbol.1:
836 rm -f def-appleldr.lst
838 CLEAN_MODULE_TARGETS += clean-module-appleldr.mod-symbol.1
839 DEFSYMFILES += def-appleldr.lst
840 mostlyclean-module-appleldr.mod.1:
841 rm -f appleldr_mod-loader_efi_appleloader.d
843 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-appleldr.mod.1
844 UNDSYMFILES += und-appleldr.lst
846 ifneq ($(TARGET_APPLE_CC),1)
847 appleldr.mod: pre-appleldr.o mod-appleldr.o $(TARGET_OBJ2ELF)
848 -rm -f $@
849 $(TARGET_CC) $(appleldr_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-appleldr.o mod-appleldr.o
850 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
851 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
852 else
853 appleldr.mod: pre-appleldr.o mod-appleldr.o $(TARGET_OBJ2ELF)
854 -rm -f $@
855 -rm -f $@.bin
856 $(TARGET_CC) $(appleldr_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-appleldr.o mod-appleldr.o
857 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
858 -rm -f $@.bin
859 endif
861 pre-appleldr.o: $(appleldr_mod_DEPENDENCIES) appleldr_mod-loader_efi_appleloader.o
862 -rm -f $@
863 $(TARGET_CC) $(appleldr_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ appleldr_mod-loader_efi_appleloader.o
865 mod-appleldr.o: mod-appleldr.c
866 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -c -o $@ $<
868 mod-appleldr.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
869 sh $(srcdir)/genmodsrc.sh 'appleldr' $< > $@ || (rm -f $@; exit 1)
871 ifneq ($(TARGET_APPLE_CC),1)
872 def-appleldr.lst: pre-appleldr.o
873 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 appleldr/' > $@
874 else
875 def-appleldr.lst: pre-appleldr.o
876 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 appleldr/' > $@
877 endif
879 und-appleldr.lst: pre-appleldr.o
880 echo 'appleldr' > $@
881 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
883 appleldr_mod-loader_efi_appleloader.o: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES)
884 $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -MD -c -o $@ $<
885 -include appleldr_mod-loader_efi_appleloader.d
887 clean-module-appleldr_mod-loader_efi_appleloader-extra.1:
888 rm -f cmd-appleldr_mod-loader_efi_appleloader.lst fs-appleldr_mod-loader_efi_appleloader.lst partmap-appleldr_mod-loader_efi_appleloader.lst handler-appleldr_mod-loader_efi_appleloader.lst parttool-appleldr_mod-loader_efi_appleloader.lst video-appleldr_mod-loader_efi_appleloader.lst terminal-appleldr_mod-loader_efi_appleloader.lst
890 CLEAN_MODULE_TARGETS += clean-module-appleldr_mod-loader_efi_appleloader-extra.1
892 COMMANDFILES += cmd-appleldr_mod-loader_efi_appleloader.lst
893 FSFILES += fs-appleldr_mod-loader_efi_appleloader.lst
894 PARTTOOLFILES += parttool-appleldr_mod-loader_efi_appleloader.lst
895 PARTMAPFILES += partmap-appleldr_mod-loader_efi_appleloader.lst
896 HANDLERFILES += handler-appleldr_mod-loader_efi_appleloader.lst
897 TERMINALFILES += terminal-appleldr_mod-loader_efi_appleloader.lst
898 VIDEOFILES += video-appleldr_mod-loader_efi_appleloader.lst
900 cmd-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) gencmdlist.sh
901 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh appleldr > $@ || (rm -f $@; exit 1)
903 fs-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genfslist.sh
904 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh appleldr > $@ || (rm -f $@; exit 1)
906 parttool-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genparttoollist.sh
907 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh appleldr > $@ || (rm -f $@; exit 1)
909 partmap-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genpartmaplist.sh
910 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh appleldr > $@ || (rm -f $@; exit 1)
912 handler-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genhandlerlist.sh
913 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh appleldr > $@ || (rm -f $@; exit 1)
915 terminal-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genterminallist.sh
916 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh appleldr > $@ || (rm -f $@; exit 1)
918 video-appleldr_mod-loader_efi_appleloader.lst: loader/efi/appleloader.c $(loader/efi/appleloader.c_DEPENDENCIES) genvideolist.sh
919 set -e; $(TARGET_CC) -Iloader/efi -I$(srcdir)/loader/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(appleldr_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh appleldr > $@ || (rm -f $@; exit 1)
921 appleldr_mod_CFLAGS = $(COMMON_CFLAGS)
922 appleldr_mod_LDFLAGS = $(COMMON_LDFLAGS)
924 # For linux.mod.
925 linux_mod_SOURCES = loader/i386/efi/linux.c
927 clean-module-linux.mod.1:
928 rm -f linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_efi_linux.o und-linux.lst
930 CLEAN_MODULE_TARGETS += clean-module-linux.mod.1
932 clean-module-linux.mod-symbol.1:
933 rm -f def-linux.lst
935 CLEAN_MODULE_TARGETS += clean-module-linux.mod-symbol.1
936 DEFSYMFILES += def-linux.lst
937 mostlyclean-module-linux.mod.1:
938 rm -f linux_mod-loader_i386_efi_linux.d
940 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-linux.mod.1
941 UNDSYMFILES += und-linux.lst
943 ifneq ($(TARGET_APPLE_CC),1)
944 linux.mod: pre-linux.o mod-linux.o $(TARGET_OBJ2ELF)
945 -rm -f $@
946 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-linux.o mod-linux.o
947 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
948 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
949 else
950 linux.mod: pre-linux.o mod-linux.o $(TARGET_OBJ2ELF)
951 -rm -f $@
952 -rm -f $@.bin
953 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-linux.o mod-linux.o
954 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
955 -rm -f $@.bin
956 endif
958 pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_efi_linux.o
959 -rm -f $@
960 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_i386_efi_linux.o
962 mod-linux.o: mod-linux.c
963 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
965 mod-linux.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
966 sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1)
968 ifneq ($(TARGET_APPLE_CC),1)
969 def-linux.lst: pre-linux.o
970 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@
971 else
972 def-linux.lst: pre-linux.o
973 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 linux/' > $@
974 endif
976 und-linux.lst: pre-linux.o
977 echo 'linux' > $@
978 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
980 linux_mod-loader_i386_efi_linux.o: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES)
981 $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $<
982 -include linux_mod-loader_i386_efi_linux.d
984 clean-module-linux_mod-loader_i386_efi_linux-extra.1:
985 rm -f cmd-linux_mod-loader_i386_efi_linux.lst fs-linux_mod-loader_i386_efi_linux.lst partmap-linux_mod-loader_i386_efi_linux.lst handler-linux_mod-loader_i386_efi_linux.lst parttool-linux_mod-loader_i386_efi_linux.lst video-linux_mod-loader_i386_efi_linux.lst terminal-linux_mod-loader_i386_efi_linux.lst
987 CLEAN_MODULE_TARGETS += clean-module-linux_mod-loader_i386_efi_linux-extra.1
989 COMMANDFILES += cmd-linux_mod-loader_i386_efi_linux.lst
990 FSFILES += fs-linux_mod-loader_i386_efi_linux.lst
991 PARTTOOLFILES += parttool-linux_mod-loader_i386_efi_linux.lst
992 PARTMAPFILES += partmap-linux_mod-loader_i386_efi_linux.lst
993 HANDLERFILES += handler-linux_mod-loader_i386_efi_linux.lst
994 TERMINALFILES += terminal-linux_mod-loader_i386_efi_linux.lst
995 VIDEOFILES += video-linux_mod-loader_i386_efi_linux.lst
997 cmd-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) gencmdlist.sh
998 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)
1000 fs-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genfslist.sh
1001 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)
1003 parttool-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genparttoollist.sh
1004 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh linux > $@ || (rm -f $@; exit 1)
1006 partmap-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genpartmaplist.sh
1007 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh linux > $@ || (rm -f $@; exit 1)
1009 handler-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genhandlerlist.sh
1010 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh linux > $@ || (rm -f $@; exit 1)
1012 terminal-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genterminallist.sh
1013 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh linux > $@ || (rm -f $@; exit 1)
1015 video-linux_mod-loader_i386_efi_linux.lst: loader/i386/efi/linux.c $(loader/i386/efi/linux.c_DEPENDENCIES) genvideolist.sh
1016 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh linux > $@ || (rm -f $@; exit 1)
1018 linux_mod_CFLAGS = $(COMMON_CFLAGS)
1019 linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
1021 # For halt.mod.
1022 halt_mod_SOURCES = commands/halt.c
1024 clean-module-halt.mod.1:
1025 rm -f halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_halt.o und-halt.lst
1027 CLEAN_MODULE_TARGETS += clean-module-halt.mod.1
1029 clean-module-halt.mod-symbol.1:
1030 rm -f def-halt.lst
1032 CLEAN_MODULE_TARGETS += clean-module-halt.mod-symbol.1
1033 DEFSYMFILES += def-halt.lst
1034 mostlyclean-module-halt.mod.1:
1035 rm -f halt_mod-commands_halt.d
1037 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-halt.mod.1
1038 UNDSYMFILES += und-halt.lst
1040 ifneq ($(TARGET_APPLE_CC),1)
1041 halt.mod: pre-halt.o mod-halt.o $(TARGET_OBJ2ELF)
1042 -rm -f $@
1043 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-halt.o mod-halt.o
1044 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1045 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1046 else
1047 halt.mod: pre-halt.o mod-halt.o $(TARGET_OBJ2ELF)
1048 -rm -f $@
1049 -rm -f $@.bin
1050 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-halt.o mod-halt.o
1051 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1052 -rm -f $@.bin
1053 endif
1055 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_halt.o
1056 -rm -f $@
1057 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ halt_mod-commands_halt.o
1059 mod-halt.o: mod-halt.c
1060 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
1062 mod-halt.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1063 sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1)
1065 ifneq ($(TARGET_APPLE_CC),1)
1066 def-halt.lst: pre-halt.o
1067 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@
1068 else
1069 def-halt.lst: pre-halt.o
1070 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 halt/' > $@
1071 endif
1073 und-halt.lst: pre-halt.o
1074 echo 'halt' > $@
1075 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1077 halt_mod-commands_halt.o: commands/halt.c $(commands/halt.c_DEPENDENCIES)
1078 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -MD -c -o $@ $<
1079 -include halt_mod-commands_halt.d
1081 clean-module-halt_mod-commands_halt-extra.1:
1082 rm -f cmd-halt_mod-commands_halt.lst fs-halt_mod-commands_halt.lst partmap-halt_mod-commands_halt.lst handler-halt_mod-commands_halt.lst parttool-halt_mod-commands_halt.lst video-halt_mod-commands_halt.lst terminal-halt_mod-commands_halt.lst
1084 CLEAN_MODULE_TARGETS += clean-module-halt_mod-commands_halt-extra.1
1086 COMMANDFILES += cmd-halt_mod-commands_halt.lst
1087 FSFILES += fs-halt_mod-commands_halt.lst
1088 PARTTOOLFILES += parttool-halt_mod-commands_halt.lst
1089 PARTMAPFILES += partmap-halt_mod-commands_halt.lst
1090 HANDLERFILES += handler-halt_mod-commands_halt.lst
1091 TERMINALFILES += terminal-halt_mod-commands_halt.lst
1092 VIDEOFILES += video-halt_mod-commands_halt.lst
1094 cmd-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) gencmdlist.sh
1095 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
1097 fs-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genfslist.sh
1098 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
1100 parttool-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genparttoollist.sh
1101 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh halt > $@ || (rm -f $@; exit 1)
1103 partmap-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genpartmaplist.sh
1104 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh halt > $@ || (rm -f $@; exit 1)
1106 handler-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genhandlerlist.sh
1107 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh halt > $@ || (rm -f $@; exit 1)
1109 terminal-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genterminallist.sh
1110 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh halt > $@ || (rm -f $@; exit 1)
1112 video-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genvideolist.sh
1113 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh halt > $@ || (rm -f $@; exit 1)
1115 halt_mod_CFLAGS = $(COMMON_CFLAGS)
1116 halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
1118 # For reboot.mod.
1119 reboot_mod_SOURCES = commands/reboot.c
1121 clean-module-reboot.mod.1:
1122 rm -f reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_reboot.o und-reboot.lst
1124 CLEAN_MODULE_TARGETS += clean-module-reboot.mod.1
1126 clean-module-reboot.mod-symbol.1:
1127 rm -f def-reboot.lst
1129 CLEAN_MODULE_TARGETS += clean-module-reboot.mod-symbol.1
1130 DEFSYMFILES += def-reboot.lst
1131 mostlyclean-module-reboot.mod.1:
1132 rm -f reboot_mod-commands_reboot.d
1134 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-reboot.mod.1
1135 UNDSYMFILES += und-reboot.lst
1137 ifneq ($(TARGET_APPLE_CC),1)
1138 reboot.mod: pre-reboot.o mod-reboot.o $(TARGET_OBJ2ELF)
1139 -rm -f $@
1140 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-reboot.o mod-reboot.o
1141 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1142 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1143 else
1144 reboot.mod: pre-reboot.o mod-reboot.o $(TARGET_OBJ2ELF)
1145 -rm -f $@
1146 -rm -f $@.bin
1147 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-reboot.o mod-reboot.o
1148 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1149 -rm -f $@.bin
1150 endif
1152 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_reboot.o
1153 -rm -f $@
1154 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reboot_mod-commands_reboot.o
1156 mod-reboot.o: mod-reboot.c
1157 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
1159 mod-reboot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1160 sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1)
1162 ifneq ($(TARGET_APPLE_CC),1)
1163 def-reboot.lst: pre-reboot.o
1164 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@
1165 else
1166 def-reboot.lst: pre-reboot.o
1167 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 reboot/' > $@
1168 endif
1170 und-reboot.lst: pre-reboot.o
1171 echo 'reboot' > $@
1172 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1174 reboot_mod-commands_reboot.o: commands/reboot.c $(commands/reboot.c_DEPENDENCIES)
1175 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -MD -c -o $@ $<
1176 -include reboot_mod-commands_reboot.d
1178 clean-module-reboot_mod-commands_reboot-extra.1:
1179 rm -f cmd-reboot_mod-commands_reboot.lst fs-reboot_mod-commands_reboot.lst partmap-reboot_mod-commands_reboot.lst handler-reboot_mod-commands_reboot.lst parttool-reboot_mod-commands_reboot.lst video-reboot_mod-commands_reboot.lst terminal-reboot_mod-commands_reboot.lst
1181 CLEAN_MODULE_TARGETS += clean-module-reboot_mod-commands_reboot-extra.1
1183 COMMANDFILES += cmd-reboot_mod-commands_reboot.lst
1184 FSFILES += fs-reboot_mod-commands_reboot.lst
1185 PARTTOOLFILES += parttool-reboot_mod-commands_reboot.lst
1186 PARTMAPFILES += partmap-reboot_mod-commands_reboot.lst
1187 HANDLERFILES += handler-reboot_mod-commands_reboot.lst
1188 TERMINALFILES += terminal-reboot_mod-commands_reboot.lst
1189 VIDEOFILES += video-reboot_mod-commands_reboot.lst
1191 cmd-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) gencmdlist.sh
1192 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
1194 fs-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genfslist.sh
1195 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
1197 parttool-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genparttoollist.sh
1198 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh reboot > $@ || (rm -f $@; exit 1)
1200 partmap-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genpartmaplist.sh
1201 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh reboot > $@ || (rm -f $@; exit 1)
1203 handler-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genhandlerlist.sh
1204 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh reboot > $@ || (rm -f $@; exit 1)
1206 terminal-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genterminallist.sh
1207 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh reboot > $@ || (rm -f $@; exit 1)
1209 video-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genvideolist.sh
1210 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh reboot > $@ || (rm -f $@; exit 1)
1212 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
1213 reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1215 # For pci.mod
1216 pci_mod_SOURCES = bus/pci.c
1218 clean-module-pci.mod.1:
1219 rm -f pci.mod mod-pci.o mod-pci.c pre-pci.o pci_mod-bus_pci.o und-pci.lst
1221 CLEAN_MODULE_TARGETS += clean-module-pci.mod.1
1223 clean-module-pci.mod-symbol.1:
1224 rm -f def-pci.lst
1226 CLEAN_MODULE_TARGETS += clean-module-pci.mod-symbol.1
1227 DEFSYMFILES += def-pci.lst
1228 mostlyclean-module-pci.mod.1:
1229 rm -f pci_mod-bus_pci.d
1231 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-pci.mod.1
1232 UNDSYMFILES += und-pci.lst
1234 ifneq ($(TARGET_APPLE_CC),1)
1235 pci.mod: pre-pci.o mod-pci.o $(TARGET_OBJ2ELF)
1236 -rm -f $@
1237 $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-pci.o mod-pci.o
1238 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1239 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1240 else
1241 pci.mod: pre-pci.o mod-pci.o $(TARGET_OBJ2ELF)
1242 -rm -f $@
1243 -rm -f $@.bin
1244 $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-pci.o mod-pci.o
1245 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1246 -rm -f $@.bin
1247 endif
1249 pre-pci.o: $(pci_mod_DEPENDENCIES) pci_mod-bus_pci.o
1250 -rm -f $@
1251 $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pci_mod-bus_pci.o
1253 mod-pci.o: mod-pci.c
1254 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -c -o $@ $<
1256 mod-pci.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1257 sh $(srcdir)/genmodsrc.sh 'pci' $< > $@ || (rm -f $@; exit 1)
1259 ifneq ($(TARGET_APPLE_CC),1)
1260 def-pci.lst: pre-pci.o
1261 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 pci/' > $@
1262 else
1263 def-pci.lst: pre-pci.o
1264 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 pci/' > $@
1265 endif
1267 und-pci.lst: pre-pci.o
1268 echo 'pci' > $@
1269 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1271 pci_mod-bus_pci.o: bus/pci.c $(bus/pci.c_DEPENDENCIES)
1272 $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -MD -c -o $@ $<
1273 -include pci_mod-bus_pci.d
1275 clean-module-pci_mod-bus_pci-extra.1:
1276 rm -f cmd-pci_mod-bus_pci.lst fs-pci_mod-bus_pci.lst partmap-pci_mod-bus_pci.lst handler-pci_mod-bus_pci.lst parttool-pci_mod-bus_pci.lst video-pci_mod-bus_pci.lst terminal-pci_mod-bus_pci.lst
1278 CLEAN_MODULE_TARGETS += clean-module-pci_mod-bus_pci-extra.1
1280 COMMANDFILES += cmd-pci_mod-bus_pci.lst
1281 FSFILES += fs-pci_mod-bus_pci.lst
1282 PARTTOOLFILES += parttool-pci_mod-bus_pci.lst
1283 PARTMAPFILES += partmap-pci_mod-bus_pci.lst
1284 HANDLERFILES += handler-pci_mod-bus_pci.lst
1285 TERMINALFILES += terminal-pci_mod-bus_pci.lst
1286 VIDEOFILES += video-pci_mod-bus_pci.lst
1288 cmd-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) gencmdlist.sh
1289 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh pci > $@ || (rm -f $@; exit 1)
1291 fs-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genfslist.sh
1292 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh pci > $@ || (rm -f $@; exit 1)
1294 parttool-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genparttoollist.sh
1295 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh pci > $@ || (rm -f $@; exit 1)
1297 partmap-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genpartmaplist.sh
1298 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh pci > $@ || (rm -f $@; exit 1)
1300 handler-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genhandlerlist.sh
1301 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh pci > $@ || (rm -f $@; exit 1)
1303 terminal-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genterminallist.sh
1304 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh pci > $@ || (rm -f $@; exit 1)
1306 video-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genvideolist.sh
1307 set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh pci > $@ || (rm -f $@; exit 1)
1309 pci_mod_CFLAGS = $(COMMON_CFLAGS)
1310 pci_mod_LDFLAGS = $(COMMON_LDFLAGS)
1312 # For lspci.mod
1313 lspci_mod_SOURCES = commands/lspci.c
1315 clean-module-lspci.mod.1:
1316 rm -f lspci.mod mod-lspci.o mod-lspci.c pre-lspci.o lspci_mod-commands_lspci.o und-lspci.lst
1318 CLEAN_MODULE_TARGETS += clean-module-lspci.mod.1
1320 clean-module-lspci.mod-symbol.1:
1321 rm -f def-lspci.lst
1323 CLEAN_MODULE_TARGETS += clean-module-lspci.mod-symbol.1
1324 DEFSYMFILES += def-lspci.lst
1325 mostlyclean-module-lspci.mod.1:
1326 rm -f lspci_mod-commands_lspci.d
1328 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-lspci.mod.1
1329 UNDSYMFILES += und-lspci.lst
1331 ifneq ($(TARGET_APPLE_CC),1)
1332 lspci.mod: pre-lspci.o mod-lspci.o $(TARGET_OBJ2ELF)
1333 -rm -f $@
1334 $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-lspci.o mod-lspci.o
1335 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1336 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1337 else
1338 lspci.mod: pre-lspci.o mod-lspci.o $(TARGET_OBJ2ELF)
1339 -rm -f $@
1340 -rm -f $@.bin
1341 $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-lspci.o mod-lspci.o
1342 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1343 -rm -f $@.bin
1344 endif
1346 pre-lspci.o: $(lspci_mod_DEPENDENCIES) lspci_mod-commands_lspci.o
1347 -rm -f $@
1348 $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lspci_mod-commands_lspci.o
1350 mod-lspci.o: mod-lspci.c
1351 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -c -o $@ $<
1353 mod-lspci.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1354 sh $(srcdir)/genmodsrc.sh 'lspci' $< > $@ || (rm -f $@; exit 1)
1356 ifneq ($(TARGET_APPLE_CC),1)
1357 def-lspci.lst: pre-lspci.o
1358 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lspci/' > $@
1359 else
1360 def-lspci.lst: pre-lspci.o
1361 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 lspci/' > $@
1362 endif
1364 und-lspci.lst: pre-lspci.o
1365 echo 'lspci' > $@
1366 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1368 lspci_mod-commands_lspci.o: commands/lspci.c $(commands/lspci.c_DEPENDENCIES)
1369 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -MD -c -o $@ $<
1370 -include lspci_mod-commands_lspci.d
1372 clean-module-lspci_mod-commands_lspci-extra.1:
1373 rm -f cmd-lspci_mod-commands_lspci.lst fs-lspci_mod-commands_lspci.lst partmap-lspci_mod-commands_lspci.lst handler-lspci_mod-commands_lspci.lst parttool-lspci_mod-commands_lspci.lst video-lspci_mod-commands_lspci.lst terminal-lspci_mod-commands_lspci.lst
1375 CLEAN_MODULE_TARGETS += clean-module-lspci_mod-commands_lspci-extra.1
1377 COMMANDFILES += cmd-lspci_mod-commands_lspci.lst
1378 FSFILES += fs-lspci_mod-commands_lspci.lst
1379 PARTTOOLFILES += parttool-lspci_mod-commands_lspci.lst
1380 PARTMAPFILES += partmap-lspci_mod-commands_lspci.lst
1381 HANDLERFILES += handler-lspci_mod-commands_lspci.lst
1382 TERMINALFILES += terminal-lspci_mod-commands_lspci.lst
1383 VIDEOFILES += video-lspci_mod-commands_lspci.lst
1385 cmd-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) gencmdlist.sh
1386 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh lspci > $@ || (rm -f $@; exit 1)
1388 fs-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genfslist.sh
1389 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh lspci > $@ || (rm -f $@; exit 1)
1391 parttool-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genparttoollist.sh
1392 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh lspci > $@ || (rm -f $@; exit 1)
1394 partmap-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genpartmaplist.sh
1395 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh lspci > $@ || (rm -f $@; exit 1)
1397 handler-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genhandlerlist.sh
1398 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh lspci > $@ || (rm -f $@; exit 1)
1400 terminal-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genterminallist.sh
1401 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh lspci > $@ || (rm -f $@; exit 1)
1403 video-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genvideolist.sh
1404 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh lspci > $@ || (rm -f $@; exit 1)
1406 lspci_mod_CFLAGS = $(COMMON_CFLAGS)
1407 lspci_mod_LDFLAGS = $(COMMON_LDFLAGS)
1409 # For datetime.mod
1410 datetime_mod_SOURCES = lib/efi/datetime.c
1412 clean-module-datetime.mod.1:
1413 rm -f datetime.mod mod-datetime.o mod-datetime.c pre-datetime.o datetime_mod-lib_efi_datetime.o und-datetime.lst
1415 CLEAN_MODULE_TARGETS += clean-module-datetime.mod.1
1417 clean-module-datetime.mod-symbol.1:
1418 rm -f def-datetime.lst
1420 CLEAN_MODULE_TARGETS += clean-module-datetime.mod-symbol.1
1421 DEFSYMFILES += def-datetime.lst
1422 mostlyclean-module-datetime.mod.1:
1423 rm -f datetime_mod-lib_efi_datetime.d
1425 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-datetime.mod.1
1426 UNDSYMFILES += und-datetime.lst
1428 ifneq ($(TARGET_APPLE_CC),1)
1429 datetime.mod: pre-datetime.o mod-datetime.o $(TARGET_OBJ2ELF)
1430 -rm -f $@
1431 $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-datetime.o mod-datetime.o
1432 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1433 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1434 else
1435 datetime.mod: pre-datetime.o mod-datetime.o $(TARGET_OBJ2ELF)
1436 -rm -f $@
1437 -rm -f $@.bin
1438 $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-datetime.o mod-datetime.o
1439 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1440 -rm -f $@.bin
1441 endif
1443 pre-datetime.o: $(datetime_mod_DEPENDENCIES) datetime_mod-lib_efi_datetime.o
1444 -rm -f $@
1445 $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ datetime_mod-lib_efi_datetime.o
1447 mod-datetime.o: mod-datetime.c
1448 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -c -o $@ $<
1450 mod-datetime.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1451 sh $(srcdir)/genmodsrc.sh 'datetime' $< > $@ || (rm -f $@; exit 1)
1453 ifneq ($(TARGET_APPLE_CC),1)
1454 def-datetime.lst: pre-datetime.o
1455 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 datetime/' > $@
1456 else
1457 def-datetime.lst: pre-datetime.o
1458 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 datetime/' > $@
1459 endif
1461 und-datetime.lst: pre-datetime.o
1462 echo 'datetime' > $@
1463 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1465 datetime_mod-lib_efi_datetime.o: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES)
1466 $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -MD -c -o $@ $<
1467 -include datetime_mod-lib_efi_datetime.d
1469 clean-module-datetime_mod-lib_efi_datetime-extra.1:
1470 rm -f cmd-datetime_mod-lib_efi_datetime.lst fs-datetime_mod-lib_efi_datetime.lst partmap-datetime_mod-lib_efi_datetime.lst handler-datetime_mod-lib_efi_datetime.lst parttool-datetime_mod-lib_efi_datetime.lst video-datetime_mod-lib_efi_datetime.lst terminal-datetime_mod-lib_efi_datetime.lst
1472 CLEAN_MODULE_TARGETS += clean-module-datetime_mod-lib_efi_datetime-extra.1
1474 COMMANDFILES += cmd-datetime_mod-lib_efi_datetime.lst
1475 FSFILES += fs-datetime_mod-lib_efi_datetime.lst
1476 PARTTOOLFILES += parttool-datetime_mod-lib_efi_datetime.lst
1477 PARTMAPFILES += partmap-datetime_mod-lib_efi_datetime.lst
1478 HANDLERFILES += handler-datetime_mod-lib_efi_datetime.lst
1479 TERMINALFILES += terminal-datetime_mod-lib_efi_datetime.lst
1480 VIDEOFILES += video-datetime_mod-lib_efi_datetime.lst
1482 cmd-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) gencmdlist.sh
1483 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh datetime > $@ || (rm -f $@; exit 1)
1485 fs-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genfslist.sh
1486 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh datetime > $@ || (rm -f $@; exit 1)
1488 parttool-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genparttoollist.sh
1489 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh datetime > $@ || (rm -f $@; exit 1)
1491 partmap-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genpartmaplist.sh
1492 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh datetime > $@ || (rm -f $@; exit 1)
1494 handler-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genhandlerlist.sh
1495 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh datetime > $@ || (rm -f $@; exit 1)
1497 terminal-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genterminallist.sh
1498 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh datetime > $@ || (rm -f $@; exit 1)
1500 video-datetime_mod-lib_efi_datetime.lst: lib/efi/datetime.c $(lib/efi/datetime.c_DEPENDENCIES) genvideolist.sh
1501 set -e; $(TARGET_CC) -Ilib/efi -I$(srcdir)/lib/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh datetime > $@ || (rm -f $@; exit 1)
1503 datetime_mod_CFLAGS = $(COMMON_CFLAGS)
1504 datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
1506 # For date.mod
1507 date_mod_SOURCES = commands/date.c
1509 clean-module-date.mod.1:
1510 rm -f date.mod mod-date.o mod-date.c pre-date.o date_mod-commands_date.o und-date.lst
1512 CLEAN_MODULE_TARGETS += clean-module-date.mod.1
1514 clean-module-date.mod-symbol.1:
1515 rm -f def-date.lst
1517 CLEAN_MODULE_TARGETS += clean-module-date.mod-symbol.1
1518 DEFSYMFILES += def-date.lst
1519 mostlyclean-module-date.mod.1:
1520 rm -f date_mod-commands_date.d
1522 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-date.mod.1
1523 UNDSYMFILES += und-date.lst
1525 ifneq ($(TARGET_APPLE_CC),1)
1526 date.mod: pre-date.o mod-date.o $(TARGET_OBJ2ELF)
1527 -rm -f $@
1528 $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-date.o mod-date.o
1529 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1530 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1531 else
1532 date.mod: pre-date.o mod-date.o $(TARGET_OBJ2ELF)
1533 -rm -f $@
1534 -rm -f $@.bin
1535 $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-date.o mod-date.o
1536 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1537 -rm -f $@.bin
1538 endif
1540 pre-date.o: $(date_mod_DEPENDENCIES) date_mod-commands_date.o
1541 -rm -f $@
1542 $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ date_mod-commands_date.o
1544 mod-date.o: mod-date.c
1545 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -c -o $@ $<
1547 mod-date.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1548 sh $(srcdir)/genmodsrc.sh 'date' $< > $@ || (rm -f $@; exit 1)
1550 ifneq ($(TARGET_APPLE_CC),1)
1551 def-date.lst: pre-date.o
1552 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 date/' > $@
1553 else
1554 def-date.lst: pre-date.o
1555 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 date/' > $@
1556 endif
1558 und-date.lst: pre-date.o
1559 echo 'date' > $@
1560 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1562 date_mod-commands_date.o: commands/date.c $(commands/date.c_DEPENDENCIES)
1563 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -MD -c -o $@ $<
1564 -include date_mod-commands_date.d
1566 clean-module-date_mod-commands_date-extra.1:
1567 rm -f cmd-date_mod-commands_date.lst fs-date_mod-commands_date.lst partmap-date_mod-commands_date.lst handler-date_mod-commands_date.lst parttool-date_mod-commands_date.lst video-date_mod-commands_date.lst terminal-date_mod-commands_date.lst
1569 CLEAN_MODULE_TARGETS += clean-module-date_mod-commands_date-extra.1
1571 COMMANDFILES += cmd-date_mod-commands_date.lst
1572 FSFILES += fs-date_mod-commands_date.lst
1573 PARTTOOLFILES += parttool-date_mod-commands_date.lst
1574 PARTMAPFILES += partmap-date_mod-commands_date.lst
1575 HANDLERFILES += handler-date_mod-commands_date.lst
1576 TERMINALFILES += terminal-date_mod-commands_date.lst
1577 VIDEOFILES += video-date_mod-commands_date.lst
1579 cmd-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) gencmdlist.sh
1580 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh date > $@ || (rm -f $@; exit 1)
1582 fs-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genfslist.sh
1583 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh date > $@ || (rm -f $@; exit 1)
1585 parttool-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genparttoollist.sh
1586 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh date > $@ || (rm -f $@; exit 1)
1588 partmap-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genpartmaplist.sh
1589 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh date > $@ || (rm -f $@; exit 1)
1591 handler-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genhandlerlist.sh
1592 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh date > $@ || (rm -f $@; exit 1)
1594 terminal-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genterminallist.sh
1595 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh date > $@ || (rm -f $@; exit 1)
1597 video-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genvideolist.sh
1598 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh date > $@ || (rm -f $@; exit 1)
1600 date_mod_CFLAGS = $(COMMON_CFLAGS)
1601 date_mod_LDFLAGS = $(COMMON_LDFLAGS)
1603 # For datehook.mod
1604 datehook_mod_SOURCES = hook/datehook.c
1606 clean-module-datehook.mod.1:
1607 rm -f datehook.mod mod-datehook.o mod-datehook.c pre-datehook.o datehook_mod-hook_datehook.o und-datehook.lst
1609 CLEAN_MODULE_TARGETS += clean-module-datehook.mod.1
1611 clean-module-datehook.mod-symbol.1:
1612 rm -f def-datehook.lst
1614 CLEAN_MODULE_TARGETS += clean-module-datehook.mod-symbol.1
1615 DEFSYMFILES += def-datehook.lst
1616 mostlyclean-module-datehook.mod.1:
1617 rm -f datehook_mod-hook_datehook.d
1619 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-datehook.mod.1
1620 UNDSYMFILES += und-datehook.lst
1622 ifneq ($(TARGET_APPLE_CC),1)
1623 datehook.mod: pre-datehook.o mod-datehook.o $(TARGET_OBJ2ELF)
1624 -rm -f $@
1625 $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-datehook.o mod-datehook.o
1626 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1627 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1628 else
1629 datehook.mod: pre-datehook.o mod-datehook.o $(TARGET_OBJ2ELF)
1630 -rm -f $@
1631 -rm -f $@.bin
1632 $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-datehook.o mod-datehook.o
1633 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1634 -rm -f $@.bin
1635 endif
1637 pre-datehook.o: $(datehook_mod_DEPENDENCIES) datehook_mod-hook_datehook.o
1638 -rm -f $@
1639 $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ datehook_mod-hook_datehook.o
1641 mod-datehook.o: mod-datehook.c
1642 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -c -o $@ $<
1644 mod-datehook.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1645 sh $(srcdir)/genmodsrc.sh 'datehook' $< > $@ || (rm -f $@; exit 1)
1647 ifneq ($(TARGET_APPLE_CC),1)
1648 def-datehook.lst: pre-datehook.o
1649 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 datehook/' > $@
1650 else
1651 def-datehook.lst: pre-datehook.o
1652 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 datehook/' > $@
1653 endif
1655 und-datehook.lst: pre-datehook.o
1656 echo 'datehook' > $@
1657 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1659 datehook_mod-hook_datehook.o: hook/datehook.c $(hook/datehook.c_DEPENDENCIES)
1660 $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -MD -c -o $@ $<
1661 -include datehook_mod-hook_datehook.d
1663 clean-module-datehook_mod-hook_datehook-extra.1:
1664 rm -f cmd-datehook_mod-hook_datehook.lst fs-datehook_mod-hook_datehook.lst partmap-datehook_mod-hook_datehook.lst handler-datehook_mod-hook_datehook.lst parttool-datehook_mod-hook_datehook.lst video-datehook_mod-hook_datehook.lst terminal-datehook_mod-hook_datehook.lst
1666 CLEAN_MODULE_TARGETS += clean-module-datehook_mod-hook_datehook-extra.1
1668 COMMANDFILES += cmd-datehook_mod-hook_datehook.lst
1669 FSFILES += fs-datehook_mod-hook_datehook.lst
1670 PARTTOOLFILES += parttool-datehook_mod-hook_datehook.lst
1671 PARTMAPFILES += partmap-datehook_mod-hook_datehook.lst
1672 HANDLERFILES += handler-datehook_mod-hook_datehook.lst
1673 TERMINALFILES += terminal-datehook_mod-hook_datehook.lst
1674 VIDEOFILES += video-datehook_mod-hook_datehook.lst
1676 cmd-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) gencmdlist.sh
1677 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh datehook > $@ || (rm -f $@; exit 1)
1679 fs-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genfslist.sh
1680 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh datehook > $@ || (rm -f $@; exit 1)
1682 parttool-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genparttoollist.sh
1683 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh datehook > $@ || (rm -f $@; exit 1)
1685 partmap-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genpartmaplist.sh
1686 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh datehook > $@ || (rm -f $@; exit 1)
1688 handler-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genhandlerlist.sh
1689 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh datehook > $@ || (rm -f $@; exit 1)
1691 terminal-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genterminallist.sh
1692 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh datehook > $@ || (rm -f $@; exit 1)
1694 video-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genvideolist.sh
1695 set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh datehook > $@ || (rm -f $@; exit 1)
1697 datehook_mod_CFLAGS = $(COMMON_CFLAGS)
1698 datehook_mod_LDFLAGS = $(COMMON_LDFLAGS)
1700 # For loadbios.mod
1701 loadbios_mod_SOURCES = commands/efi/loadbios.c
1703 clean-module-loadbios.mod.1:
1704 rm -f loadbios.mod mod-loadbios.o mod-loadbios.c pre-loadbios.o loadbios_mod-commands_efi_loadbios.o und-loadbios.lst
1706 CLEAN_MODULE_TARGETS += clean-module-loadbios.mod.1
1708 clean-module-loadbios.mod-symbol.1:
1709 rm -f def-loadbios.lst
1711 CLEAN_MODULE_TARGETS += clean-module-loadbios.mod-symbol.1
1712 DEFSYMFILES += def-loadbios.lst
1713 mostlyclean-module-loadbios.mod.1:
1714 rm -f loadbios_mod-commands_efi_loadbios.d
1716 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-loadbios.mod.1
1717 UNDSYMFILES += und-loadbios.lst
1719 ifneq ($(TARGET_APPLE_CC),1)
1720 loadbios.mod: pre-loadbios.o mod-loadbios.o $(TARGET_OBJ2ELF)
1721 -rm -f $@
1722 $(TARGET_CC) $(loadbios_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-loadbios.o mod-loadbios.o
1723 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1724 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1725 else
1726 loadbios.mod: pre-loadbios.o mod-loadbios.o $(TARGET_OBJ2ELF)
1727 -rm -f $@
1728 -rm -f $@.bin
1729 $(TARGET_CC) $(loadbios_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-loadbios.o mod-loadbios.o
1730 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1731 -rm -f $@.bin
1732 endif
1734 pre-loadbios.o: $(loadbios_mod_DEPENDENCIES) loadbios_mod-commands_efi_loadbios.o
1735 -rm -f $@
1736 $(TARGET_CC) $(loadbios_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loadbios_mod-commands_efi_loadbios.o
1738 mod-loadbios.o: mod-loadbios.c
1739 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -c -o $@ $<
1741 mod-loadbios.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1742 sh $(srcdir)/genmodsrc.sh 'loadbios' $< > $@ || (rm -f $@; exit 1)
1744 ifneq ($(TARGET_APPLE_CC),1)
1745 def-loadbios.lst: pre-loadbios.o
1746 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loadbios/' > $@
1747 else
1748 def-loadbios.lst: pre-loadbios.o
1749 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 loadbios/' > $@
1750 endif
1752 und-loadbios.lst: pre-loadbios.o
1753 echo 'loadbios' > $@
1754 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1756 loadbios_mod-commands_efi_loadbios.o: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES)
1757 $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -MD -c -o $@ $<
1758 -include loadbios_mod-commands_efi_loadbios.d
1760 clean-module-loadbios_mod-commands_efi_loadbios-extra.1:
1761 rm -f cmd-loadbios_mod-commands_efi_loadbios.lst fs-loadbios_mod-commands_efi_loadbios.lst partmap-loadbios_mod-commands_efi_loadbios.lst handler-loadbios_mod-commands_efi_loadbios.lst parttool-loadbios_mod-commands_efi_loadbios.lst video-loadbios_mod-commands_efi_loadbios.lst terminal-loadbios_mod-commands_efi_loadbios.lst
1763 CLEAN_MODULE_TARGETS += clean-module-loadbios_mod-commands_efi_loadbios-extra.1
1765 COMMANDFILES += cmd-loadbios_mod-commands_efi_loadbios.lst
1766 FSFILES += fs-loadbios_mod-commands_efi_loadbios.lst
1767 PARTTOOLFILES += parttool-loadbios_mod-commands_efi_loadbios.lst
1768 PARTMAPFILES += partmap-loadbios_mod-commands_efi_loadbios.lst
1769 HANDLERFILES += handler-loadbios_mod-commands_efi_loadbios.lst
1770 TERMINALFILES += terminal-loadbios_mod-commands_efi_loadbios.lst
1771 VIDEOFILES += video-loadbios_mod-commands_efi_loadbios.lst
1773 cmd-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) gencmdlist.sh
1774 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh loadbios > $@ || (rm -f $@; exit 1)
1776 fs-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genfslist.sh
1777 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh loadbios > $@ || (rm -f $@; exit 1)
1779 parttool-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genparttoollist.sh
1780 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh loadbios > $@ || (rm -f $@; exit 1)
1782 partmap-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genpartmaplist.sh
1783 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh loadbios > $@ || (rm -f $@; exit 1)
1785 handler-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genhandlerlist.sh
1786 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh loadbios > $@ || (rm -f $@; exit 1)
1788 terminal-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genterminallist.sh
1789 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh loadbios > $@ || (rm -f $@; exit 1)
1791 video-loadbios_mod-commands_efi_loadbios.lst: commands/efi/loadbios.c $(commands/efi/loadbios.c_DEPENDENCIES) genvideolist.sh
1792 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadbios_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh loadbios > $@ || (rm -f $@; exit 1)
1794 loadbios_mod_CFLAGS = $(COMMON_CFLAGS)
1795 loadbios_mod_LDFLAGS = $(COMMON_LDFLAGS)
1797 # For fixvideo.mod
1798 fixvideo_mod_SOURCES = commands/efi/fixvideo.c
1800 clean-module-fixvideo.mod.1:
1801 rm -f fixvideo.mod mod-fixvideo.o mod-fixvideo.c pre-fixvideo.o fixvideo_mod-commands_efi_fixvideo.o und-fixvideo.lst
1803 CLEAN_MODULE_TARGETS += clean-module-fixvideo.mod.1
1805 clean-module-fixvideo.mod-symbol.1:
1806 rm -f def-fixvideo.lst
1808 CLEAN_MODULE_TARGETS += clean-module-fixvideo.mod-symbol.1
1809 DEFSYMFILES += def-fixvideo.lst
1810 mostlyclean-module-fixvideo.mod.1:
1811 rm -f fixvideo_mod-commands_efi_fixvideo.d
1813 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-fixvideo.mod.1
1814 UNDSYMFILES += und-fixvideo.lst
1816 ifneq ($(TARGET_APPLE_CC),1)
1817 fixvideo.mod: pre-fixvideo.o mod-fixvideo.o $(TARGET_OBJ2ELF)
1818 -rm -f $@
1819 $(TARGET_CC) $(fixvideo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-fixvideo.o mod-fixvideo.o
1820 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1821 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1822 else
1823 fixvideo.mod: pre-fixvideo.o mod-fixvideo.o $(TARGET_OBJ2ELF)
1824 -rm -f $@
1825 -rm -f $@.bin
1826 $(TARGET_CC) $(fixvideo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-fixvideo.o mod-fixvideo.o
1827 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1828 -rm -f $@.bin
1829 endif
1831 pre-fixvideo.o: $(fixvideo_mod_DEPENDENCIES) fixvideo_mod-commands_efi_fixvideo.o
1832 -rm -f $@
1833 $(TARGET_CC) $(fixvideo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fixvideo_mod-commands_efi_fixvideo.o
1835 mod-fixvideo.o: mod-fixvideo.c
1836 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -c -o $@ $<
1838 mod-fixvideo.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1839 sh $(srcdir)/genmodsrc.sh 'fixvideo' $< > $@ || (rm -f $@; exit 1)
1841 ifneq ($(TARGET_APPLE_CC),1)
1842 def-fixvideo.lst: pre-fixvideo.o
1843 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fixvideo/' > $@
1844 else
1845 def-fixvideo.lst: pre-fixvideo.o
1846 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 fixvideo/' > $@
1847 endif
1849 und-fixvideo.lst: pre-fixvideo.o
1850 echo 'fixvideo' > $@
1851 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1853 fixvideo_mod-commands_efi_fixvideo.o: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES)
1854 $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -MD -c -o $@ $<
1855 -include fixvideo_mod-commands_efi_fixvideo.d
1857 clean-module-fixvideo_mod-commands_efi_fixvideo-extra.1:
1858 rm -f cmd-fixvideo_mod-commands_efi_fixvideo.lst fs-fixvideo_mod-commands_efi_fixvideo.lst partmap-fixvideo_mod-commands_efi_fixvideo.lst handler-fixvideo_mod-commands_efi_fixvideo.lst parttool-fixvideo_mod-commands_efi_fixvideo.lst video-fixvideo_mod-commands_efi_fixvideo.lst terminal-fixvideo_mod-commands_efi_fixvideo.lst
1860 CLEAN_MODULE_TARGETS += clean-module-fixvideo_mod-commands_efi_fixvideo-extra.1
1862 COMMANDFILES += cmd-fixvideo_mod-commands_efi_fixvideo.lst
1863 FSFILES += fs-fixvideo_mod-commands_efi_fixvideo.lst
1864 PARTTOOLFILES += parttool-fixvideo_mod-commands_efi_fixvideo.lst
1865 PARTMAPFILES += partmap-fixvideo_mod-commands_efi_fixvideo.lst
1866 HANDLERFILES += handler-fixvideo_mod-commands_efi_fixvideo.lst
1867 TERMINALFILES += terminal-fixvideo_mod-commands_efi_fixvideo.lst
1868 VIDEOFILES += video-fixvideo_mod-commands_efi_fixvideo.lst
1870 cmd-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) gencmdlist.sh
1871 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh fixvideo > $@ || (rm -f $@; exit 1)
1873 fs-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genfslist.sh
1874 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh fixvideo > $@ || (rm -f $@; exit 1)
1876 parttool-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genparttoollist.sh
1877 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh fixvideo > $@ || (rm -f $@; exit 1)
1879 partmap-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genpartmaplist.sh
1880 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh fixvideo > $@ || (rm -f $@; exit 1)
1882 handler-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genhandlerlist.sh
1883 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh fixvideo > $@ || (rm -f $@; exit 1)
1885 terminal-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genterminallist.sh
1886 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh fixvideo > $@ || (rm -f $@; exit 1)
1888 video-fixvideo_mod-commands_efi_fixvideo.lst: commands/efi/fixvideo.c $(commands/efi/fixvideo.c_DEPENDENCIES) genvideolist.sh
1889 set -e; $(TARGET_CC) -Icommands/efi -I$(srcdir)/commands/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fixvideo_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh fixvideo > $@ || (rm -f $@; exit 1)
1891 fixvideo_mod_CFLAGS = $(COMMON_CFLAGS)
1892 fixvideo_mod_LDFLAGS = $(COMMON_LDFLAGS)
1894 pkglib_MODULES += efi_uga.mod
1895 efi_uga_mod_SOURCES = video/efi_uga.c
1897 clean-module-efi_uga.mod.1:
1898 rm -f efi_uga.mod mod-efi_uga.o mod-efi_uga.c pre-efi_uga.o efi_uga_mod-video_efi_uga.o und-efi_uga.lst
1900 CLEAN_MODULE_TARGETS += clean-module-efi_uga.mod.1
1902 clean-module-efi_uga.mod-symbol.1:
1903 rm -f def-efi_uga.lst
1905 CLEAN_MODULE_TARGETS += clean-module-efi_uga.mod-symbol.1
1906 DEFSYMFILES += def-efi_uga.lst
1907 mostlyclean-module-efi_uga.mod.1:
1908 rm -f efi_uga_mod-video_efi_uga.d
1910 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-efi_uga.mod.1
1911 UNDSYMFILES += und-efi_uga.lst
1913 ifneq ($(TARGET_APPLE_CC),1)
1914 efi_uga.mod: pre-efi_uga.o mod-efi_uga.o $(TARGET_OBJ2ELF)
1915 -rm -f $@
1916 $(TARGET_CC) $(efi_uga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-efi_uga.o mod-efi_uga.o
1917 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1918 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1919 else
1920 efi_uga.mod: pre-efi_uga.o mod-efi_uga.o $(TARGET_OBJ2ELF)
1921 -rm -f $@
1922 -rm -f $@.bin
1923 $(TARGET_CC) $(efi_uga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-efi_uga.o mod-efi_uga.o
1924 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
1925 -rm -f $@.bin
1926 endif
1928 pre-efi_uga.o: $(efi_uga_mod_DEPENDENCIES) efi_uga_mod-video_efi_uga.o
1929 -rm -f $@
1930 $(TARGET_CC) $(efi_uga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ efi_uga_mod-video_efi_uga.o
1932 mod-efi_uga.o: mod-efi_uga.c
1933 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -c -o $@ $<
1935 mod-efi_uga.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1936 sh $(srcdir)/genmodsrc.sh 'efi_uga' $< > $@ || (rm -f $@; exit 1)
1938 ifneq ($(TARGET_APPLE_CC),1)
1939 def-efi_uga.lst: pre-efi_uga.o
1940 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 efi_uga/' > $@
1941 else
1942 def-efi_uga.lst: pre-efi_uga.o
1943 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 efi_uga/' > $@
1944 endif
1946 und-efi_uga.lst: pre-efi_uga.o
1947 echo 'efi_uga' > $@
1948 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1950 efi_uga_mod-video_efi_uga.o: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES)
1951 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -MD -c -o $@ $<
1952 -include efi_uga_mod-video_efi_uga.d
1954 clean-module-efi_uga_mod-video_efi_uga-extra.1:
1955 rm -f cmd-efi_uga_mod-video_efi_uga.lst fs-efi_uga_mod-video_efi_uga.lst partmap-efi_uga_mod-video_efi_uga.lst handler-efi_uga_mod-video_efi_uga.lst parttool-efi_uga_mod-video_efi_uga.lst video-efi_uga_mod-video_efi_uga.lst terminal-efi_uga_mod-video_efi_uga.lst
1957 CLEAN_MODULE_TARGETS += clean-module-efi_uga_mod-video_efi_uga-extra.1
1959 COMMANDFILES += cmd-efi_uga_mod-video_efi_uga.lst
1960 FSFILES += fs-efi_uga_mod-video_efi_uga.lst
1961 PARTTOOLFILES += parttool-efi_uga_mod-video_efi_uga.lst
1962 PARTMAPFILES += partmap-efi_uga_mod-video_efi_uga.lst
1963 HANDLERFILES += handler-efi_uga_mod-video_efi_uga.lst
1964 TERMINALFILES += terminal-efi_uga_mod-video_efi_uga.lst
1965 VIDEOFILES += video-efi_uga_mod-video_efi_uga.lst
1967 cmd-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) gencmdlist.sh
1968 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh efi_uga > $@ || (rm -f $@; exit 1)
1970 fs-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genfslist.sh
1971 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh efi_uga > $@ || (rm -f $@; exit 1)
1973 parttool-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genparttoollist.sh
1974 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh efi_uga > $@ || (rm -f $@; exit 1)
1976 partmap-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genpartmaplist.sh
1977 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh efi_uga > $@ || (rm -f $@; exit 1)
1979 handler-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genhandlerlist.sh
1980 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh efi_uga > $@ || (rm -f $@; exit 1)
1982 terminal-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genterminallist.sh
1983 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh efi_uga > $@ || (rm -f $@; exit 1)
1985 video-efi_uga_mod-video_efi_uga.lst: video/efi_uga.c $(video/efi_uga.c_DEPENDENCIES) genvideolist.sh
1986 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_uga_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh efi_uga > $@ || (rm -f $@; exit 1)
1988 efi_uga_mod_CFLAGS = $(COMMON_CFLAGS)
1989 efi_uga_mod_LDFLAGS = $(COMMON_LDFLAGS)
1991 pkglib_MODULES += efi_gop.mod
1992 efi_gop_mod_SOURCES = video/efi_gop.c
1994 clean-module-efi_gop.mod.1:
1995 rm -f efi_gop.mod mod-efi_gop.o mod-efi_gop.c pre-efi_gop.o efi_gop_mod-video_efi_gop.o und-efi_gop.lst
1997 CLEAN_MODULE_TARGETS += clean-module-efi_gop.mod.1
1999 clean-module-efi_gop.mod-symbol.1:
2000 rm -f def-efi_gop.lst
2002 CLEAN_MODULE_TARGETS += clean-module-efi_gop.mod-symbol.1
2003 DEFSYMFILES += def-efi_gop.lst
2004 mostlyclean-module-efi_gop.mod.1:
2005 rm -f efi_gop_mod-video_efi_gop.d
2007 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-efi_gop.mod.1
2008 UNDSYMFILES += und-efi_gop.lst
2010 ifneq ($(TARGET_APPLE_CC),1)
2011 efi_gop.mod: pre-efi_gop.o mod-efi_gop.o $(TARGET_OBJ2ELF)
2012 -rm -f $@
2013 $(TARGET_CC) $(efi_gop_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-efi_gop.o mod-efi_gop.o
2014 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2015 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2016 else
2017 efi_gop.mod: pre-efi_gop.o mod-efi_gop.o $(TARGET_OBJ2ELF)
2018 -rm -f $@
2019 -rm -f $@.bin
2020 $(TARGET_CC) $(efi_gop_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-efi_gop.o mod-efi_gop.o
2021 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
2022 -rm -f $@.bin
2023 endif
2025 pre-efi_gop.o: $(efi_gop_mod_DEPENDENCIES) efi_gop_mod-video_efi_gop.o
2026 -rm -f $@
2027 $(TARGET_CC) $(efi_gop_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ efi_gop_mod-video_efi_gop.o
2029 mod-efi_gop.o: mod-efi_gop.c
2030 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -c -o $@ $<
2032 mod-efi_gop.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2033 sh $(srcdir)/genmodsrc.sh 'efi_gop' $< > $@ || (rm -f $@; exit 1)
2035 ifneq ($(TARGET_APPLE_CC),1)
2036 def-efi_gop.lst: pre-efi_gop.o
2037 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 efi_gop/' > $@
2038 else
2039 def-efi_gop.lst: pre-efi_gop.o
2040 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 efi_gop/' > $@
2041 endif
2043 und-efi_gop.lst: pre-efi_gop.o
2044 echo 'efi_gop' > $@
2045 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2047 efi_gop_mod-video_efi_gop.o: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES)
2048 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -MD -c -o $@ $<
2049 -include efi_gop_mod-video_efi_gop.d
2051 clean-module-efi_gop_mod-video_efi_gop-extra.1:
2052 rm -f cmd-efi_gop_mod-video_efi_gop.lst fs-efi_gop_mod-video_efi_gop.lst partmap-efi_gop_mod-video_efi_gop.lst handler-efi_gop_mod-video_efi_gop.lst parttool-efi_gop_mod-video_efi_gop.lst video-efi_gop_mod-video_efi_gop.lst terminal-efi_gop_mod-video_efi_gop.lst
2054 CLEAN_MODULE_TARGETS += clean-module-efi_gop_mod-video_efi_gop-extra.1
2056 COMMANDFILES += cmd-efi_gop_mod-video_efi_gop.lst
2057 FSFILES += fs-efi_gop_mod-video_efi_gop.lst
2058 PARTTOOLFILES += parttool-efi_gop_mod-video_efi_gop.lst
2059 PARTMAPFILES += partmap-efi_gop_mod-video_efi_gop.lst
2060 HANDLERFILES += handler-efi_gop_mod-video_efi_gop.lst
2061 TERMINALFILES += terminal-efi_gop_mod-video_efi_gop.lst
2062 VIDEOFILES += video-efi_gop_mod-video_efi_gop.lst
2064 cmd-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) gencmdlist.sh
2065 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh efi_gop > $@ || (rm -f $@; exit 1)
2067 fs-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genfslist.sh
2068 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh efi_gop > $@ || (rm -f $@; exit 1)
2070 parttool-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genparttoollist.sh
2071 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh efi_gop > $@ || (rm -f $@; exit 1)
2073 partmap-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genpartmaplist.sh
2074 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh efi_gop > $@ || (rm -f $@; exit 1)
2076 handler-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genhandlerlist.sh
2077 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh efi_gop > $@ || (rm -f $@; exit 1)
2079 terminal-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genterminallist.sh
2080 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh efi_gop > $@ || (rm -f $@; exit 1)
2082 video-efi_gop_mod-video_efi_gop.lst: video/efi_gop.c $(video/efi_gop.c_DEPENDENCIES) genvideolist.sh
2083 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(efi_gop_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh efi_gop > $@ || (rm -f $@; exit 1)
2085 efi_gop_mod_CFLAGS = $(COMMON_CFLAGS)
2086 efi_gop_mod_LDFLAGS = $(COMMON_LDFLAGS)
2088 pkglib_MODULES += xnu.mod
2089 xnu_mod_SOURCES = loader/xnu_resume.c loader/i386/xnu.c loader/i386/efi/xnu.c \
2090 loader/macho32.c loader/macho64.c loader/macho.c loader/xnu.c
2092 clean-module-xnu.mod.1:
2093 rm -f xnu.mod mod-xnu.o mod-xnu.c pre-xnu.o xnu_mod-loader_xnu_resume.o xnu_mod-loader_i386_xnu.o xnu_mod-loader_i386_efi_xnu.o xnu_mod-loader_macho32.o xnu_mod-loader_macho64.o xnu_mod-loader_macho.o xnu_mod-loader_xnu.o und-xnu.lst
2095 CLEAN_MODULE_TARGETS += clean-module-xnu.mod.1
2097 clean-module-xnu.mod-symbol.1:
2098 rm -f def-xnu.lst
2100 CLEAN_MODULE_TARGETS += clean-module-xnu.mod-symbol.1
2101 DEFSYMFILES += def-xnu.lst
2102 mostlyclean-module-xnu.mod.1:
2103 rm -f xnu_mod-loader_xnu_resume.d xnu_mod-loader_i386_xnu.d xnu_mod-loader_i386_efi_xnu.d xnu_mod-loader_macho32.d xnu_mod-loader_macho64.d xnu_mod-loader_macho.d xnu_mod-loader_xnu.d
2105 MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-xnu.mod.1
2106 UNDSYMFILES += und-xnu.lst
2108 ifneq ($(TARGET_APPLE_CC),1)
2109 xnu.mod: pre-xnu.o mod-xnu.o $(TARGET_OBJ2ELF)
2110 -rm -f $@
2111 $(TARGET_CC) $(xnu_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-xnu.o mod-xnu.o
2112 if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2113 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2114 else
2115 xnu.mod: pre-xnu.o mod-xnu.o $(TARGET_OBJ2ELF)
2116 -rm -f $@
2117 -rm -f $@.bin
2118 $(TARGET_CC) $(xnu_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-xnu.o mod-xnu.o
2119 $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@
2120 -rm -f $@.bin
2121 endif
2123 pre-xnu.o: $(xnu_mod_DEPENDENCIES) xnu_mod-loader_xnu_resume.o xnu_mod-loader_i386_xnu.o xnu_mod-loader_i386_efi_xnu.o xnu_mod-loader_macho32.o xnu_mod-loader_macho64.o xnu_mod-loader_macho.o xnu_mod-loader_xnu.o
2124 -rm -f $@
2125 $(TARGET_CC) $(xnu_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ xnu_mod-loader_xnu_resume.o xnu_mod-loader_i386_xnu.o xnu_mod-loader_i386_efi_xnu.o xnu_mod-loader_macho32.o xnu_mod-loader_macho64.o xnu_mod-loader_macho.o xnu_mod-loader_xnu.o
2127 mod-xnu.o: mod-xnu.c
2128 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -c -o $@ $<
2130 mod-xnu.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2131 sh $(srcdir)/genmodsrc.sh 'xnu' $< > $@ || (rm -f $@; exit 1)
2133 ifneq ($(TARGET_APPLE_CC),1)
2134 def-xnu.lst: pre-xnu.o
2135 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 xnu/' > $@
2136 else
2137 def-xnu.lst: pre-xnu.o
2138 $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 xnu/' > $@
2139 endif
2141 und-xnu.lst: pre-xnu.o
2142 echo 'xnu' > $@
2143 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2145 xnu_mod-loader_xnu_resume.o: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES)
2146 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2147 -include xnu_mod-loader_xnu_resume.d
2149 clean-module-xnu_mod-loader_xnu_resume-extra.1:
2150 rm -f cmd-xnu_mod-loader_xnu_resume.lst fs-xnu_mod-loader_xnu_resume.lst partmap-xnu_mod-loader_xnu_resume.lst handler-xnu_mod-loader_xnu_resume.lst parttool-xnu_mod-loader_xnu_resume.lst video-xnu_mod-loader_xnu_resume.lst terminal-xnu_mod-loader_xnu_resume.lst
2152 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_xnu_resume-extra.1
2154 COMMANDFILES += cmd-xnu_mod-loader_xnu_resume.lst
2155 FSFILES += fs-xnu_mod-loader_xnu_resume.lst
2156 PARTTOOLFILES += parttool-xnu_mod-loader_xnu_resume.lst
2157 PARTMAPFILES += partmap-xnu_mod-loader_xnu_resume.lst
2158 HANDLERFILES += handler-xnu_mod-loader_xnu_resume.lst
2159 TERMINALFILES += terminal-xnu_mod-loader_xnu_resume.lst
2160 VIDEOFILES += video-xnu_mod-loader_xnu_resume.lst
2162 cmd-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) gencmdlist.sh
2163 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2165 fs-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genfslist.sh
2166 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2168 parttool-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genparttoollist.sh
2169 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2171 partmap-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genpartmaplist.sh
2172 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2174 handler-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genhandlerlist.sh
2175 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2177 terminal-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genterminallist.sh
2178 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2180 video-xnu_mod-loader_xnu_resume.lst: loader/xnu_resume.c $(loader/xnu_resume.c_DEPENDENCIES) genvideolist.sh
2181 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2183 xnu_mod-loader_i386_xnu.o: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES)
2184 $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2185 -include xnu_mod-loader_i386_xnu.d
2187 clean-module-xnu_mod-loader_i386_xnu-extra.1:
2188 rm -f cmd-xnu_mod-loader_i386_xnu.lst fs-xnu_mod-loader_i386_xnu.lst partmap-xnu_mod-loader_i386_xnu.lst handler-xnu_mod-loader_i386_xnu.lst parttool-xnu_mod-loader_i386_xnu.lst video-xnu_mod-loader_i386_xnu.lst terminal-xnu_mod-loader_i386_xnu.lst
2190 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_i386_xnu-extra.1
2192 COMMANDFILES += cmd-xnu_mod-loader_i386_xnu.lst
2193 FSFILES += fs-xnu_mod-loader_i386_xnu.lst
2194 PARTTOOLFILES += parttool-xnu_mod-loader_i386_xnu.lst
2195 PARTMAPFILES += partmap-xnu_mod-loader_i386_xnu.lst
2196 HANDLERFILES += handler-xnu_mod-loader_i386_xnu.lst
2197 TERMINALFILES += terminal-xnu_mod-loader_i386_xnu.lst
2198 VIDEOFILES += video-xnu_mod-loader_i386_xnu.lst
2200 cmd-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) gencmdlist.sh
2201 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2203 fs-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genfslist.sh
2204 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2206 parttool-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genparttoollist.sh
2207 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2209 partmap-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genpartmaplist.sh
2210 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2212 handler-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genhandlerlist.sh
2213 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2215 terminal-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genterminallist.sh
2216 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2218 video-xnu_mod-loader_i386_xnu.lst: loader/i386/xnu.c $(loader/i386/xnu.c_DEPENDENCIES) genvideolist.sh
2219 set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2221 xnu_mod-loader_i386_efi_xnu.o: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES)
2222 $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2223 -include xnu_mod-loader_i386_efi_xnu.d
2225 clean-module-xnu_mod-loader_i386_efi_xnu-extra.1:
2226 rm -f cmd-xnu_mod-loader_i386_efi_xnu.lst fs-xnu_mod-loader_i386_efi_xnu.lst partmap-xnu_mod-loader_i386_efi_xnu.lst handler-xnu_mod-loader_i386_efi_xnu.lst parttool-xnu_mod-loader_i386_efi_xnu.lst video-xnu_mod-loader_i386_efi_xnu.lst terminal-xnu_mod-loader_i386_efi_xnu.lst
2228 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_i386_efi_xnu-extra.1
2230 COMMANDFILES += cmd-xnu_mod-loader_i386_efi_xnu.lst
2231 FSFILES += fs-xnu_mod-loader_i386_efi_xnu.lst
2232 PARTTOOLFILES += parttool-xnu_mod-loader_i386_efi_xnu.lst
2233 PARTMAPFILES += partmap-xnu_mod-loader_i386_efi_xnu.lst
2234 HANDLERFILES += handler-xnu_mod-loader_i386_efi_xnu.lst
2235 TERMINALFILES += terminal-xnu_mod-loader_i386_efi_xnu.lst
2236 VIDEOFILES += video-xnu_mod-loader_i386_efi_xnu.lst
2238 cmd-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) gencmdlist.sh
2239 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2241 fs-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genfslist.sh
2242 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2244 parttool-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genparttoollist.sh
2245 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2247 partmap-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genpartmaplist.sh
2248 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2250 handler-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genhandlerlist.sh
2251 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2253 terminal-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genterminallist.sh
2254 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2256 video-xnu_mod-loader_i386_efi_xnu.lst: loader/i386/efi/xnu.c $(loader/i386/efi/xnu.c_DEPENDENCIES) genvideolist.sh
2257 set -e; $(TARGET_CC) -Iloader/i386/efi -I$(srcdir)/loader/i386/efi $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2259 xnu_mod-loader_macho32.o: loader/macho32.c $(loader/macho32.c_DEPENDENCIES)
2260 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2261 -include xnu_mod-loader_macho32.d
2263 clean-module-xnu_mod-loader_macho32-extra.1:
2264 rm -f cmd-xnu_mod-loader_macho32.lst fs-xnu_mod-loader_macho32.lst partmap-xnu_mod-loader_macho32.lst handler-xnu_mod-loader_macho32.lst parttool-xnu_mod-loader_macho32.lst video-xnu_mod-loader_macho32.lst terminal-xnu_mod-loader_macho32.lst
2266 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_macho32-extra.1
2268 COMMANDFILES += cmd-xnu_mod-loader_macho32.lst
2269 FSFILES += fs-xnu_mod-loader_macho32.lst
2270 PARTTOOLFILES += parttool-xnu_mod-loader_macho32.lst
2271 PARTMAPFILES += partmap-xnu_mod-loader_macho32.lst
2272 HANDLERFILES += handler-xnu_mod-loader_macho32.lst
2273 TERMINALFILES += terminal-xnu_mod-loader_macho32.lst
2274 VIDEOFILES += video-xnu_mod-loader_macho32.lst
2276 cmd-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) gencmdlist.sh
2277 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2279 fs-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genfslist.sh
2280 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2282 parttool-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genparttoollist.sh
2283 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2285 partmap-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genpartmaplist.sh
2286 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2288 handler-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genhandlerlist.sh
2289 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2291 terminal-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genterminallist.sh
2292 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2294 video-xnu_mod-loader_macho32.lst: loader/macho32.c $(loader/macho32.c_DEPENDENCIES) genvideolist.sh
2295 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2297 xnu_mod-loader_macho64.o: loader/macho64.c $(loader/macho64.c_DEPENDENCIES)
2298 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2299 -include xnu_mod-loader_macho64.d
2301 clean-module-xnu_mod-loader_macho64-extra.1:
2302 rm -f cmd-xnu_mod-loader_macho64.lst fs-xnu_mod-loader_macho64.lst partmap-xnu_mod-loader_macho64.lst handler-xnu_mod-loader_macho64.lst parttool-xnu_mod-loader_macho64.lst video-xnu_mod-loader_macho64.lst terminal-xnu_mod-loader_macho64.lst
2304 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_macho64-extra.1
2306 COMMANDFILES += cmd-xnu_mod-loader_macho64.lst
2307 FSFILES += fs-xnu_mod-loader_macho64.lst
2308 PARTTOOLFILES += parttool-xnu_mod-loader_macho64.lst
2309 PARTMAPFILES += partmap-xnu_mod-loader_macho64.lst
2310 HANDLERFILES += handler-xnu_mod-loader_macho64.lst
2311 TERMINALFILES += terminal-xnu_mod-loader_macho64.lst
2312 VIDEOFILES += video-xnu_mod-loader_macho64.lst
2314 cmd-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) gencmdlist.sh
2315 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2317 fs-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genfslist.sh
2318 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2320 parttool-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genparttoollist.sh
2321 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2323 partmap-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genpartmaplist.sh
2324 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2326 handler-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genhandlerlist.sh
2327 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2329 terminal-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genterminallist.sh
2330 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2332 video-xnu_mod-loader_macho64.lst: loader/macho64.c $(loader/macho64.c_DEPENDENCIES) genvideolist.sh
2333 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2335 xnu_mod-loader_macho.o: loader/macho.c $(loader/macho.c_DEPENDENCIES)
2336 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2337 -include xnu_mod-loader_macho.d
2339 clean-module-xnu_mod-loader_macho-extra.1:
2340 rm -f cmd-xnu_mod-loader_macho.lst fs-xnu_mod-loader_macho.lst partmap-xnu_mod-loader_macho.lst handler-xnu_mod-loader_macho.lst parttool-xnu_mod-loader_macho.lst video-xnu_mod-loader_macho.lst terminal-xnu_mod-loader_macho.lst
2342 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_macho-extra.1
2344 COMMANDFILES += cmd-xnu_mod-loader_macho.lst
2345 FSFILES += fs-xnu_mod-loader_macho.lst
2346 PARTTOOLFILES += parttool-xnu_mod-loader_macho.lst
2347 PARTMAPFILES += partmap-xnu_mod-loader_macho.lst
2348 HANDLERFILES += handler-xnu_mod-loader_macho.lst
2349 TERMINALFILES += terminal-xnu_mod-loader_macho.lst
2350 VIDEOFILES += video-xnu_mod-loader_macho.lst
2352 cmd-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) gencmdlist.sh
2353 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2355 fs-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genfslist.sh
2356 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2358 parttool-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genparttoollist.sh
2359 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2361 partmap-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genpartmaplist.sh
2362 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2364 handler-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genhandlerlist.sh
2365 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2367 terminal-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genterminallist.sh
2368 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2370 video-xnu_mod-loader_macho.lst: loader/macho.c $(loader/macho.c_DEPENDENCIES) genvideolist.sh
2371 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2373 xnu_mod-loader_xnu.o: loader/xnu.c $(loader/xnu.c_DEPENDENCIES)
2374 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -MD -c -o $@ $<
2375 -include xnu_mod-loader_xnu.d
2377 clean-module-xnu_mod-loader_xnu-extra.1:
2378 rm -f cmd-xnu_mod-loader_xnu.lst fs-xnu_mod-loader_xnu.lst partmap-xnu_mod-loader_xnu.lst handler-xnu_mod-loader_xnu.lst parttool-xnu_mod-loader_xnu.lst video-xnu_mod-loader_xnu.lst terminal-xnu_mod-loader_xnu.lst
2380 CLEAN_MODULE_TARGETS += clean-module-xnu_mod-loader_xnu-extra.1
2382 COMMANDFILES += cmd-xnu_mod-loader_xnu.lst
2383 FSFILES += fs-xnu_mod-loader_xnu.lst
2384 PARTTOOLFILES += parttool-xnu_mod-loader_xnu.lst
2385 PARTMAPFILES += partmap-xnu_mod-loader_xnu.lst
2386 HANDLERFILES += handler-xnu_mod-loader_xnu.lst
2387 TERMINALFILES += terminal-xnu_mod-loader_xnu.lst
2388 VIDEOFILES += video-xnu_mod-loader_xnu.lst
2390 cmd-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) gencmdlist.sh
2391 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu > $@ || (rm -f $@; exit 1)
2393 fs-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genfslist.sh
2394 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu > $@ || (rm -f $@; exit 1)
2396 parttool-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genparttoollist.sh
2397 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu > $@ || (rm -f $@; exit 1)
2399 partmap-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genpartmaplist.sh
2400 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu > $@ || (rm -f $@; exit 1)
2402 handler-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genhandlerlist.sh
2403 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu > $@ || (rm -f $@; exit 1)
2405 terminal-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genterminallist.sh
2406 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genterminallist.sh xnu > $@ || (rm -f $@; exit 1)
2408 video-xnu_mod-loader_xnu.lst: loader/xnu.c $(loader/xnu.c_DEPENDENCIES) genvideolist.sh
2409 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_mod_CFLAGS) -E $< | sh $(srcdir)/genvideolist.sh xnu > $@ || (rm -f $@; exit 1)
2411 xnu_mod_CFLAGS = $(COMMON_CFLAGS)
2412 xnu_mod_LDFLAGS = $(COMMON_LDFLAGS)
2413 xnu_mod_ASFLAGS = $(COMMON_ASFLAGS)
2415 include $(srcdir)/conf/i386.mk
2416 include $(srcdir)/conf/common.mk
2417 grub-mkimage: $(grub_mkimage_DEPENDENCIES) $(grub_mkimage_OBJECTS)
2418 $(CC) -o $@ $(grub_mkimage_OBJECTS) $(LDFLAGS) $(grub_mkimage_LDFLAGS)