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