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