2 # Generated by genmk.rb, please don't edit!
4 COMMON_ASFLAGS
= -nostdinc
-fno-builtin
-m32
5 COMMON_CFLAGS
= -fno-builtin
-mrtd
-mregparm
=3 -m32
6 COMMON_LDFLAGS
= -m32
-nostdlib
8 # Used by various components. These rules need to precede them.
9 script
/lexer.c_DEPENDENCIES
= grub_script.tab.h
13 GRUB_KERNEL_MACHINE_LINK_ADDR
= 0x8200
15 ifeq ($(platform
), coreboot
)
17 pkglib_PROGRAMS
+= kernel.img
18 kernel_img_SOURCES
= kern
/i386
/coreboot
/startup.S \
20 kern
/i386
/coreboot
/init.c \
21 kern
/i386
/multiboot_mmap.c \
23 kern
/main.c kern
/device.c \
24 kern
/disk.c kern
/dl.c kern
/file.c kern
/fs.c kern
/err.c \
25 kern
/misc.c kern
/mm.c kern
/term.c \
26 kern
/rescue_parser.c kern
/rescue_reader.c \
27 kern
/time.c kern
/list.c kern
/handler.c kern
/command.c kern
/corecmd.c \
28 kern
/$(target_cpu
)/dl.c kern
/parser.c kern
/partition.c \
29 kern
/i386
/tsc.c kern
/i386
/pit.c \
30 kern
/generic
/rtc_get_time_ms.c \
31 kern
/generic
/millisleep.c \
33 term
/i386
/pc/vga_text.c term
/i386
/vga_common.c \
35 CLEANFILES
+= kernel.img kernel_img-kern_i386_coreboot_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_multiboot_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
36 MOSTLYCLEANFILES
+= kernel_img-kern_i386_coreboot_startup.d kernel_img-kern_i386_misc.d kernel_img-kern_i386_coreboot_init.d kernel_img-kern_i386_multiboot_mmap.d kernel_img-kern_i386_halt.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_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___target_cpu__dl.d kernel_img-kern_parser.d kernel_img-kern_partition.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 kernel_img-kern_env.d kernel_img-term_i386_pc_vga_text.d kernel_img-term_i386_vga_common.d kernel_img-symlist.d
38 ifeq ($(kernel_img_RELOCATABLE
),yes
)
39 kernel.img
: $(kernel_img_DEPENDENCIES
) kernel_img-kern_i386_coreboot_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_multiboot_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
40 $(TARGET_CC
) -Wl
,-r
,-d
-o
$@ kernel_img-kern_i386_coreboot_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_multiboot_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
$(TARGET_LDFLAGS
) $(kernel_img_LDFLAGS
)
41 $(STRIP
) --strip-unneeded
-K start
-R .note
-R .comment
$@
43 kernel.img
: $(kernel_img_DEPENDENCIES
) kernel_img-kern_i386_coreboot_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_multiboot_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
44 $(TARGET_CC
) -o
$@ kernel_img-kern_i386_coreboot_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_multiboot_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
$(TARGET_LDFLAGS
) $(kernel_img_LDFLAGS
)
45 $(STRIP
) -R .rel.dyn
-R .reginfo
-R .note
-R .comment
$@
48 kernel_img-kern_i386_coreboot_startup.o
: kern
/i386
/coreboot
/startup.S
$(kern
/i386
/coreboot
/startup.S_DEPENDENCIES
)
49 $(TARGET_CC
) -Ikern
/i386
/coreboot
-I
$(srcdir)/kern
/i386
/coreboot
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(kernel_img_ASFLAGS
) -MD
-c
-o
$@
$<
51 -include kernel_img-kern_i386_coreboot_startup.d
53 kernel_img-kern_i386_misc.o
: kern
/i386
/misc.S
$(kern
/i386
/misc.S_DEPENDENCIES
)
54 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(kernel_img_ASFLAGS
) -MD
-c
-o
$@
$<
56 -include kernel_img-kern_i386_misc.d
58 kernel_img-kern_i386_coreboot_init.o
: kern
/i386
/coreboot
/init.c
$(kern
/i386
/coreboot
/init.c_DEPENDENCIES
)
59 $(TARGET_CC
) -Ikern
/i386
/coreboot
-I
$(srcdir)/kern
/i386
/coreboot
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
61 -include kernel_img-kern_i386_coreboot_init.d
63 kernel_img-kern_i386_multiboot_mmap.o
: kern
/i386
/multiboot_mmap.c
$(kern
/i386
/multiboot_mmap.c_DEPENDENCIES
)
64 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
66 -include kernel_img-kern_i386_multiboot_mmap.d
68 kernel_img-kern_i386_halt.o
: kern
/i386
/halt.c
$(kern
/i386
/halt.c_DEPENDENCIES
)
69 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
71 -include kernel_img-kern_i386_halt.d
73 kernel_img-kern_main.o
: kern
/main.c
$(kern
/main.c_DEPENDENCIES
)
74 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
76 -include kernel_img-kern_main.d
78 kernel_img-kern_device.o
: kern
/device.c
$(kern
/device.c_DEPENDENCIES
)
79 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
81 -include kernel_img-kern_device.d
83 kernel_img-kern_disk.o
: kern
/disk.c
$(kern
/disk.c_DEPENDENCIES
)
84 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
86 -include kernel_img-kern_disk.d
88 kernel_img-kern_dl.o
: kern
/dl.c
$(kern
/dl.c_DEPENDENCIES
)
89 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
91 -include kernel_img-kern_dl.d
93 kernel_img-kern_file.o
: kern
/file.c
$(kern
/file.c_DEPENDENCIES
)
94 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
96 -include kernel_img-kern_file.d
98 kernel_img-kern_fs.o
: kern
/fs.c
$(kern
/fs.c_DEPENDENCIES
)
99 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
101 -include kernel_img-kern_fs.d
103 kernel_img-kern_err.o
: kern
/err.c
$(kern
/err.c_DEPENDENCIES
)
104 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
106 -include kernel_img-kern_err.d
108 kernel_img-kern_misc.o
: kern
/misc.c
$(kern
/misc.c_DEPENDENCIES
)
109 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
111 -include kernel_img-kern_misc.d
113 kernel_img-kern_mm.o
: kern
/mm.c
$(kern
/mm.c_DEPENDENCIES
)
114 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
116 -include kernel_img-kern_mm.d
118 kernel_img-kern_term.o
: kern
/term.c
$(kern
/term.c_DEPENDENCIES
)
119 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
121 -include kernel_img-kern_term.d
123 kernel_img-kern_rescue_parser.o
: kern
/rescue_parser.c
$(kern
/rescue_parser.c_DEPENDENCIES
)
124 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
126 -include kernel_img-kern_rescue_parser.d
128 kernel_img-kern_rescue_reader.o
: kern
/rescue_reader.c
$(kern
/rescue_reader.c_DEPENDENCIES
)
129 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
131 -include kernel_img-kern_rescue_reader.d
133 kernel_img-kern_time.o
: kern
/time.c
$(kern
/time.c_DEPENDENCIES
)
134 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
136 -include kernel_img-kern_time.d
138 kernel_img-kern_list.o
: kern
/list.c
$(kern
/list.c_DEPENDENCIES
)
139 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
141 -include kernel_img-kern_list.d
143 kernel_img-kern_handler.o
: kern
/handler.c
$(kern
/handler.c_DEPENDENCIES
)
144 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
146 -include kernel_img-kern_handler.d
148 kernel_img-kern_command.o
: kern
/command.c
$(kern
/command.c_DEPENDENCIES
)
149 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
151 -include kernel_img-kern_command.d
153 kernel_img-kern_corecmd.o
: kern
/corecmd.c
$(kern
/corecmd.c_DEPENDENCIES
)
154 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
156 -include kernel_img-kern_corecmd.d
158 kernel_img-kern___target_cpu__dl.o
: kern
/$(target_cpu
)/dl.c
$(kern
/$(target_cpu
)/dl.c_DEPENDENCIES
)
159 $(TARGET_CC
) -Ikern
/$(target_cpu
) -I
$(srcdir)/kern
/$(target_cpu
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
161 -include kernel_img-kern___target_cpu__dl.d
163 kernel_img-kern_parser.o
: kern
/parser.c
$(kern
/parser.c_DEPENDENCIES
)
164 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
166 -include kernel_img-kern_parser.d
168 kernel_img-kern_partition.o
: kern
/partition.c
$(kern
/partition.c_DEPENDENCIES
)
169 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
171 -include kernel_img-kern_partition.d
173 kernel_img-kern_i386_tsc.o
: kern
/i386
/tsc.c
$(kern
/i386
/tsc.c_DEPENDENCIES
)
174 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
176 -include kernel_img-kern_i386_tsc.d
178 kernel_img-kern_i386_pit.o
: kern
/i386
/pit.c
$(kern
/i386
/pit.c_DEPENDENCIES
)
179 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
181 -include kernel_img-kern_i386_pit.d
183 kernel_img-kern_generic_rtc_get_time_ms.o
: kern
/generic
/rtc_get_time_ms.c
$(kern
/generic
/rtc_get_time_ms.c_DEPENDENCIES
)
184 $(TARGET_CC
) -Ikern
/generic
-I
$(srcdir)/kern
/generic
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
186 -include kernel_img-kern_generic_rtc_get_time_ms.d
188 kernel_img-kern_generic_millisleep.o
: kern
/generic
/millisleep.c
$(kern
/generic
/millisleep.c_DEPENDENCIES
)
189 $(TARGET_CC
) -Ikern
/generic
-I
$(srcdir)/kern
/generic
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
191 -include kernel_img-kern_generic_millisleep.d
193 kernel_img-kern_env.o
: kern
/env.c
$(kern
/env.c_DEPENDENCIES
)
194 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
196 -include kernel_img-kern_env.d
198 kernel_img-term_i386_pc_vga_text.o
: term
/i386
/pc/vga_text.c
$(term
/i386
/pc/vga_text.c_DEPENDENCIES
)
199 $(TARGET_CC
) -Iterm
/i386
/pc -I
$(srcdir)/term
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
201 -include kernel_img-term_i386_pc_vga_text.d
203 kernel_img-term_i386_vga_common.o
: term
/i386
/vga_common.c
$(term
/i386
/vga_common.c_DEPENDENCIES
)
204 $(TARGET_CC
) -Iterm
/i386
-I
$(srcdir)/term
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
206 -include kernel_img-term_i386_vga_common.d
208 kernel_img-symlist.o
: symlist.c
$(symlist.c_DEPENDENCIES
)
209 $(TARGET_CC
) -I.
-I
$(srcdir)/.
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
211 -include kernel_img-symlist.d
213 kernel_img_HEADERS
= boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
214 env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
215 partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \
216 machine
/boot.h machine
/console.h machine
/init.h \
217 machine
/memory.h machine
/loader.h list.h handler.h command.h i18n.h \
219 kernel_img_CFLAGS
= $(COMMON_CFLAGS
)
220 kernel_img_ASFLAGS
= $(COMMON_ASFLAGS
)
221 kernel_img_LDFLAGS
= $(COMMON_LDFLAGS
) -Wl
,-N
,-S
,-Ttext
,$(GRUB_KERNEL_MACHINE_LINK_ADDR
),-Bstatic
225 ifeq ($(platform
), qemu
)
227 GRUB_BOOT_MACHINE_LINK_ADDR
= 0xffe00
229 pkglib_IMAGES
+= boot.img
230 boot_img_SOURCES
= boot
/i386
/qemu
/boot.S
232 clean-image-boot.img
.1:
233 rm -f boot.img boot.exec boot_img-boot_i386_qemu_boot.o
235 CLEAN_IMAGE_TARGETS
+= clean-image-boot.img
.1
237 mostlyclean-image-boot.img
.1:
238 rm -f boot_img-boot_i386_qemu_boot.d
240 MOSTLYCLEAN_IMAGE_TARGETS
+= mostlyclean-image-boot.img
.1
242 ifneq ($(TARGET_APPLE_CC
),1)
244 $(OBJCOPY
) -O
$(boot_img_FORMAT
) --strip-unneeded
-R .note
-R .comment
-R .note.gnu.build-id
-R .reginfo
-R .rel.dyn
$< $@
246 ifneq (boot.exec
,kernel.exec
)
247 boot.img
: boot.exec .
/grub-macho2img
248 .
/grub-macho2img
$< $@
250 boot.img
: boot.exec .
/grub-macho2img
251 .
/grub-macho2img
--bss
$< $@
255 boot.exec
: boot_img-boot_i386_qemu_boot.o
256 $(TARGET_CC
) -o
$@
$^
$(TARGET_LDFLAGS
) $(boot_img_LDFLAGS
)
258 boot_img-boot_i386_qemu_boot.o
: boot
/i386
/qemu
/boot.S
$(boot
/i386
/qemu
/boot.S_DEPENDENCIES
)
259 $(TARGET_CC
) -Iboot
/i386
/qemu
-I
$(srcdir)/boot
/i386
/qemu
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(boot_img_ASFLAGS
) -MD
-c
-o
$@
$<
260 -include boot_img-boot_i386_qemu_boot.d
262 boot_img_ASFLAGS
= $(COMMON_ASFLAGS
) -DGRUB_BOOT_MACHINE_LINK_ADDR
=$(GRUB_BOOT_MACHINE_LINK_ADDR
)
263 boot_img_LDFLAGS
= $(COMMON_LDFLAGS
) $(TARGET_IMG_LDFLAGS
)$(GRUB_BOOT_MACHINE_LINK_ADDR
)
264 boot_img_FORMAT
= binary
266 bin_UTILITIES
+= grub-mkimage
267 grub_mkimage_SOURCES
= util
/grub-mkrawimage.c util
/misc.c \
268 util
/resolve.c gnulib
/progname.c
270 clean-utility-grub-mkimage
.1:
271 rm -f grub-mkimage
$(EXEEXT
) grub_mkimage-util_grub_mkrawimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o grub_mkimage-gnulib_progname.o
273 CLEAN_UTILITY_TARGETS
+= clean-utility-grub-mkimage
.1
275 mostlyclean-utility-grub-mkimage
.1:
276 rm -f grub_mkimage-util_grub_mkrawimage.d grub_mkimage-util_misc.d grub_mkimage-util_resolve.d grub_mkimage-gnulib_progname.d
278 MOSTLYCLEAN_UTILITY_TARGETS
+= mostlyclean-utility-grub-mkimage
.1
280 grub_mkimage_OBJECTS
+= grub_mkimage-util_grub_mkrawimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o grub_mkimage-gnulib_progname.o
282 grub_mkimage-util_grub_mkrawimage.o
: util
/grub-mkrawimage.c
$(util
/grub-mkrawimage.c_DEPENDENCIES
)
283 $(CC
) -Iutil
-I
$(srcdir)/util
$(CPPFLAGS
) $(CFLAGS
) -DGRUB_UTIL
=1 $(grub_mkimage_CFLAGS
) -MD
-c
-o
$@
$<
284 -include grub_mkimage-util_grub_mkrawimage.d
286 grub_mkimage-util_misc.o
: util
/misc.c
$(util
/misc.c_DEPENDENCIES
)
287 $(CC
) -Iutil
-I
$(srcdir)/util
$(CPPFLAGS
) $(CFLAGS
) -DGRUB_UTIL
=1 $(grub_mkimage_CFLAGS
) -MD
-c
-o
$@
$<
288 -include grub_mkimage-util_misc.d
290 grub_mkimage-util_resolve.o
: util
/resolve.c
$(util
/resolve.c_DEPENDENCIES
)
291 $(CC
) -Iutil
-I
$(srcdir)/util
$(CPPFLAGS
) $(CFLAGS
) -DGRUB_UTIL
=1 $(grub_mkimage_CFLAGS
) -MD
-c
-o
$@
$<
292 -include grub_mkimage-util_resolve.d
294 grub_mkimage-gnulib_progname.o
: gnulib
/progname.c
$(gnulib
/progname.c_DEPENDENCIES
)
295 $(CC
) -Ignulib
-I
$(srcdir)/gnulib
$(CPPFLAGS
) $(CFLAGS
) -DGRUB_UTIL
=1 $(grub_mkimage_CFLAGS
) -MD
-c
-o
$@
$<
296 -include grub_mkimage-gnulib_progname.d
298 grub_mkimage_CFLAGS
= -DGRUB_KERNEL_MACHINE_LINK_ADDR
=$(GRUB_KERNEL_MACHINE_LINK_ADDR
)
299 util
/grub-mkrawimage.c_DEPENDENCIES
= Makefile
302 pkglib_IMAGES
+= kernel.img
303 kernel_img_SOURCES
= kern
/i386
/qemu
/startup.S \
305 kern
/i386
/coreboot
/init.c \
306 kern
/i386
/qemu
/mmap.c \
308 kern
/main.c kern
/device.c \
309 kern
/disk.c kern
/dl.c kern
/file.c kern
/fs.c kern
/err.c \
310 kern
/misc.c kern
/mm.c kern
/term.c \
311 kern
/rescue_parser.c kern
/rescue_reader.c \
312 kern
/time.c kern
/list.c kern
/handler.c kern
/command.c kern
/corecmd.c \
313 kern
/$(target_cpu
)/dl.c kern
/parser.c kern
/partition.c \
314 kern
/i386
/tsc.c kern
/i386
/pit.c \
315 kern
/generic
/rtc_get_time_ms.c \
316 kern
/generic
/millisleep.c \
318 term
/i386
/pc/vga_text.c term
/i386
/vga_common.c \
321 clean-image-kernel.img
.1:
322 rm -f kernel.img kernel.exec kernel_img-kern_i386_qemu_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_qemu_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
324 CLEAN_IMAGE_TARGETS
+= clean-image-kernel.img
.1
326 mostlyclean-image-kernel.img
.1:
327 rm -f kernel_img-kern_i386_qemu_startup.d kernel_img-kern_i386_misc.d kernel_img-kern_i386_coreboot_init.d kernel_img-kern_i386_qemu_mmap.d kernel_img-kern_i386_halt.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_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___target_cpu__dl.d kernel_img-kern_parser.d kernel_img-kern_partition.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 kernel_img-kern_env.d kernel_img-term_i386_pc_vga_text.d kernel_img-term_i386_vga_common.d kernel_img-symlist.d
329 MOSTLYCLEAN_IMAGE_TARGETS
+= mostlyclean-image-kernel.img
.1
331 ifneq ($(TARGET_APPLE_CC
),1)
332 kernel.img
: kernel.exec
333 $(OBJCOPY
) -O
$(kernel_img_FORMAT
) --strip-unneeded
-R .note
-R .comment
-R .note.gnu.build-id
-R .reginfo
-R .rel.dyn
$< $@
335 ifneq (kernel.exec
,kernel.exec
)
336 kernel.img
: kernel.exec .
/grub-macho2img
337 .
/grub-macho2img
$< $@
339 kernel.img
: kernel.exec .
/grub-macho2img
340 .
/grub-macho2img
--bss
$< $@
344 kernel.exec
: kernel_img-kern_i386_qemu_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_coreboot_init.o kernel_img-kern_i386_qemu_mmap.o kernel_img-kern_i386_halt.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_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___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.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 kernel_img-kern_env.o kernel_img-term_i386_pc_vga_text.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o
345 $(TARGET_CC
) -o
$@
$^
$(TARGET_LDFLAGS
) $(kernel_img_LDFLAGS
)
347 kernel_img-kern_i386_qemu_startup.o
: kern
/i386
/qemu
/startup.S
$(kern
/i386
/qemu
/startup.S_DEPENDENCIES
)
348 $(TARGET_CC
) -Ikern
/i386
/qemu
-I
$(srcdir)/kern
/i386
/qemu
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(kernel_img_ASFLAGS
) -MD
-c
-o
$@
$<
349 -include kernel_img-kern_i386_qemu_startup.d
351 kernel_img-kern_i386_misc.o
: kern
/i386
/misc.S
$(kern
/i386
/misc.S_DEPENDENCIES
)
352 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(kernel_img_ASFLAGS
) -MD
-c
-o
$@
$<
353 -include kernel_img-kern_i386_misc.d
355 kernel_img-kern_i386_coreboot_init.o
: kern
/i386
/coreboot
/init.c
$(kern
/i386
/coreboot
/init.c_DEPENDENCIES
)
356 $(TARGET_CC
) -Ikern
/i386
/coreboot
-I
$(srcdir)/kern
/i386
/coreboot
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
357 -include kernel_img-kern_i386_coreboot_init.d
359 kernel_img-kern_i386_qemu_mmap.o
: kern
/i386
/qemu
/mmap.c
$(kern
/i386
/qemu
/mmap.c_DEPENDENCIES
)
360 $(TARGET_CC
) -Ikern
/i386
/qemu
-I
$(srcdir)/kern
/i386
/qemu
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
361 -include kernel_img-kern_i386_qemu_mmap.d
363 kernel_img-kern_i386_halt.o
: kern
/i386
/halt.c
$(kern
/i386
/halt.c_DEPENDENCIES
)
364 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
365 -include kernel_img-kern_i386_halt.d
367 kernel_img-kern_main.o
: kern
/main.c
$(kern
/main.c_DEPENDENCIES
)
368 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
369 -include kernel_img-kern_main.d
371 kernel_img-kern_device.o
: kern
/device.c
$(kern
/device.c_DEPENDENCIES
)
372 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
373 -include kernel_img-kern_device.d
375 kernel_img-kern_disk.o
: kern
/disk.c
$(kern
/disk.c_DEPENDENCIES
)
376 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
377 -include kernel_img-kern_disk.d
379 kernel_img-kern_dl.o
: kern
/dl.c
$(kern
/dl.c_DEPENDENCIES
)
380 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
381 -include kernel_img-kern_dl.d
383 kernel_img-kern_file.o
: kern
/file.c
$(kern
/file.c_DEPENDENCIES
)
384 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
385 -include kernel_img-kern_file.d
387 kernel_img-kern_fs.o
: kern
/fs.c
$(kern
/fs.c_DEPENDENCIES
)
388 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
389 -include kernel_img-kern_fs.d
391 kernel_img-kern_err.o
: kern
/err.c
$(kern
/err.c_DEPENDENCIES
)
392 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
393 -include kernel_img-kern_err.d
395 kernel_img-kern_misc.o
: kern
/misc.c
$(kern
/misc.c_DEPENDENCIES
)
396 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
397 -include kernel_img-kern_misc.d
399 kernel_img-kern_mm.o
: kern
/mm.c
$(kern
/mm.c_DEPENDENCIES
)
400 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
401 -include kernel_img-kern_mm.d
403 kernel_img-kern_term.o
: kern
/term.c
$(kern
/term.c_DEPENDENCIES
)
404 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
405 -include kernel_img-kern_term.d
407 kernel_img-kern_rescue_parser.o
: kern
/rescue_parser.c
$(kern
/rescue_parser.c_DEPENDENCIES
)
408 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
409 -include kernel_img-kern_rescue_parser.d
411 kernel_img-kern_rescue_reader.o
: kern
/rescue_reader.c
$(kern
/rescue_reader.c_DEPENDENCIES
)
412 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
413 -include kernel_img-kern_rescue_reader.d
415 kernel_img-kern_time.o
: kern
/time.c
$(kern
/time.c_DEPENDENCIES
)
416 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
417 -include kernel_img-kern_time.d
419 kernel_img-kern_list.o
: kern
/list.c
$(kern
/list.c_DEPENDENCIES
)
420 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
421 -include kernel_img-kern_list.d
423 kernel_img-kern_handler.o
: kern
/handler.c
$(kern
/handler.c_DEPENDENCIES
)
424 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
425 -include kernel_img-kern_handler.d
427 kernel_img-kern_command.o
: kern
/command.c
$(kern
/command.c_DEPENDENCIES
)
428 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
429 -include kernel_img-kern_command.d
431 kernel_img-kern_corecmd.o
: kern
/corecmd.c
$(kern
/corecmd.c_DEPENDENCIES
)
432 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
433 -include kernel_img-kern_corecmd.d
435 kernel_img-kern___target_cpu__dl.o
: kern
/$(target_cpu
)/dl.c
$(kern
/$(target_cpu
)/dl.c_DEPENDENCIES
)
436 $(TARGET_CC
) -Ikern
/$(target_cpu
) -I
$(srcdir)/kern
/$(target_cpu
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
437 -include kernel_img-kern___target_cpu__dl.d
439 kernel_img-kern_parser.o
: kern
/parser.c
$(kern
/parser.c_DEPENDENCIES
)
440 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
441 -include kernel_img-kern_parser.d
443 kernel_img-kern_partition.o
: kern
/partition.c
$(kern
/partition.c_DEPENDENCIES
)
444 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
445 -include kernel_img-kern_partition.d
447 kernel_img-kern_i386_tsc.o
: kern
/i386
/tsc.c
$(kern
/i386
/tsc.c_DEPENDENCIES
)
448 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
449 -include kernel_img-kern_i386_tsc.d
451 kernel_img-kern_i386_pit.o
: kern
/i386
/pit.c
$(kern
/i386
/pit.c_DEPENDENCIES
)
452 $(TARGET_CC
) -Ikern
/i386
-I
$(srcdir)/kern
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
453 -include kernel_img-kern_i386_pit.d
455 kernel_img-kern_generic_rtc_get_time_ms.o
: kern
/generic
/rtc_get_time_ms.c
$(kern
/generic
/rtc_get_time_ms.c_DEPENDENCIES
)
456 $(TARGET_CC
) -Ikern
/generic
-I
$(srcdir)/kern
/generic
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
457 -include kernel_img-kern_generic_rtc_get_time_ms.d
459 kernel_img-kern_generic_millisleep.o
: kern
/generic
/millisleep.c
$(kern
/generic
/millisleep.c_DEPENDENCIES
)
460 $(TARGET_CC
) -Ikern
/generic
-I
$(srcdir)/kern
/generic
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
461 -include kernel_img-kern_generic_millisleep.d
463 kernel_img-kern_env.o
: kern
/env.c
$(kern
/env.c_DEPENDENCIES
)
464 $(TARGET_CC
) -Ikern
-I
$(srcdir)/kern
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
465 -include kernel_img-kern_env.d
467 kernel_img-term_i386_pc_vga_text.o
: term
/i386
/pc/vga_text.c
$(term
/i386
/pc/vga_text.c_DEPENDENCIES
)
468 $(TARGET_CC
) -Iterm
/i386
/pc -I
$(srcdir)/term
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
469 -include kernel_img-term_i386_pc_vga_text.d
471 kernel_img-term_i386_vga_common.o
: term
/i386
/vga_common.c
$(term
/i386
/vga_common.c_DEPENDENCIES
)
472 $(TARGET_CC
) -Iterm
/i386
-I
$(srcdir)/term
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
473 -include kernel_img-term_i386_vga_common.d
475 kernel_img-symlist.o
: symlist.c
$(symlist.c_DEPENDENCIES
)
476 $(TARGET_CC
) -I.
-I
$(srcdir)/.
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(kernel_img_CFLAGS
) -MD
-c
-o
$@
$<
477 -include kernel_img-symlist.d
479 kernel_img_HEADERS
= boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
480 env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
481 partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \
482 machine
/boot.h machine
/console.h machine
/init.h \
483 machine
/memory.h machine
/loader.h list.h handler.h command.h i18n.h \
485 kernel_img_CFLAGS
= $(COMMON_CFLAGS
) -DGRUB_BOOT_MACHINE_LINK_ADDR
=$(GRUB_BOOT_MACHINE_LINK_ADDR
)
486 kernel_img_ASFLAGS
= $(COMMON_ASFLAGS
) -DGRUB_KERNEL_MACHINE_LINK_ADDR
=$(GRUB_KERNEL_MACHINE_LINK_ADDR
)
487 kernel_img_LDFLAGS
= $(COMMON_LDFLAGS
) $(TARGET_IMG_LDFLAGS
)$(GRUB_KERNEL_MACHINE_LINK_ADDR
)
488 kernel_img_FORMAT
= binary
491 MOSTLYCLEANFILES
+= symlist.c kernel_syms.lst
492 DEFSYMFILES
+= kernel_syms.lst
494 symlist.c
: $(addprefix include/grub
/,$(kernel_img_HEADERS
)) config.h gensymlist.sh
495 /bin
/sh gensymlist.sh
$(filter %.h
,$^
) > $@ ||
(rm -f
$@
; exit
1)
497 kernel_syms.lst
: $(addprefix include/grub
/,$(kernel_img_HEADERS
)) config.h genkernsyms.sh
498 /bin
/sh genkernsyms.sh
$(filter %.h
,$^
) > $@ ||
(rm -f
$@
; exit
1)
500 sbin_SCRIPTS
+= grub-install
501 grub_install_SOURCES
= util
/grub-install.in
502 CLEANFILES
+= grub-install
504 grub-install
: util
/grub-install.in
$(util
/grub-install.in_DEPENDENCIES
) config.status
505 .
/config.status
--file
=-:util
/grub-install.in | sed
-e
's,@pkglib_DATA@,$(pkglib_DATA),g' > $@
509 bin_SCRIPTS
+= grub-mkrescue
510 grub_mkrescue_SOURCES
= util
/grub-mkrescue.in
511 CLEANFILES
+= grub-mkrescue
513 grub-mkrescue
: util
/grub-mkrescue.in
$(util
/grub-mkrescue.in_DEPENDENCIES
) config.status
514 .
/config.status
--file
=-:util
/grub-mkrescue.in | sed
-e
's,@pkglib_DATA@,$(pkglib_DATA),g' > $@
519 pkglib_MODULES
= linux.mod \
520 aout.mod play.mod serial.mod \
521 memdisk.mod pci.mod lspci.mod reboot.mod \
522 halt.mod datetime.mod date.mod datehook.mod \
526 pkglib_MODULES
+= boot.mod
527 boot_mod_SOURCES
= commands
/boot.c
529 clean-module-boot.mod
.1:
530 rm -f boot.mod mod-boot.o mod-boot.c pre-boot.o boot_mod-commands_boot.o und-boot.lst
532 CLEAN_MODULE_TARGETS
+= clean-module-boot.mod
.1
534 clean-module-boot.mod-symbol
.1:
537 CLEAN_MODULE_TARGETS
+= clean-module-boot.mod-symbol
.1
538 DEFSYMFILES
+= def-boot.lst
539 mostlyclean-module-boot.mod
.1:
540 rm -f boot_mod-commands_boot.d
542 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-boot.mod
.1
543 UNDSYMFILES
+= und-boot.lst
545 ifneq ($(TARGET_APPLE_CC
),1)
546 boot.mod
: pre-boot.o mod-boot.o
$(TARGET_OBJ2ELF
)
548 $(TARGET_CC
) $(boot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-boot.o mod-boot.o
549 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
550 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
552 boot.mod
: pre-boot.o mod-boot.o
$(TARGET_OBJ2ELF
)
555 $(TARGET_CC
) $(boot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-boot.o mod-boot.o
556 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
560 pre-boot.o
: $(boot_mod_DEPENDENCIES
) boot_mod-commands_boot.o
562 $(TARGET_CC
) $(boot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ boot_mod-commands_boot.o
564 mod-boot.o
: mod-boot.c
565 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(boot_mod_CFLAGS
) -c
-o
$@
$<
567 mod-boot.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
568 sh
$(srcdir)/genmodsrc.sh
'boot' $< > $@ ||
(rm -f
$@
; exit
1)
570 ifneq ($(TARGET_APPLE_CC
),1)
571 def-boot.lst
: pre-boot.o
572 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 boot/' > $@
574 def-boot.lst
: pre-boot.o
575 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 boot/' > $@
578 und-boot.lst
: pre-boot.o
580 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
582 boot_mod-commands_boot.o
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
)
583 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(boot_mod_CFLAGS
) -MD
-c
-o
$@
$<
584 -include boot_mod-commands_boot.d
586 clean-module-boot_mod-commands_boot-extra
.1:
587 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
589 CLEAN_MODULE_TARGETS
+= clean-module-boot_mod-commands_boot-extra
.1
591 COMMANDFILES
+= cmd-boot_mod-commands_boot.lst
592 FSFILES
+= fs-boot_mod-commands_boot.lst
593 PARTTOOLFILES
+= parttool-boot_mod-commands_boot.lst
594 PARTMAPFILES
+= partmap-boot_mod-commands_boot.lst
595 HANDLERFILES
+= handler-boot_mod-commands_boot.lst
596 TERMINALFILES
+= terminal-boot_mod-commands_boot.lst
597 VIDEOFILES
+= video-boot_mod-commands_boot.lst
599 cmd-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) gencmdlist.sh
600 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)
602 fs-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genfslist.sh
603 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)
605 parttool-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genparttoollist.sh
606 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)
608 partmap-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genpartmaplist.sh
609 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)
611 handler-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genhandlerlist.sh
612 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)
614 terminal-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genterminallist.sh
615 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)
617 video-boot_mod-commands_boot.lst
: commands
/boot.c
$(commands
/boot.c_DEPENDENCIES
) genvideolist.sh
618 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)
620 boot_mod_CFLAGS
= $(COMMON_CFLAGS
)
621 boot_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
624 mmap_mod_SOURCES
= mmap
/mmap.c mmap
/i386
/uppermem.c mmap
/i386
/mmap.c
626 clean-module-mmap.mod
.1:
627 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 und-mmap.lst
629 CLEAN_MODULE_TARGETS
+= clean-module-mmap.mod
.1
631 clean-module-mmap.mod-symbol
.1:
634 CLEAN_MODULE_TARGETS
+= clean-module-mmap.mod-symbol
.1
635 DEFSYMFILES
+= def-mmap.lst
636 mostlyclean-module-mmap.mod
.1:
637 rm -f mmap_mod-mmap_mmap.d mmap_mod-mmap_i386_uppermem.d mmap_mod-mmap_i386_mmap.d
639 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-mmap.mod
.1
640 UNDSYMFILES
+= und-mmap.lst
642 ifneq ($(TARGET_APPLE_CC
),1)
643 mmap.mod
: pre-mmap.o mod-mmap.o
$(TARGET_OBJ2ELF
)
645 $(TARGET_CC
) $(mmap_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-mmap.o mod-mmap.o
646 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
647 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
649 mmap.mod
: pre-mmap.o mod-mmap.o
$(TARGET_OBJ2ELF
)
652 $(TARGET_CC
) $(mmap_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-mmap.o mod-mmap.o
653 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
657 pre-mmap.o
: $(mmap_mod_DEPENDENCIES
) mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o
659 $(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
661 mod-mmap.o
: mod-mmap.c
662 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(mmap_mod_CFLAGS
) -c
-o
$@
$<
664 mod-mmap.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
665 sh
$(srcdir)/genmodsrc.sh
'mmap' $< > $@ ||
(rm -f
$@
; exit
1)
667 ifneq ($(TARGET_APPLE_CC
),1)
668 def-mmap.lst
: pre-mmap.o
669 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 mmap/' > $@
671 def-mmap.lst
: pre-mmap.o
672 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 mmap/' > $@
675 und-mmap.lst
: pre-mmap.o
677 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
679 mmap_mod-mmap_mmap.o
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
)
680 $(TARGET_CC
) -Immap
-I
$(srcdir)/mmap
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(mmap_mod_CFLAGS
) -MD
-c
-o
$@
$<
681 -include mmap_mod-mmap_mmap.d
683 clean-module-mmap_mod-mmap_mmap-extra
.1:
684 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
686 CLEAN_MODULE_TARGETS
+= clean-module-mmap_mod-mmap_mmap-extra
.1
688 COMMANDFILES
+= cmd-mmap_mod-mmap_mmap.lst
689 FSFILES
+= fs-mmap_mod-mmap_mmap.lst
690 PARTTOOLFILES
+= parttool-mmap_mod-mmap_mmap.lst
691 PARTMAPFILES
+= partmap-mmap_mod-mmap_mmap.lst
692 HANDLERFILES
+= handler-mmap_mod-mmap_mmap.lst
693 TERMINALFILES
+= terminal-mmap_mod-mmap_mmap.lst
694 VIDEOFILES
+= video-mmap_mod-mmap_mmap.lst
696 cmd-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) gencmdlist.sh
697 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)
699 fs-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genfslist.sh
700 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)
702 parttool-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genparttoollist.sh
703 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)
705 partmap-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genpartmaplist.sh
706 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)
708 handler-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genhandlerlist.sh
709 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)
711 terminal-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genterminallist.sh
712 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)
714 video-mmap_mod-mmap_mmap.lst
: mmap
/mmap.c
$(mmap
/mmap.c_DEPENDENCIES
) genvideolist.sh
715 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)
717 mmap_mod-mmap_i386_uppermem.o
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
)
718 $(TARGET_CC
) -Immap
/i386
-I
$(srcdir)/mmap
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(mmap_mod_CFLAGS
) -MD
-c
-o
$@
$<
719 -include mmap_mod-mmap_i386_uppermem.d
721 clean-module-mmap_mod-mmap_i386_uppermem-extra
.1:
722 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
724 CLEAN_MODULE_TARGETS
+= clean-module-mmap_mod-mmap_i386_uppermem-extra
.1
726 COMMANDFILES
+= cmd-mmap_mod-mmap_i386_uppermem.lst
727 FSFILES
+= fs-mmap_mod-mmap_i386_uppermem.lst
728 PARTTOOLFILES
+= parttool-mmap_mod-mmap_i386_uppermem.lst
729 PARTMAPFILES
+= partmap-mmap_mod-mmap_i386_uppermem.lst
730 HANDLERFILES
+= handler-mmap_mod-mmap_i386_uppermem.lst
731 TERMINALFILES
+= terminal-mmap_mod-mmap_i386_uppermem.lst
732 VIDEOFILES
+= video-mmap_mod-mmap_i386_uppermem.lst
734 cmd-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) gencmdlist.sh
735 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)
737 fs-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genfslist.sh
738 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)
740 parttool-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genparttoollist.sh
741 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)
743 partmap-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genpartmaplist.sh
744 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)
746 handler-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genhandlerlist.sh
747 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)
749 terminal-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genterminallist.sh
750 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)
752 video-mmap_mod-mmap_i386_uppermem.lst
: mmap
/i386
/uppermem.c
$(mmap
/i386
/uppermem.c_DEPENDENCIES
) genvideolist.sh
753 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)
755 mmap_mod-mmap_i386_mmap.o
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
)
756 $(TARGET_CC
) -Immap
/i386
-I
$(srcdir)/mmap
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(mmap_mod_CFLAGS
) -MD
-c
-o
$@
$<
757 -include mmap_mod-mmap_i386_mmap.d
759 clean-module-mmap_mod-mmap_i386_mmap-extra
.1:
760 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
762 CLEAN_MODULE_TARGETS
+= clean-module-mmap_mod-mmap_i386_mmap-extra
.1
764 COMMANDFILES
+= cmd-mmap_mod-mmap_i386_mmap.lst
765 FSFILES
+= fs-mmap_mod-mmap_i386_mmap.lst
766 PARTTOOLFILES
+= parttool-mmap_mod-mmap_i386_mmap.lst
767 PARTMAPFILES
+= partmap-mmap_mod-mmap_i386_mmap.lst
768 HANDLERFILES
+= handler-mmap_mod-mmap_i386_mmap.lst
769 TERMINALFILES
+= terminal-mmap_mod-mmap_i386_mmap.lst
770 VIDEOFILES
+= video-mmap_mod-mmap_i386_mmap.lst
772 cmd-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) gencmdlist.sh
773 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)
775 fs-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genfslist.sh
776 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)
778 parttool-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genparttoollist.sh
779 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)
781 partmap-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genpartmaplist.sh
782 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)
784 handler-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genhandlerlist.sh
785 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)
787 terminal-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genterminallist.sh
788 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)
790 video-mmap_mod-mmap_i386_mmap.lst
: mmap
/i386
/mmap.c
$(mmap
/i386
/mmap.c_DEPENDENCIES
) genvideolist.sh
791 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)
793 mmap_mod_CFLAGS
= $(COMMON_CFLAGS
)
794 mmap_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
795 mmap_mod_ASFLAGS
= $(COMMON_ASFLAGS
)
798 linux_mod_SOURCES
= loader
/i386
/linux.c
800 clean-module-linux.mod
.1:
801 rm -f linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_linux.o und-linux.lst
803 CLEAN_MODULE_TARGETS
+= clean-module-linux.mod
.1
805 clean-module-linux.mod-symbol
.1:
808 CLEAN_MODULE_TARGETS
+= clean-module-linux.mod-symbol
.1
809 DEFSYMFILES
+= def-linux.lst
810 mostlyclean-module-linux.mod
.1:
811 rm -f linux_mod-loader_i386_linux.d
813 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-linux.mod
.1
814 UNDSYMFILES
+= und-linux.lst
816 ifneq ($(TARGET_APPLE_CC
),1)
817 linux.mod
: pre-linux.o mod-linux.o
$(TARGET_OBJ2ELF
)
819 $(TARGET_CC
) $(linux_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-linux.o mod-linux.o
820 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
821 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
823 linux.mod
: pre-linux.o mod-linux.o
$(TARGET_OBJ2ELF
)
826 $(TARGET_CC
) $(linux_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-linux.o mod-linux.o
827 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
831 pre-linux.o
: $(linux_mod_DEPENDENCIES
) linux_mod-loader_i386_linux.o
833 $(TARGET_CC
) $(linux_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ linux_mod-loader_i386_linux.o
835 mod-linux.o
: mod-linux.c
836 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -c
-o
$@
$<
838 mod-linux.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
839 sh
$(srcdir)/genmodsrc.sh
'linux' $< > $@ ||
(rm -f
$@
; exit
1)
841 ifneq ($(TARGET_APPLE_CC
),1)
842 def-linux.lst
: pre-linux.o
843 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 linux/' > $@
845 def-linux.lst
: pre-linux.o
846 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 linux/' > $@
849 und-linux.lst
: pre-linux.o
851 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
853 linux_mod-loader_i386_linux.o
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
)
854 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -MD
-c
-o
$@
$<
855 -include linux_mod-loader_i386_linux.d
857 clean-module-linux_mod-loader_i386_linux-extra
.1:
858 rm -f cmd-linux_mod-loader_i386_linux.lst fs-linux_mod-loader_i386_linux.lst partmap-linux_mod-loader_i386_linux.lst handler-linux_mod-loader_i386_linux.lst parttool-linux_mod-loader_i386_linux.lst video-linux_mod-loader_i386_linux.lst terminal-linux_mod-loader_i386_linux.lst
860 CLEAN_MODULE_TARGETS
+= clean-module-linux_mod-loader_i386_linux-extra
.1
862 COMMANDFILES
+= cmd-linux_mod-loader_i386_linux.lst
863 FSFILES
+= fs-linux_mod-loader_i386_linux.lst
864 PARTTOOLFILES
+= parttool-linux_mod-loader_i386_linux.lst
865 PARTMAPFILES
+= partmap-linux_mod-loader_i386_linux.lst
866 HANDLERFILES
+= handler-linux_mod-loader_i386_linux.lst
867 TERMINALFILES
+= terminal-linux_mod-loader_i386_linux.lst
868 VIDEOFILES
+= video-linux_mod-loader_i386_linux.lst
870 cmd-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) gencmdlist.sh
871 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
873 fs-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genfslist.sh
874 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
876 parttool-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genparttoollist.sh
877 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
879 partmap-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genpartmaplist.sh
880 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
882 handler-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genhandlerlist.sh
883 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
885 terminal-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genterminallist.sh
886 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
888 video-linux_mod-loader_i386_linux.lst
: loader
/i386
/linux.c
$(loader
/i386
/linux.c_DEPENDENCIES
) genvideolist.sh
889 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(linux_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh linux
> $@ ||
(rm -f
$@
; exit
1)
891 linux_mod_CFLAGS
= $(COMMON_CFLAGS
)
892 linux_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
895 reboot_mod_SOURCES
= commands
/reboot.c
897 clean-module-reboot.mod
.1:
898 rm -f reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_reboot.o und-reboot.lst
900 CLEAN_MODULE_TARGETS
+= clean-module-reboot.mod
.1
902 clean-module-reboot.mod-symbol
.1:
905 CLEAN_MODULE_TARGETS
+= clean-module-reboot.mod-symbol
.1
906 DEFSYMFILES
+= def-reboot.lst
907 mostlyclean-module-reboot.mod
.1:
908 rm -f reboot_mod-commands_reboot.d
910 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-reboot.mod
.1
911 UNDSYMFILES
+= und-reboot.lst
913 ifneq ($(TARGET_APPLE_CC
),1)
914 reboot.mod
: pre-reboot.o mod-reboot.o
$(TARGET_OBJ2ELF
)
916 $(TARGET_CC
) $(reboot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-reboot.o mod-reboot.o
917 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
918 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
920 reboot.mod
: pre-reboot.o mod-reboot.o
$(TARGET_OBJ2ELF
)
923 $(TARGET_CC
) $(reboot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-reboot.o mod-reboot.o
924 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
928 pre-reboot.o
: $(reboot_mod_DEPENDENCIES
) reboot_mod-commands_reboot.o
930 $(TARGET_CC
) $(reboot_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ reboot_mod-commands_reboot.o
932 mod-reboot.o
: mod-reboot.c
933 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(reboot_mod_CFLAGS
) -c
-o
$@
$<
935 mod-reboot.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
936 sh
$(srcdir)/genmodsrc.sh
'reboot' $< > $@ ||
(rm -f
$@
; exit
1)
938 ifneq ($(TARGET_APPLE_CC
),1)
939 def-reboot.lst
: pre-reboot.o
940 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 reboot/' > $@
942 def-reboot.lst
: pre-reboot.o
943 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 reboot/' > $@
946 und-reboot.lst
: pre-reboot.o
948 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
950 reboot_mod-commands_reboot.o
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
)
951 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(reboot_mod_CFLAGS
) -MD
-c
-o
$@
$<
952 -include reboot_mod-commands_reboot.d
954 clean-module-reboot_mod-commands_reboot-extra
.1:
955 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
957 CLEAN_MODULE_TARGETS
+= clean-module-reboot_mod-commands_reboot-extra
.1
959 COMMANDFILES
+= cmd-reboot_mod-commands_reboot.lst
960 FSFILES
+= fs-reboot_mod-commands_reboot.lst
961 PARTTOOLFILES
+= parttool-reboot_mod-commands_reboot.lst
962 PARTMAPFILES
+= partmap-reboot_mod-commands_reboot.lst
963 HANDLERFILES
+= handler-reboot_mod-commands_reboot.lst
964 TERMINALFILES
+= terminal-reboot_mod-commands_reboot.lst
965 VIDEOFILES
+= video-reboot_mod-commands_reboot.lst
967 cmd-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) gencmdlist.sh
968 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)
970 fs-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genfslist.sh
971 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)
973 parttool-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genparttoollist.sh
974 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)
976 partmap-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genpartmaplist.sh
977 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)
979 handler-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genhandlerlist.sh
980 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)
982 terminal-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genterminallist.sh
983 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)
985 video-reboot_mod-commands_reboot.lst
: commands
/reboot.c
$(commands
/reboot.c_DEPENDENCIES
) genvideolist.sh
986 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)
988 reboot_mod_CFLAGS
= $(COMMON_CFLAGS
)
989 reboot_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
992 halt_mod_SOURCES
= commands
/halt.c
994 clean-module-halt.mod
.1:
995 rm -f halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_halt.o und-halt.lst
997 CLEAN_MODULE_TARGETS
+= clean-module-halt.mod
.1
999 clean-module-halt.mod-symbol
.1:
1002 CLEAN_MODULE_TARGETS
+= clean-module-halt.mod-symbol
.1
1003 DEFSYMFILES
+= def-halt.lst
1004 mostlyclean-module-halt.mod
.1:
1005 rm -f halt_mod-commands_halt.d
1007 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-halt.mod
.1
1008 UNDSYMFILES
+= und-halt.lst
1010 ifneq ($(TARGET_APPLE_CC
),1)
1011 halt.mod
: pre-halt.o mod-halt.o
$(TARGET_OBJ2ELF
)
1013 $(TARGET_CC
) $(halt_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-halt.o mod-halt.o
1014 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1015 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1017 halt.mod
: pre-halt.o mod-halt.o
$(TARGET_OBJ2ELF
)
1020 $(TARGET_CC
) $(halt_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-halt.o mod-halt.o
1021 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1025 pre-halt.o
: $(halt_mod_DEPENDENCIES
) halt_mod-commands_halt.o
1027 $(TARGET_CC
) $(halt_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ halt_mod-commands_halt.o
1029 mod-halt.o
: mod-halt.c
1030 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(halt_mod_CFLAGS
) -c
-o
$@
$<
1032 mod-halt.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1033 sh
$(srcdir)/genmodsrc.sh
'halt' $< > $@ ||
(rm -f
$@
; exit
1)
1035 ifneq ($(TARGET_APPLE_CC
),1)
1036 def-halt.lst
: pre-halt.o
1037 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 halt/' > $@
1039 def-halt.lst
: pre-halt.o
1040 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 halt/' > $@
1043 und-halt.lst
: pre-halt.o
1045 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1047 halt_mod-commands_halt.o
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
)
1048 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(halt_mod_CFLAGS
) -MD
-c
-o
$@
$<
1049 -include halt_mod-commands_halt.d
1051 clean-module-halt_mod-commands_halt-extra
.1:
1052 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
1054 CLEAN_MODULE_TARGETS
+= clean-module-halt_mod-commands_halt-extra
.1
1056 COMMANDFILES
+= cmd-halt_mod-commands_halt.lst
1057 FSFILES
+= fs-halt_mod-commands_halt.lst
1058 PARTTOOLFILES
+= parttool-halt_mod-commands_halt.lst
1059 PARTMAPFILES
+= partmap-halt_mod-commands_halt.lst
1060 HANDLERFILES
+= handler-halt_mod-commands_halt.lst
1061 TERMINALFILES
+= terminal-halt_mod-commands_halt.lst
1062 VIDEOFILES
+= video-halt_mod-commands_halt.lst
1064 cmd-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) gencmdlist.sh
1065 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)
1067 fs-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genfslist.sh
1068 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)
1070 parttool-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genparttoollist.sh
1071 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)
1073 partmap-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genpartmaplist.sh
1074 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)
1076 handler-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genhandlerlist.sh
1077 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)
1079 terminal-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genterminallist.sh
1080 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)
1082 video-halt_mod-commands_halt.lst
: commands
/halt.c
$(commands
/halt.c_DEPENDENCIES
) genvideolist.sh
1083 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)
1085 halt_mod_CFLAGS
= $(COMMON_CFLAGS
)
1086 halt_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1089 serial_mod_SOURCES
= term
/serial.c
1091 clean-module-serial.mod
.1:
1092 rm -f serial.mod mod-serial.o mod-serial.c pre-serial.o serial_mod-term_serial.o und-serial.lst
1094 CLEAN_MODULE_TARGETS
+= clean-module-serial.mod
.1
1096 clean-module-serial.mod-symbol
.1:
1097 rm -f def-serial.lst
1099 CLEAN_MODULE_TARGETS
+= clean-module-serial.mod-symbol
.1
1100 DEFSYMFILES
+= def-serial.lst
1101 mostlyclean-module-serial.mod
.1:
1102 rm -f serial_mod-term_serial.d
1104 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-serial.mod
.1
1105 UNDSYMFILES
+= und-serial.lst
1107 ifneq ($(TARGET_APPLE_CC
),1)
1108 serial.mod
: pre-serial.o mod-serial.o
$(TARGET_OBJ2ELF
)
1110 $(TARGET_CC
) $(serial_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-serial.o mod-serial.o
1111 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1112 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1114 serial.mod
: pre-serial.o mod-serial.o
$(TARGET_OBJ2ELF
)
1117 $(TARGET_CC
) $(serial_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-serial.o mod-serial.o
1118 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1122 pre-serial.o
: $(serial_mod_DEPENDENCIES
) serial_mod-term_serial.o
1124 $(TARGET_CC
) $(serial_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ serial_mod-term_serial.o
1126 mod-serial.o
: mod-serial.c
1127 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -c
-o
$@
$<
1129 mod-serial.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1130 sh
$(srcdir)/genmodsrc.sh
'serial' $< > $@ ||
(rm -f
$@
; exit
1)
1132 ifneq ($(TARGET_APPLE_CC
),1)
1133 def-serial.lst
: pre-serial.o
1134 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 serial/' > $@
1136 def-serial.lst
: pre-serial.o
1137 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 serial/' > $@
1140 und-serial.lst
: pre-serial.o
1142 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1144 serial_mod-term_serial.o
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
)
1145 $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -MD
-c
-o
$@
$<
1146 -include serial_mod-term_serial.d
1148 clean-module-serial_mod-term_serial-extra
.1:
1149 rm -f cmd-serial_mod-term_serial.lst fs-serial_mod-term_serial.lst partmap-serial_mod-term_serial.lst handler-serial_mod-term_serial.lst parttool-serial_mod-term_serial.lst video-serial_mod-term_serial.lst terminal-serial_mod-term_serial.lst
1151 CLEAN_MODULE_TARGETS
+= clean-module-serial_mod-term_serial-extra
.1
1153 COMMANDFILES
+= cmd-serial_mod-term_serial.lst
1154 FSFILES
+= fs-serial_mod-term_serial.lst
1155 PARTTOOLFILES
+= parttool-serial_mod-term_serial.lst
1156 PARTMAPFILES
+= partmap-serial_mod-term_serial.lst
1157 HANDLERFILES
+= handler-serial_mod-term_serial.lst
1158 TERMINALFILES
+= terminal-serial_mod-term_serial.lst
1159 VIDEOFILES
+= video-serial_mod-term_serial.lst
1161 cmd-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) gencmdlist.sh
1162 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1164 fs-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genfslist.sh
1165 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1167 parttool-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genparttoollist.sh
1168 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1170 partmap-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genpartmaplist.sh
1171 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1173 handler-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genhandlerlist.sh
1174 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1176 terminal-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genterminallist.sh
1177 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1179 video-serial_mod-term_serial.lst
: term
/serial.c
$(term
/serial.c_DEPENDENCIES
) genvideolist.sh
1180 set
-e
; $(TARGET_CC
) -Iterm
-I
$(srcdir)/term
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(serial_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh serial
> $@ ||
(rm -f
$@
; exit
1)
1182 serial_mod_CFLAGS
= $(COMMON_CFLAGS
)
1183 serial_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1186 aout_mod_SOURCES
= loader
/aout.c
1188 clean-module-aout.mod
.1:
1189 rm -f aout.mod mod-aout.o mod-aout.c pre-aout.o aout_mod-loader_aout.o und-aout.lst
1191 CLEAN_MODULE_TARGETS
+= clean-module-aout.mod
.1
1193 clean-module-aout.mod-symbol
.1:
1196 CLEAN_MODULE_TARGETS
+= clean-module-aout.mod-symbol
.1
1197 DEFSYMFILES
+= def-aout.lst
1198 mostlyclean-module-aout.mod
.1:
1199 rm -f aout_mod-loader_aout.d
1201 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-aout.mod
.1
1202 UNDSYMFILES
+= und-aout.lst
1204 ifneq ($(TARGET_APPLE_CC
),1)
1205 aout.mod
: pre-aout.o mod-aout.o
$(TARGET_OBJ2ELF
)
1207 $(TARGET_CC
) $(aout_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-aout.o mod-aout.o
1208 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1209 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1211 aout.mod
: pre-aout.o mod-aout.o
$(TARGET_OBJ2ELF
)
1214 $(TARGET_CC
) $(aout_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-aout.o mod-aout.o
1215 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1219 pre-aout.o
: $(aout_mod_DEPENDENCIES
) aout_mod-loader_aout.o
1221 $(TARGET_CC
) $(aout_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ aout_mod-loader_aout.o
1223 mod-aout.o
: mod-aout.c
1224 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -c
-o
$@
$<
1226 mod-aout.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1227 sh
$(srcdir)/genmodsrc.sh
'aout' $< > $@ ||
(rm -f
$@
; exit
1)
1229 ifneq ($(TARGET_APPLE_CC
),1)
1230 def-aout.lst
: pre-aout.o
1231 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 aout/' > $@
1233 def-aout.lst
: pre-aout.o
1234 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 aout/' > $@
1237 und-aout.lst
: pre-aout.o
1239 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1241 aout_mod-loader_aout.o
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
)
1242 $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -MD
-c
-o
$@
$<
1243 -include aout_mod-loader_aout.d
1245 clean-module-aout_mod-loader_aout-extra
.1:
1246 rm -f cmd-aout_mod-loader_aout.lst fs-aout_mod-loader_aout.lst partmap-aout_mod-loader_aout.lst handler-aout_mod-loader_aout.lst parttool-aout_mod-loader_aout.lst video-aout_mod-loader_aout.lst terminal-aout_mod-loader_aout.lst
1248 CLEAN_MODULE_TARGETS
+= clean-module-aout_mod-loader_aout-extra
.1
1250 COMMANDFILES
+= cmd-aout_mod-loader_aout.lst
1251 FSFILES
+= fs-aout_mod-loader_aout.lst
1252 PARTTOOLFILES
+= parttool-aout_mod-loader_aout.lst
1253 PARTMAPFILES
+= partmap-aout_mod-loader_aout.lst
1254 HANDLERFILES
+= handler-aout_mod-loader_aout.lst
1255 TERMINALFILES
+= terminal-aout_mod-loader_aout.lst
1256 VIDEOFILES
+= video-aout_mod-loader_aout.lst
1258 cmd-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) gencmdlist.sh
1259 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1261 fs-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genfslist.sh
1262 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1264 parttool-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genparttoollist.sh
1265 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1267 partmap-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genpartmaplist.sh
1268 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1270 handler-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genhandlerlist.sh
1271 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1273 terminal-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genterminallist.sh
1274 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1276 video-aout_mod-loader_aout.lst
: loader
/aout.c
$(loader
/aout.c_DEPENDENCIES
) genvideolist.sh
1277 set
-e
; $(TARGET_CC
) -Iloader
-I
$(srcdir)/loader
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(aout_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh aout
> $@ ||
(rm -f
$@
; exit
1)
1279 aout_mod_CFLAGS
= $(COMMON_CFLAGS
)
1280 aout_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1283 pkglib_MODULES
+= bsd.mod
1284 bsd_mod_SOURCES
= loader
/i386
/bsd.c loader
/i386
/bsd32.c loader
/i386
/bsd64.c loader
/i386
/bsd_helper.S loader
/i386
/bsd_trampoline.S
1286 clean-module-bsd.mod
.1:
1287 rm -f bsd.mod mod-bsd.o mod-bsd.c pre-bsd.o bsd_mod-loader_i386_bsd.o bsd_mod-loader_i386_bsd32.o bsd_mod-loader_i386_bsd64.o bsd_mod-loader_i386_bsd_helper.o bsd_mod-loader_i386_bsd_trampoline.o und-bsd.lst
1289 CLEAN_MODULE_TARGETS
+= clean-module-bsd.mod
.1
1291 clean-module-bsd.mod-symbol
.1:
1294 CLEAN_MODULE_TARGETS
+= clean-module-bsd.mod-symbol
.1
1295 DEFSYMFILES
+= def-bsd.lst
1296 mostlyclean-module-bsd.mod
.1:
1297 rm -f bsd_mod-loader_i386_bsd.d bsd_mod-loader_i386_bsd32.d bsd_mod-loader_i386_bsd64.d bsd_mod-loader_i386_bsd_helper.d bsd_mod-loader_i386_bsd_trampoline.d
1299 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-bsd.mod
.1
1300 UNDSYMFILES
+= und-bsd.lst
1302 ifneq ($(TARGET_APPLE_CC
),1)
1303 bsd.mod
: pre-bsd.o mod-bsd.o
$(TARGET_OBJ2ELF
)
1305 $(TARGET_CC
) $(bsd_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-bsd.o mod-bsd.o
1306 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1307 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1309 bsd.mod
: pre-bsd.o mod-bsd.o
$(TARGET_OBJ2ELF
)
1312 $(TARGET_CC
) $(bsd_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-bsd.o mod-bsd.o
1313 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1317 pre-bsd.o
: $(bsd_mod_DEPENDENCIES
) bsd_mod-loader_i386_bsd.o bsd_mod-loader_i386_bsd32.o bsd_mod-loader_i386_bsd64.o bsd_mod-loader_i386_bsd_helper.o bsd_mod-loader_i386_bsd_trampoline.o
1319 $(TARGET_CC
) $(bsd_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ bsd_mod-loader_i386_bsd.o bsd_mod-loader_i386_bsd32.o bsd_mod-loader_i386_bsd64.o bsd_mod-loader_i386_bsd_helper.o bsd_mod-loader_i386_bsd_trampoline.o
1321 mod-bsd.o
: mod-bsd.c
1322 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -c
-o
$@
$<
1324 mod-bsd.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1325 sh
$(srcdir)/genmodsrc.sh
'bsd' $< > $@ ||
(rm -f
$@
; exit
1)
1327 ifneq ($(TARGET_APPLE_CC
),1)
1328 def-bsd.lst
: pre-bsd.o
1329 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 bsd/' > $@
1331 def-bsd.lst
: pre-bsd.o
1332 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 bsd/' > $@
1335 und-bsd.lst
: pre-bsd.o
1337 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1339 bsd_mod-loader_i386_bsd.o
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
)
1340 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -MD
-c
-o
$@
$<
1341 -include bsd_mod-loader_i386_bsd.d
1343 clean-module-bsd_mod-loader_i386_bsd-extra
.1:
1344 rm -f cmd-bsd_mod-loader_i386_bsd.lst fs-bsd_mod-loader_i386_bsd.lst partmap-bsd_mod-loader_i386_bsd.lst handler-bsd_mod-loader_i386_bsd.lst parttool-bsd_mod-loader_i386_bsd.lst video-bsd_mod-loader_i386_bsd.lst terminal-bsd_mod-loader_i386_bsd.lst
1346 CLEAN_MODULE_TARGETS
+= clean-module-bsd_mod-loader_i386_bsd-extra
.1
1348 COMMANDFILES
+= cmd-bsd_mod-loader_i386_bsd.lst
1349 FSFILES
+= fs-bsd_mod-loader_i386_bsd.lst
1350 PARTTOOLFILES
+= parttool-bsd_mod-loader_i386_bsd.lst
1351 PARTMAPFILES
+= partmap-bsd_mod-loader_i386_bsd.lst
1352 HANDLERFILES
+= handler-bsd_mod-loader_i386_bsd.lst
1353 TERMINALFILES
+= terminal-bsd_mod-loader_i386_bsd.lst
1354 VIDEOFILES
+= video-bsd_mod-loader_i386_bsd.lst
1356 cmd-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) gencmdlist.sh
1357 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1359 fs-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genfslist.sh
1360 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1362 parttool-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genparttoollist.sh
1363 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1365 partmap-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genpartmaplist.sh
1366 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1368 handler-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genhandlerlist.sh
1369 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1371 terminal-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genterminallist.sh
1372 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1374 video-bsd_mod-loader_i386_bsd.lst
: loader
/i386
/bsd.c
$(loader
/i386
/bsd.c_DEPENDENCIES
) genvideolist.sh
1375 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1377 bsd_mod-loader_i386_bsd32.o
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
)
1378 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -MD
-c
-o
$@
$<
1379 -include bsd_mod-loader_i386_bsd32.d
1381 clean-module-bsd_mod-loader_i386_bsd32-extra
.1:
1382 rm -f cmd-bsd_mod-loader_i386_bsd32.lst fs-bsd_mod-loader_i386_bsd32.lst partmap-bsd_mod-loader_i386_bsd32.lst handler-bsd_mod-loader_i386_bsd32.lst parttool-bsd_mod-loader_i386_bsd32.lst video-bsd_mod-loader_i386_bsd32.lst terminal-bsd_mod-loader_i386_bsd32.lst
1384 CLEAN_MODULE_TARGETS
+= clean-module-bsd_mod-loader_i386_bsd32-extra
.1
1386 COMMANDFILES
+= cmd-bsd_mod-loader_i386_bsd32.lst
1387 FSFILES
+= fs-bsd_mod-loader_i386_bsd32.lst
1388 PARTTOOLFILES
+= parttool-bsd_mod-loader_i386_bsd32.lst
1389 PARTMAPFILES
+= partmap-bsd_mod-loader_i386_bsd32.lst
1390 HANDLERFILES
+= handler-bsd_mod-loader_i386_bsd32.lst
1391 TERMINALFILES
+= terminal-bsd_mod-loader_i386_bsd32.lst
1392 VIDEOFILES
+= video-bsd_mod-loader_i386_bsd32.lst
1394 cmd-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) gencmdlist.sh
1395 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1397 fs-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genfslist.sh
1398 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1400 parttool-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genparttoollist.sh
1401 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1403 partmap-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genpartmaplist.sh
1404 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1406 handler-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genhandlerlist.sh
1407 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1409 terminal-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genterminallist.sh
1410 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1412 video-bsd_mod-loader_i386_bsd32.lst
: loader
/i386
/bsd32.c
$(loader
/i386
/bsd32.c_DEPENDENCIES
) genvideolist.sh
1413 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1415 bsd_mod-loader_i386_bsd64.o
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
)
1416 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -MD
-c
-o
$@
$<
1417 -include bsd_mod-loader_i386_bsd64.d
1419 clean-module-bsd_mod-loader_i386_bsd64-extra
.1:
1420 rm -f cmd-bsd_mod-loader_i386_bsd64.lst fs-bsd_mod-loader_i386_bsd64.lst partmap-bsd_mod-loader_i386_bsd64.lst handler-bsd_mod-loader_i386_bsd64.lst parttool-bsd_mod-loader_i386_bsd64.lst video-bsd_mod-loader_i386_bsd64.lst terminal-bsd_mod-loader_i386_bsd64.lst
1422 CLEAN_MODULE_TARGETS
+= clean-module-bsd_mod-loader_i386_bsd64-extra
.1
1424 COMMANDFILES
+= cmd-bsd_mod-loader_i386_bsd64.lst
1425 FSFILES
+= fs-bsd_mod-loader_i386_bsd64.lst
1426 PARTTOOLFILES
+= parttool-bsd_mod-loader_i386_bsd64.lst
1427 PARTMAPFILES
+= partmap-bsd_mod-loader_i386_bsd64.lst
1428 HANDLERFILES
+= handler-bsd_mod-loader_i386_bsd64.lst
1429 TERMINALFILES
+= terminal-bsd_mod-loader_i386_bsd64.lst
1430 VIDEOFILES
+= video-bsd_mod-loader_i386_bsd64.lst
1432 cmd-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) gencmdlist.sh
1433 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1435 fs-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genfslist.sh
1436 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1438 parttool-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genparttoollist.sh
1439 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1441 partmap-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genpartmaplist.sh
1442 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1444 handler-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genhandlerlist.sh
1445 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1447 terminal-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genterminallist.sh
1448 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1450 video-bsd_mod-loader_i386_bsd64.lst
: loader
/i386
/bsd64.c
$(loader
/i386
/bsd64.c_DEPENDENCIES
) genvideolist.sh
1451 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(bsd_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1453 bsd_mod-loader_i386_bsd_helper.o
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
)
1454 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -MD
-c
-o
$@
$<
1455 -include bsd_mod-loader_i386_bsd_helper.d
1457 clean-module-bsd_mod-loader_i386_bsd_helper-extra
.1:
1458 rm -f cmd-bsd_mod-loader_i386_bsd_helper.lst fs-bsd_mod-loader_i386_bsd_helper.lst partmap-bsd_mod-loader_i386_bsd_helper.lst handler-bsd_mod-loader_i386_bsd_helper.lst parttool-bsd_mod-loader_i386_bsd_helper.lst video-bsd_mod-loader_i386_bsd_helper.lst terminal-bsd_mod-loader_i386_bsd_helper.lst
1460 CLEAN_MODULE_TARGETS
+= clean-module-bsd_mod-loader_i386_bsd_helper-extra
.1
1462 COMMANDFILES
+= cmd-bsd_mod-loader_i386_bsd_helper.lst
1463 FSFILES
+= fs-bsd_mod-loader_i386_bsd_helper.lst
1464 PARTTOOLFILES
+= parttool-bsd_mod-loader_i386_bsd_helper.lst
1465 PARTMAPFILES
+= partmap-bsd_mod-loader_i386_bsd_helper.lst
1466 HANDLERFILES
+= handler-bsd_mod-loader_i386_bsd_helper.lst
1467 TERMINALFILES
+= terminal-bsd_mod-loader_i386_bsd_helper.lst
1468 VIDEOFILES
+= video-bsd_mod-loader_i386_bsd_helper.lst
1470 cmd-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) gencmdlist.sh
1471 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1473 fs-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genfslist.sh
1474 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1476 parttool-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genparttoollist.sh
1477 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1479 partmap-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genpartmaplist.sh
1480 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1482 handler-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genhandlerlist.sh
1483 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1485 terminal-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genterminallist.sh
1486 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1488 video-bsd_mod-loader_i386_bsd_helper.lst
: loader
/i386
/bsd_helper.S
$(loader
/i386
/bsd_helper.S_DEPENDENCIES
) genvideolist.sh
1489 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1491 bsd_mod-loader_i386_bsd_trampoline.o
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
)
1492 $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -MD
-c
-o
$@
$<
1493 -include bsd_mod-loader_i386_bsd_trampoline.d
1495 clean-module-bsd_mod-loader_i386_bsd_trampoline-extra
.1:
1496 rm -f cmd-bsd_mod-loader_i386_bsd_trampoline.lst fs-bsd_mod-loader_i386_bsd_trampoline.lst partmap-bsd_mod-loader_i386_bsd_trampoline.lst handler-bsd_mod-loader_i386_bsd_trampoline.lst parttool-bsd_mod-loader_i386_bsd_trampoline.lst video-bsd_mod-loader_i386_bsd_trampoline.lst terminal-bsd_mod-loader_i386_bsd_trampoline.lst
1498 CLEAN_MODULE_TARGETS
+= clean-module-bsd_mod-loader_i386_bsd_trampoline-extra
.1
1500 COMMANDFILES
+= cmd-bsd_mod-loader_i386_bsd_trampoline.lst
1501 FSFILES
+= fs-bsd_mod-loader_i386_bsd_trampoline.lst
1502 PARTTOOLFILES
+= parttool-bsd_mod-loader_i386_bsd_trampoline.lst
1503 PARTMAPFILES
+= partmap-bsd_mod-loader_i386_bsd_trampoline.lst
1504 HANDLERFILES
+= handler-bsd_mod-loader_i386_bsd_trampoline.lst
1505 TERMINALFILES
+= terminal-bsd_mod-loader_i386_bsd_trampoline.lst
1506 VIDEOFILES
+= video-bsd_mod-loader_i386_bsd_trampoline.lst
1508 cmd-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) gencmdlist.sh
1509 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1511 fs-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genfslist.sh
1512 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1514 parttool-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genparttoollist.sh
1515 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1517 partmap-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genpartmaplist.sh
1518 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1520 handler-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genhandlerlist.sh
1521 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1523 terminal-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genterminallist.sh
1524 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1526 video-bsd_mod-loader_i386_bsd_trampoline.lst
: loader
/i386
/bsd_trampoline.S
$(loader
/i386
/bsd_trampoline.S_DEPENDENCIES
) genvideolist.sh
1527 set
-e
; $(TARGET_CC
) -Iloader
/i386
-I
$(srcdir)/loader
/i386
$(TARGET_CPPFLAGS
) -DASM_FILE
=1 $(TARGET_ASFLAGS
) $(bsd_mod_ASFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh bsd
> $@ ||
(rm -f
$@
; exit
1)
1529 bsd_mod_CFLAGS
= $(COMMON_CFLAGS
)
1530 bsd_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1531 bsd_mod_ASFLAGS
= $(COMMON_ASFLAGS
)
1534 play_mod_SOURCES
= commands
/i386
/pc/play.c
1536 clean-module-play.mod
.1:
1537 rm -f play.mod mod-play.o mod-play.c pre-play.o play_mod-commands_i386_pc_play.o und-play.lst
1539 CLEAN_MODULE_TARGETS
+= clean-module-play.mod
.1
1541 clean-module-play.mod-symbol
.1:
1544 CLEAN_MODULE_TARGETS
+= clean-module-play.mod-symbol
.1
1545 DEFSYMFILES
+= def-play.lst
1546 mostlyclean-module-play.mod
.1:
1547 rm -f play_mod-commands_i386_pc_play.d
1549 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-play.mod
.1
1550 UNDSYMFILES
+= und-play.lst
1552 ifneq ($(TARGET_APPLE_CC
),1)
1553 play.mod
: pre-play.o mod-play.o
$(TARGET_OBJ2ELF
)
1555 $(TARGET_CC
) $(play_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-play.o mod-play.o
1556 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1557 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1559 play.mod
: pre-play.o mod-play.o
$(TARGET_OBJ2ELF
)
1562 $(TARGET_CC
) $(play_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-play.o mod-play.o
1563 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1567 pre-play.o
: $(play_mod_DEPENDENCIES
) play_mod-commands_i386_pc_play.o
1569 $(TARGET_CC
) $(play_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ play_mod-commands_i386_pc_play.o
1571 mod-play.o
: mod-play.c
1572 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -c
-o
$@
$<
1574 mod-play.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1575 sh
$(srcdir)/genmodsrc.sh
'play' $< > $@ ||
(rm -f
$@
; exit
1)
1577 ifneq ($(TARGET_APPLE_CC
),1)
1578 def-play.lst
: pre-play.o
1579 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 play/' > $@
1581 def-play.lst
: pre-play.o
1582 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 play/' > $@
1585 und-play.lst
: pre-play.o
1587 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1589 play_mod-commands_i386_pc_play.o
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
)
1590 $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -MD
-c
-o
$@
$<
1591 -include play_mod-commands_i386_pc_play.d
1593 clean-module-play_mod-commands_i386_pc_play-extra
.1:
1594 rm -f cmd-play_mod-commands_i386_pc_play.lst fs-play_mod-commands_i386_pc_play.lst partmap-play_mod-commands_i386_pc_play.lst handler-play_mod-commands_i386_pc_play.lst parttool-play_mod-commands_i386_pc_play.lst video-play_mod-commands_i386_pc_play.lst terminal-play_mod-commands_i386_pc_play.lst
1596 CLEAN_MODULE_TARGETS
+= clean-module-play_mod-commands_i386_pc_play-extra
.1
1598 COMMANDFILES
+= cmd-play_mod-commands_i386_pc_play.lst
1599 FSFILES
+= fs-play_mod-commands_i386_pc_play.lst
1600 PARTTOOLFILES
+= parttool-play_mod-commands_i386_pc_play.lst
1601 PARTMAPFILES
+= partmap-play_mod-commands_i386_pc_play.lst
1602 HANDLERFILES
+= handler-play_mod-commands_i386_pc_play.lst
1603 TERMINALFILES
+= terminal-play_mod-commands_i386_pc_play.lst
1604 VIDEOFILES
+= video-play_mod-commands_i386_pc_play.lst
1606 cmd-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) gencmdlist.sh
1607 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1609 fs-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genfslist.sh
1610 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1612 parttool-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genparttoollist.sh
1613 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1615 partmap-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genpartmaplist.sh
1616 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1618 handler-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genhandlerlist.sh
1619 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1621 terminal-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genterminallist.sh
1622 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1624 video-play_mod-commands_i386_pc_play.lst
: commands
/i386
/pc/play.c
$(commands
/i386
/pc/play.c_DEPENDENCIES
) genvideolist.sh
1625 set
-e
; $(TARGET_CC
) -Icommands
/i386
/pc -I
$(srcdir)/commands
/i386
/pc $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(play_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh play
> $@ ||
(rm -f
$@
; exit
1)
1627 play_mod_CFLAGS
= $(COMMON_CFLAGS
)
1628 play_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1631 memdisk_mod_SOURCES
= disk
/memdisk.c
1633 clean-module-memdisk.mod
.1:
1634 rm -f memdisk.mod mod-memdisk.o mod-memdisk.c pre-memdisk.o memdisk_mod-disk_memdisk.o und-memdisk.lst
1636 CLEAN_MODULE_TARGETS
+= clean-module-memdisk.mod
.1
1638 clean-module-memdisk.mod-symbol
.1:
1639 rm -f def-memdisk.lst
1641 CLEAN_MODULE_TARGETS
+= clean-module-memdisk.mod-symbol
.1
1642 DEFSYMFILES
+= def-memdisk.lst
1643 mostlyclean-module-memdisk.mod
.1:
1644 rm -f memdisk_mod-disk_memdisk.d
1646 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-memdisk.mod
.1
1647 UNDSYMFILES
+= und-memdisk.lst
1649 ifneq ($(TARGET_APPLE_CC
),1)
1650 memdisk.mod
: pre-memdisk.o mod-memdisk.o
$(TARGET_OBJ2ELF
)
1652 $(TARGET_CC
) $(memdisk_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-memdisk.o mod-memdisk.o
1653 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1654 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1656 memdisk.mod
: pre-memdisk.o mod-memdisk.o
$(TARGET_OBJ2ELF
)
1659 $(TARGET_CC
) $(memdisk_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-memdisk.o mod-memdisk.o
1660 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1664 pre-memdisk.o
: $(memdisk_mod_DEPENDENCIES
) memdisk_mod-disk_memdisk.o
1666 $(TARGET_CC
) $(memdisk_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ memdisk_mod-disk_memdisk.o
1668 mod-memdisk.o
: mod-memdisk.c
1669 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -c
-o
$@
$<
1671 mod-memdisk.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1672 sh
$(srcdir)/genmodsrc.sh
'memdisk' $< > $@ ||
(rm -f
$@
; exit
1)
1674 ifneq ($(TARGET_APPLE_CC
),1)
1675 def-memdisk.lst
: pre-memdisk.o
1676 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 memdisk/' > $@
1678 def-memdisk.lst
: pre-memdisk.o
1679 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 memdisk/' > $@
1682 und-memdisk.lst
: pre-memdisk.o
1684 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1686 memdisk_mod-disk_memdisk.o
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
)
1687 $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -MD
-c
-o
$@
$<
1688 -include memdisk_mod-disk_memdisk.d
1690 clean-module-memdisk_mod-disk_memdisk-extra
.1:
1691 rm -f cmd-memdisk_mod-disk_memdisk.lst fs-memdisk_mod-disk_memdisk.lst partmap-memdisk_mod-disk_memdisk.lst handler-memdisk_mod-disk_memdisk.lst parttool-memdisk_mod-disk_memdisk.lst video-memdisk_mod-disk_memdisk.lst terminal-memdisk_mod-disk_memdisk.lst
1693 CLEAN_MODULE_TARGETS
+= clean-module-memdisk_mod-disk_memdisk-extra
.1
1695 COMMANDFILES
+= cmd-memdisk_mod-disk_memdisk.lst
1696 FSFILES
+= fs-memdisk_mod-disk_memdisk.lst
1697 PARTTOOLFILES
+= parttool-memdisk_mod-disk_memdisk.lst
1698 PARTMAPFILES
+= partmap-memdisk_mod-disk_memdisk.lst
1699 HANDLERFILES
+= handler-memdisk_mod-disk_memdisk.lst
1700 TERMINALFILES
+= terminal-memdisk_mod-disk_memdisk.lst
1701 VIDEOFILES
+= video-memdisk_mod-disk_memdisk.lst
1703 cmd-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) gencmdlist.sh
1704 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1706 fs-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genfslist.sh
1707 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1709 parttool-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genparttoollist.sh
1710 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1712 partmap-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genpartmaplist.sh
1713 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1715 handler-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genhandlerlist.sh
1716 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1718 terminal-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genterminallist.sh
1719 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1721 video-memdisk_mod-disk_memdisk.lst
: disk
/memdisk.c
$(disk
/memdisk.c_DEPENDENCIES
) genvideolist.sh
1722 set
-e
; $(TARGET_CC
) -Idisk
-I
$(srcdir)/disk
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(memdisk_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh memdisk
> $@ ||
(rm -f
$@
; exit
1)
1724 memdisk_mod_CFLAGS
= $(COMMON_CFLAGS
)
1725 memdisk_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1728 pci_mod_SOURCES
= bus
/pci.c
1730 clean-module-pci.mod
.1:
1731 rm -f pci.mod mod-pci.o mod-pci.c pre-pci.o pci_mod-bus_pci.o und-pci.lst
1733 CLEAN_MODULE_TARGETS
+= clean-module-pci.mod
.1
1735 clean-module-pci.mod-symbol
.1:
1738 CLEAN_MODULE_TARGETS
+= clean-module-pci.mod-symbol
.1
1739 DEFSYMFILES
+= def-pci.lst
1740 mostlyclean-module-pci.mod
.1:
1741 rm -f pci_mod-bus_pci.d
1743 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-pci.mod
.1
1744 UNDSYMFILES
+= und-pci.lst
1746 ifneq ($(TARGET_APPLE_CC
),1)
1747 pci.mod
: pre-pci.o mod-pci.o
$(TARGET_OBJ2ELF
)
1749 $(TARGET_CC
) $(pci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-pci.o mod-pci.o
1750 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1751 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1753 pci.mod
: pre-pci.o mod-pci.o
$(TARGET_OBJ2ELF
)
1756 $(TARGET_CC
) $(pci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-pci.o mod-pci.o
1757 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1761 pre-pci.o
: $(pci_mod_DEPENDENCIES
) pci_mod-bus_pci.o
1763 $(TARGET_CC
) $(pci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pci_mod-bus_pci.o
1765 mod-pci.o
: mod-pci.c
1766 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(pci_mod_CFLAGS
) -c
-o
$@
$<
1768 mod-pci.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1769 sh
$(srcdir)/genmodsrc.sh
'pci' $< > $@ ||
(rm -f
$@
; exit
1)
1771 ifneq ($(TARGET_APPLE_CC
),1)
1772 def-pci.lst
: pre-pci.o
1773 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 pci/' > $@
1775 def-pci.lst
: pre-pci.o
1776 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 pci/' > $@
1779 und-pci.lst
: pre-pci.o
1781 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1783 pci_mod-bus_pci.o
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
)
1784 $(TARGET_CC
) -Ibus
-I
$(srcdir)/bus
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(pci_mod_CFLAGS
) -MD
-c
-o
$@
$<
1785 -include pci_mod-bus_pci.d
1787 clean-module-pci_mod-bus_pci-extra
.1:
1788 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
1790 CLEAN_MODULE_TARGETS
+= clean-module-pci_mod-bus_pci-extra
.1
1792 COMMANDFILES
+= cmd-pci_mod-bus_pci.lst
1793 FSFILES
+= fs-pci_mod-bus_pci.lst
1794 PARTTOOLFILES
+= parttool-pci_mod-bus_pci.lst
1795 PARTMAPFILES
+= partmap-pci_mod-bus_pci.lst
1796 HANDLERFILES
+= handler-pci_mod-bus_pci.lst
1797 TERMINALFILES
+= terminal-pci_mod-bus_pci.lst
1798 VIDEOFILES
+= video-pci_mod-bus_pci.lst
1800 cmd-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) gencmdlist.sh
1801 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)
1803 fs-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genfslist.sh
1804 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)
1806 parttool-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genparttoollist.sh
1807 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)
1809 partmap-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genpartmaplist.sh
1810 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)
1812 handler-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genhandlerlist.sh
1813 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)
1815 terminal-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genterminallist.sh
1816 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)
1818 video-pci_mod-bus_pci.lst
: bus
/pci.c
$(bus
/pci.c_DEPENDENCIES
) genvideolist.sh
1819 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)
1821 pci_mod_CFLAGS
= $(COMMON_CFLAGS
)
1822 pci_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1825 lspci_mod_SOURCES
= commands
/lspci.c
1827 clean-module-lspci.mod
.1:
1828 rm -f lspci.mod mod-lspci.o mod-lspci.c pre-lspci.o lspci_mod-commands_lspci.o und-lspci.lst
1830 CLEAN_MODULE_TARGETS
+= clean-module-lspci.mod
.1
1832 clean-module-lspci.mod-symbol
.1:
1835 CLEAN_MODULE_TARGETS
+= clean-module-lspci.mod-symbol
.1
1836 DEFSYMFILES
+= def-lspci.lst
1837 mostlyclean-module-lspci.mod
.1:
1838 rm -f lspci_mod-commands_lspci.d
1840 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-lspci.mod
.1
1841 UNDSYMFILES
+= und-lspci.lst
1843 ifneq ($(TARGET_APPLE_CC
),1)
1844 lspci.mod
: pre-lspci.o mod-lspci.o
$(TARGET_OBJ2ELF
)
1846 $(TARGET_CC
) $(lspci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-lspci.o mod-lspci.o
1847 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1848 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1850 lspci.mod
: pre-lspci.o mod-lspci.o
$(TARGET_OBJ2ELF
)
1853 $(TARGET_CC
) $(lspci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-lspci.o mod-lspci.o
1854 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1858 pre-lspci.o
: $(lspci_mod_DEPENDENCIES
) lspci_mod-commands_lspci.o
1860 $(TARGET_CC
) $(lspci_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ lspci_mod-commands_lspci.o
1862 mod-lspci.o
: mod-lspci.c
1863 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lspci_mod_CFLAGS
) -c
-o
$@
$<
1865 mod-lspci.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1866 sh
$(srcdir)/genmodsrc.sh
'lspci' $< > $@ ||
(rm -f
$@
; exit
1)
1868 ifneq ($(TARGET_APPLE_CC
),1)
1869 def-lspci.lst
: pre-lspci.o
1870 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 lspci/' > $@
1872 def-lspci.lst
: pre-lspci.o
1873 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 lspci/' > $@
1876 und-lspci.lst
: pre-lspci.o
1878 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1880 lspci_mod-commands_lspci.o
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
)
1881 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lspci_mod_CFLAGS
) -MD
-c
-o
$@
$<
1882 -include lspci_mod-commands_lspci.d
1884 clean-module-lspci_mod-commands_lspci-extra
.1:
1885 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
1887 CLEAN_MODULE_TARGETS
+= clean-module-lspci_mod-commands_lspci-extra
.1
1889 COMMANDFILES
+= cmd-lspci_mod-commands_lspci.lst
1890 FSFILES
+= fs-lspci_mod-commands_lspci.lst
1891 PARTTOOLFILES
+= parttool-lspci_mod-commands_lspci.lst
1892 PARTMAPFILES
+= partmap-lspci_mod-commands_lspci.lst
1893 HANDLERFILES
+= handler-lspci_mod-commands_lspci.lst
1894 TERMINALFILES
+= terminal-lspci_mod-commands_lspci.lst
1895 VIDEOFILES
+= video-lspci_mod-commands_lspci.lst
1897 cmd-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) gencmdlist.sh
1898 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)
1900 fs-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genfslist.sh
1901 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)
1903 parttool-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genparttoollist.sh
1904 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)
1906 partmap-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genpartmaplist.sh
1907 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)
1909 handler-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genhandlerlist.sh
1910 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)
1912 terminal-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genterminallist.sh
1913 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)
1915 video-lspci_mod-commands_lspci.lst
: commands
/lspci.c
$(commands
/lspci.c_DEPENDENCIES
) genvideolist.sh
1916 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)
1918 lspci_mod_CFLAGS
= $(COMMON_CFLAGS
)
1919 lspci_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
1922 datetime_mod_SOURCES
= lib
/cmos_datetime.c
1924 clean-module-datetime.mod
.1:
1925 rm -f datetime.mod mod-datetime.o mod-datetime.c pre-datetime.o datetime_mod-lib_cmos_datetime.o und-datetime.lst
1927 CLEAN_MODULE_TARGETS
+= clean-module-datetime.mod
.1
1929 clean-module-datetime.mod-symbol
.1:
1930 rm -f def-datetime.lst
1932 CLEAN_MODULE_TARGETS
+= clean-module-datetime.mod-symbol
.1
1933 DEFSYMFILES
+= def-datetime.lst
1934 mostlyclean-module-datetime.mod
.1:
1935 rm -f datetime_mod-lib_cmos_datetime.d
1937 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-datetime.mod
.1
1938 UNDSYMFILES
+= und-datetime.lst
1940 ifneq ($(TARGET_APPLE_CC
),1)
1941 datetime.mod
: pre-datetime.o mod-datetime.o
$(TARGET_OBJ2ELF
)
1943 $(TARGET_CC
) $(datetime_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-datetime.o mod-datetime.o
1944 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
1945 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
1947 datetime.mod
: pre-datetime.o mod-datetime.o
$(TARGET_OBJ2ELF
)
1950 $(TARGET_CC
) $(datetime_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-datetime.o mod-datetime.o
1951 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
1955 pre-datetime.o
: $(datetime_mod_DEPENDENCIES
) datetime_mod-lib_cmos_datetime.o
1957 $(TARGET_CC
) $(datetime_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ datetime_mod-lib_cmos_datetime.o
1959 mod-datetime.o
: mod-datetime.c
1960 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -c
-o
$@
$<
1962 mod-datetime.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
1963 sh
$(srcdir)/genmodsrc.sh
'datetime' $< > $@ ||
(rm -f
$@
; exit
1)
1965 ifneq ($(TARGET_APPLE_CC
),1)
1966 def-datetime.lst
: pre-datetime.o
1967 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 datetime/' > $@
1969 def-datetime.lst
: pre-datetime.o
1970 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 datetime/' > $@
1973 und-datetime.lst
: pre-datetime.o
1974 echo
'datetime' > $@
1975 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
1977 datetime_mod-lib_cmos_datetime.o
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
)
1978 $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -MD
-c
-o
$@
$<
1979 -include datetime_mod-lib_cmos_datetime.d
1981 clean-module-datetime_mod-lib_cmos_datetime-extra
.1:
1982 rm -f cmd-datetime_mod-lib_cmos_datetime.lst fs-datetime_mod-lib_cmos_datetime.lst partmap-datetime_mod-lib_cmos_datetime.lst handler-datetime_mod-lib_cmos_datetime.lst parttool-datetime_mod-lib_cmos_datetime.lst video-datetime_mod-lib_cmos_datetime.lst terminal-datetime_mod-lib_cmos_datetime.lst
1984 CLEAN_MODULE_TARGETS
+= clean-module-datetime_mod-lib_cmos_datetime-extra
.1
1986 COMMANDFILES
+= cmd-datetime_mod-lib_cmos_datetime.lst
1987 FSFILES
+= fs-datetime_mod-lib_cmos_datetime.lst
1988 PARTTOOLFILES
+= parttool-datetime_mod-lib_cmos_datetime.lst
1989 PARTMAPFILES
+= partmap-datetime_mod-lib_cmos_datetime.lst
1990 HANDLERFILES
+= handler-datetime_mod-lib_cmos_datetime.lst
1991 TERMINALFILES
+= terminal-datetime_mod-lib_cmos_datetime.lst
1992 VIDEOFILES
+= video-datetime_mod-lib_cmos_datetime.lst
1994 cmd-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) gencmdlist.sh
1995 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
1997 fs-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genfslist.sh
1998 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2000 parttool-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genparttoollist.sh
2001 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2003 partmap-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genpartmaplist.sh
2004 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2006 handler-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genhandlerlist.sh
2007 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2009 terminal-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genterminallist.sh
2010 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2012 video-datetime_mod-lib_cmos_datetime.lst
: lib
/cmos_datetime.c
$(lib
/cmos_datetime.c_DEPENDENCIES
) genvideolist.sh
2013 set
-e
; $(TARGET_CC
) -Ilib
-I
$(srcdir)/lib
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datetime_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh datetime
> $@ ||
(rm -f
$@
; exit
1)
2015 datetime_mod_CFLAGS
= $(COMMON_CFLAGS
)
2016 datetime_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
2019 date_mod_SOURCES
= commands
/date.c
2021 clean-module-date.mod
.1:
2022 rm -f date.mod mod-date.o mod-date.c pre-date.o date_mod-commands_date.o und-date.lst
2024 CLEAN_MODULE_TARGETS
+= clean-module-date.mod
.1
2026 clean-module-date.mod-symbol
.1:
2029 CLEAN_MODULE_TARGETS
+= clean-module-date.mod-symbol
.1
2030 DEFSYMFILES
+= def-date.lst
2031 mostlyclean-module-date.mod
.1:
2032 rm -f date_mod-commands_date.d
2034 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-date.mod
.1
2035 UNDSYMFILES
+= und-date.lst
2037 ifneq ($(TARGET_APPLE_CC
),1)
2038 date.mod
: pre-date.o mod-date.o
$(TARGET_OBJ2ELF
)
2040 $(TARGET_CC
) $(date_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-date.o mod-date.o
2041 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
2042 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
2044 date.mod
: pre-date.o mod-date.o
$(TARGET_OBJ2ELF
)
2047 $(TARGET_CC
) $(date_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-date.o mod-date.o
2048 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
2052 pre-date.o
: $(date_mod_DEPENDENCIES
) date_mod-commands_date.o
2054 $(TARGET_CC
) $(date_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ date_mod-commands_date.o
2056 mod-date.o
: mod-date.c
2057 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(date_mod_CFLAGS
) -c
-o
$@
$<
2059 mod-date.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
2060 sh
$(srcdir)/genmodsrc.sh
'date' $< > $@ ||
(rm -f
$@
; exit
1)
2062 ifneq ($(TARGET_APPLE_CC
),1)
2063 def-date.lst
: pre-date.o
2064 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 date/' > $@
2066 def-date.lst
: pre-date.o
2067 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 date/' > $@
2070 und-date.lst
: pre-date.o
2072 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
2074 date_mod-commands_date.o
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
)
2075 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(date_mod_CFLAGS
) -MD
-c
-o
$@
$<
2076 -include date_mod-commands_date.d
2078 clean-module-date_mod-commands_date-extra
.1:
2079 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
2081 CLEAN_MODULE_TARGETS
+= clean-module-date_mod-commands_date-extra
.1
2083 COMMANDFILES
+= cmd-date_mod-commands_date.lst
2084 FSFILES
+= fs-date_mod-commands_date.lst
2085 PARTTOOLFILES
+= parttool-date_mod-commands_date.lst
2086 PARTMAPFILES
+= partmap-date_mod-commands_date.lst
2087 HANDLERFILES
+= handler-date_mod-commands_date.lst
2088 TERMINALFILES
+= terminal-date_mod-commands_date.lst
2089 VIDEOFILES
+= video-date_mod-commands_date.lst
2091 cmd-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) gencmdlist.sh
2092 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)
2094 fs-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genfslist.sh
2095 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)
2097 parttool-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genparttoollist.sh
2098 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)
2100 partmap-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genpartmaplist.sh
2101 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)
2103 handler-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genhandlerlist.sh
2104 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)
2106 terminal-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genterminallist.sh
2107 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)
2109 video-date_mod-commands_date.lst
: commands
/date.c
$(commands
/date.c_DEPENDENCIES
) genvideolist.sh
2110 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)
2112 date_mod_CFLAGS
= $(COMMON_CFLAGS
)
2113 date_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
2116 datehook_mod_SOURCES
= hook
/datehook.c
2118 clean-module-datehook.mod
.1:
2119 rm -f datehook.mod mod-datehook.o mod-datehook.c pre-datehook.o datehook_mod-hook_datehook.o und-datehook.lst
2121 CLEAN_MODULE_TARGETS
+= clean-module-datehook.mod
.1
2123 clean-module-datehook.mod-symbol
.1:
2124 rm -f def-datehook.lst
2126 CLEAN_MODULE_TARGETS
+= clean-module-datehook.mod-symbol
.1
2127 DEFSYMFILES
+= def-datehook.lst
2128 mostlyclean-module-datehook.mod
.1:
2129 rm -f datehook_mod-hook_datehook.d
2131 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-datehook.mod
.1
2132 UNDSYMFILES
+= und-datehook.lst
2134 ifneq ($(TARGET_APPLE_CC
),1)
2135 datehook.mod
: pre-datehook.o mod-datehook.o
$(TARGET_OBJ2ELF
)
2137 $(TARGET_CC
) $(datehook_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-datehook.o mod-datehook.o
2138 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
2139 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
2141 datehook.mod
: pre-datehook.o mod-datehook.o
$(TARGET_OBJ2ELF
)
2144 $(TARGET_CC
) $(datehook_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-datehook.o mod-datehook.o
2145 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
2149 pre-datehook.o
: $(datehook_mod_DEPENDENCIES
) datehook_mod-hook_datehook.o
2151 $(TARGET_CC
) $(datehook_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ datehook_mod-hook_datehook.o
2153 mod-datehook.o
: mod-datehook.c
2154 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datehook_mod_CFLAGS
) -c
-o
$@
$<
2156 mod-datehook.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
2157 sh
$(srcdir)/genmodsrc.sh
'datehook' $< > $@ ||
(rm -f
$@
; exit
1)
2159 ifneq ($(TARGET_APPLE_CC
),1)
2160 def-datehook.lst
: pre-datehook.o
2161 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 datehook/' > $@
2163 def-datehook.lst
: pre-datehook.o
2164 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 datehook/' > $@
2167 und-datehook.lst
: pre-datehook.o
2168 echo
'datehook' > $@
2169 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
2171 datehook_mod-hook_datehook.o
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
)
2172 $(TARGET_CC
) -Ihook
-I
$(srcdir)/hook
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(datehook_mod_CFLAGS
) -MD
-c
-o
$@
$<
2173 -include datehook_mod-hook_datehook.d
2175 clean-module-datehook_mod-hook_datehook-extra
.1:
2176 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
2178 CLEAN_MODULE_TARGETS
+= clean-module-datehook_mod-hook_datehook-extra
.1
2180 COMMANDFILES
+= cmd-datehook_mod-hook_datehook.lst
2181 FSFILES
+= fs-datehook_mod-hook_datehook.lst
2182 PARTTOOLFILES
+= parttool-datehook_mod-hook_datehook.lst
2183 PARTMAPFILES
+= partmap-datehook_mod-hook_datehook.lst
2184 HANDLERFILES
+= handler-datehook_mod-hook_datehook.lst
2185 TERMINALFILES
+= terminal-datehook_mod-hook_datehook.lst
2186 VIDEOFILES
+= video-datehook_mod-hook_datehook.lst
2188 cmd-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) gencmdlist.sh
2189 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)
2191 fs-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genfslist.sh
2192 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)
2194 parttool-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genparttoollist.sh
2195 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)
2197 partmap-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genpartmaplist.sh
2198 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)
2200 handler-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genhandlerlist.sh
2201 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)
2203 terminal-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genterminallist.sh
2204 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)
2206 video-datehook_mod-hook_datehook.lst
: hook
/datehook.c
$(hook
/datehook.c_DEPENDENCIES
) genvideolist.sh
2207 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)
2209 datehook_mod_CFLAGS
= $(COMMON_CFLAGS
)
2210 datehook_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
2213 lsmmap_mod_SOURCES
= commands
/lsmmap.c
2215 clean-module-lsmmap.mod
.1:
2216 rm -f lsmmap.mod mod-lsmmap.o mod-lsmmap.c pre-lsmmap.o lsmmap_mod-commands_lsmmap.o und-lsmmap.lst
2218 CLEAN_MODULE_TARGETS
+= clean-module-lsmmap.mod
.1
2220 clean-module-lsmmap.mod-symbol
.1:
2221 rm -f def-lsmmap.lst
2223 CLEAN_MODULE_TARGETS
+= clean-module-lsmmap.mod-symbol
.1
2224 DEFSYMFILES
+= def-lsmmap.lst
2225 mostlyclean-module-lsmmap.mod
.1:
2226 rm -f lsmmap_mod-commands_lsmmap.d
2228 MOSTLYCLEAN_MODULE_TARGETS
+= mostlyclean-module-lsmmap.mod
.1
2229 UNDSYMFILES
+= und-lsmmap.lst
2231 ifneq ($(TARGET_APPLE_CC
),1)
2232 lsmmap.mod
: pre-lsmmap.o mod-lsmmap.o
$(TARGET_OBJ2ELF
)
2234 $(TARGET_CC
) $(lsmmap_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ pre-lsmmap.o mod-lsmmap.o
2235 if
test ! -z
"$(TARGET_OBJ2ELF)"; then .
/$(TARGET_OBJ2ELF
) $@ ||
(rm -f
$@
; exit
1); fi
2236 $(STRIP
) --strip-unneeded
-K grub_mod_init
-K grub_mod_fini
-K _grub_mod_init
-K _grub_mod_fini
-R .note
-R .comment
$@
2238 lsmmap.mod
: pre-lsmmap.o mod-lsmmap.o
$(TARGET_OBJ2ELF
)
2241 $(TARGET_CC
) $(lsmmap_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@.bin pre-lsmmap.o mod-lsmmap.o
2242 $(OBJCONV
) -f
$(TARGET_MODULE_FORMAT
) -nr
:_grub_mod_init
:grub_mod_init
-nr
:_grub_mod_fini
:grub_mod_fini
-wd1106
-nu
-nd
$@.bin
$@
2246 pre-lsmmap.o
: $(lsmmap_mod_DEPENDENCIES
) lsmmap_mod-commands_lsmmap.o
2248 $(TARGET_CC
) $(lsmmap_mod_LDFLAGS
) $(TARGET_LDFLAGS
) -Wl
,-r
,-d
-o
$@ lsmmap_mod-commands_lsmmap.o
2250 mod-lsmmap.o
: mod-lsmmap.c
2251 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -c
-o
$@
$<
2253 mod-lsmmap.c
: $(builddir
)/moddep.lst
$(srcdir)/genmodsrc.sh
2254 sh
$(srcdir)/genmodsrc.sh
'lsmmap' $< > $@ ||
(rm -f
$@
; exit
1)
2256 ifneq ($(TARGET_APPLE_CC
),1)
2257 def-lsmmap.lst
: pre-lsmmap.o
2258 $(NM
) -g
--defined-only
-P
-p
$< | sed
's/^\([^ ]*\).*/\1 lsmmap/' > $@
2260 def-lsmmap.lst
: pre-lsmmap.o
2261 $(NM
) -g
-P
-p
$< | grep
-E
'^[a-zA-Z0-9_]* [TDS]' | sed
's/^\([^ ]*\).*/\1 lsmmap/' > $@
2264 und-lsmmap.lst
: pre-lsmmap.o
2266 $(NM
) -u
-P
-p
$< | cut
-f1
-d
' ' >> $@
2268 lsmmap_mod-commands_lsmmap.o
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
)
2269 $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -MD
-c
-o
$@
$<
2270 -include lsmmap_mod-commands_lsmmap.d
2272 clean-module-lsmmap_mod-commands_lsmmap-extra
.1:
2273 rm -f cmd-lsmmap_mod-commands_lsmmap.lst fs-lsmmap_mod-commands_lsmmap.lst partmap-lsmmap_mod-commands_lsmmap.lst handler-lsmmap_mod-commands_lsmmap.lst parttool-lsmmap_mod-commands_lsmmap.lst video-lsmmap_mod-commands_lsmmap.lst terminal-lsmmap_mod-commands_lsmmap.lst
2275 CLEAN_MODULE_TARGETS
+= clean-module-lsmmap_mod-commands_lsmmap-extra
.1
2277 COMMANDFILES
+= cmd-lsmmap_mod-commands_lsmmap.lst
2278 FSFILES
+= fs-lsmmap_mod-commands_lsmmap.lst
2279 PARTTOOLFILES
+= parttool-lsmmap_mod-commands_lsmmap.lst
2280 PARTMAPFILES
+= partmap-lsmmap_mod-commands_lsmmap.lst
2281 HANDLERFILES
+= handler-lsmmap_mod-commands_lsmmap.lst
2282 TERMINALFILES
+= terminal-lsmmap_mod-commands_lsmmap.lst
2283 VIDEOFILES
+= video-lsmmap_mod-commands_lsmmap.lst
2285 cmd-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) gencmdlist.sh
2286 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/gencmdlist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2288 fs-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genfslist.sh
2289 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genfslist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2291 parttool-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genparttoollist.sh
2292 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genparttoollist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2294 partmap-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genpartmaplist.sh
2295 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genpartmaplist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2297 handler-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genhandlerlist.sh
2298 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genhandlerlist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2300 terminal-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genterminallist.sh
2301 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genterminallist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2303 video-lsmmap_mod-commands_lsmmap.lst
: commands
/lsmmap.c
$(commands
/lsmmap.c_DEPENDENCIES
) genvideolist.sh
2304 set
-e
; $(TARGET_CC
) -Icommands
-I
$(srcdir)/commands
$(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) $(lsmmap_mod_CFLAGS
) -E
$< | sh
$(srcdir)/genvideolist.sh lsmmap
> $@ ||
(rm -f
$@
; exit
1)
2306 lsmmap_mod_CFLAGS
= $(COMMON_CFLAGS
)
2307 lsmmap_mod_LDFLAGS
= $(COMMON_LDFLAGS
)
2309 include $(srcdir)/conf
/i386.mk
2310 include $(srcdir)/conf
/common.mk
2311 grub-mkimage
: $(grub_mkimage_DEPENDENCIES
) $(grub_mkimage_OBJECTS
)
2312 $(CC
) -o
$@
$(grub_mkimage_OBJECTS
) $(LDFLAGS
) $(grub_mkimage_LDFLAGS
)