]> git.proxmox.com Git - grub2.git/blob - conf/i386-pc.mk
2008-01-29 Bean <bean123ch@gmail.com>
[grub2.git] / conf / i386-pc.mk
1 # -*- makefile -*-
2
3 GRUB_MEMORY_MACHINE_LINK_ADDR = 0x8200
4
5 COMMON_ASFLAGS = -nostdinc -fno-builtin -m32
6 COMMON_CFLAGS = -fno-builtin -mrtd -mregparm=3 -m32
7 COMMON_LDFLAGS = -m32 -nostdlib
8
9 # Images.
10 pkglib_IMAGES = boot.img diskboot.img kernel.img pxeboot.img lnxboot.img
11
12 # For boot.img.
13 boot_img_SOURCES = boot/i386/pc/boot.S
14 CLEANFILES += boot.img boot.exec boot_img-boot_i386_pc_boot.o
15 MOSTLYCLEANFILES += boot_img-boot_i386_pc_boot.d
16
17 boot.img: boot.exec
18 $(OBJCOPY) -O binary -R .note -R .comment $< $@
19
20 boot.exec: boot_img-boot_i386_pc_boot.o
21 $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(boot_img_LDFLAGS)
22
23 boot_img-boot_i386_pc_boot.o: boot/i386/pc/boot.S
24 $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(boot_img_ASFLAGS) -MD -c -o $@ $<
25 -include boot_img-boot_i386_pc_boot.d
26
27 boot_img_ASFLAGS = $(COMMON_ASFLAGS)
28 boot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,7C00
29
30 # For pxeboot.img
31 pxeboot_img_SOURCES = boot/i386/pc/pxeboot.S
32 CLEANFILES += pxeboot.img pxeboot.exec pxeboot_img-boot_i386_pc_pxeboot.o
33 MOSTLYCLEANFILES += pxeboot_img-boot_i386_pc_pxeboot.d
34
35 pxeboot.img: pxeboot.exec
36 $(OBJCOPY) -O binary -R .note -R .comment $< $@
37
38 pxeboot.exec: pxeboot_img-boot_i386_pc_pxeboot.o
39 $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(pxeboot_img_LDFLAGS)
40
41 pxeboot_img-boot_i386_pc_pxeboot.o: boot/i386/pc/pxeboot.S
42 $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(pxeboot_img_ASFLAGS) -MD -c -o $@ $<
43 -include pxeboot_img-boot_i386_pc_pxeboot.d
44
45 pxeboot_img_ASFLAGS = $(COMMON_ASFLAGS)
46 pxeboot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,7C00
47
48 # For diskboot.img.
49 diskboot_img_SOURCES = boot/i386/pc/diskboot.S
50 CLEANFILES += diskboot.img diskboot.exec diskboot_img-boot_i386_pc_diskboot.o
51 MOSTLYCLEANFILES += diskboot_img-boot_i386_pc_diskboot.d
52
53 diskboot.img: diskboot.exec
54 $(OBJCOPY) -O binary -R .note -R .comment $< $@
55
56 diskboot.exec: diskboot_img-boot_i386_pc_diskboot.o
57 $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(diskboot_img_LDFLAGS)
58
59 diskboot_img-boot_i386_pc_diskboot.o: boot/i386/pc/diskboot.S
60 $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(diskboot_img_ASFLAGS) -MD -c -o $@ $<
61 -include diskboot_img-boot_i386_pc_diskboot.d
62
63 diskboot_img_ASFLAGS = $(COMMON_ASFLAGS)
64 diskboot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,8000
65
66 # For lnxboot.img.
67 lnxboot_img_SOURCES = boot/i386/pc/lnxboot.S
68 CLEANFILES += lnxboot.img lnxboot.exec lnxboot_img-boot_i386_pc_lnxboot.o
69 MOSTLYCLEANFILES += lnxboot_img-boot_i386_pc_lnxboot.d
70
71 lnxboot.img: lnxboot.exec
72 $(OBJCOPY) -O binary -R .note -R .comment $< $@
73
74 lnxboot.exec: lnxboot_img-boot_i386_pc_lnxboot.o
75 $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(lnxboot_img_LDFLAGS)
76
77 lnxboot_img-boot_i386_pc_lnxboot.o: boot/i386/pc/lnxboot.S
78 $(TARGET_CC) -Iboot/i386/pc -I$(srcdir)/boot/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(lnxboot_img_ASFLAGS) -MD -c -o $@ $<
79 -include lnxboot_img-boot_i386_pc_lnxboot.d
80
81 lnxboot_img_ASFLAGS = $(COMMON_ASFLAGS)
82 lnxboot_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,6000
83
84 # For kernel.img.
85 kernel_img_SOURCES = kern/i386/pc/startup.S kern/main.c kern/device.c \
86 kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
87 kern/misc.c kern/mm.c kern/loader.c kern/rescue.c kern/term.c \
88 kern/i386/dl.c kern/i386/pc/init.c kern/parser.c kern/partition.c \
89 kern/env.c \
90 term/i386/pc/console.c \
91 symlist.c
92 CLEANFILES += kernel.img kernel.exec kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_loader.o kernel_img-kern_rescue.o kernel_img-kern_term.o kernel_img-kern_i386_dl.o kernel_img-kern_i386_pc_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-term_i386_pc_console.o kernel_img-symlist.o
93 MOSTLYCLEANFILES += kernel_img-kern_i386_pc_startup.d kernel_img-kern_main.d kernel_img-kern_device.d kernel_img-kern_disk.d kernel_img-kern_dl.d kernel_img-kern_file.d kernel_img-kern_fs.d kernel_img-kern_err.d kernel_img-kern_misc.d kernel_img-kern_mm.d kernel_img-kern_loader.d kernel_img-kern_rescue.d kernel_img-kern_term.d kernel_img-kern_i386_dl.d kernel_img-kern_i386_pc_init.d kernel_img-kern_parser.d kernel_img-kern_partition.d kernel_img-kern_env.d kernel_img-term_i386_pc_console.d kernel_img-symlist.d
94
95 kernel.img: kernel.exec
96 $(OBJCOPY) -O binary -R .note -R .comment $< $@
97
98 kernel.exec: kernel_img-kern_i386_pc_startup.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_loader.o kernel_img-kern_rescue.o kernel_img-kern_term.o kernel_img-kern_i386_dl.o kernel_img-kern_i386_pc_init.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-term_i386_pc_console.o kernel_img-symlist.o
99 $(TARGET_CC) -o $@ $^ $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS)
100
101 kernel_img-kern_i386_pc_startup.o: kern/i386/pc/startup.S
102 $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_ASFLAGS) -MD -c -o $@ $<
103 -include kernel_img-kern_i386_pc_startup.d
104
105 kernel_img-kern_main.o: kern/main.c
106 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
107 -include kernel_img-kern_main.d
108
109 kernel_img-kern_device.o: kern/device.c
110 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
111 -include kernel_img-kern_device.d
112
113 kernel_img-kern_disk.o: kern/disk.c
114 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
115 -include kernel_img-kern_disk.d
116
117 kernel_img-kern_dl.o: kern/dl.c
118 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
119 -include kernel_img-kern_dl.d
120
121 kernel_img-kern_file.o: kern/file.c
122 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
123 -include kernel_img-kern_file.d
124
125 kernel_img-kern_fs.o: kern/fs.c
126 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
127 -include kernel_img-kern_fs.d
128
129 kernel_img-kern_err.o: kern/err.c
130 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
131 -include kernel_img-kern_err.d
132
133 kernel_img-kern_misc.o: kern/misc.c
134 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
135 -include kernel_img-kern_misc.d
136
137 kernel_img-kern_mm.o: kern/mm.c
138 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
139 -include kernel_img-kern_mm.d
140
141 kernel_img-kern_loader.o: kern/loader.c
142 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
143 -include kernel_img-kern_loader.d
144
145 kernel_img-kern_rescue.o: kern/rescue.c
146 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
147 -include kernel_img-kern_rescue.d
148
149 kernel_img-kern_term.o: kern/term.c
150 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
151 -include kernel_img-kern_term.d
152
153 kernel_img-kern_i386_dl.o: kern/i386/dl.c
154 $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
155 -include kernel_img-kern_i386_dl.d
156
157 kernel_img-kern_i386_pc_init.o: kern/i386/pc/init.c
158 $(TARGET_CC) -Ikern/i386/pc -I$(srcdir)/kern/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
159 -include kernel_img-kern_i386_pc_init.d
160
161 kernel_img-kern_parser.o: kern/parser.c
162 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
163 -include kernel_img-kern_parser.d
164
165 kernel_img-kern_partition.o: kern/partition.c
166 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
167 -include kernel_img-kern_partition.d
168
169 kernel_img-kern_env.o: kern/env.c
170 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
171 -include kernel_img-kern_env.d
172
173 kernel_img-term_i386_pc_console.o: term/i386/pc/console.c
174 $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
175 -include kernel_img-term_i386_pc_console.d
176
177 kernel_img-symlist.o: symlist.c
178 $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $<
179 -include kernel_img-symlist.d
180
181 kernel_img_HEADERS = arg.h boot.h cache.h device.h disk.h dl.h elf.h elfload.h \
182 env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \
183 partition.h pc_partition.h rescue.h symbol.h term.h time.h types.h \
184 machine/biosdisk.h machine/boot.h machine/console.h machine/init.h \
185 machine/memory.h machine/loader.h machine/vga.h machine/vbe.h machine/kernel.h
186 kernel_img_CFLAGS = $(COMMON_CFLAGS)
187 kernel_img_ASFLAGS = $(COMMON_ASFLAGS)
188 kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-Ttext,$(GRUB_MEMORY_MACHINE_LINK_ADDR) $(COMMON_CFLAGS)
189
190 MOSTLYCLEANFILES += symlist.c kernel_syms.lst
191 DEFSYMFILES += kernel_syms.lst
192
193 symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h gensymlist.sh
194 /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
195
196 kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h genkernsyms.sh
197 /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1)
198
199 # Utilities.
200 bin_UTILITIES = grub-mkimage
201 sbin_UTILITIES = grub-setup grub-mkdevicemap grub-probe
202 ifeq ($(enable_grub_emu), yes)
203 sbin_UTILITIES += grub-emu
204 endif
205
206 # For grub-mkimage.
207 grub_mkimage_SOURCES = util/i386/pc/grub-mkimage.c util/misc.c \
208 util/resolve.c
209 CLEANFILES += grub-mkimage grub_mkimage-util_i386_pc_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o
210 MOSTLYCLEANFILES += grub_mkimage-util_i386_pc_grub_mkimage.d grub_mkimage-util_misc.d grub_mkimage-util_resolve.d
211
212 grub-mkimage: $(grub_mkimage_DEPENDENCIES) grub_mkimage-util_i386_pc_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o
213 $(CC) -o $@ grub_mkimage-util_i386_pc_grub_mkimage.o grub_mkimage-util_misc.o grub_mkimage-util_resolve.o $(LDFLAGS) $(grub_mkimage_LDFLAGS)
214
215 grub_mkimage-util_i386_pc_grub_mkimage.o: util/i386/pc/grub-mkimage.c $(util/i386/pc/grub-mkimage.c_DEPENDENCIES)
216 $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
217 -include grub_mkimage-util_i386_pc_grub_mkimage.d
218
219 grub_mkimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
220 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
221 -include grub_mkimage-util_misc.d
222
223 grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES)
224 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $<
225 -include grub_mkimage-util_resolve.d
226
227 grub_mkimage_CFLAGS = -DGRUB_MEMORY_MACHINE_LINK_ADDR=$(GRUB_MEMORY_MACHINE_LINK_ADDR)
228 grub_mkimage_LDFLAGS = $(LIBLZO)
229
230 # For grub-setup.
231 util/i386/pc/grub-setup.c_DEPENDENCIES = grub_setup_init.h
232 grub_setup_SOURCES = util/i386/pc/grub-setup.c util/biosdisk.c \
233 util/misc.c util/getroot.c kern/device.c kern/disk.c \
234 kern/err.c kern/misc.c kern/parser.c kern/partition.c \
235 kern/file.c kern/fs.c kern/env.c fs/fshelp.c \
236 \
237 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
238 fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \
239 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
240 fs/ufs.c fs/xfs.c \
241 \
242 partmap/pc.c partmap/gpt.c \
243 util/raid.c util/lvm.c grub_setup_init.c
244 CLEANFILES += grub-setup grub_setup-util_i386_pc_grub_setup.o grub_setup-util_biosdisk.o grub_setup-util_misc.o grub_setup-util_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-kern_parser.o grub_setup-kern_partition.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o grub_setup-fs_affs.o grub_setup-fs_cpio.o grub_setup-fs_ext2.o grub_setup-fs_fat.o grub_setup-fs_hfs.o grub_setup-fs_hfsplus.o grub_setup-fs_iso9660.o grub_setup-fs_jfs.o grub_setup-fs_minix.o grub_setup-fs_ntfs.o grub_setup-fs_ntfscomp.o grub_setup-fs_reiserfs.o grub_setup-fs_sfs.o grub_setup-fs_ufs.o grub_setup-fs_xfs.o grub_setup-partmap_pc.o grub_setup-partmap_gpt.o grub_setup-util_raid.o grub_setup-util_lvm.o grub_setup-grub_setup_init.o
245 MOSTLYCLEANFILES += grub_setup-util_i386_pc_grub_setup.d grub_setup-util_biosdisk.d grub_setup-util_misc.d grub_setup-util_getroot.d grub_setup-kern_device.d grub_setup-kern_disk.d grub_setup-kern_err.d grub_setup-kern_misc.d grub_setup-kern_parser.d grub_setup-kern_partition.d grub_setup-kern_file.d grub_setup-kern_fs.d grub_setup-kern_env.d grub_setup-fs_fshelp.d grub_setup-fs_affs.d grub_setup-fs_cpio.d grub_setup-fs_ext2.d grub_setup-fs_fat.d grub_setup-fs_hfs.d grub_setup-fs_hfsplus.d grub_setup-fs_iso9660.d grub_setup-fs_jfs.d grub_setup-fs_minix.d grub_setup-fs_ntfs.d grub_setup-fs_ntfscomp.d grub_setup-fs_reiserfs.d grub_setup-fs_sfs.d grub_setup-fs_ufs.d grub_setup-fs_xfs.d grub_setup-partmap_pc.d grub_setup-partmap_gpt.d grub_setup-util_raid.d grub_setup-util_lvm.d grub_setup-grub_setup_init.d
246
247 grub-setup: $(grub_setup_DEPENDENCIES) grub_setup-util_i386_pc_grub_setup.o grub_setup-util_biosdisk.o grub_setup-util_misc.o grub_setup-util_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-kern_parser.o grub_setup-kern_partition.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o grub_setup-fs_affs.o grub_setup-fs_cpio.o grub_setup-fs_ext2.o grub_setup-fs_fat.o grub_setup-fs_hfs.o grub_setup-fs_hfsplus.o grub_setup-fs_iso9660.o grub_setup-fs_jfs.o grub_setup-fs_minix.o grub_setup-fs_ntfs.o grub_setup-fs_ntfscomp.o grub_setup-fs_reiserfs.o grub_setup-fs_sfs.o grub_setup-fs_ufs.o grub_setup-fs_xfs.o grub_setup-partmap_pc.o grub_setup-partmap_gpt.o grub_setup-util_raid.o grub_setup-util_lvm.o grub_setup-grub_setup_init.o
248 $(CC) -o $@ grub_setup-util_i386_pc_grub_setup.o grub_setup-util_biosdisk.o grub_setup-util_misc.o grub_setup-util_getroot.o grub_setup-kern_device.o grub_setup-kern_disk.o grub_setup-kern_err.o grub_setup-kern_misc.o grub_setup-kern_parser.o grub_setup-kern_partition.o grub_setup-kern_file.o grub_setup-kern_fs.o grub_setup-kern_env.o grub_setup-fs_fshelp.o grub_setup-fs_affs.o grub_setup-fs_cpio.o grub_setup-fs_ext2.o grub_setup-fs_fat.o grub_setup-fs_hfs.o grub_setup-fs_hfsplus.o grub_setup-fs_iso9660.o grub_setup-fs_jfs.o grub_setup-fs_minix.o grub_setup-fs_ntfs.o grub_setup-fs_ntfscomp.o grub_setup-fs_reiserfs.o grub_setup-fs_sfs.o grub_setup-fs_ufs.o grub_setup-fs_xfs.o grub_setup-partmap_pc.o grub_setup-partmap_gpt.o grub_setup-util_raid.o grub_setup-util_lvm.o grub_setup-grub_setup_init.o $(LDFLAGS) $(grub_setup_LDFLAGS)
249
250 grub_setup-util_i386_pc_grub_setup.o: util/i386/pc/grub-setup.c $(util/i386/pc/grub-setup.c_DEPENDENCIES)
251 $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
252 -include grub_setup-util_i386_pc_grub_setup.d
253
254 grub_setup-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES)
255 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
256 -include grub_setup-util_biosdisk.d
257
258 grub_setup-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
259 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
260 -include grub_setup-util_misc.d
261
262 grub_setup-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
263 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
264 -include grub_setup-util_getroot.d
265
266 grub_setup-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
267 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
268 -include grub_setup-kern_device.d
269
270 grub_setup-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
271 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
272 -include grub_setup-kern_disk.d
273
274 grub_setup-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
275 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
276 -include grub_setup-kern_err.d
277
278 grub_setup-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
279 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
280 -include grub_setup-kern_misc.d
281
282 grub_setup-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
283 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
284 -include grub_setup-kern_parser.d
285
286 grub_setup-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
287 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
288 -include grub_setup-kern_partition.d
289
290 grub_setup-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
291 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
292 -include grub_setup-kern_file.d
293
294 grub_setup-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
295 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
296 -include grub_setup-kern_fs.d
297
298 grub_setup-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
299 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
300 -include grub_setup-kern_env.d
301
302 grub_setup-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
303 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
304 -include grub_setup-fs_fshelp.d
305
306 grub_setup-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
307 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
308 -include grub_setup-fs_affs.d
309
310 grub_setup-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
311 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
312 -include grub_setup-fs_cpio.d
313
314 grub_setup-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
315 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
316 -include grub_setup-fs_ext2.d
317
318 grub_setup-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
319 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
320 -include grub_setup-fs_fat.d
321
322 grub_setup-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
323 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
324 -include grub_setup-fs_hfs.d
325
326 grub_setup-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
327 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
328 -include grub_setup-fs_hfsplus.d
329
330 grub_setup-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
331 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
332 -include grub_setup-fs_iso9660.d
333
334 grub_setup-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
335 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
336 -include grub_setup-fs_jfs.d
337
338 grub_setup-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
339 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
340 -include grub_setup-fs_minix.d
341
342 grub_setup-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
343 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
344 -include grub_setup-fs_ntfs.d
345
346 grub_setup-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
347 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
348 -include grub_setup-fs_ntfscomp.d
349
350 grub_setup-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
351 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
352 -include grub_setup-fs_reiserfs.d
353
354 grub_setup-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
355 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
356 -include grub_setup-fs_sfs.d
357
358 grub_setup-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
359 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
360 -include grub_setup-fs_ufs.d
361
362 grub_setup-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
363 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
364 -include grub_setup-fs_xfs.d
365
366 grub_setup-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
367 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
368 -include grub_setup-partmap_pc.d
369
370 grub_setup-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
371 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
372 -include grub_setup-partmap_gpt.d
373
374 grub_setup-util_raid.o: util/raid.c $(util/raid.c_DEPENDENCIES)
375 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
376 -include grub_setup-util_raid.d
377
378 grub_setup-util_lvm.o: util/lvm.c $(util/lvm.c_DEPENDENCIES)
379 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
380 -include grub_setup-util_lvm.d
381
382 grub_setup-grub_setup_init.o: grub_setup_init.c $(grub_setup_init.c_DEPENDENCIES)
383 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_setup_CFLAGS) -MD -c -o $@ $<
384 -include grub_setup-grub_setup_init.d
385
386
387 # For grub-mkdevicemap.
388 grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \
389 util/i386/get_disk_name.c
390 CLEANFILES += grub-mkdevicemap grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o
391 MOSTLYCLEANFILES += grub_mkdevicemap-util_grub_mkdevicemap.d grub_mkdevicemap-util_misc.d grub_mkdevicemap-util_i386_get_disk_name.d
392
393 grub-mkdevicemap: $(grub_mkdevicemap_DEPENDENCIES) grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o
394 $(CC) -o $@ grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_misc.o grub_mkdevicemap-util_i386_get_disk_name.o $(LDFLAGS) $(grub_mkdevicemap_LDFLAGS)
395
396 grub_mkdevicemap-util_grub_mkdevicemap.o: util/grub-mkdevicemap.c $(util/grub-mkdevicemap.c_DEPENDENCIES)
397 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $<
398 -include grub_mkdevicemap-util_grub_mkdevicemap.d
399
400 grub_mkdevicemap-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
401 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $<
402 -include grub_mkdevicemap-util_misc.d
403
404 grub_mkdevicemap-util_i386_get_disk_name.o: util/i386/get_disk_name.c $(util/i386/get_disk_name.c_DEPENDENCIES)
405 $(CC) -Iutil/i386 -I$(srcdir)/util/i386 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $<
406 -include grub_mkdevicemap-util_i386_get_disk_name.d
407
408
409 # For grub-probe.
410 util/grub-probe.c_DEPENDENCIES = grub_probe_init.h
411 grub_probe_SOURCES = util/grub-probe.c \
412 util/biosdisk.c util/misc.c util/getroot.c \
413 kern/device.c kern/disk.c kern/err.c kern/misc.c \
414 kern/parser.c kern/partition.c kern/file.c \
415 \
416 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
417 fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \
418 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
419 fs/ufs.c fs/xfs.c \
420 \
421 partmap/pc.c partmap/apple.c partmap/gpt.c \
422 kern/fs.c kern/env.c fs/fshelp.c \
423 disk/lvm.c disk/raid.c grub_probe_init.c
424 CLEANFILES += grub-probe grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-grub_probe_init.o
425 MOSTLYCLEANFILES += grub_probe-util_grub_probe.d grub_probe-util_biosdisk.d grub_probe-util_misc.d grub_probe-util_getroot.d grub_probe-kern_device.d grub_probe-kern_disk.d grub_probe-kern_err.d grub_probe-kern_misc.d grub_probe-kern_parser.d grub_probe-kern_partition.d grub_probe-kern_file.d grub_probe-fs_affs.d grub_probe-fs_cpio.d grub_probe-fs_ext2.d grub_probe-fs_fat.d grub_probe-fs_hfs.d grub_probe-fs_hfsplus.d grub_probe-fs_iso9660.d grub_probe-fs_jfs.d grub_probe-fs_minix.d grub_probe-fs_ntfs.d grub_probe-fs_ntfscomp.d grub_probe-fs_reiserfs.d grub_probe-fs_sfs.d grub_probe-fs_ufs.d grub_probe-fs_xfs.d grub_probe-partmap_pc.d grub_probe-partmap_apple.d grub_probe-partmap_gpt.d grub_probe-kern_fs.d grub_probe-kern_env.d grub_probe-fs_fshelp.d grub_probe-disk_lvm.d grub_probe-disk_raid.d grub_probe-grub_probe_init.d
426
427 grub-probe: $(grub_probe_DEPENDENCIES) grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-grub_probe_init.o
428 $(CC) -o $@ grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-grub_probe_init.o $(LDFLAGS) $(grub_probe_LDFLAGS)
429
430 grub_probe-util_grub_probe.o: util/grub-probe.c $(util/grub-probe.c_DEPENDENCIES)
431 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
432 -include grub_probe-util_grub_probe.d
433
434 grub_probe-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES)
435 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
436 -include grub_probe-util_biosdisk.d
437
438 grub_probe-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
439 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
440 -include grub_probe-util_misc.d
441
442 grub_probe-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
443 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
444 -include grub_probe-util_getroot.d
445
446 grub_probe-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
447 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
448 -include grub_probe-kern_device.d
449
450 grub_probe-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
451 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
452 -include grub_probe-kern_disk.d
453
454 grub_probe-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
455 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
456 -include grub_probe-kern_err.d
457
458 grub_probe-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
459 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
460 -include grub_probe-kern_misc.d
461
462 grub_probe-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
463 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
464 -include grub_probe-kern_parser.d
465
466 grub_probe-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
467 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
468 -include grub_probe-kern_partition.d
469
470 grub_probe-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
471 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
472 -include grub_probe-kern_file.d
473
474 grub_probe-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
475 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
476 -include grub_probe-fs_affs.d
477
478 grub_probe-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
479 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
480 -include grub_probe-fs_cpio.d
481
482 grub_probe-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
483 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
484 -include grub_probe-fs_ext2.d
485
486 grub_probe-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
487 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
488 -include grub_probe-fs_fat.d
489
490 grub_probe-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
491 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
492 -include grub_probe-fs_hfs.d
493
494 grub_probe-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
495 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
496 -include grub_probe-fs_hfsplus.d
497
498 grub_probe-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
499 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
500 -include grub_probe-fs_iso9660.d
501
502 grub_probe-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
503 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
504 -include grub_probe-fs_jfs.d
505
506 grub_probe-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
507 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
508 -include grub_probe-fs_minix.d
509
510 grub_probe-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
511 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
512 -include grub_probe-fs_ntfs.d
513
514 grub_probe-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
515 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
516 -include grub_probe-fs_ntfscomp.d
517
518 grub_probe-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
519 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
520 -include grub_probe-fs_reiserfs.d
521
522 grub_probe-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
523 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
524 -include grub_probe-fs_sfs.d
525
526 grub_probe-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
527 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
528 -include grub_probe-fs_ufs.d
529
530 grub_probe-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
531 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
532 -include grub_probe-fs_xfs.d
533
534 grub_probe-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
535 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
536 -include grub_probe-partmap_pc.d
537
538 grub_probe-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
539 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
540 -include grub_probe-partmap_apple.d
541
542 grub_probe-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
543 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
544 -include grub_probe-partmap_gpt.d
545
546 grub_probe-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
547 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
548 -include grub_probe-kern_fs.d
549
550 grub_probe-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
551 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
552 -include grub_probe-kern_env.d
553
554 grub_probe-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
555 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
556 -include grub_probe-fs_fshelp.d
557
558 grub_probe-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
559 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
560 -include grub_probe-disk_lvm.d
561
562 grub_probe-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
563 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
564 -include grub_probe-disk_raid.d
565
566 grub_probe-grub_probe_init.o: grub_probe_init.c $(grub_probe_init.c_DEPENDENCIES)
567 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
568 -include grub_probe-grub_probe_init.d
569
570
571 # For grub-emu.
572 util/grub-emu.c_DEPENDENCIES = grub_emu_init.h
573 normal/execute.c_DEPENDENCIES = grub_script.tab.h
574 grub-emu_DEPENDENCIES = grub_script.tab.c
575 grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
576 commands/configfile.c commands/echo.c commands/help.c \
577 commands/terminal.c commands/ls.c commands/test.c \
578 commands/search.c commands/blocklist.c commands/hexdump.c \
579 commands/i386/pc/halt.c commands/i386/pc/reboot.c \
580 commands/i386/cpuid.c \
581 disk/host.c disk/loopback.c disk/raid.c disk/lvm.c \
582 fs/fshelp.c \
583 \
584 io/gzio.c \
585 kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \
586 kern/err.c \
587 normal/execute.c kern/file.c kern/fs.c normal/lexer.c \
588 kern/loader.c kern/main.c kern/misc.c kern/parser.c \
589 grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \
590 normal/arg.c normal/cmdline.c normal/command.c normal/function.c\
591 normal/completion.c normal/main.c normal/color.c \
592 normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \
593 partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
594 partmap/acorn.c partmap/gpt.c \
595 \
596 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
597 fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \
598 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
599 fs/ufs.c fs/xfs.c \
600 \
601 util/console.c util/hostfs.c util/grub-emu.c util/misc.c \
602 util/biosdisk.c util/getroot.c \
603 util/i386/pc/misc.c grub_emu_init.c
604 CLEANFILES += grub-emu grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_echo.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-commands_hexdump.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-commands_i386_cpuid.o grub_emu-disk_host.o grub_emu-disk_loopback.o grub_emu-disk_raid.o grub_emu-disk_lvm.o grub_emu-fs_fshelp.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_elf.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-grub_script_tab.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_function.o grub_emu-normal_completion.o grub_emu-normal_main.o grub_emu-normal_color.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-fs_affs.o grub_emu-fs_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_i386_pc_misc.o grub_emu-grub_emu_init.o
605 MOSTLYCLEANFILES += grub_emu-commands_boot.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_configfile.d grub_emu-commands_echo.d grub_emu-commands_help.d grub_emu-commands_terminal.d grub_emu-commands_ls.d grub_emu-commands_test.d grub_emu-commands_search.d grub_emu-commands_blocklist.d grub_emu-commands_hexdump.d grub_emu-commands_i386_pc_halt.d grub_emu-commands_i386_pc_reboot.d grub_emu-commands_i386_cpuid.d grub_emu-disk_host.d grub_emu-disk_loopback.d grub_emu-disk_raid.d grub_emu-disk_lvm.d grub_emu-fs_fshelp.d grub_emu-io_gzio.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_elf.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-normal_execute.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-normal_lexer.d grub_emu-kern_loader.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_parser.d grub_emu-grub_script_tab.d grub_emu-kern_partition.d grub_emu-kern_rescue.d grub_emu-kern_term.d grub_emu-normal_arg.d grub_emu-normal_cmdline.d grub_emu-normal_command.d grub_emu-normal_function.d grub_emu-normal_completion.d grub_emu-normal_main.d grub_emu-normal_color.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-normal_misc.d grub_emu-normal_script.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_pc.d grub_emu-partmap_sun.d grub_emu-partmap_acorn.d grub_emu-partmap_gpt.d grub_emu-fs_affs.d grub_emu-fs_cpio.d grub_emu-fs_ext2.d grub_emu-fs_fat.d grub_emu-fs_hfs.d grub_emu-fs_hfsplus.d grub_emu-fs_iso9660.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_ntfs.d grub_emu-fs_ntfscomp.d grub_emu-fs_reiserfs.d grub_emu-fs_sfs.d grub_emu-fs_ufs.d grub_emu-fs_xfs.d grub_emu-util_console.d grub_emu-util_hostfs.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_biosdisk.d grub_emu-util_getroot.d grub_emu-util_i386_pc_misc.d grub_emu-grub_emu_init.d
606
607 grub-emu: $(grub_emu_DEPENDENCIES) grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_echo.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-commands_hexdump.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-commands_i386_cpuid.o grub_emu-disk_host.o grub_emu-disk_loopback.o grub_emu-disk_raid.o grub_emu-disk_lvm.o grub_emu-fs_fshelp.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_elf.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-grub_script_tab.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_function.o grub_emu-normal_completion.o grub_emu-normal_main.o grub_emu-normal_color.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-fs_affs.o grub_emu-fs_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_i386_pc_misc.o grub_emu-grub_emu_init.o
608 $(CC) -o $@ grub_emu-commands_boot.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_echo.o grub_emu-commands_help.o grub_emu-commands_terminal.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-commands_hexdump.o grub_emu-commands_i386_pc_halt.o grub_emu-commands_i386_pc_reboot.o grub_emu-commands_i386_cpuid.o grub_emu-disk_host.o grub_emu-disk_loopback.o grub_emu-disk_raid.o grub_emu-disk_lvm.o grub_emu-fs_fshelp.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_elf.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-normal_execute.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-normal_lexer.o grub_emu-kern_loader.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-grub_script_tab.o grub_emu-kern_partition.o grub_emu-kern_rescue.o grub_emu-kern_term.o grub_emu-normal_arg.o grub_emu-normal_cmdline.o grub_emu-normal_command.o grub_emu-normal_function.o grub_emu-normal_completion.o grub_emu-normal_main.o grub_emu-normal_color.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_misc.o grub_emu-normal_script.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_pc.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-fs_affs.o grub_emu-fs_cpio.o grub_emu-fs_ext2.o grub_emu-fs_fat.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_xfs.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_biosdisk.o grub_emu-util_getroot.o grub_emu-util_i386_pc_misc.o grub_emu-grub_emu_init.o $(LDFLAGS) $(grub_emu_LDFLAGS)
609
610 grub_emu-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES)
611 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
612 -include grub_emu-commands_boot.d
613
614 grub_emu-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES)
615 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
616 -include grub_emu-commands_cat.d
617
618 grub_emu-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES)
619 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
620 -include grub_emu-commands_cmp.d
621
622 grub_emu-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES)
623 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
624 -include grub_emu-commands_configfile.d
625
626 grub_emu-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES)
627 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
628 -include grub_emu-commands_echo.d
629
630 grub_emu-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES)
631 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
632 -include grub_emu-commands_help.d
633
634 grub_emu-commands_terminal.o: commands/terminal.c $(commands/terminal.c_DEPENDENCIES)
635 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
636 -include grub_emu-commands_terminal.d
637
638 grub_emu-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
639 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
640 -include grub_emu-commands_ls.d
641
642 grub_emu-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES)
643 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
644 -include grub_emu-commands_test.d
645
646 grub_emu-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES)
647 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
648 -include grub_emu-commands_search.d
649
650 grub_emu-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
651 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
652 -include grub_emu-commands_blocklist.d
653
654 grub_emu-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES)
655 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
656 -include grub_emu-commands_hexdump.d
657
658 grub_emu-commands_i386_pc_halt.o: commands/i386/pc/halt.c $(commands/i386/pc/halt.c_DEPENDENCIES)
659 $(CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
660 -include grub_emu-commands_i386_pc_halt.d
661
662 grub_emu-commands_i386_pc_reboot.o: commands/i386/pc/reboot.c $(commands/i386/pc/reboot.c_DEPENDENCIES)
663 $(CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
664 -include grub_emu-commands_i386_pc_reboot.d
665
666 grub_emu-commands_i386_cpuid.o: commands/i386/cpuid.c $(commands/i386/cpuid.c_DEPENDENCIES)
667 $(CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
668 -include grub_emu-commands_i386_cpuid.d
669
670 grub_emu-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES)
671 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
672 -include grub_emu-disk_host.d
673
674 grub_emu-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
675 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
676 -include grub_emu-disk_loopback.d
677
678 grub_emu-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
679 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
680 -include grub_emu-disk_raid.d
681
682 grub_emu-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
683 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
684 -include grub_emu-disk_lvm.d
685
686 grub_emu-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
687 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
688 -include grub_emu-fs_fshelp.d
689
690 grub_emu-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES)
691 $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
692 -include grub_emu-io_gzio.d
693
694 grub_emu-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
695 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
696 -include grub_emu-kern_device.d
697
698 grub_emu-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
699 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
700 -include grub_emu-kern_disk.d
701
702 grub_emu-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES)
703 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
704 -include grub_emu-kern_dl.d
705
706 grub_emu-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES)
707 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
708 -include grub_emu-kern_elf.d
709
710 grub_emu-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
711 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
712 -include grub_emu-kern_env.d
713
714 grub_emu-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
715 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
716 -include grub_emu-kern_err.d
717
718 grub_emu-normal_execute.o: normal/execute.c $(normal/execute.c_DEPENDENCIES)
719 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
720 -include grub_emu-normal_execute.d
721
722 grub_emu-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
723 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
724 -include grub_emu-kern_file.d
725
726 grub_emu-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
727 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
728 -include grub_emu-kern_fs.d
729
730 grub_emu-normal_lexer.o: normal/lexer.c $(normal/lexer.c_DEPENDENCIES)
731 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
732 -include grub_emu-normal_lexer.d
733
734 grub_emu-kern_loader.o: kern/loader.c $(kern/loader.c_DEPENDENCIES)
735 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
736 -include grub_emu-kern_loader.d
737
738 grub_emu-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES)
739 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
740 -include grub_emu-kern_main.d
741
742 grub_emu-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
743 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
744 -include grub_emu-kern_misc.d
745
746 grub_emu-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
747 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
748 -include grub_emu-kern_parser.d
749
750 grub_emu-grub_script_tab.o: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES)
751 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
752 -include grub_emu-grub_script_tab.d
753
754 grub_emu-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
755 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
756 -include grub_emu-kern_partition.d
757
758 grub_emu-kern_rescue.o: kern/rescue.c $(kern/rescue.c_DEPENDENCIES)
759 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
760 -include grub_emu-kern_rescue.d
761
762 grub_emu-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES)
763 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
764 -include grub_emu-kern_term.d
765
766 grub_emu-normal_arg.o: normal/arg.c $(normal/arg.c_DEPENDENCIES)
767 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
768 -include grub_emu-normal_arg.d
769
770 grub_emu-normal_cmdline.o: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES)
771 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
772 -include grub_emu-normal_cmdline.d
773
774 grub_emu-normal_command.o: normal/command.c $(normal/command.c_DEPENDENCIES)
775 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
776 -include grub_emu-normal_command.d
777
778 grub_emu-normal_function.o: normal/function.c $(normal/function.c_DEPENDENCIES)
779 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
780 -include grub_emu-normal_function.d
781
782 grub_emu-normal_completion.o: normal/completion.c $(normal/completion.c_DEPENDENCIES)
783 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
784 -include grub_emu-normal_completion.d
785
786 grub_emu-normal_main.o: normal/main.c $(normal/main.c_DEPENDENCIES)
787 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
788 -include grub_emu-normal_main.d
789
790 grub_emu-normal_color.o: normal/color.c $(normal/color.c_DEPENDENCIES)
791 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
792 -include grub_emu-normal_color.d
793
794 grub_emu-normal_menu.o: normal/menu.c $(normal/menu.c_DEPENDENCIES)
795 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
796 -include grub_emu-normal_menu.d
797
798 grub_emu-normal_menu_entry.o: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES)
799 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
800 -include grub_emu-normal_menu_entry.d
801
802 grub_emu-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES)
803 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
804 -include grub_emu-normal_misc.d
805
806 grub_emu-normal_script.o: normal/script.c $(normal/script.c_DEPENDENCIES)
807 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
808 -include grub_emu-normal_script.d
809
810 grub_emu-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES)
811 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
812 -include grub_emu-partmap_amiga.d
813
814 grub_emu-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
815 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
816 -include grub_emu-partmap_apple.d
817
818 grub_emu-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
819 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
820 -include grub_emu-partmap_pc.d
821
822 grub_emu-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES)
823 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
824 -include grub_emu-partmap_sun.d
825
826 grub_emu-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES)
827 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
828 -include grub_emu-partmap_acorn.d
829
830 grub_emu-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
831 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
832 -include grub_emu-partmap_gpt.d
833
834 grub_emu-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
835 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
836 -include grub_emu-fs_affs.d
837
838 grub_emu-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
839 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
840 -include grub_emu-fs_cpio.d
841
842 grub_emu-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
843 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
844 -include grub_emu-fs_ext2.d
845
846 grub_emu-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
847 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
848 -include grub_emu-fs_fat.d
849
850 grub_emu-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
851 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
852 -include grub_emu-fs_hfs.d
853
854 grub_emu-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
855 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
856 -include grub_emu-fs_hfsplus.d
857
858 grub_emu-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
859 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
860 -include grub_emu-fs_iso9660.d
861
862 grub_emu-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
863 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
864 -include grub_emu-fs_jfs.d
865
866 grub_emu-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
867 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
868 -include grub_emu-fs_minix.d
869
870 grub_emu-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
871 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
872 -include grub_emu-fs_ntfs.d
873
874 grub_emu-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
875 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
876 -include grub_emu-fs_ntfscomp.d
877
878 grub_emu-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
879 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
880 -include grub_emu-fs_reiserfs.d
881
882 grub_emu-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
883 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
884 -include grub_emu-fs_sfs.d
885
886 grub_emu-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
887 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
888 -include grub_emu-fs_ufs.d
889
890 grub_emu-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
891 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
892 -include grub_emu-fs_xfs.d
893
894 grub_emu-util_console.o: util/console.c $(util/console.c_DEPENDENCIES)
895 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
896 -include grub_emu-util_console.d
897
898 grub_emu-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES)
899 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
900 -include grub_emu-util_hostfs.d
901
902 grub_emu-util_grub_emu.o: util/grub-emu.c $(util/grub-emu.c_DEPENDENCIES)
903 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
904 -include grub_emu-util_grub_emu.d
905
906 grub_emu-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
907 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
908 -include grub_emu-util_misc.d
909
910 grub_emu-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES)
911 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
912 -include grub_emu-util_biosdisk.d
913
914 grub_emu-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
915 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
916 -include grub_emu-util_getroot.d
917
918 grub_emu-util_i386_pc_misc.o: util/i386/pc/misc.c $(util/i386/pc/misc.c_DEPENDENCIES)
919 $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
920 -include grub_emu-util_i386_pc_misc.d
921
922 grub_emu-grub_emu_init.o: grub_emu_init.c $(grub_emu_init.c_DEPENDENCIES)
923 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
924 -include grub_emu-grub_emu_init.d
925
926
927 grub_emu_LDFLAGS = $(LIBCURSES)
928
929 # Scripts.
930 sbin_SCRIPTS = grub-install
931 bin_SCRIPTS = grub-mkrescue
932
933 # For grub-install.
934 grub_install_SOURCES = util/i386/pc/grub-install.in
935 CLEANFILES += grub-install
936
937 grub-install: util/i386/pc/grub-install.in config.status
938 ./config.status --file=grub-install:util/i386/pc/grub-install.in
939 chmod +x $@
940
941
942 # For grub-mkrescue.
943 grub_mkrescue_SOURCES = util/i386/pc/grub-mkrescue.in
944 CLEANFILES += grub-mkrescue
945
946 grub-mkrescue: util/i386/pc/grub-mkrescue.in config.status
947 ./config.status --file=grub-mkrescue:util/i386/pc/grub-mkrescue.in
948 chmod +x $@
949
950
951 # Modules.
952 pkglib_MODULES = biosdisk.mod _chain.mod _linux.mod linux.mod normal.mod \
953 _multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod \
954 vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
955 videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod \
956 ata.mod vga.mod memdisk.mod jpeg.mod png.mod
957
958 # For biosdisk.mod.
959 biosdisk_mod_SOURCES = disk/i386/pc/biosdisk.c
960 CLEANFILES += biosdisk.mod mod-biosdisk.o mod-biosdisk.c pre-biosdisk.o biosdisk_mod-disk_i386_pc_biosdisk.o und-biosdisk.lst
961 ifneq ($(biosdisk_mod_EXPORTS),no)
962 CLEANFILES += def-biosdisk.lst
963 DEFSYMFILES += def-biosdisk.lst
964 endif
965 MOSTLYCLEANFILES += biosdisk_mod-disk_i386_pc_biosdisk.d
966 UNDSYMFILES += und-biosdisk.lst
967
968 biosdisk.mod: pre-biosdisk.o mod-biosdisk.o
969 -rm -f $@
970 $(TARGET_CC) $(biosdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
971 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
972
973 pre-biosdisk.o: $(biosdisk_mod_DEPENDENCIES) biosdisk_mod-disk_i386_pc_biosdisk.o
974 -rm -f $@
975 $(TARGET_CC) $(biosdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ biosdisk_mod-disk_i386_pc_biosdisk.o
976
977 mod-biosdisk.o: mod-biosdisk.c
978 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -c -o $@ $<
979
980 mod-biosdisk.c: moddep.lst genmodsrc.sh
981 sh $(srcdir)/genmodsrc.sh 'biosdisk' $< > $@ || (rm -f $@; exit 1)
982
983 ifneq ($(biosdisk_mod_EXPORTS),no)
984 def-biosdisk.lst: pre-biosdisk.o
985 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 biosdisk/' > $@
986 endif
987
988 und-biosdisk.lst: pre-biosdisk.o
989 echo 'biosdisk' > $@
990 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
991
992 biosdisk_mod-disk_i386_pc_biosdisk.o: disk/i386/pc/biosdisk.c
993 $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -MD -c -o $@ $<
994 -include biosdisk_mod-disk_i386_pc_biosdisk.d
995
996 CLEANFILES += cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst fs-biosdisk_mod-disk_i386_pc_biosdisk.lst
997 COMMANDFILES += cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst
998 FSFILES += fs-biosdisk_mod-disk_i386_pc_biosdisk.lst
999
1000 cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst: disk/i386/pc/biosdisk.c gencmdlist.sh
1001 set -e; $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh biosdisk > $@ || (rm -f $@; exit 1)
1002
1003 fs-biosdisk_mod-disk_i386_pc_biosdisk.lst: disk/i386/pc/biosdisk.c genfslist.sh
1004 set -e; $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh biosdisk > $@ || (rm -f $@; exit 1)
1005
1006
1007 biosdisk_mod_CFLAGS = $(COMMON_CFLAGS)
1008 biosdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
1009
1010 # For _chain.mod.
1011 _chain_mod_SOURCES = loader/i386/pc/chainloader.c
1012 CLEANFILES += _chain.mod mod-_chain.o mod-_chain.c pre-_chain.o _chain_mod-loader_i386_pc_chainloader.o und-_chain.lst
1013 ifneq ($(_chain_mod_EXPORTS),no)
1014 CLEANFILES += def-_chain.lst
1015 DEFSYMFILES += def-_chain.lst
1016 endif
1017 MOSTLYCLEANFILES += _chain_mod-loader_i386_pc_chainloader.d
1018 UNDSYMFILES += und-_chain.lst
1019
1020 _chain.mod: pre-_chain.o mod-_chain.o
1021 -rm -f $@
1022 $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1023 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1024
1025 pre-_chain.o: $(_chain_mod_DEPENDENCIES) _chain_mod-loader_i386_pc_chainloader.o
1026 -rm -f $@
1027 $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _chain_mod-loader_i386_pc_chainloader.o
1028
1029 mod-_chain.o: mod-_chain.c
1030 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -c -o $@ $<
1031
1032 mod-_chain.c: moddep.lst genmodsrc.sh
1033 sh $(srcdir)/genmodsrc.sh '_chain' $< > $@ || (rm -f $@; exit 1)
1034
1035 ifneq ($(_chain_mod_EXPORTS),no)
1036 def-_chain.lst: pre-_chain.o
1037 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _chain/' > $@
1038 endif
1039
1040 und-_chain.lst: pre-_chain.o
1041 echo '_chain' > $@
1042 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1043
1044 _chain_mod-loader_i386_pc_chainloader.o: loader/i386/pc/chainloader.c
1045 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -MD -c -o $@ $<
1046 -include _chain_mod-loader_i386_pc_chainloader.d
1047
1048 CLEANFILES += cmd-_chain_mod-loader_i386_pc_chainloader.lst fs-_chain_mod-loader_i386_pc_chainloader.lst
1049 COMMANDFILES += cmd-_chain_mod-loader_i386_pc_chainloader.lst
1050 FSFILES += fs-_chain_mod-loader_i386_pc_chainloader.lst
1051
1052 cmd-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c gencmdlist.sh
1053 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _chain > $@ || (rm -f $@; exit 1)
1054
1055 fs-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c genfslist.sh
1056 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _chain > $@ || (rm -f $@; exit 1)
1057
1058
1059 _chain_mod_CFLAGS = $(COMMON_CFLAGS)
1060 _chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
1061
1062 # For chain.mod.
1063 chain_mod_SOURCES = loader/i386/pc/chainloader_normal.c
1064 CLEANFILES += chain.mod mod-chain.o mod-chain.c pre-chain.o chain_mod-loader_i386_pc_chainloader_normal.o und-chain.lst
1065 ifneq ($(chain_mod_EXPORTS),no)
1066 CLEANFILES += def-chain.lst
1067 DEFSYMFILES += def-chain.lst
1068 endif
1069 MOSTLYCLEANFILES += chain_mod-loader_i386_pc_chainloader_normal.d
1070 UNDSYMFILES += und-chain.lst
1071
1072 chain.mod: pre-chain.o mod-chain.o
1073 -rm -f $@
1074 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1075 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1076
1077 pre-chain.o: $(chain_mod_DEPENDENCIES) chain_mod-loader_i386_pc_chainloader_normal.o
1078 -rm -f $@
1079 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ chain_mod-loader_i386_pc_chainloader_normal.o
1080
1081 mod-chain.o: mod-chain.c
1082 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $<
1083
1084 mod-chain.c: moddep.lst genmodsrc.sh
1085 sh $(srcdir)/genmodsrc.sh 'chain' $< > $@ || (rm -f $@; exit 1)
1086
1087 ifneq ($(chain_mod_EXPORTS),no)
1088 def-chain.lst: pre-chain.o
1089 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 chain/' > $@
1090 endif
1091
1092 und-chain.lst: pre-chain.o
1093 echo 'chain' > $@
1094 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1095
1096 chain_mod-loader_i386_pc_chainloader_normal.o: loader/i386/pc/chainloader_normal.c
1097 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -MD -c -o $@ $<
1098 -include chain_mod-loader_i386_pc_chainloader_normal.d
1099
1100 CLEANFILES += cmd-chain_mod-loader_i386_pc_chainloader_normal.lst fs-chain_mod-loader_i386_pc_chainloader_normal.lst
1101 COMMANDFILES += cmd-chain_mod-loader_i386_pc_chainloader_normal.lst
1102 FSFILES += fs-chain_mod-loader_i386_pc_chainloader_normal.lst
1103
1104 cmd-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c gencmdlist.sh
1105 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh chain > $@ || (rm -f $@; exit 1)
1106
1107 fs-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c genfslist.sh
1108 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh chain > $@ || (rm -f $@; exit 1)
1109
1110
1111 chain_mod_CFLAGS = $(COMMON_CFLAGS)
1112 chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
1113
1114 # For _linux.mod.
1115 _linux_mod_SOURCES = loader/i386/pc/linux.c
1116 CLEANFILES += _linux.mod mod-_linux.o mod-_linux.c pre-_linux.o _linux_mod-loader_i386_pc_linux.o und-_linux.lst
1117 ifneq ($(_linux_mod_EXPORTS),no)
1118 CLEANFILES += def-_linux.lst
1119 DEFSYMFILES += def-_linux.lst
1120 endif
1121 MOSTLYCLEANFILES += _linux_mod-loader_i386_pc_linux.d
1122 UNDSYMFILES += und-_linux.lst
1123
1124 _linux.mod: pre-_linux.o mod-_linux.o
1125 -rm -f $@
1126 $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1127 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1128
1129 pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_i386_pc_linux.o
1130 -rm -f $@
1131 $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _linux_mod-loader_i386_pc_linux.o
1132
1133 mod-_linux.o: mod-_linux.c
1134 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $<
1135
1136 mod-_linux.c: moddep.lst genmodsrc.sh
1137 sh $(srcdir)/genmodsrc.sh '_linux' $< > $@ || (rm -f $@; exit 1)
1138
1139 ifneq ($(_linux_mod_EXPORTS),no)
1140 def-_linux.lst: pre-_linux.o
1141 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _linux/' > $@
1142 endif
1143
1144 und-_linux.lst: pre-_linux.o
1145 echo '_linux' > $@
1146 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1147
1148 _linux_mod-loader_i386_pc_linux.o: loader/i386/pc/linux.c
1149 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -MD -c -o $@ $<
1150 -include _linux_mod-loader_i386_pc_linux.d
1151
1152 CLEANFILES += cmd-_linux_mod-loader_i386_pc_linux.lst fs-_linux_mod-loader_i386_pc_linux.lst
1153 COMMANDFILES += cmd-_linux_mod-loader_i386_pc_linux.lst
1154 FSFILES += fs-_linux_mod-loader_i386_pc_linux.lst
1155
1156 cmd-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c gencmdlist.sh
1157 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _linux > $@ || (rm -f $@; exit 1)
1158
1159 fs-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c genfslist.sh
1160 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _linux > $@ || (rm -f $@; exit 1)
1161
1162
1163 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
1164 _linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
1165
1166 # For linux.mod.
1167 linux_mod_SOURCES = loader/i386/pc/linux_normal.c
1168 CLEANFILES += linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_pc_linux_normal.o und-linux.lst
1169 ifneq ($(linux_mod_EXPORTS),no)
1170 CLEANFILES += def-linux.lst
1171 DEFSYMFILES += def-linux.lst
1172 endif
1173 MOSTLYCLEANFILES += linux_mod-loader_i386_pc_linux_normal.d
1174 UNDSYMFILES += und-linux.lst
1175
1176 linux.mod: pre-linux.o mod-linux.o
1177 -rm -f $@
1178 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1179 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1180
1181 pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_pc_linux_normal.o
1182 -rm -f $@
1183 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_i386_pc_linux_normal.o
1184
1185 mod-linux.o: mod-linux.c
1186 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
1187
1188 mod-linux.c: moddep.lst genmodsrc.sh
1189 sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1)
1190
1191 ifneq ($(linux_mod_EXPORTS),no)
1192 def-linux.lst: pre-linux.o
1193 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@
1194 endif
1195
1196 und-linux.lst: pre-linux.o
1197 echo 'linux' > $@
1198 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1199
1200 linux_mod-loader_i386_pc_linux_normal.o: loader/i386/pc/linux_normal.c
1201 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $<
1202 -include linux_mod-loader_i386_pc_linux_normal.d
1203
1204 CLEANFILES += cmd-linux_mod-loader_i386_pc_linux_normal.lst fs-linux_mod-loader_i386_pc_linux_normal.lst
1205 COMMANDFILES += cmd-linux_mod-loader_i386_pc_linux_normal.lst
1206 FSFILES += fs-linux_mod-loader_i386_pc_linux_normal.lst
1207
1208 cmd-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c gencmdlist.sh
1209 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1)
1210
1211 fs-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c genfslist.sh
1212 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1)
1213
1214
1215 linux_mod_CFLAGS = $(COMMON_CFLAGS)
1216 linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
1217
1218 # For normal.mod.
1219 normal_mod_DEPENDENCIES = grub_script.tab.c grub_script.tab.h
1220 normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \
1221 normal/completion.c normal/execute.c \
1222 normal/function.c normal/lexer.c normal/main.c normal/menu.c \
1223 normal/color.c \
1224 normal/menu_entry.c normal/misc.c grub_script.tab.c \
1225 normal/script.c normal/i386/setjmp.S
1226 CLEANFILES += normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_execute.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_color.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_i386_setjmp.o und-normal.lst
1227 ifneq ($(normal_mod_EXPORTS),no)
1228 CLEANFILES += def-normal.lst
1229 DEFSYMFILES += def-normal.lst
1230 endif
1231 MOSTLYCLEANFILES += normal_mod-normal_arg.d normal_mod-normal_cmdline.d normal_mod-normal_command.d normal_mod-normal_completion.d normal_mod-normal_execute.d normal_mod-normal_function.d normal_mod-normal_lexer.d normal_mod-normal_main.d normal_mod-normal_menu.d normal_mod-normal_color.d normal_mod-normal_menu_entry.d normal_mod-normal_misc.d normal_mod-grub_script_tab.d normal_mod-normal_script.d normal_mod-normal_i386_setjmp.d
1232 UNDSYMFILES += und-normal.lst
1233
1234 normal.mod: pre-normal.o mod-normal.o
1235 -rm -f $@
1236 $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1237 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1238
1239 pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_execute.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_color.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_i386_setjmp.o
1240 -rm -f $@
1241 $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ normal_mod-normal_arg.o normal_mod-normal_cmdline.o normal_mod-normal_command.o normal_mod-normal_completion.o normal_mod-normal_execute.o normal_mod-normal_function.o normal_mod-normal_lexer.o normal_mod-normal_main.o normal_mod-normal_menu.o normal_mod-normal_color.o normal_mod-normal_menu_entry.o normal_mod-normal_misc.o normal_mod-grub_script_tab.o normal_mod-normal_script.o normal_mod-normal_i386_setjmp.o
1242
1243 mod-normal.o: mod-normal.c
1244 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
1245
1246 mod-normal.c: moddep.lst genmodsrc.sh
1247 sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1)
1248
1249 ifneq ($(normal_mod_EXPORTS),no)
1250 def-normal.lst: pre-normal.o
1251 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@
1252 endif
1253
1254 und-normal.lst: pre-normal.o
1255 echo 'normal' > $@
1256 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1257
1258 normal_mod-normal_arg.o: normal/arg.c
1259 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1260 -include normal_mod-normal_arg.d
1261
1262 CLEANFILES += cmd-normal_mod-normal_arg.lst fs-normal_mod-normal_arg.lst
1263 COMMANDFILES += cmd-normal_mod-normal_arg.lst
1264 FSFILES += fs-normal_mod-normal_arg.lst
1265
1266 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
1267 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1268
1269 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
1270 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1271
1272
1273 normal_mod-normal_cmdline.o: normal/cmdline.c
1274 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1275 -include normal_mod-normal_cmdline.d
1276
1277 CLEANFILES += cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmdline.lst
1278 COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
1279 FSFILES += fs-normal_mod-normal_cmdline.lst
1280
1281 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
1282 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1283
1284 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
1285 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1286
1287
1288 normal_mod-normal_command.o: normal/command.c
1289 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1290 -include normal_mod-normal_command.d
1291
1292 CLEANFILES += cmd-normal_mod-normal_command.lst fs-normal_mod-normal_command.lst
1293 COMMANDFILES += cmd-normal_mod-normal_command.lst
1294 FSFILES += fs-normal_mod-normal_command.lst
1295
1296 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
1297 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1298
1299 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
1300 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1301
1302
1303 normal_mod-normal_completion.o: normal/completion.c
1304 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1305 -include normal_mod-normal_completion.d
1306
1307 CLEANFILES += cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_completion.lst
1308 COMMANDFILES += cmd-normal_mod-normal_completion.lst
1309 FSFILES += fs-normal_mod-normal_completion.lst
1310
1311 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
1312 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1313
1314 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
1315 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1316
1317
1318 normal_mod-normal_execute.o: normal/execute.c
1319 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1320 -include normal_mod-normal_execute.d
1321
1322 CLEANFILES += cmd-normal_mod-normal_execute.lst fs-normal_mod-normal_execute.lst
1323 COMMANDFILES += cmd-normal_mod-normal_execute.lst
1324 FSFILES += fs-normal_mod-normal_execute.lst
1325
1326 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
1327 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1328
1329 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
1330 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1331
1332
1333 normal_mod-normal_function.o: normal/function.c
1334 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1335 -include normal_mod-normal_function.d
1336
1337 CLEANFILES += cmd-normal_mod-normal_function.lst fs-normal_mod-normal_function.lst
1338 COMMANDFILES += cmd-normal_mod-normal_function.lst
1339 FSFILES += fs-normal_mod-normal_function.lst
1340
1341 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
1342 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1343
1344 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
1345 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1346
1347
1348 normal_mod-normal_lexer.o: normal/lexer.c
1349 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1350 -include normal_mod-normal_lexer.d
1351
1352 CLEANFILES += cmd-normal_mod-normal_lexer.lst fs-normal_mod-normal_lexer.lst
1353 COMMANDFILES += cmd-normal_mod-normal_lexer.lst
1354 FSFILES += fs-normal_mod-normal_lexer.lst
1355
1356 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
1357 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1358
1359 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
1360 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1361
1362
1363 normal_mod-normal_main.o: normal/main.c
1364 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1365 -include normal_mod-normal_main.d
1366
1367 CLEANFILES += cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.lst
1368 COMMANDFILES += cmd-normal_mod-normal_main.lst
1369 FSFILES += fs-normal_mod-normal_main.lst
1370
1371 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
1372 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1373
1374 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
1375 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1376
1377
1378 normal_mod-normal_menu.o: normal/menu.c
1379 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1380 -include normal_mod-normal_menu.d
1381
1382 CLEANFILES += cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.lst
1383 COMMANDFILES += cmd-normal_mod-normal_menu.lst
1384 FSFILES += fs-normal_mod-normal_menu.lst
1385
1386 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
1387 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1388
1389 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
1390 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1391
1392
1393 normal_mod-normal_color.o: normal/color.c
1394 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1395 -include normal_mod-normal_color.d
1396
1397 CLEANFILES += cmd-normal_mod-normal_color.lst fs-normal_mod-normal_color.lst
1398 COMMANDFILES += cmd-normal_mod-normal_color.lst
1399 FSFILES += fs-normal_mod-normal_color.lst
1400
1401 cmd-normal_mod-normal_color.lst: normal/color.c gencmdlist.sh
1402 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1403
1404 fs-normal_mod-normal_color.lst: normal/color.c genfslist.sh
1405 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1406
1407
1408 normal_mod-normal_menu_entry.o: normal/menu_entry.c
1409 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1410 -include normal_mod-normal_menu_entry.d
1411
1412 CLEANFILES += cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_menu_entry.lst
1413 COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
1414 FSFILES += fs-normal_mod-normal_menu_entry.lst
1415
1416 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
1417 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1418
1419 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
1420 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1421
1422
1423 normal_mod-normal_misc.o: normal/misc.c
1424 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1425 -include normal_mod-normal_misc.d
1426
1427 CLEANFILES += cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.lst
1428 COMMANDFILES += cmd-normal_mod-normal_misc.lst
1429 FSFILES += fs-normal_mod-normal_misc.lst
1430
1431 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
1432 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1433
1434 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
1435 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1436
1437
1438 normal_mod-grub_script_tab.o: grub_script.tab.c
1439 $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1440 -include normal_mod-grub_script_tab.d
1441
1442 CLEANFILES += cmd-normal_mod-grub_script_tab.lst fs-normal_mod-grub_script_tab.lst
1443 COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
1444 FSFILES += fs-normal_mod-grub_script_tab.lst
1445
1446 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
1447 set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1448
1449 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
1450 set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1451
1452
1453 normal_mod-normal_script.o: normal/script.c
1454 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1455 -include normal_mod-normal_script.d
1456
1457 CLEANFILES += cmd-normal_mod-normal_script.lst fs-normal_mod-normal_script.lst
1458 COMMANDFILES += cmd-normal_mod-normal_script.lst
1459 FSFILES += fs-normal_mod-normal_script.lst
1460
1461 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
1462 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1463
1464 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
1465 set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1466
1467
1468 normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
1469 $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
1470 -include normal_mod-normal_i386_setjmp.d
1471
1472 CLEANFILES += cmd-normal_mod-normal_i386_setjmp.lst fs-normal_mod-normal_i386_setjmp.lst
1473 COMMANDFILES += cmd-normal_mod-normal_i386_setjmp.lst
1474 FSFILES += fs-normal_mod-normal_i386_setjmp.lst
1475
1476 cmd-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S gencmdlist.sh
1477 set -e; $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1478
1479 fs-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S genfslist.sh
1480 set -e; $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1481
1482
1483 normal_mod_CFLAGS = $(COMMON_CFLAGS)
1484 normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
1485 normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
1486
1487 # For reboot.mod.
1488 reboot_mod_SOURCES = commands/i386/pc/reboot.c
1489 CLEANFILES += reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_i386_pc_reboot.o und-reboot.lst
1490 ifneq ($(reboot_mod_EXPORTS),no)
1491 CLEANFILES += def-reboot.lst
1492 DEFSYMFILES += def-reboot.lst
1493 endif
1494 MOSTLYCLEANFILES += reboot_mod-commands_i386_pc_reboot.d
1495 UNDSYMFILES += und-reboot.lst
1496
1497 reboot.mod: pre-reboot.o mod-reboot.o
1498 -rm -f $@
1499 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1500 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1501
1502 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_i386_pc_reboot.o
1503 -rm -f $@
1504 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reboot_mod-commands_i386_pc_reboot.o
1505
1506 mod-reboot.o: mod-reboot.c
1507 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
1508
1509 mod-reboot.c: moddep.lst genmodsrc.sh
1510 sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1)
1511
1512 ifneq ($(reboot_mod_EXPORTS),no)
1513 def-reboot.lst: pre-reboot.o
1514 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@
1515 endif
1516
1517 und-reboot.lst: pre-reboot.o
1518 echo 'reboot' > $@
1519 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1520
1521 reboot_mod-commands_i386_pc_reboot.o: commands/i386/pc/reboot.c
1522 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -MD -c -o $@ $<
1523 -include reboot_mod-commands_i386_pc_reboot.d
1524
1525 CLEANFILES += cmd-reboot_mod-commands_i386_pc_reboot.lst fs-reboot_mod-commands_i386_pc_reboot.lst
1526 COMMANDFILES += cmd-reboot_mod-commands_i386_pc_reboot.lst
1527 FSFILES += fs-reboot_mod-commands_i386_pc_reboot.lst
1528
1529 cmd-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c gencmdlist.sh
1530 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1)
1531
1532 fs-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c genfslist.sh
1533 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1)
1534
1535
1536 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
1537 reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1538
1539 # For halt.mod.
1540 halt_mod_SOURCES = commands/i386/pc/halt.c
1541 CLEANFILES += halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_i386_pc_halt.o und-halt.lst
1542 ifneq ($(halt_mod_EXPORTS),no)
1543 CLEANFILES += def-halt.lst
1544 DEFSYMFILES += def-halt.lst
1545 endif
1546 MOSTLYCLEANFILES += halt_mod-commands_i386_pc_halt.d
1547 UNDSYMFILES += und-halt.lst
1548
1549 halt.mod: pre-halt.o mod-halt.o
1550 -rm -f $@
1551 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1552 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1553
1554 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_i386_pc_halt.o
1555 -rm -f $@
1556 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ halt_mod-commands_i386_pc_halt.o
1557
1558 mod-halt.o: mod-halt.c
1559 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
1560
1561 mod-halt.c: moddep.lst genmodsrc.sh
1562 sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1)
1563
1564 ifneq ($(halt_mod_EXPORTS),no)
1565 def-halt.lst: pre-halt.o
1566 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@
1567 endif
1568
1569 und-halt.lst: pre-halt.o
1570 echo 'halt' > $@
1571 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1572
1573 halt_mod-commands_i386_pc_halt.o: commands/i386/pc/halt.c
1574 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -MD -c -o $@ $<
1575 -include halt_mod-commands_i386_pc_halt.d
1576
1577 CLEANFILES += cmd-halt_mod-commands_i386_pc_halt.lst fs-halt_mod-commands_i386_pc_halt.lst
1578 COMMANDFILES += cmd-halt_mod-commands_i386_pc_halt.lst
1579 FSFILES += fs-halt_mod-commands_i386_pc_halt.lst
1580
1581 cmd-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c gencmdlist.sh
1582 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1)
1583
1584 fs-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c genfslist.sh
1585 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1)
1586
1587
1588 halt_mod_CFLAGS = $(COMMON_CFLAGS)
1589 halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
1590
1591 # For serial.mod.
1592 serial_mod_SOURCES = term/i386/pc/serial.c
1593 CLEANFILES += serial.mod mod-serial.o mod-serial.c pre-serial.o serial_mod-term_i386_pc_serial.o und-serial.lst
1594 ifneq ($(serial_mod_EXPORTS),no)
1595 CLEANFILES += def-serial.lst
1596 DEFSYMFILES += def-serial.lst
1597 endif
1598 MOSTLYCLEANFILES += serial_mod-term_i386_pc_serial.d
1599 UNDSYMFILES += und-serial.lst
1600
1601 serial.mod: pre-serial.o mod-serial.o
1602 -rm -f $@
1603 $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1604 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1605
1606 pre-serial.o: $(serial_mod_DEPENDENCIES) serial_mod-term_i386_pc_serial.o
1607 -rm -f $@
1608 $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ serial_mod-term_i386_pc_serial.o
1609
1610 mod-serial.o: mod-serial.c
1611 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -c -o $@ $<
1612
1613 mod-serial.c: moddep.lst genmodsrc.sh
1614 sh $(srcdir)/genmodsrc.sh 'serial' $< > $@ || (rm -f $@; exit 1)
1615
1616 ifneq ($(serial_mod_EXPORTS),no)
1617 def-serial.lst: pre-serial.o
1618 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 serial/' > $@
1619 endif
1620
1621 und-serial.lst: pre-serial.o
1622 echo 'serial' > $@
1623 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1624
1625 serial_mod-term_i386_pc_serial.o: term/i386/pc/serial.c
1626 $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -MD -c -o $@ $<
1627 -include serial_mod-term_i386_pc_serial.d
1628
1629 CLEANFILES += cmd-serial_mod-term_i386_pc_serial.lst fs-serial_mod-term_i386_pc_serial.lst
1630 COMMANDFILES += cmd-serial_mod-term_i386_pc_serial.lst
1631 FSFILES += fs-serial_mod-term_i386_pc_serial.lst
1632
1633 cmd-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c gencmdlist.sh
1634 set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh serial > $@ || (rm -f $@; exit 1)
1635
1636 fs-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c genfslist.sh
1637 set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh serial > $@ || (rm -f $@; exit 1)
1638
1639
1640 serial_mod_CFLAGS = $(COMMON_CFLAGS)
1641 serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
1642
1643 # For _multiboot.mod.
1644 _multiboot_mod_SOURCES = loader/i386/pc/multiboot.c \
1645 loader/i386/pc/multiboot2.c \
1646 loader/multiboot2.c \
1647 loader/multiboot_loader.c
1648 CLEANFILES += _multiboot.mod mod-_multiboot.o mod-_multiboot.c pre-_multiboot.o _multiboot_mod-loader_i386_pc_multiboot.o _multiboot_mod-loader_i386_pc_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o und-_multiboot.lst
1649 ifneq ($(_multiboot_mod_EXPORTS),no)
1650 CLEANFILES += def-_multiboot.lst
1651 DEFSYMFILES += def-_multiboot.lst
1652 endif
1653 MOSTLYCLEANFILES += _multiboot_mod-loader_i386_pc_multiboot.d _multiboot_mod-loader_i386_pc_multiboot2.d _multiboot_mod-loader_multiboot2.d _multiboot_mod-loader_multiboot_loader.d
1654 UNDSYMFILES += und-_multiboot.lst
1655
1656 _multiboot.mod: pre-_multiboot.o mod-_multiboot.o
1657 -rm -f $@
1658 $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1659 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1660
1661 pre-_multiboot.o: $(_multiboot_mod_DEPENDENCIES) _multiboot_mod-loader_i386_pc_multiboot.o _multiboot_mod-loader_i386_pc_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o
1662 -rm -f $@
1663 $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _multiboot_mod-loader_i386_pc_multiboot.o _multiboot_mod-loader_i386_pc_multiboot2.o _multiboot_mod-loader_multiboot2.o _multiboot_mod-loader_multiboot_loader.o
1664
1665 mod-_multiboot.o: mod-_multiboot.c
1666 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -c -o $@ $<
1667
1668 mod-_multiboot.c: moddep.lst genmodsrc.sh
1669 sh $(srcdir)/genmodsrc.sh '_multiboot' $< > $@ || (rm -f $@; exit 1)
1670
1671 ifneq ($(_multiboot_mod_EXPORTS),no)
1672 def-_multiboot.lst: pre-_multiboot.o
1673 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _multiboot/' > $@
1674 endif
1675
1676 und-_multiboot.lst: pre-_multiboot.o
1677 echo '_multiboot' > $@
1678 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1679
1680 _multiboot_mod-loader_i386_pc_multiboot.o: loader/i386/pc/multiboot.c
1681 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1682 -include _multiboot_mod-loader_i386_pc_multiboot.d
1683
1684 CLEANFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot.lst fs-_multiboot_mod-loader_i386_pc_multiboot.lst
1685 COMMANDFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot.lst
1686 FSFILES += fs-_multiboot_mod-loader_i386_pc_multiboot.lst
1687
1688 cmd-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c gencmdlist.sh
1689 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
1690
1691 fs-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c genfslist.sh
1692 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
1693
1694
1695 _multiboot_mod-loader_i386_pc_multiboot2.o: loader/i386/pc/multiboot2.c
1696 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1697 -include _multiboot_mod-loader_i386_pc_multiboot2.d
1698
1699 CLEANFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst fs-_multiboot_mod-loader_i386_pc_multiboot2.lst
1700 COMMANDFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst
1701 FSFILES += fs-_multiboot_mod-loader_i386_pc_multiboot2.lst
1702
1703 cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst: loader/i386/pc/multiboot2.c gencmdlist.sh
1704 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
1705
1706 fs-_multiboot_mod-loader_i386_pc_multiboot2.lst: loader/i386/pc/multiboot2.c genfslist.sh
1707 set -e; $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
1708
1709
1710 _multiboot_mod-loader_multiboot2.o: loader/multiboot2.c
1711 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1712 -include _multiboot_mod-loader_multiboot2.d
1713
1714 CLEANFILES += cmd-_multiboot_mod-loader_multiboot2.lst fs-_multiboot_mod-loader_multiboot2.lst
1715 COMMANDFILES += cmd-_multiboot_mod-loader_multiboot2.lst
1716 FSFILES += fs-_multiboot_mod-loader_multiboot2.lst
1717
1718 cmd-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c gencmdlist.sh
1719 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
1720
1721 fs-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c genfslist.sh
1722 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
1723
1724
1725 _multiboot_mod-loader_multiboot_loader.o: loader/multiboot_loader.c
1726 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1727 -include _multiboot_mod-loader_multiboot_loader.d
1728
1729 CLEANFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst fs-_multiboot_mod-loader_multiboot_loader.lst
1730 COMMANDFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst
1731 FSFILES += fs-_multiboot_mod-loader_multiboot_loader.lst
1732
1733 cmd-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c gencmdlist.sh
1734 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh _multiboot > $@ || (rm -f $@; exit 1)
1735
1736 fs-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c genfslist.sh
1737 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh _multiboot > $@ || (rm -f $@; exit 1)
1738
1739
1740 _multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
1741 _multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1742
1743 # For multiboot.mod.
1744 multiboot_mod_SOURCES = loader/multiboot_loader_normal.c
1745 CLEANFILES += multiboot.mod mod-multiboot.o mod-multiboot.c pre-multiboot.o multiboot_mod-loader_multiboot_loader_normal.o und-multiboot.lst
1746 ifneq ($(multiboot_mod_EXPORTS),no)
1747 CLEANFILES += def-multiboot.lst
1748 DEFSYMFILES += def-multiboot.lst
1749 endif
1750 MOSTLYCLEANFILES += multiboot_mod-loader_multiboot_loader_normal.d
1751 UNDSYMFILES += und-multiboot.lst
1752
1753 multiboot.mod: pre-multiboot.o mod-multiboot.o
1754 -rm -f $@
1755 $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1756 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1757
1758 pre-multiboot.o: $(multiboot_mod_DEPENDENCIES) multiboot_mod-loader_multiboot_loader_normal.o
1759 -rm -f $@
1760 $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ multiboot_mod-loader_multiboot_loader_normal.o
1761
1762 mod-multiboot.o: mod-multiboot.c
1763 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -c -o $@ $<
1764
1765 mod-multiboot.c: moddep.lst genmodsrc.sh
1766 sh $(srcdir)/genmodsrc.sh 'multiboot' $< > $@ || (rm -f $@; exit 1)
1767
1768 ifneq ($(multiboot_mod_EXPORTS),no)
1769 def-multiboot.lst: pre-multiboot.o
1770 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 multiboot/' > $@
1771 endif
1772
1773 und-multiboot.lst: pre-multiboot.o
1774 echo 'multiboot' > $@
1775 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1776
1777 multiboot_mod-loader_multiboot_loader_normal.o: loader/multiboot_loader_normal.c
1778 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $<
1779 -include multiboot_mod-loader_multiboot_loader_normal.d
1780
1781 CLEANFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst fs-multiboot_mod-loader_multiboot_loader_normal.lst
1782 COMMANDFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst
1783 FSFILES += fs-multiboot_mod-loader_multiboot_loader_normal.lst
1784
1785 cmd-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c gencmdlist.sh
1786 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1)
1787
1788 fs-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c genfslist.sh
1789 set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1)
1790
1791
1792 multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
1793 multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1794
1795 # For vbe.mod.
1796 vbe_mod_SOURCES = video/i386/pc/vbe.c video/i386/pc/vbeblit.c \
1797 video/i386/pc/vbefill.c video/i386/pc/vbeutil.c
1798 CLEANFILES += vbe.mod mod-vbe.o mod-vbe.c pre-vbe.o vbe_mod-video_i386_pc_vbe.o vbe_mod-video_i386_pc_vbeblit.o vbe_mod-video_i386_pc_vbefill.o vbe_mod-video_i386_pc_vbeutil.o und-vbe.lst
1799 ifneq ($(vbe_mod_EXPORTS),no)
1800 CLEANFILES += def-vbe.lst
1801 DEFSYMFILES += def-vbe.lst
1802 endif
1803 MOSTLYCLEANFILES += vbe_mod-video_i386_pc_vbe.d vbe_mod-video_i386_pc_vbeblit.d vbe_mod-video_i386_pc_vbefill.d vbe_mod-video_i386_pc_vbeutil.d
1804 UNDSYMFILES += und-vbe.lst
1805
1806 vbe.mod: pre-vbe.o mod-vbe.o
1807 -rm -f $@
1808 $(TARGET_CC) $(vbe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1809 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1810
1811 pre-vbe.o: $(vbe_mod_DEPENDENCIES) vbe_mod-video_i386_pc_vbe.o vbe_mod-video_i386_pc_vbeblit.o vbe_mod-video_i386_pc_vbefill.o vbe_mod-video_i386_pc_vbeutil.o
1812 -rm -f $@
1813 $(TARGET_CC) $(vbe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vbe_mod-video_i386_pc_vbe.o vbe_mod-video_i386_pc_vbeblit.o vbe_mod-video_i386_pc_vbefill.o vbe_mod-video_i386_pc_vbeutil.o
1814
1815 mod-vbe.o: mod-vbe.c
1816 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -c -o $@ $<
1817
1818 mod-vbe.c: moddep.lst genmodsrc.sh
1819 sh $(srcdir)/genmodsrc.sh 'vbe' $< > $@ || (rm -f $@; exit 1)
1820
1821 ifneq ($(vbe_mod_EXPORTS),no)
1822 def-vbe.lst: pre-vbe.o
1823 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbe/' > $@
1824 endif
1825
1826 und-vbe.lst: pre-vbe.o
1827 echo 'vbe' > $@
1828 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1829
1830 vbe_mod-video_i386_pc_vbe.o: video/i386/pc/vbe.c
1831 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1832 -include vbe_mod-video_i386_pc_vbe.d
1833
1834 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbe.lst fs-vbe_mod-video_i386_pc_vbe.lst
1835 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbe.lst
1836 FSFILES += fs-vbe_mod-video_i386_pc_vbe.lst
1837
1838 cmd-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c gencmdlist.sh
1839 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
1840
1841 fs-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c genfslist.sh
1842 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
1843
1844
1845 vbe_mod-video_i386_pc_vbeblit.o: video/i386/pc/vbeblit.c
1846 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1847 -include vbe_mod-video_i386_pc_vbeblit.d
1848
1849 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbeblit.lst fs-vbe_mod-video_i386_pc_vbeblit.lst
1850 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbeblit.lst
1851 FSFILES += fs-vbe_mod-video_i386_pc_vbeblit.lst
1852
1853 cmd-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c gencmdlist.sh
1854 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
1855
1856 fs-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c genfslist.sh
1857 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
1858
1859
1860 vbe_mod-video_i386_pc_vbefill.o: video/i386/pc/vbefill.c
1861 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1862 -include vbe_mod-video_i386_pc_vbefill.d
1863
1864 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbefill.lst fs-vbe_mod-video_i386_pc_vbefill.lst
1865 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbefill.lst
1866 FSFILES += fs-vbe_mod-video_i386_pc_vbefill.lst
1867
1868 cmd-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c gencmdlist.sh
1869 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
1870
1871 fs-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c genfslist.sh
1872 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
1873
1874
1875 vbe_mod-video_i386_pc_vbeutil.o: video/i386/pc/vbeutil.c
1876 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1877 -include vbe_mod-video_i386_pc_vbeutil.d
1878
1879 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbeutil.lst fs-vbe_mod-video_i386_pc_vbeutil.lst
1880 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbeutil.lst
1881 FSFILES += fs-vbe_mod-video_i386_pc_vbeutil.lst
1882
1883 cmd-vbe_mod-video_i386_pc_vbeutil.lst: video/i386/pc/vbeutil.c gencmdlist.sh
1884 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbe > $@ || (rm -f $@; exit 1)
1885
1886 fs-vbe_mod-video_i386_pc_vbeutil.lst: video/i386/pc/vbeutil.c genfslist.sh
1887 set -e; $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbe > $@ || (rm -f $@; exit 1)
1888
1889
1890 vbe_mod_CFLAGS = $(COMMON_CFLAGS)
1891 vbe_mod_LDFLAGS = $(COMMON_LDFLAGS)
1892
1893 # For vbeinfo.mod.
1894 vbeinfo_mod_SOURCES = commands/i386/pc/vbeinfo.c
1895 CLEANFILES += vbeinfo.mod mod-vbeinfo.o mod-vbeinfo.c pre-vbeinfo.o vbeinfo_mod-commands_i386_pc_vbeinfo.o und-vbeinfo.lst
1896 ifneq ($(vbeinfo_mod_EXPORTS),no)
1897 CLEANFILES += def-vbeinfo.lst
1898 DEFSYMFILES += def-vbeinfo.lst
1899 endif
1900 MOSTLYCLEANFILES += vbeinfo_mod-commands_i386_pc_vbeinfo.d
1901 UNDSYMFILES += und-vbeinfo.lst
1902
1903 vbeinfo.mod: pre-vbeinfo.o mod-vbeinfo.o
1904 -rm -f $@
1905 $(TARGET_CC) $(vbeinfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1906 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1907
1908 pre-vbeinfo.o: $(vbeinfo_mod_DEPENDENCIES) vbeinfo_mod-commands_i386_pc_vbeinfo.o
1909 -rm -f $@
1910 $(TARGET_CC) $(vbeinfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vbeinfo_mod-commands_i386_pc_vbeinfo.o
1911
1912 mod-vbeinfo.o: mod-vbeinfo.c
1913 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -c -o $@ $<
1914
1915 mod-vbeinfo.c: moddep.lst genmodsrc.sh
1916 sh $(srcdir)/genmodsrc.sh 'vbeinfo' $< > $@ || (rm -f $@; exit 1)
1917
1918 ifneq ($(vbeinfo_mod_EXPORTS),no)
1919 def-vbeinfo.lst: pre-vbeinfo.o
1920 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbeinfo/' > $@
1921 endif
1922
1923 und-vbeinfo.lst: pre-vbeinfo.o
1924 echo 'vbeinfo' > $@
1925 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1926
1927 vbeinfo_mod-commands_i386_pc_vbeinfo.o: commands/i386/pc/vbeinfo.c
1928 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -MD -c -o $@ $<
1929 -include vbeinfo_mod-commands_i386_pc_vbeinfo.d
1930
1931 CLEANFILES += cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1932 COMMANDFILES += cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1933 FSFILES += fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1934
1935 cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c gencmdlist.sh
1936 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbeinfo > $@ || (rm -f $@; exit 1)
1937
1938 fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c genfslist.sh
1939 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbeinfo > $@ || (rm -f $@; exit 1)
1940
1941
1942 vbeinfo_mod_CFLAGS = $(COMMON_CFLAGS)
1943 vbeinfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
1944
1945 # For vbetest.mod.
1946 vbetest_mod_SOURCES = commands/i386/pc/vbetest.c
1947 CLEANFILES += vbetest.mod mod-vbetest.o mod-vbetest.c pre-vbetest.o vbetest_mod-commands_i386_pc_vbetest.o und-vbetest.lst
1948 ifneq ($(vbetest_mod_EXPORTS),no)
1949 CLEANFILES += def-vbetest.lst
1950 DEFSYMFILES += def-vbetest.lst
1951 endif
1952 MOSTLYCLEANFILES += vbetest_mod-commands_i386_pc_vbetest.d
1953 UNDSYMFILES += und-vbetest.lst
1954
1955 vbetest.mod: pre-vbetest.o mod-vbetest.o
1956 -rm -f $@
1957 $(TARGET_CC) $(vbetest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1958 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1959
1960 pre-vbetest.o: $(vbetest_mod_DEPENDENCIES) vbetest_mod-commands_i386_pc_vbetest.o
1961 -rm -f $@
1962 $(TARGET_CC) $(vbetest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vbetest_mod-commands_i386_pc_vbetest.o
1963
1964 mod-vbetest.o: mod-vbetest.c
1965 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -c -o $@ $<
1966
1967 mod-vbetest.c: moddep.lst genmodsrc.sh
1968 sh $(srcdir)/genmodsrc.sh 'vbetest' $< > $@ || (rm -f $@; exit 1)
1969
1970 ifneq ($(vbetest_mod_EXPORTS),no)
1971 def-vbetest.lst: pre-vbetest.o
1972 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbetest/' > $@
1973 endif
1974
1975 und-vbetest.lst: pre-vbetest.o
1976 echo 'vbetest' > $@
1977 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1978
1979 vbetest_mod-commands_i386_pc_vbetest.o: commands/i386/pc/vbetest.c
1980 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -MD -c -o $@ $<
1981 -include vbetest_mod-commands_i386_pc_vbetest.d
1982
1983 CLEANFILES += cmd-vbetest_mod-commands_i386_pc_vbetest.lst fs-vbetest_mod-commands_i386_pc_vbetest.lst
1984 COMMANDFILES += cmd-vbetest_mod-commands_i386_pc_vbetest.lst
1985 FSFILES += fs-vbetest_mod-commands_i386_pc_vbetest.lst
1986
1987 cmd-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c gencmdlist.sh
1988 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vbetest > $@ || (rm -f $@; exit 1)
1989
1990 fs-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c genfslist.sh
1991 set -e; $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vbetest > $@ || (rm -f $@; exit 1)
1992
1993
1994 vbetest_mod_CFLAGS = $(COMMON_CFLAGS)
1995 vbetest_mod_LDFLAGS = $(COMMON_LDFLAGS)
1996
1997 # For play.mod.
1998 play_mod_SOURCES = commands/i386/pc/play.c
1999 CLEANFILES += play.mod mod-play.o mod-play.c pre-play.o play_mod-commands_i386_pc_play.o und-play.lst
2000 ifneq ($(play_mod_EXPORTS),no)
2001 CLEANFILES += def-play.lst
2002 DEFSYMFILES += def-play.lst
2003 endif
2004 MOSTLYCLEANFILES += play_mod-commands_i386_pc_play.d
2005 UNDSYMFILES += und-play.lst
2006
2007 play.mod: pre-play.o mod-play.o
2008 -rm -f $@
2009 $(TARGET_CC) $(play_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2010 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2011
2012 pre-play.o: $(play_mod_DEPENDENCIES) play_mod-commands_i386_pc_play.o
2013 -rm -f $@
2014 $(TARGET_CC) $(play_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ play_mod-commands_i386_pc_play.o
2015
2016 mod-play.o: mod-play.c
2017 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_CFLAGS) -c -o $@ $<
2018
2019 mod-play.c: moddep.lst genmodsrc.sh
2020 sh $(srcdir)/genmodsrc.sh 'play' $< > $@ || (rm -f $@; exit 1)
2021
2022 ifneq ($(play_mod_EXPORTS),no)
2023 def-play.lst: pre-play.o
2024 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 play/' > $@
2025 endif
2026
2027 und-play.lst: pre-play.o
2028 echo 'play' > $@
2029 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2030
2031 play_mod-commands_i386_pc_play.o: commands/i386/pc/play.c
2032 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_CFLAGS) -MD -c -o $@ $<
2033 -include play_mod-commands_i386_pc_play.d
2034
2035 CLEANFILES += cmd-play_mod-commands_i386_pc_play.lst fs-play_mod-commands_i386_pc_play.lst
2036 COMMANDFILES += cmd-play_mod-commands_i386_pc_play.lst
2037 FSFILES += fs-play_mod-commands_i386_pc_play.lst
2038
2039 cmd-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c gencmdlist.sh
2040 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)
2041
2042 fs-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c genfslist.sh
2043 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)
2044
2045
2046 play_mod_CFLAGS = $(COMMON_CFLAGS)
2047 play_mod_LDFLAGS = $(COMMON_LDFLAGS)
2048
2049 # For video.mod.
2050 video_mod_SOURCES = video/video.c
2051 CLEANFILES += video.mod mod-video.o mod-video.c pre-video.o video_mod-video_video.o und-video.lst
2052 ifneq ($(video_mod_EXPORTS),no)
2053 CLEANFILES += def-video.lst
2054 DEFSYMFILES += def-video.lst
2055 endif
2056 MOSTLYCLEANFILES += video_mod-video_video.d
2057 UNDSYMFILES += und-video.lst
2058
2059 video.mod: pre-video.o mod-video.o
2060 -rm -f $@
2061 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2062 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2063
2064 pre-video.o: $(video_mod_DEPENDENCIES) video_mod-video_video.o
2065 -rm -f $@
2066 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ video_mod-video_video.o
2067
2068 mod-video.o: mod-video.c
2069 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -c -o $@ $<
2070
2071 mod-video.c: moddep.lst genmodsrc.sh
2072 sh $(srcdir)/genmodsrc.sh 'video' $< > $@ || (rm -f $@; exit 1)
2073
2074 ifneq ($(video_mod_EXPORTS),no)
2075 def-video.lst: pre-video.o
2076 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 video/' > $@
2077 endif
2078
2079 und-video.lst: pre-video.o
2080 echo 'video' > $@
2081 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2082
2083 video_mod-video_video.o: video/video.c
2084 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -MD -c -o $@ $<
2085 -include video_mod-video_video.d
2086
2087 CLEANFILES += cmd-video_mod-video_video.lst fs-video_mod-video_video.lst
2088 COMMANDFILES += cmd-video_mod-video_video.lst
2089 FSFILES += fs-video_mod-video_video.lst
2090
2091 cmd-video_mod-video_video.lst: video/video.c gencmdlist.sh
2092 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video > $@ || (rm -f $@; exit 1)
2093
2094 fs-video_mod-video_video.lst: video/video.c genfslist.sh
2095 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video > $@ || (rm -f $@; exit 1)
2096
2097
2098 video_mod_CFLAGS = $(COMMON_CFLAGS)
2099 video_mod_LDFLAGS = $(COMMON_LDFLAGS)
2100
2101 # For gfxterm.mod.
2102 gfxterm_mod_SOURCES = term/gfxterm.c
2103 CLEANFILES += gfxterm.mod mod-gfxterm.o mod-gfxterm.c pre-gfxterm.o gfxterm_mod-term_gfxterm.o und-gfxterm.lst
2104 ifneq ($(gfxterm_mod_EXPORTS),no)
2105 CLEANFILES += def-gfxterm.lst
2106 DEFSYMFILES += def-gfxterm.lst
2107 endif
2108 MOSTLYCLEANFILES += gfxterm_mod-term_gfxterm.d
2109 UNDSYMFILES += und-gfxterm.lst
2110
2111 gfxterm.mod: pre-gfxterm.o mod-gfxterm.o
2112 -rm -f $@
2113 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2114 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2115
2116 pre-gfxterm.o: $(gfxterm_mod_DEPENDENCIES) gfxterm_mod-term_gfxterm.o
2117 -rm -f $@
2118 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gfxterm_mod-term_gfxterm.o
2119
2120 mod-gfxterm.o: mod-gfxterm.c
2121 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -c -o $@ $<
2122
2123 mod-gfxterm.c: moddep.lst genmodsrc.sh
2124 sh $(srcdir)/genmodsrc.sh 'gfxterm' $< > $@ || (rm -f $@; exit 1)
2125
2126 ifneq ($(gfxterm_mod_EXPORTS),no)
2127 def-gfxterm.lst: pre-gfxterm.o
2128 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gfxterm/' > $@
2129 endif
2130
2131 und-gfxterm.lst: pre-gfxterm.o
2132 echo 'gfxterm' > $@
2133 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2134
2135 gfxterm_mod-term_gfxterm.o: term/gfxterm.c
2136 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -MD -c -o $@ $<
2137 -include gfxterm_mod-term_gfxterm.d
2138
2139 CLEANFILES += cmd-gfxterm_mod-term_gfxterm.lst fs-gfxterm_mod-term_gfxterm.lst
2140 COMMANDFILES += cmd-gfxterm_mod-term_gfxterm.lst
2141 FSFILES += fs-gfxterm_mod-term_gfxterm.lst
2142
2143 cmd-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c gencmdlist.sh
2144 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh gfxterm > $@ || (rm -f $@; exit 1)
2145
2146 fs-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c genfslist.sh
2147 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh gfxterm > $@ || (rm -f $@; exit 1)
2148
2149
2150 gfxterm_mod_CFLAGS = $(COMMON_CFLAGS)
2151 gfxterm_mod_LDFLAGS = $(COMMON_LDFLAGS)
2152
2153 # For videotest.mod.
2154 videotest_mod_SOURCES = commands/videotest.c
2155 CLEANFILES += videotest.mod mod-videotest.o mod-videotest.c pre-videotest.o videotest_mod-commands_videotest.o und-videotest.lst
2156 ifneq ($(videotest_mod_EXPORTS),no)
2157 CLEANFILES += def-videotest.lst
2158 DEFSYMFILES += def-videotest.lst
2159 endif
2160 MOSTLYCLEANFILES += videotest_mod-commands_videotest.d
2161 UNDSYMFILES += und-videotest.lst
2162
2163 videotest.mod: pre-videotest.o mod-videotest.o
2164 -rm -f $@
2165 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2166 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2167
2168 pre-videotest.o: $(videotest_mod_DEPENDENCIES) videotest_mod-commands_videotest.o
2169 -rm -f $@
2170 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ videotest_mod-commands_videotest.o
2171
2172 mod-videotest.o: mod-videotest.c
2173 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -c -o $@ $<
2174
2175 mod-videotest.c: moddep.lst genmodsrc.sh
2176 sh $(srcdir)/genmodsrc.sh 'videotest' $< > $@ || (rm -f $@; exit 1)
2177
2178 ifneq ($(videotest_mod_EXPORTS),no)
2179 def-videotest.lst: pre-videotest.o
2180 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 videotest/' > $@
2181 endif
2182
2183 und-videotest.lst: pre-videotest.o
2184 echo 'videotest' > $@
2185 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2186
2187 videotest_mod-commands_videotest.o: commands/videotest.c
2188 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -MD -c -o $@ $<
2189 -include videotest_mod-commands_videotest.d
2190
2191 CLEANFILES += cmd-videotest_mod-commands_videotest.lst fs-videotest_mod-commands_videotest.lst
2192 COMMANDFILES += cmd-videotest_mod-commands_videotest.lst
2193 FSFILES += fs-videotest_mod-commands_videotest.lst
2194
2195 cmd-videotest_mod-commands_videotest.lst: commands/videotest.c gencmdlist.sh
2196 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh videotest > $@ || (rm -f $@; exit 1)
2197
2198 fs-videotest_mod-commands_videotest.lst: commands/videotest.c genfslist.sh
2199 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh videotest > $@ || (rm -f $@; exit 1)
2200
2201
2202 videotest_mod_CFLAGS = $(COMMON_CFLAGS)
2203 videotest_mod_LDFLAGS = $(COMMON_LDFLAGS)
2204
2205 # For bitmap.mod
2206 bitmap_mod_SOURCES = video/bitmap.c
2207 CLEANFILES += bitmap.mod mod-bitmap.o mod-bitmap.c pre-bitmap.o bitmap_mod-video_bitmap.o und-bitmap.lst
2208 ifneq ($(bitmap_mod_EXPORTS),no)
2209 CLEANFILES += def-bitmap.lst
2210 DEFSYMFILES += def-bitmap.lst
2211 endif
2212 MOSTLYCLEANFILES += bitmap_mod-video_bitmap.d
2213 UNDSYMFILES += und-bitmap.lst
2214
2215 bitmap.mod: pre-bitmap.o mod-bitmap.o
2216 -rm -f $@
2217 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2218 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2219
2220 pre-bitmap.o: $(bitmap_mod_DEPENDENCIES) bitmap_mod-video_bitmap.o
2221 -rm -f $@
2222 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bitmap_mod-video_bitmap.o
2223
2224 mod-bitmap.o: mod-bitmap.c
2225 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -c -o $@ $<
2226
2227 mod-bitmap.c: moddep.lst genmodsrc.sh
2228 sh $(srcdir)/genmodsrc.sh 'bitmap' $< > $@ || (rm -f $@; exit 1)
2229
2230 ifneq ($(bitmap_mod_EXPORTS),no)
2231 def-bitmap.lst: pre-bitmap.o
2232 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bitmap/' > $@
2233 endif
2234
2235 und-bitmap.lst: pre-bitmap.o
2236 echo 'bitmap' > $@
2237 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2238
2239 bitmap_mod-video_bitmap.o: video/bitmap.c
2240 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -MD -c -o $@ $<
2241 -include bitmap_mod-video_bitmap.d
2242
2243 CLEANFILES += cmd-bitmap_mod-video_bitmap.lst fs-bitmap_mod-video_bitmap.lst
2244 COMMANDFILES += cmd-bitmap_mod-video_bitmap.lst
2245 FSFILES += fs-bitmap_mod-video_bitmap.lst
2246
2247 cmd-bitmap_mod-video_bitmap.lst: video/bitmap.c gencmdlist.sh
2248 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh bitmap > $@ || (rm -f $@; exit 1)
2249
2250 fs-bitmap_mod-video_bitmap.lst: video/bitmap.c genfslist.sh
2251 set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh bitmap > $@ || (rm -f $@; exit 1)
2252
2253
2254 bitmap_mod_CFLAGS = $(COMMON_CFLAGS)
2255 bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
2256
2257 # For tga.mod
2258 tga_mod_SOURCES = video/readers/tga.c
2259 CLEANFILES += tga.mod mod-tga.o mod-tga.c pre-tga.o tga_mod-video_readers_tga.o und-tga.lst
2260 ifneq ($(tga_mod_EXPORTS),no)
2261 CLEANFILES += def-tga.lst
2262 DEFSYMFILES += def-tga.lst
2263 endif
2264 MOSTLYCLEANFILES += tga_mod-video_readers_tga.d
2265 UNDSYMFILES += und-tga.lst
2266
2267 tga.mod: pre-tga.o mod-tga.o
2268 -rm -f $@
2269 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2270 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2271
2272 pre-tga.o: $(tga_mod_DEPENDENCIES) tga_mod-video_readers_tga.o
2273 -rm -f $@
2274 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ tga_mod-video_readers_tga.o
2275
2276 mod-tga.o: mod-tga.c
2277 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -c -o $@ $<
2278
2279 mod-tga.c: moddep.lst genmodsrc.sh
2280 sh $(srcdir)/genmodsrc.sh 'tga' $< > $@ || (rm -f $@; exit 1)
2281
2282 ifneq ($(tga_mod_EXPORTS),no)
2283 def-tga.lst: pre-tga.o
2284 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 tga/' > $@
2285 endif
2286
2287 und-tga.lst: pre-tga.o
2288 echo 'tga' > $@
2289 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2290
2291 tga_mod-video_readers_tga.o: video/readers/tga.c
2292 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -MD -c -o $@ $<
2293 -include tga_mod-video_readers_tga.d
2294
2295 CLEANFILES += cmd-tga_mod-video_readers_tga.lst fs-tga_mod-video_readers_tga.lst
2296 COMMANDFILES += cmd-tga_mod-video_readers_tga.lst
2297 FSFILES += fs-tga_mod-video_readers_tga.lst
2298
2299 cmd-tga_mod-video_readers_tga.lst: video/readers/tga.c gencmdlist.sh
2300 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh tga > $@ || (rm -f $@; exit 1)
2301
2302 fs-tga_mod-video_readers_tga.lst: video/readers/tga.c genfslist.sh
2303 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh tga > $@ || (rm -f $@; exit 1)
2304
2305
2306 tga_mod_CFLAGS = $(COMMON_CFLAGS)
2307 tga_mod_LDFLAGS = $(COMMON_LDFLAGS)
2308
2309 # For cpuid.mod.
2310 cpuid_mod_SOURCES = commands/i386/cpuid.c
2311 CLEANFILES += cpuid.mod mod-cpuid.o mod-cpuid.c pre-cpuid.o cpuid_mod-commands_i386_cpuid.o und-cpuid.lst
2312 ifneq ($(cpuid_mod_EXPORTS),no)
2313 CLEANFILES += def-cpuid.lst
2314 DEFSYMFILES += def-cpuid.lst
2315 endif
2316 MOSTLYCLEANFILES += cpuid_mod-commands_i386_cpuid.d
2317 UNDSYMFILES += und-cpuid.lst
2318
2319 cpuid.mod: pre-cpuid.o mod-cpuid.o
2320 -rm -f $@
2321 $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2322 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2323
2324 pre-cpuid.o: $(cpuid_mod_DEPENDENCIES) cpuid_mod-commands_i386_cpuid.o
2325 -rm -f $@
2326 $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpuid_mod-commands_i386_cpuid.o
2327
2328 mod-cpuid.o: mod-cpuid.c
2329 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -c -o $@ $<
2330
2331 mod-cpuid.c: moddep.lst genmodsrc.sh
2332 sh $(srcdir)/genmodsrc.sh 'cpuid' $< > $@ || (rm -f $@; exit 1)
2333
2334 ifneq ($(cpuid_mod_EXPORTS),no)
2335 def-cpuid.lst: pre-cpuid.o
2336 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpuid/' > $@
2337 endif
2338
2339 und-cpuid.lst: pre-cpuid.o
2340 echo 'cpuid' > $@
2341 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2342
2343 cpuid_mod-commands_i386_cpuid.o: commands/i386/cpuid.c
2344 $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -MD -c -o $@ $<
2345 -include cpuid_mod-commands_i386_cpuid.d
2346
2347 CLEANFILES += cmd-cpuid_mod-commands_i386_cpuid.lst fs-cpuid_mod-commands_i386_cpuid.lst
2348 COMMANDFILES += cmd-cpuid_mod-commands_i386_cpuid.lst
2349 FSFILES += fs-cpuid_mod-commands_i386_cpuid.lst
2350
2351 cmd-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c gencmdlist.sh
2352 set -e; $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh cpuid > $@ || (rm -f $@; exit 1)
2353
2354 fs-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c genfslist.sh
2355 set -e; $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh cpuid > $@ || (rm -f $@; exit 1)
2356
2357
2358 cpuid_mod_CFLAGS = $(COMMON_CFLAGS)
2359 cpuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
2360
2361 # For ata.mod.
2362 ata_mod_SOURCES = disk/ata.c
2363 CLEANFILES += ata.mod mod-ata.o mod-ata.c pre-ata.o ata_mod-disk_ata.o und-ata.lst
2364 ifneq ($(ata_mod_EXPORTS),no)
2365 CLEANFILES += def-ata.lst
2366 DEFSYMFILES += def-ata.lst
2367 endif
2368 MOSTLYCLEANFILES += ata_mod-disk_ata.d
2369 UNDSYMFILES += und-ata.lst
2370
2371 ata.mod: pre-ata.o mod-ata.o
2372 -rm -f $@
2373 $(TARGET_CC) $(ata_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2374 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2375
2376 pre-ata.o: $(ata_mod_DEPENDENCIES) ata_mod-disk_ata.o
2377 -rm -f $@
2378 $(TARGET_CC) $(ata_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ata_mod-disk_ata.o
2379
2380 mod-ata.o: mod-ata.c
2381 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -c -o $@ $<
2382
2383 mod-ata.c: moddep.lst genmodsrc.sh
2384 sh $(srcdir)/genmodsrc.sh 'ata' $< > $@ || (rm -f $@; exit 1)
2385
2386 ifneq ($(ata_mod_EXPORTS),no)
2387 def-ata.lst: pre-ata.o
2388 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ata/' > $@
2389 endif
2390
2391 und-ata.lst: pre-ata.o
2392 echo 'ata' > $@
2393 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2394
2395 ata_mod-disk_ata.o: disk/ata.c
2396 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -MD -c -o $@ $<
2397 -include ata_mod-disk_ata.d
2398
2399 CLEANFILES += cmd-ata_mod-disk_ata.lst fs-ata_mod-disk_ata.lst
2400 COMMANDFILES += cmd-ata_mod-disk_ata.lst
2401 FSFILES += fs-ata_mod-disk_ata.lst
2402
2403 cmd-ata_mod-disk_ata.lst: disk/ata.c gencmdlist.sh
2404 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ata > $@ || (rm -f $@; exit 1)
2405
2406 fs-ata_mod-disk_ata.lst: disk/ata.c genfslist.sh
2407 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ata > $@ || (rm -f $@; exit 1)
2408
2409
2410 ata_mod_CFLAGS = $(COMMON_CFLAGS)
2411 ata_mod_LDFLAGS = $(COMMON_LDFLAGS)
2412
2413 # For vga.mod.
2414 vga_mod_SOURCES = term/i386/pc/vga.c
2415 CLEANFILES += vga.mod mod-vga.o mod-vga.c pre-vga.o vga_mod-term_i386_pc_vga.o und-vga.lst
2416 ifneq ($(vga_mod_EXPORTS),no)
2417 CLEANFILES += def-vga.lst
2418 DEFSYMFILES += def-vga.lst
2419 endif
2420 MOSTLYCLEANFILES += vga_mod-term_i386_pc_vga.d
2421 UNDSYMFILES += und-vga.lst
2422
2423 vga.mod: pre-vga.o mod-vga.o
2424 -rm -f $@
2425 $(TARGET_CC) $(vga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2426 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2427
2428 pre-vga.o: $(vga_mod_DEPENDENCIES) vga_mod-term_i386_pc_vga.o
2429 -rm -f $@
2430 $(TARGET_CC) $(vga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vga_mod-term_i386_pc_vga.o
2431
2432 mod-vga.o: mod-vga.c
2433 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -c -o $@ $<
2434
2435 mod-vga.c: moddep.lst genmodsrc.sh
2436 sh $(srcdir)/genmodsrc.sh 'vga' $< > $@ || (rm -f $@; exit 1)
2437
2438 ifneq ($(vga_mod_EXPORTS),no)
2439 def-vga.lst: pre-vga.o
2440 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vga/' > $@
2441 endif
2442
2443 und-vga.lst: pre-vga.o
2444 echo 'vga' > $@
2445 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2446
2447 vga_mod-term_i386_pc_vga.o: term/i386/pc/vga.c
2448 $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -MD -c -o $@ $<
2449 -include vga_mod-term_i386_pc_vga.d
2450
2451 CLEANFILES += cmd-vga_mod-term_i386_pc_vga.lst fs-vga_mod-term_i386_pc_vga.lst
2452 COMMANDFILES += cmd-vga_mod-term_i386_pc_vga.lst
2453 FSFILES += fs-vga_mod-term_i386_pc_vga.lst
2454
2455 cmd-vga_mod-term_i386_pc_vga.lst: term/i386/pc/vga.c gencmdlist.sh
2456 set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh vga > $@ || (rm -f $@; exit 1)
2457
2458 fs-vga_mod-term_i386_pc_vga.lst: term/i386/pc/vga.c genfslist.sh
2459 set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh vga > $@ || (rm -f $@; exit 1)
2460
2461
2462 vga_mod_CFLAGS = $(COMMON_CFLAGS)
2463 vga_mod_LDFLAGS = $(COMMON_LDFLAGS)
2464
2465 # For memdisk.mod.
2466 memdisk_mod_SOURCES = disk/memdisk.c
2467 CLEANFILES += memdisk.mod mod-memdisk.o mod-memdisk.c pre-memdisk.o memdisk_mod-disk_memdisk.o und-memdisk.lst
2468 ifneq ($(memdisk_mod_EXPORTS),no)
2469 CLEANFILES += def-memdisk.lst
2470 DEFSYMFILES += def-memdisk.lst
2471 endif
2472 MOSTLYCLEANFILES += memdisk_mod-disk_memdisk.d
2473 UNDSYMFILES += und-memdisk.lst
2474
2475 memdisk.mod: pre-memdisk.o mod-memdisk.o
2476 -rm -f $@
2477 $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2478 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2479
2480 pre-memdisk.o: $(memdisk_mod_DEPENDENCIES) memdisk_mod-disk_memdisk.o
2481 -rm -f $@
2482 $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ memdisk_mod-disk_memdisk.o
2483
2484 mod-memdisk.o: mod-memdisk.c
2485 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -c -o $@ $<
2486
2487 mod-memdisk.c: moddep.lst genmodsrc.sh
2488 sh $(srcdir)/genmodsrc.sh 'memdisk' $< > $@ || (rm -f $@; exit 1)
2489
2490 ifneq ($(memdisk_mod_EXPORTS),no)
2491 def-memdisk.lst: pre-memdisk.o
2492 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 memdisk/' > $@
2493 endif
2494
2495 und-memdisk.lst: pre-memdisk.o
2496 echo 'memdisk' > $@
2497 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2498
2499 memdisk_mod-disk_memdisk.o: disk/memdisk.c
2500 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -MD -c -o $@ $<
2501 -include memdisk_mod-disk_memdisk.d
2502
2503 CLEANFILES += cmd-memdisk_mod-disk_memdisk.lst fs-memdisk_mod-disk_memdisk.lst
2504 COMMANDFILES += cmd-memdisk_mod-disk_memdisk.lst
2505 FSFILES += fs-memdisk_mod-disk_memdisk.lst
2506
2507 cmd-memdisk_mod-disk_memdisk.lst: disk/memdisk.c gencmdlist.sh
2508 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)
2509
2510 fs-memdisk_mod-disk_memdisk.lst: disk/memdisk.c genfslist.sh
2511 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)
2512
2513
2514 memdisk_mod_CFLAGS = $(COMMON_CFLAGS)
2515 memdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
2516
2517 # For jpeg.mod.
2518 jpeg_mod_SOURCES = video/readers/jpeg.c
2519 CLEANFILES += jpeg.mod mod-jpeg.o mod-jpeg.c pre-jpeg.o jpeg_mod-video_readers_jpeg.o und-jpeg.lst
2520 ifneq ($(jpeg_mod_EXPORTS),no)
2521 CLEANFILES += def-jpeg.lst
2522 DEFSYMFILES += def-jpeg.lst
2523 endif
2524 MOSTLYCLEANFILES += jpeg_mod-video_readers_jpeg.d
2525 UNDSYMFILES += und-jpeg.lst
2526
2527 jpeg.mod: pre-jpeg.o mod-jpeg.o
2528 -rm -f $@
2529 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2530 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2531
2532 pre-jpeg.o: $(jpeg_mod_DEPENDENCIES) jpeg_mod-video_readers_jpeg.o
2533 -rm -f $@
2534 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jpeg_mod-video_readers_jpeg.o
2535
2536 mod-jpeg.o: mod-jpeg.c
2537 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -c -o $@ $<
2538
2539 mod-jpeg.c: moddep.lst genmodsrc.sh
2540 sh $(srcdir)/genmodsrc.sh 'jpeg' $< > $@ || (rm -f $@; exit 1)
2541
2542 ifneq ($(jpeg_mod_EXPORTS),no)
2543 def-jpeg.lst: pre-jpeg.o
2544 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jpeg/' > $@
2545 endif
2546
2547 und-jpeg.lst: pre-jpeg.o
2548 echo 'jpeg' > $@
2549 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2550
2551 jpeg_mod-video_readers_jpeg.o: video/readers/jpeg.c
2552 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -MD -c -o $@ $<
2553 -include jpeg_mod-video_readers_jpeg.d
2554
2555 CLEANFILES += cmd-jpeg_mod-video_readers_jpeg.lst fs-jpeg_mod-video_readers_jpeg.lst
2556 COMMANDFILES += cmd-jpeg_mod-video_readers_jpeg.lst
2557 FSFILES += fs-jpeg_mod-video_readers_jpeg.lst
2558
2559 cmd-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c gencmdlist.sh
2560 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh jpeg > $@ || (rm -f $@; exit 1)
2561
2562 fs-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c genfslist.sh
2563 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh jpeg > $@ || (rm -f $@; exit 1)
2564
2565
2566 jpeg_mod_CFLAGS = $(COMMON_CFLAGS)
2567 jpeg_mod_LDFLAGS = $(COMMON_LDFLAGS)
2568
2569 # For png.mod.
2570 png_mod_SOURCES = video/readers/png.c
2571 CLEANFILES += png.mod mod-png.o mod-png.c pre-png.o png_mod-video_readers_png.o und-png.lst
2572 ifneq ($(png_mod_EXPORTS),no)
2573 CLEANFILES += def-png.lst
2574 DEFSYMFILES += def-png.lst
2575 endif
2576 MOSTLYCLEANFILES += png_mod-video_readers_png.d
2577 UNDSYMFILES += und-png.lst
2578
2579 png.mod: pre-png.o mod-png.o
2580 -rm -f $@
2581 $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2582 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2583
2584 pre-png.o: $(png_mod_DEPENDENCIES) png_mod-video_readers_png.o
2585 -rm -f $@
2586 $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ png_mod-video_readers_png.o
2587
2588 mod-png.o: mod-png.c
2589 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -c -o $@ $<
2590
2591 mod-png.c: moddep.lst genmodsrc.sh
2592 sh $(srcdir)/genmodsrc.sh 'png' $< > $@ || (rm -f $@; exit 1)
2593
2594 ifneq ($(png_mod_EXPORTS),no)
2595 def-png.lst: pre-png.o
2596 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 png/' > $@
2597 endif
2598
2599 und-png.lst: pre-png.o
2600 echo 'png' > $@
2601 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2602
2603 png_mod-video_readers_png.o: video/readers/png.c
2604 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -MD -c -o $@ $<
2605 -include png_mod-video_readers_png.d
2606
2607 CLEANFILES += cmd-png_mod-video_readers_png.lst fs-png_mod-video_readers_png.lst
2608 COMMANDFILES += cmd-png_mod-video_readers_png.lst
2609 FSFILES += fs-png_mod-video_readers_png.lst
2610
2611 cmd-png_mod-video_readers_png.lst: video/readers/png.c gencmdlist.sh
2612 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh png > $@ || (rm -f $@; exit 1)
2613
2614 fs-png_mod-video_readers_png.lst: video/readers/png.c genfslist.sh
2615 set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh png > $@ || (rm -f $@; exit 1)
2616
2617
2618 png_mod_CFLAGS = $(COMMON_CFLAGS)
2619 png_mod_LDFLAGS = $(COMMON_LDFLAGS)
2620
2621 include $(srcdir)/conf/common.mk