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