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