]> git.proxmox.com Git - grub2.git/blob - conf/i386-pc.mk
2008-01-27 Robert Millan <rmh@aybabtu.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_script.tab.c grub_script.tab.h \
573 grub_emu_init.h
574 grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \
575 commands/configfile.c commands/echo.c commands/help.c \
576 commands/terminal.c commands/ls.c commands/test.c \
577 commands/search.c commands/blocklist.c commands/hexdump.c \
578 commands/i386/pc/halt.c commands/i386/pc/reboot.c \
579 commands/i386/cpuid.c \
580 disk/host.c disk/loopback.c disk/raid.c disk/lvm.c \
581 fs/fshelp.c \
582 \
583 io/gzio.c \
584 kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \
585 kern/err.c \
586 normal/execute.c kern/file.c kern/fs.c normal/lexer.c \
587 kern/loader.c kern/main.c kern/misc.c kern/parser.c \
588 grub_script.tab.c kern/partition.c kern/rescue.c kern/term.c \
589 normal/arg.c normal/cmdline.c normal/command.c normal/function.c\
590 normal/completion.c normal/main.c normal/color.c \
591 normal/menu.c normal/menu_entry.c normal/misc.c normal/script.c \
592 partmap/amiga.c partmap/apple.c partmap/pc.c partmap/sun.c \
593 partmap/acorn.c partmap/gpt.c \
594 \
595 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
596 fs/hfsplus.c fs/iso9660.c fs/jfs.c fs/minix.c \
597 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
598 fs/ufs.c fs/xfs.c \
599 \
600 util/console.c util/hostfs.c util/grub-emu.c util/misc.c \
601 util/biosdisk.c util/getroot.c \
602 util/i386/pc/misc.c grub_emu_init.c
603 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
604 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
605
606 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
607 $(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)
608
609 grub_emu-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES)
610 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
611 -include grub_emu-commands_boot.d
612
613 grub_emu-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES)
614 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
615 -include grub_emu-commands_cat.d
616
617 grub_emu-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES)
618 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
619 -include grub_emu-commands_cmp.d
620
621 grub_emu-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES)
622 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
623 -include grub_emu-commands_configfile.d
624
625 grub_emu-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES)
626 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
627 -include grub_emu-commands_echo.d
628
629 grub_emu-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES)
630 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
631 -include grub_emu-commands_help.d
632
633 grub_emu-commands_terminal.o: commands/terminal.c $(commands/terminal.c_DEPENDENCIES)
634 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
635 -include grub_emu-commands_terminal.d
636
637 grub_emu-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
638 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
639 -include grub_emu-commands_ls.d
640
641 grub_emu-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES)
642 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
643 -include grub_emu-commands_test.d
644
645 grub_emu-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES)
646 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
647 -include grub_emu-commands_search.d
648
649 grub_emu-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
650 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
651 -include grub_emu-commands_blocklist.d
652
653 grub_emu-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES)
654 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
655 -include grub_emu-commands_hexdump.d
656
657 grub_emu-commands_i386_pc_halt.o: commands/i386/pc/halt.c $(commands/i386/pc/halt.c_DEPENDENCIES)
658 $(CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
659 -include grub_emu-commands_i386_pc_halt.d
660
661 grub_emu-commands_i386_pc_reboot.o: commands/i386/pc/reboot.c $(commands/i386/pc/reboot.c_DEPENDENCIES)
662 $(CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
663 -include grub_emu-commands_i386_pc_reboot.d
664
665 grub_emu-commands_i386_cpuid.o: commands/i386/cpuid.c $(commands/i386/cpuid.c_DEPENDENCIES)
666 $(CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
667 -include grub_emu-commands_i386_cpuid.d
668
669 grub_emu-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES)
670 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
671 -include grub_emu-disk_host.d
672
673 grub_emu-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
674 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
675 -include grub_emu-disk_loopback.d
676
677 grub_emu-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
678 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
679 -include grub_emu-disk_raid.d
680
681 grub_emu-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
682 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
683 -include grub_emu-disk_lvm.d
684
685 grub_emu-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
686 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
687 -include grub_emu-fs_fshelp.d
688
689 grub_emu-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES)
690 $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
691 -include grub_emu-io_gzio.d
692
693 grub_emu-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
694 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
695 -include grub_emu-kern_device.d
696
697 grub_emu-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
698 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
699 -include grub_emu-kern_disk.d
700
701 grub_emu-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES)
702 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
703 -include grub_emu-kern_dl.d
704
705 grub_emu-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES)
706 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
707 -include grub_emu-kern_elf.d
708
709 grub_emu-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
710 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
711 -include grub_emu-kern_env.d
712
713 grub_emu-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
714 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
715 -include grub_emu-kern_err.d
716
717 grub_emu-normal_execute.o: normal/execute.c $(normal/execute.c_DEPENDENCIES)
718 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
719 -include grub_emu-normal_execute.d
720
721 grub_emu-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
722 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
723 -include grub_emu-kern_file.d
724
725 grub_emu-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
726 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
727 -include grub_emu-kern_fs.d
728
729 grub_emu-normal_lexer.o: normal/lexer.c $(normal/lexer.c_DEPENDENCIES)
730 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
731 -include grub_emu-normal_lexer.d
732
733 grub_emu-kern_loader.o: kern/loader.c $(kern/loader.c_DEPENDENCIES)
734 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
735 -include grub_emu-kern_loader.d
736
737 grub_emu-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES)
738 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
739 -include grub_emu-kern_main.d
740
741 grub_emu-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
742 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
743 -include grub_emu-kern_misc.d
744
745 grub_emu-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
746 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
747 -include grub_emu-kern_parser.d
748
749 grub_emu-grub_script_tab.o: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES)
750 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
751 -include grub_emu-grub_script_tab.d
752
753 grub_emu-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
754 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
755 -include grub_emu-kern_partition.d
756
757 grub_emu-kern_rescue.o: kern/rescue.c $(kern/rescue.c_DEPENDENCIES)
758 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
759 -include grub_emu-kern_rescue.d
760
761 grub_emu-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES)
762 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
763 -include grub_emu-kern_term.d
764
765 grub_emu-normal_arg.o: normal/arg.c $(normal/arg.c_DEPENDENCIES)
766 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
767 -include grub_emu-normal_arg.d
768
769 grub_emu-normal_cmdline.o: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES)
770 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
771 -include grub_emu-normal_cmdline.d
772
773 grub_emu-normal_command.o: normal/command.c $(normal/command.c_DEPENDENCIES)
774 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
775 -include grub_emu-normal_command.d
776
777 grub_emu-normal_function.o: normal/function.c $(normal/function.c_DEPENDENCIES)
778 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
779 -include grub_emu-normal_function.d
780
781 grub_emu-normal_completion.o: normal/completion.c $(normal/completion.c_DEPENDENCIES)
782 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
783 -include grub_emu-normal_completion.d
784
785 grub_emu-normal_main.o: normal/main.c $(normal/main.c_DEPENDENCIES)
786 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
787 -include grub_emu-normal_main.d
788
789 grub_emu-normal_color.o: normal/color.c $(normal/color.c_DEPENDENCIES)
790 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
791 -include grub_emu-normal_color.d
792
793 grub_emu-normal_menu.o: normal/menu.c $(normal/menu.c_DEPENDENCIES)
794 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
795 -include grub_emu-normal_menu.d
796
797 grub_emu-normal_menu_entry.o: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES)
798 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
799 -include grub_emu-normal_menu_entry.d
800
801 grub_emu-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES)
802 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
803 -include grub_emu-normal_misc.d
804
805 grub_emu-normal_script.o: normal/script.c $(normal/script.c_DEPENDENCIES)
806 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
807 -include grub_emu-normal_script.d
808
809 grub_emu-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES)
810 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
811 -include grub_emu-partmap_amiga.d
812
813 grub_emu-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
814 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
815 -include grub_emu-partmap_apple.d
816
817 grub_emu-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
818 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
819 -include grub_emu-partmap_pc.d
820
821 grub_emu-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES)
822 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
823 -include grub_emu-partmap_sun.d
824
825 grub_emu-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES)
826 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
827 -include grub_emu-partmap_acorn.d
828
829 grub_emu-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
830 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
831 -include grub_emu-partmap_gpt.d
832
833 grub_emu-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
834 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
835 -include grub_emu-fs_affs.d
836
837 grub_emu-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
838 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
839 -include grub_emu-fs_cpio.d
840
841 grub_emu-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
842 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
843 -include grub_emu-fs_ext2.d
844
845 grub_emu-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
846 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
847 -include grub_emu-fs_fat.d
848
849 grub_emu-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
850 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
851 -include grub_emu-fs_hfs.d
852
853 grub_emu-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
854 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
855 -include grub_emu-fs_hfsplus.d
856
857 grub_emu-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
858 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
859 -include grub_emu-fs_iso9660.d
860
861 grub_emu-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
862 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
863 -include grub_emu-fs_jfs.d
864
865 grub_emu-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
866 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
867 -include grub_emu-fs_minix.d
868
869 grub_emu-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
870 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
871 -include grub_emu-fs_ntfs.d
872
873 grub_emu-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
874 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
875 -include grub_emu-fs_ntfscomp.d
876
877 grub_emu-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
878 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
879 -include grub_emu-fs_reiserfs.d
880
881 grub_emu-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
882 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
883 -include grub_emu-fs_sfs.d
884
885 grub_emu-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
886 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
887 -include grub_emu-fs_ufs.d
888
889 grub_emu-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
890 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
891 -include grub_emu-fs_xfs.d
892
893 grub_emu-util_console.o: util/console.c $(util/console.c_DEPENDENCIES)
894 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
895 -include grub_emu-util_console.d
896
897 grub_emu-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES)
898 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
899 -include grub_emu-util_hostfs.d
900
901 grub_emu-util_grub_emu.o: util/grub-emu.c $(util/grub-emu.c_DEPENDENCIES)
902 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
903 -include grub_emu-util_grub_emu.d
904
905 grub_emu-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
906 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
907 -include grub_emu-util_misc.d
908
909 grub_emu-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES)
910 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
911 -include grub_emu-util_biosdisk.d
912
913 grub_emu-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
914 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
915 -include grub_emu-util_getroot.d
916
917 grub_emu-util_i386_pc_misc.o: util/i386/pc/misc.c $(util/i386/pc/misc.c_DEPENDENCIES)
918 $(CC) -Iutil/i386/pc -I$(srcdir)/util/i386/pc $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
919 -include grub_emu-util_i386_pc_misc.d
920
921 grub_emu-grub_emu_init.o: grub_emu_init.c $(grub_emu_init.c_DEPENDENCIES)
922 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $<
923 -include grub_emu-grub_emu_init.d
924
925
926 grub_emu_LDFLAGS = $(LIBCURSES)
927
928 # Scripts.
929 sbin_SCRIPTS = grub-install
930 bin_SCRIPTS = grub-mkrescue
931
932 # For grub-install.
933 grub_install_SOURCES = util/i386/pc/grub-install.in
934 CLEANFILES += grub-install
935
936 grub-install: util/i386/pc/grub-install.in config.status
937 ./config.status --file=grub-install:util/i386/pc/grub-install.in
938 chmod +x $@
939
940
941 # For grub-mkrescue.
942 grub_mkrescue_SOURCES = util/i386/pc/grub-mkrescue.in
943 CLEANFILES += grub-mkrescue
944
945 grub-mkrescue: util/i386/pc/grub-mkrescue.in config.status
946 ./config.status --file=grub-mkrescue:util/i386/pc/grub-mkrescue.in
947 chmod +x $@
948
949
950 # Modules.
951 pkglib_MODULES = biosdisk.mod _chain.mod _linux.mod linux.mod normal.mod \
952 _multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod \
953 vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
954 videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod \
955 ata.mod vga.mod memdisk.mod jpeg.mod
956
957 # For biosdisk.mod.
958 biosdisk_mod_SOURCES = disk/i386/pc/biosdisk.c
959 CLEANFILES += biosdisk.mod mod-biosdisk.o mod-biosdisk.c pre-biosdisk.o biosdisk_mod-disk_i386_pc_biosdisk.o und-biosdisk.lst
960 ifneq ($(biosdisk_mod_EXPORTS),no)
961 CLEANFILES += def-biosdisk.lst
962 DEFSYMFILES += def-biosdisk.lst
963 endif
964 MOSTLYCLEANFILES += biosdisk_mod-disk_i386_pc_biosdisk.d
965 UNDSYMFILES += und-biosdisk.lst
966
967 biosdisk.mod: pre-biosdisk.o mod-biosdisk.o
968 -rm -f $@
969 $(TARGET_CC) $(biosdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
970 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
971
972 pre-biosdisk.o: $(biosdisk_mod_DEPENDENCIES) biosdisk_mod-disk_i386_pc_biosdisk.o
973 -rm -f $@
974 $(TARGET_CC) $(biosdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ biosdisk_mod-disk_i386_pc_biosdisk.o
975
976 mod-biosdisk.o: mod-biosdisk.c
977 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -c -o $@ $<
978
979 mod-biosdisk.c: moddep.lst genmodsrc.sh
980 sh $(srcdir)/genmodsrc.sh 'biosdisk' $< > $@ || (rm -f $@; exit 1)
981
982 ifneq ($(biosdisk_mod_EXPORTS),no)
983 def-biosdisk.lst: pre-biosdisk.o
984 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 biosdisk/' > $@
985 endif
986
987 und-biosdisk.lst: pre-biosdisk.o
988 echo 'biosdisk' > $@
989 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
990
991 biosdisk_mod-disk_i386_pc_biosdisk.o: disk/i386/pc/biosdisk.c
992 $(TARGET_CC) -Idisk/i386/pc -I$(srcdir)/disk/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(biosdisk_mod_CFLAGS) -MD -c -o $@ $<
993 -include biosdisk_mod-disk_i386_pc_biosdisk.d
994
995 CLEANFILES += cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst fs-biosdisk_mod-disk_i386_pc_biosdisk.lst
996 COMMANDFILES += cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst
997 FSFILES += fs-biosdisk_mod-disk_i386_pc_biosdisk.lst
998
999 cmd-biosdisk_mod-disk_i386_pc_biosdisk.lst: disk/i386/pc/biosdisk.c gencmdlist.sh
1000 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)
1001
1002 fs-biosdisk_mod-disk_i386_pc_biosdisk.lst: disk/i386/pc/biosdisk.c genfslist.sh
1003 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)
1004
1005
1006 biosdisk_mod_CFLAGS = $(COMMON_CFLAGS)
1007 biosdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
1008
1009 # For _chain.mod.
1010 _chain_mod_SOURCES = loader/i386/pc/chainloader.c
1011 CLEANFILES += _chain.mod mod-_chain.o mod-_chain.c pre-_chain.o _chain_mod-loader_i386_pc_chainloader.o und-_chain.lst
1012 ifneq ($(_chain_mod_EXPORTS),no)
1013 CLEANFILES += def-_chain.lst
1014 DEFSYMFILES += def-_chain.lst
1015 endif
1016 MOSTLYCLEANFILES += _chain_mod-loader_i386_pc_chainloader.d
1017 UNDSYMFILES += und-_chain.lst
1018
1019 _chain.mod: pre-_chain.o mod-_chain.o
1020 -rm -f $@
1021 $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1022 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1023
1024 pre-_chain.o: $(_chain_mod_DEPENDENCIES) _chain_mod-loader_i386_pc_chainloader.o
1025 -rm -f $@
1026 $(TARGET_CC) $(_chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _chain_mod-loader_i386_pc_chainloader.o
1027
1028 mod-_chain.o: mod-_chain.c
1029 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -c -o $@ $<
1030
1031 mod-_chain.c: moddep.lst genmodsrc.sh
1032 sh $(srcdir)/genmodsrc.sh '_chain' $< > $@ || (rm -f $@; exit 1)
1033
1034 ifneq ($(_chain_mod_EXPORTS),no)
1035 def-_chain.lst: pre-_chain.o
1036 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _chain/' > $@
1037 endif
1038
1039 und-_chain.lst: pre-_chain.o
1040 echo '_chain' > $@
1041 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1042
1043 _chain_mod-loader_i386_pc_chainloader.o: loader/i386/pc/chainloader.c
1044 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_chain_mod_CFLAGS) -MD -c -o $@ $<
1045 -include _chain_mod-loader_i386_pc_chainloader.d
1046
1047 CLEANFILES += cmd-_chain_mod-loader_i386_pc_chainloader.lst fs-_chain_mod-loader_i386_pc_chainloader.lst
1048 COMMANDFILES += cmd-_chain_mod-loader_i386_pc_chainloader.lst
1049 FSFILES += fs-_chain_mod-loader_i386_pc_chainloader.lst
1050
1051 cmd-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c gencmdlist.sh
1052 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)
1053
1054 fs-_chain_mod-loader_i386_pc_chainloader.lst: loader/i386/pc/chainloader.c genfslist.sh
1055 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)
1056
1057
1058 _chain_mod_CFLAGS = $(COMMON_CFLAGS)
1059 _chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
1060
1061 # For chain.mod.
1062 chain_mod_SOURCES = loader/i386/pc/chainloader_normal.c
1063 CLEANFILES += chain.mod mod-chain.o mod-chain.c pre-chain.o chain_mod-loader_i386_pc_chainloader_normal.o und-chain.lst
1064 ifneq ($(chain_mod_EXPORTS),no)
1065 CLEANFILES += def-chain.lst
1066 DEFSYMFILES += def-chain.lst
1067 endif
1068 MOSTLYCLEANFILES += chain_mod-loader_i386_pc_chainloader_normal.d
1069 UNDSYMFILES += und-chain.lst
1070
1071 chain.mod: pre-chain.o mod-chain.o
1072 -rm -f $@
1073 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1074 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1075
1076 pre-chain.o: $(chain_mod_DEPENDENCIES) chain_mod-loader_i386_pc_chainloader_normal.o
1077 -rm -f $@
1078 $(TARGET_CC) $(chain_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ chain_mod-loader_i386_pc_chainloader_normal.o
1079
1080 mod-chain.o: mod-chain.c
1081 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -c -o $@ $<
1082
1083 mod-chain.c: moddep.lst genmodsrc.sh
1084 sh $(srcdir)/genmodsrc.sh 'chain' $< > $@ || (rm -f $@; exit 1)
1085
1086 ifneq ($(chain_mod_EXPORTS),no)
1087 def-chain.lst: pre-chain.o
1088 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 chain/' > $@
1089 endif
1090
1091 und-chain.lst: pre-chain.o
1092 echo 'chain' > $@
1093 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1094
1095 chain_mod-loader_i386_pc_chainloader_normal.o: loader/i386/pc/chainloader_normal.c
1096 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(chain_mod_CFLAGS) -MD -c -o $@ $<
1097 -include chain_mod-loader_i386_pc_chainloader_normal.d
1098
1099 CLEANFILES += cmd-chain_mod-loader_i386_pc_chainloader_normal.lst fs-chain_mod-loader_i386_pc_chainloader_normal.lst
1100 COMMANDFILES += cmd-chain_mod-loader_i386_pc_chainloader_normal.lst
1101 FSFILES += fs-chain_mod-loader_i386_pc_chainloader_normal.lst
1102
1103 cmd-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c gencmdlist.sh
1104 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)
1105
1106 fs-chain_mod-loader_i386_pc_chainloader_normal.lst: loader/i386/pc/chainloader_normal.c genfslist.sh
1107 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)
1108
1109
1110 chain_mod_CFLAGS = $(COMMON_CFLAGS)
1111 chain_mod_LDFLAGS = $(COMMON_LDFLAGS)
1112
1113 # For _linux.mod.
1114 _linux_mod_SOURCES = loader/i386/pc/linux.c
1115 CLEANFILES += _linux.mod mod-_linux.o mod-_linux.c pre-_linux.o _linux_mod-loader_i386_pc_linux.o und-_linux.lst
1116 ifneq ($(_linux_mod_EXPORTS),no)
1117 CLEANFILES += def-_linux.lst
1118 DEFSYMFILES += def-_linux.lst
1119 endif
1120 MOSTLYCLEANFILES += _linux_mod-loader_i386_pc_linux.d
1121 UNDSYMFILES += und-_linux.lst
1122
1123 _linux.mod: pre-_linux.o mod-_linux.o
1124 -rm -f $@
1125 $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1126 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1127
1128 pre-_linux.o: $(_linux_mod_DEPENDENCIES) _linux_mod-loader_i386_pc_linux.o
1129 -rm -f $@
1130 $(TARGET_CC) $(_linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ _linux_mod-loader_i386_pc_linux.o
1131
1132 mod-_linux.o: mod-_linux.c
1133 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -c -o $@ $<
1134
1135 mod-_linux.c: moddep.lst genmodsrc.sh
1136 sh $(srcdir)/genmodsrc.sh '_linux' $< > $@ || (rm -f $@; exit 1)
1137
1138 ifneq ($(_linux_mod_EXPORTS),no)
1139 def-_linux.lst: pre-_linux.o
1140 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _linux/' > $@
1141 endif
1142
1143 und-_linux.lst: pre-_linux.o
1144 echo '_linux' > $@
1145 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1146
1147 _linux_mod-loader_i386_pc_linux.o: loader/i386/pc/linux.c
1148 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_linux_mod_CFLAGS) -MD -c -o $@ $<
1149 -include _linux_mod-loader_i386_pc_linux.d
1150
1151 CLEANFILES += cmd-_linux_mod-loader_i386_pc_linux.lst fs-_linux_mod-loader_i386_pc_linux.lst
1152 COMMANDFILES += cmd-_linux_mod-loader_i386_pc_linux.lst
1153 FSFILES += fs-_linux_mod-loader_i386_pc_linux.lst
1154
1155 cmd-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c gencmdlist.sh
1156 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)
1157
1158 fs-_linux_mod-loader_i386_pc_linux.lst: loader/i386/pc/linux.c genfslist.sh
1159 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)
1160
1161
1162 _linux_mod_CFLAGS = $(COMMON_CFLAGS)
1163 _linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
1164
1165 # For linux.mod.
1166 linux_mod_SOURCES = loader/i386/pc/linux_normal.c
1167 CLEANFILES += linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_pc_linux_normal.o und-linux.lst
1168 ifneq ($(linux_mod_EXPORTS),no)
1169 CLEANFILES += def-linux.lst
1170 DEFSYMFILES += def-linux.lst
1171 endif
1172 MOSTLYCLEANFILES += linux_mod-loader_i386_pc_linux_normal.d
1173 UNDSYMFILES += und-linux.lst
1174
1175 linux.mod: pre-linux.o mod-linux.o
1176 -rm -f $@
1177 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1178 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1179
1180 pre-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_pc_linux_normal.o
1181 -rm -f $@
1182 $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_i386_pc_linux_normal.o
1183
1184 mod-linux.o: mod-linux.c
1185 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $<
1186
1187 mod-linux.c: moddep.lst genmodsrc.sh
1188 sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1)
1189
1190 ifneq ($(linux_mod_EXPORTS),no)
1191 def-linux.lst: pre-linux.o
1192 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@
1193 endif
1194
1195 und-linux.lst: pre-linux.o
1196 echo 'linux' > $@
1197 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1198
1199 linux_mod-loader_i386_pc_linux_normal.o: loader/i386/pc/linux_normal.c
1200 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $<
1201 -include linux_mod-loader_i386_pc_linux_normal.d
1202
1203 CLEANFILES += cmd-linux_mod-loader_i386_pc_linux_normal.lst fs-linux_mod-loader_i386_pc_linux_normal.lst
1204 COMMANDFILES += cmd-linux_mod-loader_i386_pc_linux_normal.lst
1205 FSFILES += fs-linux_mod-loader_i386_pc_linux_normal.lst
1206
1207 cmd-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c gencmdlist.sh
1208 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)
1209
1210 fs-linux_mod-loader_i386_pc_linux_normal.lst: loader/i386/pc/linux_normal.c genfslist.sh
1211 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)
1212
1213
1214 linux_mod_CFLAGS = $(COMMON_CFLAGS)
1215 linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
1216
1217 # For normal.mod.
1218 normal_mod_DEPENDENCIES = grub_script.tab.c grub_script.tab.h
1219 normal_mod_SOURCES = normal/arg.c normal/cmdline.c normal/command.c \
1220 normal/completion.c normal/execute.c \
1221 normal/function.c normal/lexer.c normal/main.c normal/menu.c \
1222 normal/color.c \
1223 normal/menu_entry.c normal/misc.c grub_script.tab.c \
1224 normal/script.c normal/i386/setjmp.S
1225 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
1226 ifneq ($(normal_mod_EXPORTS),no)
1227 CLEANFILES += def-normal.lst
1228 DEFSYMFILES += def-normal.lst
1229 endif
1230 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
1231 UNDSYMFILES += und-normal.lst
1232
1233 normal.mod: pre-normal.o mod-normal.o
1234 -rm -f $@
1235 $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1236 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1237
1238 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
1239 -rm -f $@
1240 $(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
1241
1242 mod-normal.o: mod-normal.c
1243 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $<
1244
1245 mod-normal.c: moddep.lst genmodsrc.sh
1246 sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1)
1247
1248 ifneq ($(normal_mod_EXPORTS),no)
1249 def-normal.lst: pre-normal.o
1250 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@
1251 endif
1252
1253 und-normal.lst: pre-normal.o
1254 echo 'normal' > $@
1255 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1256
1257 normal_mod-normal_arg.o: normal/arg.c
1258 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1259 -include normal_mod-normal_arg.d
1260
1261 CLEANFILES += cmd-normal_mod-normal_arg.lst fs-normal_mod-normal_arg.lst
1262 COMMANDFILES += cmd-normal_mod-normal_arg.lst
1263 FSFILES += fs-normal_mod-normal_arg.lst
1264
1265 cmd-normal_mod-normal_arg.lst: normal/arg.c gencmdlist.sh
1266 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)
1267
1268 fs-normal_mod-normal_arg.lst: normal/arg.c genfslist.sh
1269 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)
1270
1271
1272 normal_mod-normal_cmdline.o: normal/cmdline.c
1273 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1274 -include normal_mod-normal_cmdline.d
1275
1276 CLEANFILES += cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmdline.lst
1277 COMMANDFILES += cmd-normal_mod-normal_cmdline.lst
1278 FSFILES += fs-normal_mod-normal_cmdline.lst
1279
1280 cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c gencmdlist.sh
1281 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)
1282
1283 fs-normal_mod-normal_cmdline.lst: normal/cmdline.c genfslist.sh
1284 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)
1285
1286
1287 normal_mod-normal_command.o: normal/command.c
1288 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1289 -include normal_mod-normal_command.d
1290
1291 CLEANFILES += cmd-normal_mod-normal_command.lst fs-normal_mod-normal_command.lst
1292 COMMANDFILES += cmd-normal_mod-normal_command.lst
1293 FSFILES += fs-normal_mod-normal_command.lst
1294
1295 cmd-normal_mod-normal_command.lst: normal/command.c gencmdlist.sh
1296 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)
1297
1298 fs-normal_mod-normal_command.lst: normal/command.c genfslist.sh
1299 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)
1300
1301
1302 normal_mod-normal_completion.o: normal/completion.c
1303 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1304 -include normal_mod-normal_completion.d
1305
1306 CLEANFILES += cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_completion.lst
1307 COMMANDFILES += cmd-normal_mod-normal_completion.lst
1308 FSFILES += fs-normal_mod-normal_completion.lst
1309
1310 cmd-normal_mod-normal_completion.lst: normal/completion.c gencmdlist.sh
1311 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)
1312
1313 fs-normal_mod-normal_completion.lst: normal/completion.c genfslist.sh
1314 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)
1315
1316
1317 normal_mod-normal_execute.o: normal/execute.c
1318 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1319 -include normal_mod-normal_execute.d
1320
1321 CLEANFILES += cmd-normal_mod-normal_execute.lst fs-normal_mod-normal_execute.lst
1322 COMMANDFILES += cmd-normal_mod-normal_execute.lst
1323 FSFILES += fs-normal_mod-normal_execute.lst
1324
1325 cmd-normal_mod-normal_execute.lst: normal/execute.c gencmdlist.sh
1326 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)
1327
1328 fs-normal_mod-normal_execute.lst: normal/execute.c genfslist.sh
1329 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)
1330
1331
1332 normal_mod-normal_function.o: normal/function.c
1333 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1334 -include normal_mod-normal_function.d
1335
1336 CLEANFILES += cmd-normal_mod-normal_function.lst fs-normal_mod-normal_function.lst
1337 COMMANDFILES += cmd-normal_mod-normal_function.lst
1338 FSFILES += fs-normal_mod-normal_function.lst
1339
1340 cmd-normal_mod-normal_function.lst: normal/function.c gencmdlist.sh
1341 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)
1342
1343 fs-normal_mod-normal_function.lst: normal/function.c genfslist.sh
1344 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)
1345
1346
1347 normal_mod-normal_lexer.o: normal/lexer.c
1348 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1349 -include normal_mod-normal_lexer.d
1350
1351 CLEANFILES += cmd-normal_mod-normal_lexer.lst fs-normal_mod-normal_lexer.lst
1352 COMMANDFILES += cmd-normal_mod-normal_lexer.lst
1353 FSFILES += fs-normal_mod-normal_lexer.lst
1354
1355 cmd-normal_mod-normal_lexer.lst: normal/lexer.c gencmdlist.sh
1356 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)
1357
1358 fs-normal_mod-normal_lexer.lst: normal/lexer.c genfslist.sh
1359 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)
1360
1361
1362 normal_mod-normal_main.o: normal/main.c
1363 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1364 -include normal_mod-normal_main.d
1365
1366 CLEANFILES += cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.lst
1367 COMMANDFILES += cmd-normal_mod-normal_main.lst
1368 FSFILES += fs-normal_mod-normal_main.lst
1369
1370 cmd-normal_mod-normal_main.lst: normal/main.c gencmdlist.sh
1371 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)
1372
1373 fs-normal_mod-normal_main.lst: normal/main.c genfslist.sh
1374 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)
1375
1376
1377 normal_mod-normal_menu.o: normal/menu.c
1378 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1379 -include normal_mod-normal_menu.d
1380
1381 CLEANFILES += cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.lst
1382 COMMANDFILES += cmd-normal_mod-normal_menu.lst
1383 FSFILES += fs-normal_mod-normal_menu.lst
1384
1385 cmd-normal_mod-normal_menu.lst: normal/menu.c gencmdlist.sh
1386 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)
1387
1388 fs-normal_mod-normal_menu.lst: normal/menu.c genfslist.sh
1389 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)
1390
1391
1392 normal_mod-normal_color.o: normal/color.c
1393 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1394 -include normal_mod-normal_color.d
1395
1396 CLEANFILES += cmd-normal_mod-normal_color.lst fs-normal_mod-normal_color.lst
1397 COMMANDFILES += cmd-normal_mod-normal_color.lst
1398 FSFILES += fs-normal_mod-normal_color.lst
1399
1400 cmd-normal_mod-normal_color.lst: normal/color.c gencmdlist.sh
1401 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)
1402
1403 fs-normal_mod-normal_color.lst: normal/color.c genfslist.sh
1404 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)
1405
1406
1407 normal_mod-normal_menu_entry.o: normal/menu_entry.c
1408 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1409 -include normal_mod-normal_menu_entry.d
1410
1411 CLEANFILES += cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_menu_entry.lst
1412 COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst
1413 FSFILES += fs-normal_mod-normal_menu_entry.lst
1414
1415 cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c gencmdlist.sh
1416 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)
1417
1418 fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c genfslist.sh
1419 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)
1420
1421
1422 normal_mod-normal_misc.o: normal/misc.c
1423 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1424 -include normal_mod-normal_misc.d
1425
1426 CLEANFILES += cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.lst
1427 COMMANDFILES += cmd-normal_mod-normal_misc.lst
1428 FSFILES += fs-normal_mod-normal_misc.lst
1429
1430 cmd-normal_mod-normal_misc.lst: normal/misc.c gencmdlist.sh
1431 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)
1432
1433 fs-normal_mod-normal_misc.lst: normal/misc.c genfslist.sh
1434 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)
1435
1436
1437 normal_mod-grub_script_tab.o: grub_script.tab.c
1438 $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1439 -include normal_mod-grub_script_tab.d
1440
1441 CLEANFILES += cmd-normal_mod-grub_script_tab.lst fs-normal_mod-grub_script_tab.lst
1442 COMMANDFILES += cmd-normal_mod-grub_script_tab.lst
1443 FSFILES += fs-normal_mod-grub_script_tab.lst
1444
1445 cmd-normal_mod-grub_script_tab.lst: grub_script.tab.c gencmdlist.sh
1446 set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1)
1447
1448 fs-normal_mod-grub_script_tab.lst: grub_script.tab.c genfslist.sh
1449 set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1)
1450
1451
1452 normal_mod-normal_script.o: normal/script.c
1453 $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $<
1454 -include normal_mod-normal_script.d
1455
1456 CLEANFILES += cmd-normal_mod-normal_script.lst fs-normal_mod-normal_script.lst
1457 COMMANDFILES += cmd-normal_mod-normal_script.lst
1458 FSFILES += fs-normal_mod-normal_script.lst
1459
1460 cmd-normal_mod-normal_script.lst: normal/script.c gencmdlist.sh
1461 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)
1462
1463 fs-normal_mod-normal_script.lst: normal/script.c genfslist.sh
1464 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)
1465
1466
1467 normal_mod-normal_i386_setjmp.o: normal/i386/setjmp.S
1468 $(TARGET_CC) -Inormal/i386 -I$(srcdir)/normal/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(normal_mod_ASFLAGS) -MD -c -o $@ $<
1469 -include normal_mod-normal_i386_setjmp.d
1470
1471 CLEANFILES += cmd-normal_mod-normal_i386_setjmp.lst fs-normal_mod-normal_i386_setjmp.lst
1472 COMMANDFILES += cmd-normal_mod-normal_i386_setjmp.lst
1473 FSFILES += fs-normal_mod-normal_i386_setjmp.lst
1474
1475 cmd-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S gencmdlist.sh
1476 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)
1477
1478 fs-normal_mod-normal_i386_setjmp.lst: normal/i386/setjmp.S genfslist.sh
1479 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)
1480
1481
1482 normal_mod_CFLAGS = $(COMMON_CFLAGS)
1483 normal_mod_ASFLAGS = $(COMMON_ASFLAGS)
1484 normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
1485
1486 # For reboot.mod.
1487 reboot_mod_SOURCES = commands/i386/pc/reboot.c
1488 CLEANFILES += reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_i386_pc_reboot.o und-reboot.lst
1489 ifneq ($(reboot_mod_EXPORTS),no)
1490 CLEANFILES += def-reboot.lst
1491 DEFSYMFILES += def-reboot.lst
1492 endif
1493 MOSTLYCLEANFILES += reboot_mod-commands_i386_pc_reboot.d
1494 UNDSYMFILES += und-reboot.lst
1495
1496 reboot.mod: pre-reboot.o mod-reboot.o
1497 -rm -f $@
1498 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1499 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1500
1501 pre-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_i386_pc_reboot.o
1502 -rm -f $@
1503 $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reboot_mod-commands_i386_pc_reboot.o
1504
1505 mod-reboot.o: mod-reboot.c
1506 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $<
1507
1508 mod-reboot.c: moddep.lst genmodsrc.sh
1509 sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1)
1510
1511 ifneq ($(reboot_mod_EXPORTS),no)
1512 def-reboot.lst: pre-reboot.o
1513 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@
1514 endif
1515
1516 und-reboot.lst: pre-reboot.o
1517 echo 'reboot' > $@
1518 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1519
1520 reboot_mod-commands_i386_pc_reboot.o: commands/i386/pc/reboot.c
1521 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -MD -c -o $@ $<
1522 -include reboot_mod-commands_i386_pc_reboot.d
1523
1524 CLEANFILES += cmd-reboot_mod-commands_i386_pc_reboot.lst fs-reboot_mod-commands_i386_pc_reboot.lst
1525 COMMANDFILES += cmd-reboot_mod-commands_i386_pc_reboot.lst
1526 FSFILES += fs-reboot_mod-commands_i386_pc_reboot.lst
1527
1528 cmd-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c gencmdlist.sh
1529 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)
1530
1531 fs-reboot_mod-commands_i386_pc_reboot.lst: commands/i386/pc/reboot.c genfslist.sh
1532 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)
1533
1534
1535 reboot_mod_CFLAGS = $(COMMON_CFLAGS)
1536 reboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1537
1538 # For halt.mod.
1539 halt_mod_SOURCES = commands/i386/pc/halt.c
1540 CLEANFILES += halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_i386_pc_halt.o und-halt.lst
1541 ifneq ($(halt_mod_EXPORTS),no)
1542 CLEANFILES += def-halt.lst
1543 DEFSYMFILES += def-halt.lst
1544 endif
1545 MOSTLYCLEANFILES += halt_mod-commands_i386_pc_halt.d
1546 UNDSYMFILES += und-halt.lst
1547
1548 halt.mod: pre-halt.o mod-halt.o
1549 -rm -f $@
1550 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1551 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1552
1553 pre-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_i386_pc_halt.o
1554 -rm -f $@
1555 $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ halt_mod-commands_i386_pc_halt.o
1556
1557 mod-halt.o: mod-halt.c
1558 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $<
1559
1560 mod-halt.c: moddep.lst genmodsrc.sh
1561 sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1)
1562
1563 ifneq ($(halt_mod_EXPORTS),no)
1564 def-halt.lst: pre-halt.o
1565 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@
1566 endif
1567
1568 und-halt.lst: pre-halt.o
1569 echo 'halt' > $@
1570 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1571
1572 halt_mod-commands_i386_pc_halt.o: commands/i386/pc/halt.c
1573 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -MD -c -o $@ $<
1574 -include halt_mod-commands_i386_pc_halt.d
1575
1576 CLEANFILES += cmd-halt_mod-commands_i386_pc_halt.lst fs-halt_mod-commands_i386_pc_halt.lst
1577 COMMANDFILES += cmd-halt_mod-commands_i386_pc_halt.lst
1578 FSFILES += fs-halt_mod-commands_i386_pc_halt.lst
1579
1580 cmd-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c gencmdlist.sh
1581 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)
1582
1583 fs-halt_mod-commands_i386_pc_halt.lst: commands/i386/pc/halt.c genfslist.sh
1584 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)
1585
1586
1587 halt_mod_CFLAGS = $(COMMON_CFLAGS)
1588 halt_mod_LDFLAGS = $(COMMON_LDFLAGS)
1589
1590 # For serial.mod.
1591 serial_mod_SOURCES = term/i386/pc/serial.c
1592 CLEANFILES += serial.mod mod-serial.o mod-serial.c pre-serial.o serial_mod-term_i386_pc_serial.o und-serial.lst
1593 ifneq ($(serial_mod_EXPORTS),no)
1594 CLEANFILES += def-serial.lst
1595 DEFSYMFILES += def-serial.lst
1596 endif
1597 MOSTLYCLEANFILES += serial_mod-term_i386_pc_serial.d
1598 UNDSYMFILES += und-serial.lst
1599
1600 serial.mod: pre-serial.o mod-serial.o
1601 -rm -f $@
1602 $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1603 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1604
1605 pre-serial.o: $(serial_mod_DEPENDENCIES) serial_mod-term_i386_pc_serial.o
1606 -rm -f $@
1607 $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ serial_mod-term_i386_pc_serial.o
1608
1609 mod-serial.o: mod-serial.c
1610 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -c -o $@ $<
1611
1612 mod-serial.c: moddep.lst genmodsrc.sh
1613 sh $(srcdir)/genmodsrc.sh 'serial' $< > $@ || (rm -f $@; exit 1)
1614
1615 ifneq ($(serial_mod_EXPORTS),no)
1616 def-serial.lst: pre-serial.o
1617 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 serial/' > $@
1618 endif
1619
1620 und-serial.lst: pre-serial.o
1621 echo 'serial' > $@
1622 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1623
1624 serial_mod-term_i386_pc_serial.o: term/i386/pc/serial.c
1625 $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -MD -c -o $@ $<
1626 -include serial_mod-term_i386_pc_serial.d
1627
1628 CLEANFILES += cmd-serial_mod-term_i386_pc_serial.lst fs-serial_mod-term_i386_pc_serial.lst
1629 COMMANDFILES += cmd-serial_mod-term_i386_pc_serial.lst
1630 FSFILES += fs-serial_mod-term_i386_pc_serial.lst
1631
1632 cmd-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c gencmdlist.sh
1633 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)
1634
1635 fs-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c genfslist.sh
1636 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)
1637
1638
1639 serial_mod_CFLAGS = $(COMMON_CFLAGS)
1640 serial_mod_LDFLAGS = $(COMMON_LDFLAGS)
1641
1642 # For _multiboot.mod.
1643 _multiboot_mod_SOURCES = loader/i386/pc/multiboot.c \
1644 loader/i386/pc/multiboot2.c \
1645 loader/multiboot2.c \
1646 loader/multiboot_loader.c
1647 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
1648 ifneq ($(_multiboot_mod_EXPORTS),no)
1649 CLEANFILES += def-_multiboot.lst
1650 DEFSYMFILES += def-_multiboot.lst
1651 endif
1652 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
1653 UNDSYMFILES += und-_multiboot.lst
1654
1655 _multiboot.mod: pre-_multiboot.o mod-_multiboot.o
1656 -rm -f $@
1657 $(TARGET_CC) $(_multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1658 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1659
1660 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
1661 -rm -f $@
1662 $(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
1663
1664 mod-_multiboot.o: mod-_multiboot.c
1665 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -c -o $@ $<
1666
1667 mod-_multiboot.c: moddep.lst genmodsrc.sh
1668 sh $(srcdir)/genmodsrc.sh '_multiboot' $< > $@ || (rm -f $@; exit 1)
1669
1670 ifneq ($(_multiboot_mod_EXPORTS),no)
1671 def-_multiboot.lst: pre-_multiboot.o
1672 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 _multiboot/' > $@
1673 endif
1674
1675 und-_multiboot.lst: pre-_multiboot.o
1676 echo '_multiboot' > $@
1677 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1678
1679 _multiboot_mod-loader_i386_pc_multiboot.o: loader/i386/pc/multiboot.c
1680 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1681 -include _multiboot_mod-loader_i386_pc_multiboot.d
1682
1683 CLEANFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot.lst fs-_multiboot_mod-loader_i386_pc_multiboot.lst
1684 COMMANDFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot.lst
1685 FSFILES += fs-_multiboot_mod-loader_i386_pc_multiboot.lst
1686
1687 cmd-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c gencmdlist.sh
1688 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)
1689
1690 fs-_multiboot_mod-loader_i386_pc_multiboot.lst: loader/i386/pc/multiboot.c genfslist.sh
1691 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)
1692
1693
1694 _multiboot_mod-loader_i386_pc_multiboot2.o: loader/i386/pc/multiboot2.c
1695 $(TARGET_CC) -Iloader/i386/pc -I$(srcdir)/loader/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1696 -include _multiboot_mod-loader_i386_pc_multiboot2.d
1697
1698 CLEANFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst fs-_multiboot_mod-loader_i386_pc_multiboot2.lst
1699 COMMANDFILES += cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst
1700 FSFILES += fs-_multiboot_mod-loader_i386_pc_multiboot2.lst
1701
1702 cmd-_multiboot_mod-loader_i386_pc_multiboot2.lst: loader/i386/pc/multiboot2.c gencmdlist.sh
1703 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)
1704
1705 fs-_multiboot_mod-loader_i386_pc_multiboot2.lst: loader/i386/pc/multiboot2.c genfslist.sh
1706 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)
1707
1708
1709 _multiboot_mod-loader_multiboot2.o: loader/multiboot2.c
1710 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1711 -include _multiboot_mod-loader_multiboot2.d
1712
1713 CLEANFILES += cmd-_multiboot_mod-loader_multiboot2.lst fs-_multiboot_mod-loader_multiboot2.lst
1714 COMMANDFILES += cmd-_multiboot_mod-loader_multiboot2.lst
1715 FSFILES += fs-_multiboot_mod-loader_multiboot2.lst
1716
1717 cmd-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c gencmdlist.sh
1718 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)
1719
1720 fs-_multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c genfslist.sh
1721 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)
1722
1723
1724 _multiboot_mod-loader_multiboot_loader.o: loader/multiboot_loader.c
1725 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(_multiboot_mod_CFLAGS) -MD -c -o $@ $<
1726 -include _multiboot_mod-loader_multiboot_loader.d
1727
1728 CLEANFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst fs-_multiboot_mod-loader_multiboot_loader.lst
1729 COMMANDFILES += cmd-_multiboot_mod-loader_multiboot_loader.lst
1730 FSFILES += fs-_multiboot_mod-loader_multiboot_loader.lst
1731
1732 cmd-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c gencmdlist.sh
1733 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)
1734
1735 fs-_multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c genfslist.sh
1736 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)
1737
1738
1739 _multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
1740 _multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1741
1742 # For multiboot.mod.
1743 multiboot_mod_SOURCES = loader/multiboot_loader_normal.c
1744 CLEANFILES += multiboot.mod mod-multiboot.o mod-multiboot.c pre-multiboot.o multiboot_mod-loader_multiboot_loader_normal.o und-multiboot.lst
1745 ifneq ($(multiboot_mod_EXPORTS),no)
1746 CLEANFILES += def-multiboot.lst
1747 DEFSYMFILES += def-multiboot.lst
1748 endif
1749 MOSTLYCLEANFILES += multiboot_mod-loader_multiboot_loader_normal.d
1750 UNDSYMFILES += und-multiboot.lst
1751
1752 multiboot.mod: pre-multiboot.o mod-multiboot.o
1753 -rm -f $@
1754 $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1755 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1756
1757 pre-multiboot.o: $(multiboot_mod_DEPENDENCIES) multiboot_mod-loader_multiboot_loader_normal.o
1758 -rm -f $@
1759 $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ multiboot_mod-loader_multiboot_loader_normal.o
1760
1761 mod-multiboot.o: mod-multiboot.c
1762 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -c -o $@ $<
1763
1764 mod-multiboot.c: moddep.lst genmodsrc.sh
1765 sh $(srcdir)/genmodsrc.sh 'multiboot' $< > $@ || (rm -f $@; exit 1)
1766
1767 ifneq ($(multiboot_mod_EXPORTS),no)
1768 def-multiboot.lst: pre-multiboot.o
1769 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 multiboot/' > $@
1770 endif
1771
1772 und-multiboot.lst: pre-multiboot.o
1773 echo 'multiboot' > $@
1774 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1775
1776 multiboot_mod-loader_multiboot_loader_normal.o: loader/multiboot_loader_normal.c
1777 $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $<
1778 -include multiboot_mod-loader_multiboot_loader_normal.d
1779
1780 CLEANFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst fs-multiboot_mod-loader_multiboot_loader_normal.lst
1781 COMMANDFILES += cmd-multiboot_mod-loader_multiboot_loader_normal.lst
1782 FSFILES += fs-multiboot_mod-loader_multiboot_loader_normal.lst
1783
1784 cmd-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c gencmdlist.sh
1785 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)
1786
1787 fs-multiboot_mod-loader_multiboot_loader_normal.lst: loader/multiboot_loader_normal.c genfslist.sh
1788 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)
1789
1790
1791 multiboot_mod_CFLAGS = $(COMMON_CFLAGS)
1792 multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS)
1793
1794 # For vbe.mod.
1795 vbe_mod_SOURCES = video/i386/pc/vbe.c video/i386/pc/vbeblit.c \
1796 video/i386/pc/vbefill.c video/i386/pc/vbeutil.c
1797 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
1798 ifneq ($(vbe_mod_EXPORTS),no)
1799 CLEANFILES += def-vbe.lst
1800 DEFSYMFILES += def-vbe.lst
1801 endif
1802 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
1803 UNDSYMFILES += und-vbe.lst
1804
1805 vbe.mod: pre-vbe.o mod-vbe.o
1806 -rm -f $@
1807 $(TARGET_CC) $(vbe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1808 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1809
1810 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
1811 -rm -f $@
1812 $(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
1813
1814 mod-vbe.o: mod-vbe.c
1815 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -c -o $@ $<
1816
1817 mod-vbe.c: moddep.lst genmodsrc.sh
1818 sh $(srcdir)/genmodsrc.sh 'vbe' $< > $@ || (rm -f $@; exit 1)
1819
1820 ifneq ($(vbe_mod_EXPORTS),no)
1821 def-vbe.lst: pre-vbe.o
1822 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbe/' > $@
1823 endif
1824
1825 und-vbe.lst: pre-vbe.o
1826 echo 'vbe' > $@
1827 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1828
1829 vbe_mod-video_i386_pc_vbe.o: video/i386/pc/vbe.c
1830 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1831 -include vbe_mod-video_i386_pc_vbe.d
1832
1833 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbe.lst fs-vbe_mod-video_i386_pc_vbe.lst
1834 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbe.lst
1835 FSFILES += fs-vbe_mod-video_i386_pc_vbe.lst
1836
1837 cmd-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c gencmdlist.sh
1838 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)
1839
1840 fs-vbe_mod-video_i386_pc_vbe.lst: video/i386/pc/vbe.c genfslist.sh
1841 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)
1842
1843
1844 vbe_mod-video_i386_pc_vbeblit.o: video/i386/pc/vbeblit.c
1845 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1846 -include vbe_mod-video_i386_pc_vbeblit.d
1847
1848 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbeblit.lst fs-vbe_mod-video_i386_pc_vbeblit.lst
1849 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbeblit.lst
1850 FSFILES += fs-vbe_mod-video_i386_pc_vbeblit.lst
1851
1852 cmd-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c gencmdlist.sh
1853 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)
1854
1855 fs-vbe_mod-video_i386_pc_vbeblit.lst: video/i386/pc/vbeblit.c genfslist.sh
1856 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)
1857
1858
1859 vbe_mod-video_i386_pc_vbefill.o: video/i386/pc/vbefill.c
1860 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1861 -include vbe_mod-video_i386_pc_vbefill.d
1862
1863 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbefill.lst fs-vbe_mod-video_i386_pc_vbefill.lst
1864 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbefill.lst
1865 FSFILES += fs-vbe_mod-video_i386_pc_vbefill.lst
1866
1867 cmd-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c gencmdlist.sh
1868 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)
1869
1870 fs-vbe_mod-video_i386_pc_vbefill.lst: video/i386/pc/vbefill.c genfslist.sh
1871 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)
1872
1873
1874 vbe_mod-video_i386_pc_vbeutil.o: video/i386/pc/vbeutil.c
1875 $(TARGET_CC) -Ivideo/i386/pc -I$(srcdir)/video/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbe_mod_CFLAGS) -MD -c -o $@ $<
1876 -include vbe_mod-video_i386_pc_vbeutil.d
1877
1878 CLEANFILES += cmd-vbe_mod-video_i386_pc_vbeutil.lst fs-vbe_mod-video_i386_pc_vbeutil.lst
1879 COMMANDFILES += cmd-vbe_mod-video_i386_pc_vbeutil.lst
1880 FSFILES += fs-vbe_mod-video_i386_pc_vbeutil.lst
1881
1882 cmd-vbe_mod-video_i386_pc_vbeutil.lst: video/i386/pc/vbeutil.c gencmdlist.sh
1883 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)
1884
1885 fs-vbe_mod-video_i386_pc_vbeutil.lst: video/i386/pc/vbeutil.c genfslist.sh
1886 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)
1887
1888
1889 vbe_mod_CFLAGS = $(COMMON_CFLAGS)
1890 vbe_mod_LDFLAGS = $(COMMON_LDFLAGS)
1891
1892 # For vbeinfo.mod.
1893 vbeinfo_mod_SOURCES = commands/i386/pc/vbeinfo.c
1894 CLEANFILES += vbeinfo.mod mod-vbeinfo.o mod-vbeinfo.c pre-vbeinfo.o vbeinfo_mod-commands_i386_pc_vbeinfo.o und-vbeinfo.lst
1895 ifneq ($(vbeinfo_mod_EXPORTS),no)
1896 CLEANFILES += def-vbeinfo.lst
1897 DEFSYMFILES += def-vbeinfo.lst
1898 endif
1899 MOSTLYCLEANFILES += vbeinfo_mod-commands_i386_pc_vbeinfo.d
1900 UNDSYMFILES += und-vbeinfo.lst
1901
1902 vbeinfo.mod: pre-vbeinfo.o mod-vbeinfo.o
1903 -rm -f $@
1904 $(TARGET_CC) $(vbeinfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1905 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1906
1907 pre-vbeinfo.o: $(vbeinfo_mod_DEPENDENCIES) vbeinfo_mod-commands_i386_pc_vbeinfo.o
1908 -rm -f $@
1909 $(TARGET_CC) $(vbeinfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vbeinfo_mod-commands_i386_pc_vbeinfo.o
1910
1911 mod-vbeinfo.o: mod-vbeinfo.c
1912 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -c -o $@ $<
1913
1914 mod-vbeinfo.c: moddep.lst genmodsrc.sh
1915 sh $(srcdir)/genmodsrc.sh 'vbeinfo' $< > $@ || (rm -f $@; exit 1)
1916
1917 ifneq ($(vbeinfo_mod_EXPORTS),no)
1918 def-vbeinfo.lst: pre-vbeinfo.o
1919 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbeinfo/' > $@
1920 endif
1921
1922 und-vbeinfo.lst: pre-vbeinfo.o
1923 echo 'vbeinfo' > $@
1924 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1925
1926 vbeinfo_mod-commands_i386_pc_vbeinfo.o: commands/i386/pc/vbeinfo.c
1927 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbeinfo_mod_CFLAGS) -MD -c -o $@ $<
1928 -include vbeinfo_mod-commands_i386_pc_vbeinfo.d
1929
1930 CLEANFILES += cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1931 COMMANDFILES += cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1932 FSFILES += fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst
1933
1934 cmd-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c gencmdlist.sh
1935 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)
1936
1937 fs-vbeinfo_mod-commands_i386_pc_vbeinfo.lst: commands/i386/pc/vbeinfo.c genfslist.sh
1938 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)
1939
1940
1941 vbeinfo_mod_CFLAGS = $(COMMON_CFLAGS)
1942 vbeinfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
1943
1944 # For vbetest.mod.
1945 vbetest_mod_SOURCES = commands/i386/pc/vbetest.c
1946 CLEANFILES += vbetest.mod mod-vbetest.o mod-vbetest.c pre-vbetest.o vbetest_mod-commands_i386_pc_vbetest.o und-vbetest.lst
1947 ifneq ($(vbetest_mod_EXPORTS),no)
1948 CLEANFILES += def-vbetest.lst
1949 DEFSYMFILES += def-vbetest.lst
1950 endif
1951 MOSTLYCLEANFILES += vbetest_mod-commands_i386_pc_vbetest.d
1952 UNDSYMFILES += und-vbetest.lst
1953
1954 vbetest.mod: pre-vbetest.o mod-vbetest.o
1955 -rm -f $@
1956 $(TARGET_CC) $(vbetest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
1957 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
1958
1959 pre-vbetest.o: $(vbetest_mod_DEPENDENCIES) vbetest_mod-commands_i386_pc_vbetest.o
1960 -rm -f $@
1961 $(TARGET_CC) $(vbetest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vbetest_mod-commands_i386_pc_vbetest.o
1962
1963 mod-vbetest.o: mod-vbetest.c
1964 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -c -o $@ $<
1965
1966 mod-vbetest.c: moddep.lst genmodsrc.sh
1967 sh $(srcdir)/genmodsrc.sh 'vbetest' $< > $@ || (rm -f $@; exit 1)
1968
1969 ifneq ($(vbetest_mod_EXPORTS),no)
1970 def-vbetest.lst: pre-vbetest.o
1971 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vbetest/' > $@
1972 endif
1973
1974 und-vbetest.lst: pre-vbetest.o
1975 echo 'vbetest' > $@
1976 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1977
1978 vbetest_mod-commands_i386_pc_vbetest.o: commands/i386/pc/vbetest.c
1979 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vbetest_mod_CFLAGS) -MD -c -o $@ $<
1980 -include vbetest_mod-commands_i386_pc_vbetest.d
1981
1982 CLEANFILES += cmd-vbetest_mod-commands_i386_pc_vbetest.lst fs-vbetest_mod-commands_i386_pc_vbetest.lst
1983 COMMANDFILES += cmd-vbetest_mod-commands_i386_pc_vbetest.lst
1984 FSFILES += fs-vbetest_mod-commands_i386_pc_vbetest.lst
1985
1986 cmd-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c gencmdlist.sh
1987 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)
1988
1989 fs-vbetest_mod-commands_i386_pc_vbetest.lst: commands/i386/pc/vbetest.c genfslist.sh
1990 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)
1991
1992
1993 vbetest_mod_CFLAGS = $(COMMON_CFLAGS)
1994 vbetest_mod_LDFLAGS = $(COMMON_LDFLAGS)
1995
1996 # For play.mod.
1997 play_mod_SOURCES = commands/i386/pc/play.c
1998 CLEANFILES += play.mod mod-play.o mod-play.c pre-play.o play_mod-commands_i386_pc_play.o und-play.lst
1999 ifneq ($(play_mod_EXPORTS),no)
2000 CLEANFILES += def-play.lst
2001 DEFSYMFILES += def-play.lst
2002 endif
2003 MOSTLYCLEANFILES += play_mod-commands_i386_pc_play.d
2004 UNDSYMFILES += und-play.lst
2005
2006 play.mod: pre-play.o mod-play.o
2007 -rm -f $@
2008 $(TARGET_CC) $(play_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2009 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2010
2011 pre-play.o: $(play_mod_DEPENDENCIES) play_mod-commands_i386_pc_play.o
2012 -rm -f $@
2013 $(TARGET_CC) $(play_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ play_mod-commands_i386_pc_play.o
2014
2015 mod-play.o: mod-play.c
2016 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_CFLAGS) -c -o $@ $<
2017
2018 mod-play.c: moddep.lst genmodsrc.sh
2019 sh $(srcdir)/genmodsrc.sh 'play' $< > $@ || (rm -f $@; exit 1)
2020
2021 ifneq ($(play_mod_EXPORTS),no)
2022 def-play.lst: pre-play.o
2023 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 play/' > $@
2024 endif
2025
2026 und-play.lst: pre-play.o
2027 echo 'play' > $@
2028 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2029
2030 play_mod-commands_i386_pc_play.o: commands/i386/pc/play.c
2031 $(TARGET_CC) -Icommands/i386/pc -I$(srcdir)/commands/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(play_mod_CFLAGS) -MD -c -o $@ $<
2032 -include play_mod-commands_i386_pc_play.d
2033
2034 CLEANFILES += cmd-play_mod-commands_i386_pc_play.lst fs-play_mod-commands_i386_pc_play.lst
2035 COMMANDFILES += cmd-play_mod-commands_i386_pc_play.lst
2036 FSFILES += fs-play_mod-commands_i386_pc_play.lst
2037
2038 cmd-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c gencmdlist.sh
2039 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)
2040
2041 fs-play_mod-commands_i386_pc_play.lst: commands/i386/pc/play.c genfslist.sh
2042 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)
2043
2044
2045 play_mod_CFLAGS = $(COMMON_CFLAGS)
2046 play_mod_LDFLAGS = $(COMMON_LDFLAGS)
2047
2048 # For video.mod.
2049 video_mod_SOURCES = video/video.c
2050 CLEANFILES += video.mod mod-video.o mod-video.c pre-video.o video_mod-video_video.o und-video.lst
2051 ifneq ($(video_mod_EXPORTS),no)
2052 CLEANFILES += def-video.lst
2053 DEFSYMFILES += def-video.lst
2054 endif
2055 MOSTLYCLEANFILES += video_mod-video_video.d
2056 UNDSYMFILES += und-video.lst
2057
2058 video.mod: pre-video.o mod-video.o
2059 -rm -f $@
2060 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2061 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2062
2063 pre-video.o: $(video_mod_DEPENDENCIES) video_mod-video_video.o
2064 -rm -f $@
2065 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ video_mod-video_video.o
2066
2067 mod-video.o: mod-video.c
2068 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -c -o $@ $<
2069
2070 mod-video.c: moddep.lst genmodsrc.sh
2071 sh $(srcdir)/genmodsrc.sh 'video' $< > $@ || (rm -f $@; exit 1)
2072
2073 ifneq ($(video_mod_EXPORTS),no)
2074 def-video.lst: pre-video.o
2075 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 video/' > $@
2076 endif
2077
2078 und-video.lst: pre-video.o
2079 echo 'video' > $@
2080 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2081
2082 video_mod-video_video.o: video/video.c
2083 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -MD -c -o $@ $<
2084 -include video_mod-video_video.d
2085
2086 CLEANFILES += cmd-video_mod-video_video.lst fs-video_mod-video_video.lst
2087 COMMANDFILES += cmd-video_mod-video_video.lst
2088 FSFILES += fs-video_mod-video_video.lst
2089
2090 cmd-video_mod-video_video.lst: video/video.c gencmdlist.sh
2091 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)
2092
2093 fs-video_mod-video_video.lst: video/video.c genfslist.sh
2094 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)
2095
2096
2097 video_mod_CFLAGS = $(COMMON_CFLAGS)
2098 video_mod_LDFLAGS = $(COMMON_LDFLAGS)
2099
2100 # For gfxterm.mod.
2101 gfxterm_mod_SOURCES = term/gfxterm.c
2102 CLEANFILES += gfxterm.mod mod-gfxterm.o mod-gfxterm.c pre-gfxterm.o gfxterm_mod-term_gfxterm.o und-gfxterm.lst
2103 ifneq ($(gfxterm_mod_EXPORTS),no)
2104 CLEANFILES += def-gfxterm.lst
2105 DEFSYMFILES += def-gfxterm.lst
2106 endif
2107 MOSTLYCLEANFILES += gfxterm_mod-term_gfxterm.d
2108 UNDSYMFILES += und-gfxterm.lst
2109
2110 gfxterm.mod: pre-gfxterm.o mod-gfxterm.o
2111 -rm -f $@
2112 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2113 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2114
2115 pre-gfxterm.o: $(gfxterm_mod_DEPENDENCIES) gfxterm_mod-term_gfxterm.o
2116 -rm -f $@
2117 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gfxterm_mod-term_gfxterm.o
2118
2119 mod-gfxterm.o: mod-gfxterm.c
2120 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -c -o $@ $<
2121
2122 mod-gfxterm.c: moddep.lst genmodsrc.sh
2123 sh $(srcdir)/genmodsrc.sh 'gfxterm' $< > $@ || (rm -f $@; exit 1)
2124
2125 ifneq ($(gfxterm_mod_EXPORTS),no)
2126 def-gfxterm.lst: pre-gfxterm.o
2127 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gfxterm/' > $@
2128 endif
2129
2130 und-gfxterm.lst: pre-gfxterm.o
2131 echo 'gfxterm' > $@
2132 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2133
2134 gfxterm_mod-term_gfxterm.o: term/gfxterm.c
2135 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -MD -c -o $@ $<
2136 -include gfxterm_mod-term_gfxterm.d
2137
2138 CLEANFILES += cmd-gfxterm_mod-term_gfxterm.lst fs-gfxterm_mod-term_gfxterm.lst
2139 COMMANDFILES += cmd-gfxterm_mod-term_gfxterm.lst
2140 FSFILES += fs-gfxterm_mod-term_gfxterm.lst
2141
2142 cmd-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c gencmdlist.sh
2143 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)
2144
2145 fs-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c genfslist.sh
2146 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)
2147
2148
2149 gfxterm_mod_CFLAGS = $(COMMON_CFLAGS)
2150 gfxterm_mod_LDFLAGS = $(COMMON_LDFLAGS)
2151
2152 # For videotest.mod.
2153 videotest_mod_SOURCES = commands/videotest.c
2154 CLEANFILES += videotest.mod mod-videotest.o mod-videotest.c pre-videotest.o videotest_mod-commands_videotest.o und-videotest.lst
2155 ifneq ($(videotest_mod_EXPORTS),no)
2156 CLEANFILES += def-videotest.lst
2157 DEFSYMFILES += def-videotest.lst
2158 endif
2159 MOSTLYCLEANFILES += videotest_mod-commands_videotest.d
2160 UNDSYMFILES += und-videotest.lst
2161
2162 videotest.mod: pre-videotest.o mod-videotest.o
2163 -rm -f $@
2164 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2165 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2166
2167 pre-videotest.o: $(videotest_mod_DEPENDENCIES) videotest_mod-commands_videotest.o
2168 -rm -f $@
2169 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ videotest_mod-commands_videotest.o
2170
2171 mod-videotest.o: mod-videotest.c
2172 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -c -o $@ $<
2173
2174 mod-videotest.c: moddep.lst genmodsrc.sh
2175 sh $(srcdir)/genmodsrc.sh 'videotest' $< > $@ || (rm -f $@; exit 1)
2176
2177 ifneq ($(videotest_mod_EXPORTS),no)
2178 def-videotest.lst: pre-videotest.o
2179 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 videotest/' > $@
2180 endif
2181
2182 und-videotest.lst: pre-videotest.o
2183 echo 'videotest' > $@
2184 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2185
2186 videotest_mod-commands_videotest.o: commands/videotest.c
2187 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -MD -c -o $@ $<
2188 -include videotest_mod-commands_videotest.d
2189
2190 CLEANFILES += cmd-videotest_mod-commands_videotest.lst fs-videotest_mod-commands_videotest.lst
2191 COMMANDFILES += cmd-videotest_mod-commands_videotest.lst
2192 FSFILES += fs-videotest_mod-commands_videotest.lst
2193
2194 cmd-videotest_mod-commands_videotest.lst: commands/videotest.c gencmdlist.sh
2195 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)
2196
2197 fs-videotest_mod-commands_videotest.lst: commands/videotest.c genfslist.sh
2198 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)
2199
2200
2201 videotest_mod_CFLAGS = $(COMMON_CFLAGS)
2202 videotest_mod_LDFLAGS = $(COMMON_LDFLAGS)
2203
2204 # For bitmap.mod
2205 bitmap_mod_SOURCES = video/bitmap.c
2206 CLEANFILES += bitmap.mod mod-bitmap.o mod-bitmap.c pre-bitmap.o bitmap_mod-video_bitmap.o und-bitmap.lst
2207 ifneq ($(bitmap_mod_EXPORTS),no)
2208 CLEANFILES += def-bitmap.lst
2209 DEFSYMFILES += def-bitmap.lst
2210 endif
2211 MOSTLYCLEANFILES += bitmap_mod-video_bitmap.d
2212 UNDSYMFILES += und-bitmap.lst
2213
2214 bitmap.mod: pre-bitmap.o mod-bitmap.o
2215 -rm -f $@
2216 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2217 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2218
2219 pre-bitmap.o: $(bitmap_mod_DEPENDENCIES) bitmap_mod-video_bitmap.o
2220 -rm -f $@
2221 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bitmap_mod-video_bitmap.o
2222
2223 mod-bitmap.o: mod-bitmap.c
2224 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -c -o $@ $<
2225
2226 mod-bitmap.c: moddep.lst genmodsrc.sh
2227 sh $(srcdir)/genmodsrc.sh 'bitmap' $< > $@ || (rm -f $@; exit 1)
2228
2229 ifneq ($(bitmap_mod_EXPORTS),no)
2230 def-bitmap.lst: pre-bitmap.o
2231 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bitmap/' > $@
2232 endif
2233
2234 und-bitmap.lst: pre-bitmap.o
2235 echo 'bitmap' > $@
2236 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2237
2238 bitmap_mod-video_bitmap.o: video/bitmap.c
2239 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -MD -c -o $@ $<
2240 -include bitmap_mod-video_bitmap.d
2241
2242 CLEANFILES += cmd-bitmap_mod-video_bitmap.lst fs-bitmap_mod-video_bitmap.lst
2243 COMMANDFILES += cmd-bitmap_mod-video_bitmap.lst
2244 FSFILES += fs-bitmap_mod-video_bitmap.lst
2245
2246 cmd-bitmap_mod-video_bitmap.lst: video/bitmap.c gencmdlist.sh
2247 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)
2248
2249 fs-bitmap_mod-video_bitmap.lst: video/bitmap.c genfslist.sh
2250 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)
2251
2252
2253 bitmap_mod_CFLAGS = $(COMMON_CFLAGS)
2254 bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
2255
2256 # For tga.mod
2257 tga_mod_SOURCES = video/readers/tga.c
2258 CLEANFILES += tga.mod mod-tga.o mod-tga.c pre-tga.o tga_mod-video_readers_tga.o und-tga.lst
2259 ifneq ($(tga_mod_EXPORTS),no)
2260 CLEANFILES += def-tga.lst
2261 DEFSYMFILES += def-tga.lst
2262 endif
2263 MOSTLYCLEANFILES += tga_mod-video_readers_tga.d
2264 UNDSYMFILES += und-tga.lst
2265
2266 tga.mod: pre-tga.o mod-tga.o
2267 -rm -f $@
2268 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2269 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2270
2271 pre-tga.o: $(tga_mod_DEPENDENCIES) tga_mod-video_readers_tga.o
2272 -rm -f $@
2273 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ tga_mod-video_readers_tga.o
2274
2275 mod-tga.o: mod-tga.c
2276 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -c -o $@ $<
2277
2278 mod-tga.c: moddep.lst genmodsrc.sh
2279 sh $(srcdir)/genmodsrc.sh 'tga' $< > $@ || (rm -f $@; exit 1)
2280
2281 ifneq ($(tga_mod_EXPORTS),no)
2282 def-tga.lst: pre-tga.o
2283 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 tga/' > $@
2284 endif
2285
2286 und-tga.lst: pre-tga.o
2287 echo 'tga' > $@
2288 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2289
2290 tga_mod-video_readers_tga.o: video/readers/tga.c
2291 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -MD -c -o $@ $<
2292 -include tga_mod-video_readers_tga.d
2293
2294 CLEANFILES += cmd-tga_mod-video_readers_tga.lst fs-tga_mod-video_readers_tga.lst
2295 COMMANDFILES += cmd-tga_mod-video_readers_tga.lst
2296 FSFILES += fs-tga_mod-video_readers_tga.lst
2297
2298 cmd-tga_mod-video_readers_tga.lst: video/readers/tga.c gencmdlist.sh
2299 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)
2300
2301 fs-tga_mod-video_readers_tga.lst: video/readers/tga.c genfslist.sh
2302 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)
2303
2304
2305 tga_mod_CFLAGS = $(COMMON_CFLAGS)
2306 tga_mod_LDFLAGS = $(COMMON_LDFLAGS)
2307
2308 # For cpuid.mod.
2309 cpuid_mod_SOURCES = commands/i386/cpuid.c
2310 CLEANFILES += cpuid.mod mod-cpuid.o mod-cpuid.c pre-cpuid.o cpuid_mod-commands_i386_cpuid.o und-cpuid.lst
2311 ifneq ($(cpuid_mod_EXPORTS),no)
2312 CLEANFILES += def-cpuid.lst
2313 DEFSYMFILES += def-cpuid.lst
2314 endif
2315 MOSTLYCLEANFILES += cpuid_mod-commands_i386_cpuid.d
2316 UNDSYMFILES += und-cpuid.lst
2317
2318 cpuid.mod: pre-cpuid.o mod-cpuid.o
2319 -rm -f $@
2320 $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2321 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2322
2323 pre-cpuid.o: $(cpuid_mod_DEPENDENCIES) cpuid_mod-commands_i386_cpuid.o
2324 -rm -f $@
2325 $(TARGET_CC) $(cpuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpuid_mod-commands_i386_cpuid.o
2326
2327 mod-cpuid.o: mod-cpuid.c
2328 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -c -o $@ $<
2329
2330 mod-cpuid.c: moddep.lst genmodsrc.sh
2331 sh $(srcdir)/genmodsrc.sh 'cpuid' $< > $@ || (rm -f $@; exit 1)
2332
2333 ifneq ($(cpuid_mod_EXPORTS),no)
2334 def-cpuid.lst: pre-cpuid.o
2335 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpuid/' > $@
2336 endif
2337
2338 und-cpuid.lst: pre-cpuid.o
2339 echo 'cpuid' > $@
2340 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2341
2342 cpuid_mod-commands_i386_cpuid.o: commands/i386/cpuid.c
2343 $(TARGET_CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpuid_mod_CFLAGS) -MD -c -o $@ $<
2344 -include cpuid_mod-commands_i386_cpuid.d
2345
2346 CLEANFILES += cmd-cpuid_mod-commands_i386_cpuid.lst fs-cpuid_mod-commands_i386_cpuid.lst
2347 COMMANDFILES += cmd-cpuid_mod-commands_i386_cpuid.lst
2348 FSFILES += fs-cpuid_mod-commands_i386_cpuid.lst
2349
2350 cmd-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c gencmdlist.sh
2351 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)
2352
2353 fs-cpuid_mod-commands_i386_cpuid.lst: commands/i386/cpuid.c genfslist.sh
2354 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)
2355
2356
2357 cpuid_mod_CFLAGS = $(COMMON_CFLAGS)
2358 cpuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
2359
2360 # For ata.mod.
2361 ata_mod_SOURCES = disk/ata.c
2362 CLEANFILES += ata.mod mod-ata.o mod-ata.c pre-ata.o ata_mod-disk_ata.o und-ata.lst
2363 ifneq ($(ata_mod_EXPORTS),no)
2364 CLEANFILES += def-ata.lst
2365 DEFSYMFILES += def-ata.lst
2366 endif
2367 MOSTLYCLEANFILES += ata_mod-disk_ata.d
2368 UNDSYMFILES += und-ata.lst
2369
2370 ata.mod: pre-ata.o mod-ata.o
2371 -rm -f $@
2372 $(TARGET_CC) $(ata_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2373 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2374
2375 pre-ata.o: $(ata_mod_DEPENDENCIES) ata_mod-disk_ata.o
2376 -rm -f $@
2377 $(TARGET_CC) $(ata_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ata_mod-disk_ata.o
2378
2379 mod-ata.o: mod-ata.c
2380 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -c -o $@ $<
2381
2382 mod-ata.c: moddep.lst genmodsrc.sh
2383 sh $(srcdir)/genmodsrc.sh 'ata' $< > $@ || (rm -f $@; exit 1)
2384
2385 ifneq ($(ata_mod_EXPORTS),no)
2386 def-ata.lst: pre-ata.o
2387 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ata/' > $@
2388 endif
2389
2390 und-ata.lst: pre-ata.o
2391 echo 'ata' > $@
2392 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2393
2394 ata_mod-disk_ata.o: disk/ata.c
2395 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ata_mod_CFLAGS) -MD -c -o $@ $<
2396 -include ata_mod-disk_ata.d
2397
2398 CLEANFILES += cmd-ata_mod-disk_ata.lst fs-ata_mod-disk_ata.lst
2399 COMMANDFILES += cmd-ata_mod-disk_ata.lst
2400 FSFILES += fs-ata_mod-disk_ata.lst
2401
2402 cmd-ata_mod-disk_ata.lst: disk/ata.c gencmdlist.sh
2403 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)
2404
2405 fs-ata_mod-disk_ata.lst: disk/ata.c genfslist.sh
2406 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)
2407
2408
2409 ata_mod_CFLAGS = $(COMMON_CFLAGS)
2410 ata_mod_LDFLAGS = $(COMMON_LDFLAGS)
2411
2412 # For vga.mod.
2413 vga_mod_SOURCES = term/i386/pc/vga.c
2414 CLEANFILES += vga.mod mod-vga.o mod-vga.c pre-vga.o vga_mod-term_i386_pc_vga.o und-vga.lst
2415 ifneq ($(vga_mod_EXPORTS),no)
2416 CLEANFILES += def-vga.lst
2417 DEFSYMFILES += def-vga.lst
2418 endif
2419 MOSTLYCLEANFILES += vga_mod-term_i386_pc_vga.d
2420 UNDSYMFILES += und-vga.lst
2421
2422 vga.mod: pre-vga.o mod-vga.o
2423 -rm -f $@
2424 $(TARGET_CC) $(vga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2425 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2426
2427 pre-vga.o: $(vga_mod_DEPENDENCIES) vga_mod-term_i386_pc_vga.o
2428 -rm -f $@
2429 $(TARGET_CC) $(vga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ vga_mod-term_i386_pc_vga.o
2430
2431 mod-vga.o: mod-vga.c
2432 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -c -o $@ $<
2433
2434 mod-vga.c: moddep.lst genmodsrc.sh
2435 sh $(srcdir)/genmodsrc.sh 'vga' $< > $@ || (rm -f $@; exit 1)
2436
2437 ifneq ($(vga_mod_EXPORTS),no)
2438 def-vga.lst: pre-vga.o
2439 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 vga/' > $@
2440 endif
2441
2442 und-vga.lst: pre-vga.o
2443 echo 'vga' > $@
2444 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2445
2446 vga_mod-term_i386_pc_vga.o: term/i386/pc/vga.c
2447 $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(vga_mod_CFLAGS) -MD -c -o $@ $<
2448 -include vga_mod-term_i386_pc_vga.d
2449
2450 CLEANFILES += cmd-vga_mod-term_i386_pc_vga.lst fs-vga_mod-term_i386_pc_vga.lst
2451 COMMANDFILES += cmd-vga_mod-term_i386_pc_vga.lst
2452 FSFILES += fs-vga_mod-term_i386_pc_vga.lst
2453
2454 cmd-vga_mod-term_i386_pc_vga.lst: term/i386/pc/vga.c gencmdlist.sh
2455 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)
2456
2457 fs-vga_mod-term_i386_pc_vga.lst: term/i386/pc/vga.c genfslist.sh
2458 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)
2459
2460
2461 vga_mod_CFLAGS = $(COMMON_CFLAGS)
2462 vga_mod_LDFLAGS = $(COMMON_LDFLAGS)
2463
2464 # For memdisk.mod.
2465 memdisk_mod_SOURCES = disk/memdisk.c
2466 CLEANFILES += memdisk.mod mod-memdisk.o mod-memdisk.c pre-memdisk.o memdisk_mod-disk_memdisk.o und-memdisk.lst
2467 ifneq ($(memdisk_mod_EXPORTS),no)
2468 CLEANFILES += def-memdisk.lst
2469 DEFSYMFILES += def-memdisk.lst
2470 endif
2471 MOSTLYCLEANFILES += memdisk_mod-disk_memdisk.d
2472 UNDSYMFILES += und-memdisk.lst
2473
2474 memdisk.mod: pre-memdisk.o mod-memdisk.o
2475 -rm -f $@
2476 $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2477 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2478
2479 pre-memdisk.o: $(memdisk_mod_DEPENDENCIES) memdisk_mod-disk_memdisk.o
2480 -rm -f $@
2481 $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ memdisk_mod-disk_memdisk.o
2482
2483 mod-memdisk.o: mod-memdisk.c
2484 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -c -o $@ $<
2485
2486 mod-memdisk.c: moddep.lst genmodsrc.sh
2487 sh $(srcdir)/genmodsrc.sh 'memdisk' $< > $@ || (rm -f $@; exit 1)
2488
2489 ifneq ($(memdisk_mod_EXPORTS),no)
2490 def-memdisk.lst: pre-memdisk.o
2491 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 memdisk/' > $@
2492 endif
2493
2494 und-memdisk.lst: pre-memdisk.o
2495 echo 'memdisk' > $@
2496 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2497
2498 memdisk_mod-disk_memdisk.o: disk/memdisk.c
2499 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -MD -c -o $@ $<
2500 -include memdisk_mod-disk_memdisk.d
2501
2502 CLEANFILES += cmd-memdisk_mod-disk_memdisk.lst fs-memdisk_mod-disk_memdisk.lst
2503 COMMANDFILES += cmd-memdisk_mod-disk_memdisk.lst
2504 FSFILES += fs-memdisk_mod-disk_memdisk.lst
2505
2506 cmd-memdisk_mod-disk_memdisk.lst: disk/memdisk.c gencmdlist.sh
2507 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)
2508
2509 fs-memdisk_mod-disk_memdisk.lst: disk/memdisk.c genfslist.sh
2510 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)
2511
2512
2513 memdisk_mod_CFLAGS = $(COMMON_CFLAGS)
2514 memdisk_mod_LDFLAGS = $(COMMON_LDFLAGS)
2515
2516 # For jpeg.mod.
2517 jpeg_mod_SOURCES = video/readers/jpeg.c
2518 CLEANFILES += jpeg.mod mod-jpeg.o mod-jpeg.c pre-jpeg.o jpeg_mod-video_readers_jpeg.o und-jpeg.lst
2519 ifneq ($(jpeg_mod_EXPORTS),no)
2520 CLEANFILES += def-jpeg.lst
2521 DEFSYMFILES += def-jpeg.lst
2522 endif
2523 MOSTLYCLEANFILES += jpeg_mod-video_readers_jpeg.d
2524 UNDSYMFILES += und-jpeg.lst
2525
2526 jpeg.mod: pre-jpeg.o mod-jpeg.o
2527 -rm -f $@
2528 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ $^
2529 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -R .note -R .comment $@
2530
2531 pre-jpeg.o: $(jpeg_mod_DEPENDENCIES) jpeg_mod-video_readers_jpeg.o
2532 -rm -f $@
2533 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jpeg_mod-video_readers_jpeg.o
2534
2535 mod-jpeg.o: mod-jpeg.c
2536 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -c -o $@ $<
2537
2538 mod-jpeg.c: moddep.lst genmodsrc.sh
2539 sh $(srcdir)/genmodsrc.sh 'jpeg' $< > $@ || (rm -f $@; exit 1)
2540
2541 ifneq ($(jpeg_mod_EXPORTS),no)
2542 def-jpeg.lst: pre-jpeg.o
2543 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jpeg/' > $@
2544 endif
2545
2546 und-jpeg.lst: pre-jpeg.o
2547 echo 'jpeg' > $@
2548 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2549
2550 jpeg_mod-video_readers_jpeg.o: video/readers/jpeg.c
2551 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -MD -c -o $@ $<
2552 -include jpeg_mod-video_readers_jpeg.d
2553
2554 CLEANFILES += cmd-jpeg_mod-video_readers_jpeg.lst fs-jpeg_mod-video_readers_jpeg.lst
2555 COMMANDFILES += cmd-jpeg_mod-video_readers_jpeg.lst
2556 FSFILES += fs-jpeg_mod-video_readers_jpeg.lst
2557
2558 cmd-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c gencmdlist.sh
2559 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)
2560
2561 fs-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c genfslist.sh
2562 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)
2563
2564
2565 jpeg_mod_CFLAGS = $(COMMON_CFLAGS)
2566 jpeg_mod_LDFLAGS = $(COMMON_LDFLAGS)
2567
2568 include $(srcdir)/conf/common.mk