2009-02-01 Felix Zielcke <fzielcke@z-51.de>
[grub2/phcoder.git] / conf / common.mk
blobd6ecb374a2689a6278085819254c4275919b0f85
1 # -*- makefile -*-
2 # Generated by genmk.rb, please don't edit!
4 # For grub-mkelfimage.
5 bin_UTILITIES += grub-mkelfimage
6 grub_mkelfimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \
7 util/resolve.c
8 CLEANFILES += grub-mkelfimage$(EXEEXT) grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o grub_mkelfimage-util_resolve.o
9 MOSTLYCLEANFILES += grub_mkelfimage-util_elf_grub_mkimage.d grub_mkelfimage-util_misc.d grub_mkelfimage-util_resolve.d
11 grub-mkelfimage: $(grub_mkelfimage_DEPENDENCIES) grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o grub_mkelfimage-util_resolve.o
12 $(CC) -o $@ grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o grub_mkelfimage-util_resolve.o $(LDFLAGS) $(grub_mkelfimage_LDFLAGS)
14 grub_mkelfimage-util_elf_grub_mkimage.o: util/elf/grub-mkimage.c $(util/elf/grub-mkimage.c_DEPENDENCIES)
15 $(CC) -Iutil/elf -I$(srcdir)/util/elf $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $<
16 -include grub_mkelfimage-util_elf_grub_mkimage.d
18 grub_mkelfimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
19 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $<
20 -include grub_mkelfimage-util_misc.d
22 grub_mkelfimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES)
23 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $<
24 -include grub_mkelfimage-util_resolve.d
26 util/elf/grub-mkimage.c_DEPENDENCIES = Makefile
28 # For grub-probe.
29 sbin_UTILITIES += grub-probe
30 util/grub-probe.c_DEPENDENCIES = grub_probe_init.h
31 grub_probe_SOURCES = util/grub-probe.c \
32 util/hostdisk.c util/misc.c util/getroot.c \
33 kern/device.c kern/disk.c kern/err.c kern/misc.c \
34 kern/parser.c kern/partition.c kern/file.c \
36 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
37 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
38 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
39 fs/ufs.c fs/xfs.c fs/afs.c \
41 partmap/pc.c partmap/apple.c partmap/gpt.c \
42 kern/fs.c kern/env.c fs/fshelp.c \
43 disk/lvm.c disk/raid.c disk/mdraid_linux.c grub_probe_init.c
44 CLEANFILES += grub-probe$(EXEEXT) grub_probe-util_grub_probe.o grub_probe-util_hostdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_udf.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-fs_afs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-disk_mdraid_linux.o grub_probe-grub_probe_init.o
45 MOSTLYCLEANFILES += grub_probe-util_grub_probe.d grub_probe-util_hostdisk.d grub_probe-util_misc.d grub_probe-util_getroot.d grub_probe-kern_device.d grub_probe-kern_disk.d grub_probe-kern_err.d grub_probe-kern_misc.d grub_probe-kern_parser.d grub_probe-kern_partition.d grub_probe-kern_file.d grub_probe-fs_affs.d grub_probe-fs_cpio.d grub_probe-fs_ext2.d grub_probe-fs_fat.d grub_probe-fs_hfs.d grub_probe-fs_hfsplus.d grub_probe-fs_iso9660.d grub_probe-fs_udf.d grub_probe-fs_jfs.d grub_probe-fs_minix.d grub_probe-fs_ntfs.d grub_probe-fs_ntfscomp.d grub_probe-fs_reiserfs.d grub_probe-fs_sfs.d grub_probe-fs_ufs.d grub_probe-fs_xfs.d grub_probe-fs_afs.d grub_probe-partmap_pc.d grub_probe-partmap_apple.d grub_probe-partmap_gpt.d grub_probe-kern_fs.d grub_probe-kern_env.d grub_probe-fs_fshelp.d grub_probe-disk_lvm.d grub_probe-disk_raid.d grub_probe-disk_mdraid_linux.d grub_probe-grub_probe_init.d
47 grub-probe: $(grub_probe_DEPENDENCIES) grub_probe-util_grub_probe.o grub_probe-util_hostdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_udf.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-fs_afs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-disk_mdraid_linux.o grub_probe-grub_probe_init.o
48 $(CC) -o $@ grub_probe-util_grub_probe.o grub_probe-util_hostdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_ext2.o grub_probe-fs_fat.o grub_probe-fs_hfs.o grub_probe-fs_hfsplus.o grub_probe-fs_iso9660.o grub_probe-fs_udf.o grub_probe-fs_jfs.o grub_probe-fs_minix.o grub_probe-fs_ntfs.o grub_probe-fs_ntfscomp.o grub_probe-fs_reiserfs.o grub_probe-fs_sfs.o grub_probe-fs_ufs.o grub_probe-fs_xfs.o grub_probe-fs_afs.o grub_probe-partmap_pc.o grub_probe-partmap_apple.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_lvm.o grub_probe-disk_raid.o grub_probe-disk_mdraid_linux.o grub_probe-grub_probe_init.o $(LDFLAGS) $(grub_probe_LDFLAGS)
50 grub_probe-util_grub_probe.o: util/grub-probe.c $(util/grub-probe.c_DEPENDENCIES)
51 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
52 -include grub_probe-util_grub_probe.d
54 grub_probe-util_hostdisk.o: util/hostdisk.c $(util/hostdisk.c_DEPENDENCIES)
55 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
56 -include grub_probe-util_hostdisk.d
58 grub_probe-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
59 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
60 -include grub_probe-util_misc.d
62 grub_probe-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
63 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
64 -include grub_probe-util_getroot.d
66 grub_probe-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
67 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
68 -include grub_probe-kern_device.d
70 grub_probe-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
71 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
72 -include grub_probe-kern_disk.d
74 grub_probe-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
75 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
76 -include grub_probe-kern_err.d
78 grub_probe-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
79 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
80 -include grub_probe-kern_misc.d
82 grub_probe-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
83 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
84 -include grub_probe-kern_parser.d
86 grub_probe-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
87 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
88 -include grub_probe-kern_partition.d
90 grub_probe-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
91 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
92 -include grub_probe-kern_file.d
94 grub_probe-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
95 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
96 -include grub_probe-fs_affs.d
98 grub_probe-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
99 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
100 -include grub_probe-fs_cpio.d
102 grub_probe-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
103 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
104 -include grub_probe-fs_ext2.d
106 grub_probe-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
107 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
108 -include grub_probe-fs_fat.d
110 grub_probe-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
111 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
112 -include grub_probe-fs_hfs.d
114 grub_probe-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
115 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
116 -include grub_probe-fs_hfsplus.d
118 grub_probe-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
119 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
120 -include grub_probe-fs_iso9660.d
122 grub_probe-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
123 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
124 -include grub_probe-fs_udf.d
126 grub_probe-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
127 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
128 -include grub_probe-fs_jfs.d
130 grub_probe-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
131 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
132 -include grub_probe-fs_minix.d
134 grub_probe-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
135 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
136 -include grub_probe-fs_ntfs.d
138 grub_probe-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
139 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
140 -include grub_probe-fs_ntfscomp.d
142 grub_probe-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
143 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
144 -include grub_probe-fs_reiserfs.d
146 grub_probe-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
147 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
148 -include grub_probe-fs_sfs.d
150 grub_probe-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
151 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
152 -include grub_probe-fs_ufs.d
154 grub_probe-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
155 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
156 -include grub_probe-fs_xfs.d
158 grub_probe-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
159 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
160 -include grub_probe-fs_afs.d
162 grub_probe-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
163 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
164 -include grub_probe-partmap_pc.d
166 grub_probe-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
167 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
168 -include grub_probe-partmap_apple.d
170 grub_probe-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
171 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
172 -include grub_probe-partmap_gpt.d
174 grub_probe-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
175 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
176 -include grub_probe-kern_fs.d
178 grub_probe-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
179 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
180 -include grub_probe-kern_env.d
182 grub_probe-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
183 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
184 -include grub_probe-fs_fshelp.d
186 grub_probe-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
187 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
188 -include grub_probe-disk_lvm.d
190 grub_probe-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
191 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
192 -include grub_probe-disk_raid.d
194 grub_probe-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES)
195 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
196 -include grub_probe-disk_mdraid_linux.d
198 grub_probe-grub_probe_init.o: grub_probe_init.c $(grub_probe_init.c_DEPENDENCIES)
199 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
200 -include grub_probe-grub_probe_init.d
203 ifeq ($(enable_grub_fstest), yes)
204 bin_UTILITIES += grub-fstest
205 endif
207 # For grub-fstest.
208 util/grub-fstest.c_DEPENDENCIES = grub_fstest_init.h
209 grub_fstest_SOURCES = util/grub-fstest.c util/hostfs.c util/misc.c \
210 kern/file.c kern/device.c kern/disk.c kern/err.c kern/misc.c \
211 disk/host.c disk/loopback.c normal/arg.c normal/misc.c \
212 lib/hexdump.c lib/crc.c commands/blocklist.c commands/ls.c \
214 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
215 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
216 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
217 fs/ufs.c fs/xfs.c fs/afs.c \
219 kern/partition.c partmap/pc.c partmap/apple.c partmap/gpt.c \
220 kern/fs.c kern/env.c fs/fshelp.c disk/lvm.c disk/raid.c \
221 disk/raid5_recover.c disk/raid6_recover.c \
222 disk/mdraid_linux.c disk/dmraid_nvidia.c \
223 grub_fstest_init.c
224 CLEANFILES += grub-fstest$(EXEEXT) grub_fstest-util_grub_fstest.o grub_fstest-util_hostfs.o grub_fstest-util_misc.o grub_fstest-kern_file.o grub_fstest-kern_device.o grub_fstest-kern_disk.o grub_fstest-kern_err.o grub_fstest-kern_misc.o grub_fstest-disk_host.o grub_fstest-disk_loopback.o grub_fstest-normal_arg.o grub_fstest-normal_misc.o grub_fstest-lib_hexdump.o grub_fstest-lib_crc.o grub_fstest-commands_blocklist.o grub_fstest-commands_ls.o grub_fstest-fs_affs.o grub_fstest-fs_cpio.o grub_fstest-fs_ext2.o grub_fstest-fs_fat.o grub_fstest-fs_hfs.o grub_fstest-fs_hfsplus.o grub_fstest-fs_iso9660.o grub_fstest-fs_udf.o grub_fstest-fs_jfs.o grub_fstest-fs_minix.o grub_fstest-fs_ntfs.o grub_fstest-fs_ntfscomp.o grub_fstest-fs_reiserfs.o grub_fstest-fs_sfs.o grub_fstest-fs_ufs.o grub_fstest-fs_xfs.o grub_fstest-fs_afs.o grub_fstest-kern_partition.o grub_fstest-partmap_pc.o grub_fstest-partmap_apple.o grub_fstest-partmap_gpt.o grub_fstest-kern_fs.o grub_fstest-kern_env.o grub_fstest-fs_fshelp.o grub_fstest-disk_lvm.o grub_fstest-disk_raid.o grub_fstest-disk_raid5_recover.o grub_fstest-disk_raid6_recover.o grub_fstest-disk_mdraid_linux.o grub_fstest-disk_dmraid_nvidia.o grub_fstest-grub_fstest_init.o
225 MOSTLYCLEANFILES += grub_fstest-util_grub_fstest.d grub_fstest-util_hostfs.d grub_fstest-util_misc.d grub_fstest-kern_file.d grub_fstest-kern_device.d grub_fstest-kern_disk.d grub_fstest-kern_err.d grub_fstest-kern_misc.d grub_fstest-disk_host.d grub_fstest-disk_loopback.d grub_fstest-normal_arg.d grub_fstest-normal_misc.d grub_fstest-lib_hexdump.d grub_fstest-lib_crc.d grub_fstest-commands_blocklist.d grub_fstest-commands_ls.d grub_fstest-fs_affs.d grub_fstest-fs_cpio.d grub_fstest-fs_ext2.d grub_fstest-fs_fat.d grub_fstest-fs_hfs.d grub_fstest-fs_hfsplus.d grub_fstest-fs_iso9660.d grub_fstest-fs_udf.d grub_fstest-fs_jfs.d grub_fstest-fs_minix.d grub_fstest-fs_ntfs.d grub_fstest-fs_ntfscomp.d grub_fstest-fs_reiserfs.d grub_fstest-fs_sfs.d grub_fstest-fs_ufs.d grub_fstest-fs_xfs.d grub_fstest-fs_afs.d grub_fstest-kern_partition.d grub_fstest-partmap_pc.d grub_fstest-partmap_apple.d grub_fstest-partmap_gpt.d grub_fstest-kern_fs.d grub_fstest-kern_env.d grub_fstest-fs_fshelp.d grub_fstest-disk_lvm.d grub_fstest-disk_raid.d grub_fstest-disk_raid5_recover.d grub_fstest-disk_raid6_recover.d grub_fstest-disk_mdraid_linux.d grub_fstest-disk_dmraid_nvidia.d grub_fstest-grub_fstest_init.d
227 grub-fstest: $(grub_fstest_DEPENDENCIES) grub_fstest-util_grub_fstest.o grub_fstest-util_hostfs.o grub_fstest-util_misc.o grub_fstest-kern_file.o grub_fstest-kern_device.o grub_fstest-kern_disk.o grub_fstest-kern_err.o grub_fstest-kern_misc.o grub_fstest-disk_host.o grub_fstest-disk_loopback.o grub_fstest-normal_arg.o grub_fstest-normal_misc.o grub_fstest-lib_hexdump.o grub_fstest-lib_crc.o grub_fstest-commands_blocklist.o grub_fstest-commands_ls.o grub_fstest-fs_affs.o grub_fstest-fs_cpio.o grub_fstest-fs_ext2.o grub_fstest-fs_fat.o grub_fstest-fs_hfs.o grub_fstest-fs_hfsplus.o grub_fstest-fs_iso9660.o grub_fstest-fs_udf.o grub_fstest-fs_jfs.o grub_fstest-fs_minix.o grub_fstest-fs_ntfs.o grub_fstest-fs_ntfscomp.o grub_fstest-fs_reiserfs.o grub_fstest-fs_sfs.o grub_fstest-fs_ufs.o grub_fstest-fs_xfs.o grub_fstest-fs_afs.o grub_fstest-kern_partition.o grub_fstest-partmap_pc.o grub_fstest-partmap_apple.o grub_fstest-partmap_gpt.o grub_fstest-kern_fs.o grub_fstest-kern_env.o grub_fstest-fs_fshelp.o grub_fstest-disk_lvm.o grub_fstest-disk_raid.o grub_fstest-disk_raid5_recover.o grub_fstest-disk_raid6_recover.o grub_fstest-disk_mdraid_linux.o grub_fstest-disk_dmraid_nvidia.o grub_fstest-grub_fstest_init.o
228 $(CC) -o $@ grub_fstest-util_grub_fstest.o grub_fstest-util_hostfs.o grub_fstest-util_misc.o grub_fstest-kern_file.o grub_fstest-kern_device.o grub_fstest-kern_disk.o grub_fstest-kern_err.o grub_fstest-kern_misc.o grub_fstest-disk_host.o grub_fstest-disk_loopback.o grub_fstest-normal_arg.o grub_fstest-normal_misc.o grub_fstest-lib_hexdump.o grub_fstest-lib_crc.o grub_fstest-commands_blocklist.o grub_fstest-commands_ls.o grub_fstest-fs_affs.o grub_fstest-fs_cpio.o grub_fstest-fs_ext2.o grub_fstest-fs_fat.o grub_fstest-fs_hfs.o grub_fstest-fs_hfsplus.o grub_fstest-fs_iso9660.o grub_fstest-fs_udf.o grub_fstest-fs_jfs.o grub_fstest-fs_minix.o grub_fstest-fs_ntfs.o grub_fstest-fs_ntfscomp.o grub_fstest-fs_reiserfs.o grub_fstest-fs_sfs.o grub_fstest-fs_ufs.o grub_fstest-fs_xfs.o grub_fstest-fs_afs.o grub_fstest-kern_partition.o grub_fstest-partmap_pc.o grub_fstest-partmap_apple.o grub_fstest-partmap_gpt.o grub_fstest-kern_fs.o grub_fstest-kern_env.o grub_fstest-fs_fshelp.o grub_fstest-disk_lvm.o grub_fstest-disk_raid.o grub_fstest-disk_raid5_recover.o grub_fstest-disk_raid6_recover.o grub_fstest-disk_mdraid_linux.o grub_fstest-disk_dmraid_nvidia.o grub_fstest-grub_fstest_init.o $(LDFLAGS) $(grub_fstest_LDFLAGS)
230 grub_fstest-util_grub_fstest.o: util/grub-fstest.c $(util/grub-fstest.c_DEPENDENCIES)
231 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
232 -include grub_fstest-util_grub_fstest.d
234 grub_fstest-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES)
235 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
236 -include grub_fstest-util_hostfs.d
238 grub_fstest-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
239 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
240 -include grub_fstest-util_misc.d
242 grub_fstest-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
243 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
244 -include grub_fstest-kern_file.d
246 grub_fstest-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
247 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
248 -include grub_fstest-kern_device.d
250 grub_fstest-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
251 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
252 -include grub_fstest-kern_disk.d
254 grub_fstest-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
255 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
256 -include grub_fstest-kern_err.d
258 grub_fstest-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
259 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
260 -include grub_fstest-kern_misc.d
262 grub_fstest-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES)
263 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
264 -include grub_fstest-disk_host.d
266 grub_fstest-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
267 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
268 -include grub_fstest-disk_loopback.d
270 grub_fstest-normal_arg.o: normal/arg.c $(normal/arg.c_DEPENDENCIES)
271 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
272 -include grub_fstest-normal_arg.d
274 grub_fstest-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES)
275 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
276 -include grub_fstest-normal_misc.d
278 grub_fstest-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES)
279 $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
280 -include grub_fstest-lib_hexdump.d
282 grub_fstest-lib_crc.o: lib/crc.c $(lib/crc.c_DEPENDENCIES)
283 $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
284 -include grub_fstest-lib_crc.d
286 grub_fstest-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
287 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
288 -include grub_fstest-commands_blocklist.d
290 grub_fstest-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
291 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
292 -include grub_fstest-commands_ls.d
294 grub_fstest-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
295 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
296 -include grub_fstest-fs_affs.d
298 grub_fstest-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
299 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
300 -include grub_fstest-fs_cpio.d
302 grub_fstest-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
303 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
304 -include grub_fstest-fs_ext2.d
306 grub_fstest-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
307 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
308 -include grub_fstest-fs_fat.d
310 grub_fstest-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
311 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
312 -include grub_fstest-fs_hfs.d
314 grub_fstest-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
315 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
316 -include grub_fstest-fs_hfsplus.d
318 grub_fstest-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
319 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
320 -include grub_fstest-fs_iso9660.d
322 grub_fstest-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
323 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
324 -include grub_fstest-fs_udf.d
326 grub_fstest-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
327 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
328 -include grub_fstest-fs_jfs.d
330 grub_fstest-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
331 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
332 -include grub_fstest-fs_minix.d
334 grub_fstest-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
335 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
336 -include grub_fstest-fs_ntfs.d
338 grub_fstest-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
339 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
340 -include grub_fstest-fs_ntfscomp.d
342 grub_fstest-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
343 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
344 -include grub_fstest-fs_reiserfs.d
346 grub_fstest-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
347 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
348 -include grub_fstest-fs_sfs.d
350 grub_fstest-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
351 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
352 -include grub_fstest-fs_ufs.d
354 grub_fstest-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
355 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
356 -include grub_fstest-fs_xfs.d
358 grub_fstest-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
359 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
360 -include grub_fstest-fs_afs.d
362 grub_fstest-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
363 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
364 -include grub_fstest-kern_partition.d
366 grub_fstest-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
367 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
368 -include grub_fstest-partmap_pc.d
370 grub_fstest-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
371 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
372 -include grub_fstest-partmap_apple.d
374 grub_fstest-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
375 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
376 -include grub_fstest-partmap_gpt.d
378 grub_fstest-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
379 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
380 -include grub_fstest-kern_fs.d
382 grub_fstest-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
383 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
384 -include grub_fstest-kern_env.d
386 grub_fstest-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
387 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
388 -include grub_fstest-fs_fshelp.d
390 grub_fstest-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
391 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
392 -include grub_fstest-disk_lvm.d
394 grub_fstest-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
395 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
396 -include grub_fstest-disk_raid.d
398 grub_fstest-disk_raid5_recover.o: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES)
399 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
400 -include grub_fstest-disk_raid5_recover.d
402 grub_fstest-disk_raid6_recover.o: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES)
403 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
404 -include grub_fstest-disk_raid6_recover.d
406 grub_fstest-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES)
407 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
408 -include grub_fstest-disk_mdraid_linux.d
410 grub_fstest-disk_dmraid_nvidia.o: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES)
411 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
412 -include grub_fstest-disk_dmraid_nvidia.d
414 grub_fstest-grub_fstest_init.o: grub_fstest_init.c $(grub_fstest_init.c_DEPENDENCIES)
415 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
416 -include grub_fstest-grub_fstest_init.d
419 # For grub-mkfont.
420 ifeq ($(enable_grub_mkfont), yes)
421 bin_UTILITIES += grub-mkfont
422 grub_mkfont_SOURCES = util/grub-mkfont.c util/misc.c
423 CLEANFILES += grub-mkfont$(EXEEXT) grub_mkfont-util_grub_mkfont.o grub_mkfont-util_misc.o
424 MOSTLYCLEANFILES += grub_mkfont-util_grub_mkfont.d grub_mkfont-util_misc.d
426 grub-mkfont: $(grub_mkfont_DEPENDENCIES) grub_mkfont-util_grub_mkfont.o grub_mkfont-util_misc.o
427 $(CC) -o $@ grub_mkfont-util_grub_mkfont.o grub_mkfont-util_misc.o $(LDFLAGS) $(grub_mkfont_LDFLAGS)
429 grub_mkfont-util_grub_mkfont.o: util/grub-mkfont.c $(util/grub-mkfont.c_DEPENDENCIES)
430 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkfont_CFLAGS) -MD -c -o $@ $<
431 -include grub_mkfont-util_grub_mkfont.d
433 grub_mkfont-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
434 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkfont_CFLAGS) -MD -c -o $@ $<
435 -include grub_mkfont-util_misc.d
437 grub_mkfont_CFLAGS = $(freetype_cflags)
438 grub_mkfont_LDFLAGS = $(freetype_libs)
439 endif
441 # For the parser.
442 grub_script.tab.c grub_script.tab.h: normal/parser.y
443 $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y
444 DISTCLEANFILES += grub_script.tab.c grub_script.tab.h
446 # For grub-emu.
447 grub_emu_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES))
448 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
449 DISTCLEANFILES += grub_emu_init.lst
451 grub_emu_init.h: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh
452 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
453 DISTCLEANFILES += grub_emu_init.h
455 grub_emu_init.c: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_emu_init.h
456 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
457 DISTCLEANFILES += grub_emu_init.c
459 # For grub-probe.
460 grub_probe_init.lst: geninit.sh $(filter-out grub_probe_init.c,$(grub_probe_SOURCES))
461 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
462 DISTCLEANFILES += grub_probe_init.lst
464 grub_probe_init.h: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninitheader.sh
465 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
466 DISTCLEANFILES += grub_probe_init.h
468 grub_probe_init.c: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninit.sh grub_probe_init.h
469 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
470 DISTCLEANFILES += grub_probe_init.c
472 # For grub-setup.
473 grub_setup_init.lst: geninit.sh $(filter-out grub_setup_init.c,$(grub_setup_SOURCES))
474 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
475 DISTCLEANFILES += grub_setup_init.lst
477 grub_setup_init.h: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninitheader.sh
478 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
479 DISTCLEANFILES += grub_setup_init.h
481 grub_setup_init.c: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninit.sh grub_setup_init.h
482 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
483 DISTCLEANFILES += grub_setup_init.c
485 # For grub-fstest.
486 grub_fstest_init.lst: geninit.sh $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES))
487 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
488 DISTCLEANFILES += grub_fstest_init.lst
490 grub_fstest_init.h: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninitheader.sh
491 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
492 DISTCLEANFILES += grub_fstest_init.h
494 grub_fstest_init.c: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninit.sh grub_fstest_init.h
495 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
496 DISTCLEANFILES += grub_fstest_init.c
498 # for grub-editenv
499 bin_UTILITIES += grub-editenv
500 grub_editenv_SOURCES = util/grub-editenv.c lib/envblk.c util/misc.c kern/misc.c kern/err.c
501 CLEANFILES += grub-editenv$(EXEEXT) grub_editenv-util_grub_editenv.o grub_editenv-lib_envblk.o grub_editenv-util_misc.o grub_editenv-kern_misc.o grub_editenv-kern_err.o
502 MOSTLYCLEANFILES += grub_editenv-util_grub_editenv.d grub_editenv-lib_envblk.d grub_editenv-util_misc.d grub_editenv-kern_misc.d grub_editenv-kern_err.d
504 grub-editenv: $(grub_editenv_DEPENDENCIES) grub_editenv-util_grub_editenv.o grub_editenv-lib_envblk.o grub_editenv-util_misc.o grub_editenv-kern_misc.o grub_editenv-kern_err.o
505 $(CC) -o $@ grub_editenv-util_grub_editenv.o grub_editenv-lib_envblk.o grub_editenv-util_misc.o grub_editenv-kern_misc.o grub_editenv-kern_err.o $(LDFLAGS) $(grub_editenv_LDFLAGS)
507 grub_editenv-util_grub_editenv.o: util/grub-editenv.c $(util/grub-editenv.c_DEPENDENCIES)
508 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
509 -include grub_editenv-util_grub_editenv.d
511 grub_editenv-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES)
512 $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
513 -include grub_editenv-lib_envblk.d
515 grub_editenv-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
516 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
517 -include grub_editenv-util_misc.d
519 grub_editenv-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
520 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
521 -include grub_editenv-kern_misc.d
523 grub_editenv-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
524 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
525 -include grub_editenv-kern_err.d
527 CLEANFILES += grub-editenv
529 # for grub-pe2elf
530 ifeq ($(enable_grub_pe2elf), yes)
531 bin_UTILITIES += grub-pe2elf
532 endif
534 grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c
535 CLEANFILES += grub-pe2elf$(EXEEXT) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o
536 MOSTLYCLEANFILES += grub_pe2elf-util_grub_pe2elf.d grub_pe2elf-util_misc.d
538 grub-pe2elf: $(grub_pe2elf_DEPENDENCIES) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o
539 $(CC) -o $@ grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o $(LDFLAGS) $(grub_pe2elf_LDFLAGS)
541 grub_pe2elf-util_grub_pe2elf.o: util/grub-pe2elf.c $(util/grub-pe2elf.c_DEPENDENCIES)
542 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $<
543 -include grub_pe2elf-util_grub_pe2elf.d
545 grub_pe2elf-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
546 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $<
547 -include grub_pe2elf-util_misc.d
549 CLEANFILES += grub-pe2elf
551 # For grub-mkconfig
552 grub-mkconfig: util/grub-mkconfig.in config.status
553 ./config.status --file=$@:$<
554 chmod +x $@
555 sbin_SCRIPTS += grub-mkconfig
556 CLEANFILES += grub-mkconfig
558 grub-mkconfig_lib: util/grub-mkconfig_lib.in config.status
559 ./config.status --file=$@:$<
560 chmod +x $@
561 lib_DATA += grub-mkconfig_lib
562 CLEANFILES += grub-mkconfig_lib
564 update-grub_lib: util/update-grub_lib.in config.status
565 ./config.status --file=$@:$<
566 chmod +x $@
567 lib_DATA += update-grub_lib
568 CLEANFILES += update-grub_lib
570 %: util/grub.d/%.in config.status
571 ./config.status --file=$@:$<
572 chmod +x $@
573 grub-mkconfig_SCRIPTS = 00_header 10_linux 10_hurd 10_freebsd 30_os-prober 40_custom
574 ifeq ($(target_os), cygwin)
575 grub-mkconfig_SCRIPTS += 10_windows
576 endif
578 CLEANFILES += $(grub-mkconfig_SCRIPTS)
580 grub-mkconfig_DATA += util/grub.d/README
583 # Filing systems.
584 pkglib_MODULES += fshelp.mod fat.mod ufs.mod ext2.mod ntfs.mod \
585 ntfscomp.mod minix.mod hfs.mod jfs.mod iso9660.mod xfs.mod \
586 affs.mod sfs.mod hfsplus.mod reiserfs.mod cpio.mod udf.mod \
587 afs.mod
589 # For fshelp.mod.
590 fshelp_mod_SOURCES = fs/fshelp.c
591 CLEANFILES += fshelp.mod mod-fshelp.o mod-fshelp.c pre-fshelp.o fshelp_mod-fs_fshelp.o und-fshelp.lst
592 ifneq ($(fshelp_mod_EXPORTS),no)
593 CLEANFILES += def-fshelp.lst
594 DEFSYMFILES += def-fshelp.lst
595 endif
596 MOSTLYCLEANFILES += fshelp_mod-fs_fshelp.d
597 UNDSYMFILES += und-fshelp.lst
599 fshelp.mod: pre-fshelp.o mod-fshelp.o $(TARGET_OBJ2ELF)
600 -rm -f $@
601 $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fshelp.o mod-fshelp.o
602 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
603 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
605 pre-fshelp.o: $(fshelp_mod_DEPENDENCIES) fshelp_mod-fs_fshelp.o
606 -rm -f $@
607 $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fshelp_mod-fs_fshelp.o
609 mod-fshelp.o: mod-fshelp.c
610 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -c -o $@ $<
612 mod-fshelp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
613 sh $(srcdir)/genmodsrc.sh 'fshelp' $< > $@ || (rm -f $@; exit 1)
615 ifneq ($(fshelp_mod_EXPORTS),no)
616 def-fshelp.lst: pre-fshelp.o
617 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fshelp/' > $@
618 endif
620 und-fshelp.lst: pre-fshelp.o
621 echo 'fshelp' > $@
622 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
624 fshelp_mod-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
625 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -MD -c -o $@ $<
626 -include fshelp_mod-fs_fshelp.d
628 CLEANFILES += cmd-fshelp_mod-fs_fshelp.lst fs-fshelp_mod-fs_fshelp.lst partmap-fshelp_mod-fs_fshelp.lst
629 COMMANDFILES += cmd-fshelp_mod-fs_fshelp.lst
630 FSFILES += fs-fshelp_mod-fs_fshelp.lst
631 PARTMAPFILES += partmap-fshelp_mod-fs_fshelp.lst
633 cmd-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) gencmdlist.sh
634 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh fshelp > $@ || (rm -f $@; exit 1)
636 fs-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genfslist.sh
637 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh fshelp > $@ || (rm -f $@; exit 1)
639 partmap-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genpartmaplist.sh
640 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh fshelp > $@ || (rm -f $@; exit 1)
643 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
644 fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
646 # For fat.mod.
647 fat_mod_SOURCES = fs/fat.c
648 CLEANFILES += fat.mod mod-fat.o mod-fat.c pre-fat.o fat_mod-fs_fat.o und-fat.lst
649 ifneq ($(fat_mod_EXPORTS),no)
650 CLEANFILES += def-fat.lst
651 DEFSYMFILES += def-fat.lst
652 endif
653 MOSTLYCLEANFILES += fat_mod-fs_fat.d
654 UNDSYMFILES += und-fat.lst
656 fat.mod: pre-fat.o mod-fat.o $(TARGET_OBJ2ELF)
657 -rm -f $@
658 $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fat.o mod-fat.o
659 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
660 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
662 pre-fat.o: $(fat_mod_DEPENDENCIES) fat_mod-fs_fat.o
663 -rm -f $@
664 $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fat_mod-fs_fat.o
666 mod-fat.o: mod-fat.c
667 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -c -o $@ $<
669 mod-fat.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
670 sh $(srcdir)/genmodsrc.sh 'fat' $< > $@ || (rm -f $@; exit 1)
672 ifneq ($(fat_mod_EXPORTS),no)
673 def-fat.lst: pre-fat.o
674 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fat/' > $@
675 endif
677 und-fat.lst: pre-fat.o
678 echo 'fat' > $@
679 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
681 fat_mod-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
682 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -MD -c -o $@ $<
683 -include fat_mod-fs_fat.d
685 CLEANFILES += cmd-fat_mod-fs_fat.lst fs-fat_mod-fs_fat.lst partmap-fat_mod-fs_fat.lst
686 COMMANDFILES += cmd-fat_mod-fs_fat.lst
687 FSFILES += fs-fat_mod-fs_fat.lst
688 PARTMAPFILES += partmap-fat_mod-fs_fat.lst
690 cmd-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) gencmdlist.sh
691 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh fat > $@ || (rm -f $@; exit 1)
693 fs-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genfslist.sh
694 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh fat > $@ || (rm -f $@; exit 1)
696 partmap-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genpartmaplist.sh
697 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh fat > $@ || (rm -f $@; exit 1)
700 fat_mod_CFLAGS = $(COMMON_CFLAGS)
701 fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
703 # For ufs.mod.
704 ufs_mod_SOURCES = fs/ufs.c
705 CLEANFILES += ufs.mod mod-ufs.o mod-ufs.c pre-ufs.o ufs_mod-fs_ufs.o und-ufs.lst
706 ifneq ($(ufs_mod_EXPORTS),no)
707 CLEANFILES += def-ufs.lst
708 DEFSYMFILES += def-ufs.lst
709 endif
710 MOSTLYCLEANFILES += ufs_mod-fs_ufs.d
711 UNDSYMFILES += und-ufs.lst
713 ufs.mod: pre-ufs.o mod-ufs.o $(TARGET_OBJ2ELF)
714 -rm -f $@
715 $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ufs.o mod-ufs.o
716 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
717 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
719 pre-ufs.o: $(ufs_mod_DEPENDENCIES) ufs_mod-fs_ufs.o
720 -rm -f $@
721 $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ufs_mod-fs_ufs.o
723 mod-ufs.o: mod-ufs.c
724 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -c -o $@ $<
726 mod-ufs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
727 sh $(srcdir)/genmodsrc.sh 'ufs' $< > $@ || (rm -f $@; exit 1)
729 ifneq ($(ufs_mod_EXPORTS),no)
730 def-ufs.lst: pre-ufs.o
731 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ufs/' > $@
732 endif
734 und-ufs.lst: pre-ufs.o
735 echo 'ufs' > $@
736 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
738 ufs_mod-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
739 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -MD -c -o $@ $<
740 -include ufs_mod-fs_ufs.d
742 CLEANFILES += cmd-ufs_mod-fs_ufs.lst fs-ufs_mod-fs_ufs.lst partmap-ufs_mod-fs_ufs.lst
743 COMMANDFILES += cmd-ufs_mod-fs_ufs.lst
744 FSFILES += fs-ufs_mod-fs_ufs.lst
745 PARTMAPFILES += partmap-ufs_mod-fs_ufs.lst
747 cmd-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) gencmdlist.sh
748 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ufs > $@ || (rm -f $@; exit 1)
750 fs-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genfslist.sh
751 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ufs > $@ || (rm -f $@; exit 1)
753 partmap-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genpartmaplist.sh
754 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ufs > $@ || (rm -f $@; exit 1)
757 ufs_mod_CFLAGS = $(COMMON_CFLAGS)
758 ufs_mod_LDFLAGS = $(COMMON_LDFLAGS)
760 # For ext2.mod.
761 ext2_mod_SOURCES = fs/ext2.c
762 CLEANFILES += ext2.mod mod-ext2.o mod-ext2.c pre-ext2.o ext2_mod-fs_ext2.o und-ext2.lst
763 ifneq ($(ext2_mod_EXPORTS),no)
764 CLEANFILES += def-ext2.lst
765 DEFSYMFILES += def-ext2.lst
766 endif
767 MOSTLYCLEANFILES += ext2_mod-fs_ext2.d
768 UNDSYMFILES += und-ext2.lst
770 ext2.mod: pre-ext2.o mod-ext2.o $(TARGET_OBJ2ELF)
771 -rm -f $@
772 $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ext2.o mod-ext2.o
773 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
774 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
776 pre-ext2.o: $(ext2_mod_DEPENDENCIES) ext2_mod-fs_ext2.o
777 -rm -f $@
778 $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ext2_mod-fs_ext2.o
780 mod-ext2.o: mod-ext2.c
781 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -c -o $@ $<
783 mod-ext2.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
784 sh $(srcdir)/genmodsrc.sh 'ext2' $< > $@ || (rm -f $@; exit 1)
786 ifneq ($(ext2_mod_EXPORTS),no)
787 def-ext2.lst: pre-ext2.o
788 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ext2/' > $@
789 endif
791 und-ext2.lst: pre-ext2.o
792 echo 'ext2' > $@
793 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
795 ext2_mod-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
796 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -MD -c -o $@ $<
797 -include ext2_mod-fs_ext2.d
799 CLEANFILES += cmd-ext2_mod-fs_ext2.lst fs-ext2_mod-fs_ext2.lst partmap-ext2_mod-fs_ext2.lst
800 COMMANDFILES += cmd-ext2_mod-fs_ext2.lst
801 FSFILES += fs-ext2_mod-fs_ext2.lst
802 PARTMAPFILES += partmap-ext2_mod-fs_ext2.lst
804 cmd-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) gencmdlist.sh
805 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ext2 > $@ || (rm -f $@; exit 1)
807 fs-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genfslist.sh
808 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ext2 > $@ || (rm -f $@; exit 1)
810 partmap-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genpartmaplist.sh
811 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ext2 > $@ || (rm -f $@; exit 1)
814 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
815 ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
817 # For ntfs.mod.
818 ntfs_mod_SOURCES = fs/ntfs.c
819 CLEANFILES += ntfs.mod mod-ntfs.o mod-ntfs.c pre-ntfs.o ntfs_mod-fs_ntfs.o und-ntfs.lst
820 ifneq ($(ntfs_mod_EXPORTS),no)
821 CLEANFILES += def-ntfs.lst
822 DEFSYMFILES += def-ntfs.lst
823 endif
824 MOSTLYCLEANFILES += ntfs_mod-fs_ntfs.d
825 UNDSYMFILES += und-ntfs.lst
827 ntfs.mod: pre-ntfs.o mod-ntfs.o $(TARGET_OBJ2ELF)
828 -rm -f $@
829 $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfs.o mod-ntfs.o
830 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
831 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
833 pre-ntfs.o: $(ntfs_mod_DEPENDENCIES) ntfs_mod-fs_ntfs.o
834 -rm -f $@
835 $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfs_mod-fs_ntfs.o
837 mod-ntfs.o: mod-ntfs.c
838 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -c -o $@ $<
840 mod-ntfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
841 sh $(srcdir)/genmodsrc.sh 'ntfs' $< > $@ || (rm -f $@; exit 1)
843 ifneq ($(ntfs_mod_EXPORTS),no)
844 def-ntfs.lst: pre-ntfs.o
845 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfs/' > $@
846 endif
848 und-ntfs.lst: pre-ntfs.o
849 echo 'ntfs' > $@
850 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
852 ntfs_mod-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
853 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -MD -c -o $@ $<
854 -include ntfs_mod-fs_ntfs.d
856 CLEANFILES += cmd-ntfs_mod-fs_ntfs.lst fs-ntfs_mod-fs_ntfs.lst partmap-ntfs_mod-fs_ntfs.lst
857 COMMANDFILES += cmd-ntfs_mod-fs_ntfs.lst
858 FSFILES += fs-ntfs_mod-fs_ntfs.lst
859 PARTMAPFILES += partmap-ntfs_mod-fs_ntfs.lst
861 cmd-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) gencmdlist.sh
862 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ntfs > $@ || (rm -f $@; exit 1)
864 fs-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genfslist.sh
865 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ntfs > $@ || (rm -f $@; exit 1)
867 partmap-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genpartmaplist.sh
868 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ntfs > $@ || (rm -f $@; exit 1)
871 ntfs_mod_CFLAGS = $(COMMON_CFLAGS)
872 ntfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
874 # For ntfscomp.mod.
875 ntfscomp_mod_SOURCES = fs/ntfscomp.c
876 CLEANFILES += ntfscomp.mod mod-ntfscomp.o mod-ntfscomp.c pre-ntfscomp.o ntfscomp_mod-fs_ntfscomp.o und-ntfscomp.lst
877 ifneq ($(ntfscomp_mod_EXPORTS),no)
878 CLEANFILES += def-ntfscomp.lst
879 DEFSYMFILES += def-ntfscomp.lst
880 endif
881 MOSTLYCLEANFILES += ntfscomp_mod-fs_ntfscomp.d
882 UNDSYMFILES += und-ntfscomp.lst
884 ntfscomp.mod: pre-ntfscomp.o mod-ntfscomp.o $(TARGET_OBJ2ELF)
885 -rm -f $@
886 $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfscomp.o mod-ntfscomp.o
887 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
888 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
890 pre-ntfscomp.o: $(ntfscomp_mod_DEPENDENCIES) ntfscomp_mod-fs_ntfscomp.o
891 -rm -f $@
892 $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfscomp_mod-fs_ntfscomp.o
894 mod-ntfscomp.o: mod-ntfscomp.c
895 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -c -o $@ $<
897 mod-ntfscomp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
898 sh $(srcdir)/genmodsrc.sh 'ntfscomp' $< > $@ || (rm -f $@; exit 1)
900 ifneq ($(ntfscomp_mod_EXPORTS),no)
901 def-ntfscomp.lst: pre-ntfscomp.o
902 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfscomp/' > $@
903 endif
905 und-ntfscomp.lst: pre-ntfscomp.o
906 echo 'ntfscomp' > $@
907 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
909 ntfscomp_mod-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
910 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -MD -c -o $@ $<
911 -include ntfscomp_mod-fs_ntfscomp.d
913 CLEANFILES += cmd-ntfscomp_mod-fs_ntfscomp.lst fs-ntfscomp_mod-fs_ntfscomp.lst partmap-ntfscomp_mod-fs_ntfscomp.lst
914 COMMANDFILES += cmd-ntfscomp_mod-fs_ntfscomp.lst
915 FSFILES += fs-ntfscomp_mod-fs_ntfscomp.lst
916 PARTMAPFILES += partmap-ntfscomp_mod-fs_ntfscomp.lst
918 cmd-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) gencmdlist.sh
919 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ntfscomp > $@ || (rm -f $@; exit 1)
921 fs-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genfslist.sh
922 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ntfscomp > $@ || (rm -f $@; exit 1)
924 partmap-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genpartmaplist.sh
925 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ntfscomp > $@ || (rm -f $@; exit 1)
928 ntfscomp_mod_CFLAGS = $(COMMON_CFLAGS)
929 ntfscomp_mod_LDFLAGS = $(COMMON_LDFLAGS)
931 # For minix.mod.
932 minix_mod_SOURCES = fs/minix.c
933 CLEANFILES += minix.mod mod-minix.o mod-minix.c pre-minix.o minix_mod-fs_minix.o und-minix.lst
934 ifneq ($(minix_mod_EXPORTS),no)
935 CLEANFILES += def-minix.lst
936 DEFSYMFILES += def-minix.lst
937 endif
938 MOSTLYCLEANFILES += minix_mod-fs_minix.d
939 UNDSYMFILES += und-minix.lst
941 minix.mod: pre-minix.o mod-minix.o $(TARGET_OBJ2ELF)
942 -rm -f $@
943 $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-minix.o mod-minix.o
944 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
945 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
947 pre-minix.o: $(minix_mod_DEPENDENCIES) minix_mod-fs_minix.o
948 -rm -f $@
949 $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ minix_mod-fs_minix.o
951 mod-minix.o: mod-minix.c
952 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -c -o $@ $<
954 mod-minix.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
955 sh $(srcdir)/genmodsrc.sh 'minix' $< > $@ || (rm -f $@; exit 1)
957 ifneq ($(minix_mod_EXPORTS),no)
958 def-minix.lst: pre-minix.o
959 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 minix/' > $@
960 endif
962 und-minix.lst: pre-minix.o
963 echo 'minix' > $@
964 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
966 minix_mod-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
967 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -MD -c -o $@ $<
968 -include minix_mod-fs_minix.d
970 CLEANFILES += cmd-minix_mod-fs_minix.lst fs-minix_mod-fs_minix.lst partmap-minix_mod-fs_minix.lst
971 COMMANDFILES += cmd-minix_mod-fs_minix.lst
972 FSFILES += fs-minix_mod-fs_minix.lst
973 PARTMAPFILES += partmap-minix_mod-fs_minix.lst
975 cmd-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) gencmdlist.sh
976 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh minix > $@ || (rm -f $@; exit 1)
978 fs-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genfslist.sh
979 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh minix > $@ || (rm -f $@; exit 1)
981 partmap-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genpartmaplist.sh
982 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh minix > $@ || (rm -f $@; exit 1)
985 minix_mod_CFLAGS = $(COMMON_CFLAGS)
986 minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
988 # For hfs.mod.
989 hfs_mod_SOURCES = fs/hfs.c
990 CLEANFILES += hfs.mod mod-hfs.o mod-hfs.c pre-hfs.o hfs_mod-fs_hfs.o und-hfs.lst
991 ifneq ($(hfs_mod_EXPORTS),no)
992 CLEANFILES += def-hfs.lst
993 DEFSYMFILES += def-hfs.lst
994 endif
995 MOSTLYCLEANFILES += hfs_mod-fs_hfs.d
996 UNDSYMFILES += und-hfs.lst
998 hfs.mod: pre-hfs.o mod-hfs.o $(TARGET_OBJ2ELF)
999 -rm -f $@
1000 $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hfs.o mod-hfs.o
1001 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1002 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1004 pre-hfs.o: $(hfs_mod_DEPENDENCIES) hfs_mod-fs_hfs.o
1005 -rm -f $@
1006 $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfs_mod-fs_hfs.o
1008 mod-hfs.o: mod-hfs.c
1009 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -c -o $@ $<
1011 mod-hfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1012 sh $(srcdir)/genmodsrc.sh 'hfs' $< > $@ || (rm -f $@; exit 1)
1014 ifneq ($(hfs_mod_EXPORTS),no)
1015 def-hfs.lst: pre-hfs.o
1016 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfs/' > $@
1017 endif
1019 und-hfs.lst: pre-hfs.o
1020 echo 'hfs' > $@
1021 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1023 hfs_mod-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
1024 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -MD -c -o $@ $<
1025 -include hfs_mod-fs_hfs.d
1027 CLEANFILES += cmd-hfs_mod-fs_hfs.lst fs-hfs_mod-fs_hfs.lst partmap-hfs_mod-fs_hfs.lst
1028 COMMANDFILES += cmd-hfs_mod-fs_hfs.lst
1029 FSFILES += fs-hfs_mod-fs_hfs.lst
1030 PARTMAPFILES += partmap-hfs_mod-fs_hfs.lst
1032 cmd-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) gencmdlist.sh
1033 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh hfs > $@ || (rm -f $@; exit 1)
1035 fs-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genfslist.sh
1036 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh hfs > $@ || (rm -f $@; exit 1)
1038 partmap-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genpartmaplist.sh
1039 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh hfs > $@ || (rm -f $@; exit 1)
1042 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
1043 hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1045 # For jfs.mod.
1046 jfs_mod_SOURCES = fs/jfs.c
1047 CLEANFILES += jfs.mod mod-jfs.o mod-jfs.c pre-jfs.o jfs_mod-fs_jfs.o und-jfs.lst
1048 ifneq ($(jfs_mod_EXPORTS),no)
1049 CLEANFILES += def-jfs.lst
1050 DEFSYMFILES += def-jfs.lst
1051 endif
1052 MOSTLYCLEANFILES += jfs_mod-fs_jfs.d
1053 UNDSYMFILES += und-jfs.lst
1055 jfs.mod: pre-jfs.o mod-jfs.o $(TARGET_OBJ2ELF)
1056 -rm -f $@
1057 $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-jfs.o mod-jfs.o
1058 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1059 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1061 pre-jfs.o: $(jfs_mod_DEPENDENCIES) jfs_mod-fs_jfs.o
1062 -rm -f $@
1063 $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jfs_mod-fs_jfs.o
1065 mod-jfs.o: mod-jfs.c
1066 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -c -o $@ $<
1068 mod-jfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1069 sh $(srcdir)/genmodsrc.sh 'jfs' $< > $@ || (rm -f $@; exit 1)
1071 ifneq ($(jfs_mod_EXPORTS),no)
1072 def-jfs.lst: pre-jfs.o
1073 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jfs/' > $@
1074 endif
1076 und-jfs.lst: pre-jfs.o
1077 echo 'jfs' > $@
1078 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1080 jfs_mod-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
1081 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -MD -c -o $@ $<
1082 -include jfs_mod-fs_jfs.d
1084 CLEANFILES += cmd-jfs_mod-fs_jfs.lst fs-jfs_mod-fs_jfs.lst partmap-jfs_mod-fs_jfs.lst
1085 COMMANDFILES += cmd-jfs_mod-fs_jfs.lst
1086 FSFILES += fs-jfs_mod-fs_jfs.lst
1087 PARTMAPFILES += partmap-jfs_mod-fs_jfs.lst
1089 cmd-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) gencmdlist.sh
1090 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh jfs > $@ || (rm -f $@; exit 1)
1092 fs-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genfslist.sh
1093 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh jfs > $@ || (rm -f $@; exit 1)
1095 partmap-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genpartmaplist.sh
1096 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh jfs > $@ || (rm -f $@; exit 1)
1099 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
1100 jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1102 # For iso9660.mod.
1103 iso9660_mod_SOURCES = fs/iso9660.c
1104 CLEANFILES += iso9660.mod mod-iso9660.o mod-iso9660.c pre-iso9660.o iso9660_mod-fs_iso9660.o und-iso9660.lst
1105 ifneq ($(iso9660_mod_EXPORTS),no)
1106 CLEANFILES += def-iso9660.lst
1107 DEFSYMFILES += def-iso9660.lst
1108 endif
1109 MOSTLYCLEANFILES += iso9660_mod-fs_iso9660.d
1110 UNDSYMFILES += und-iso9660.lst
1112 iso9660.mod: pre-iso9660.o mod-iso9660.o $(TARGET_OBJ2ELF)
1113 -rm -f $@
1114 $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-iso9660.o mod-iso9660.o
1115 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1116 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1118 pre-iso9660.o: $(iso9660_mod_DEPENDENCIES) iso9660_mod-fs_iso9660.o
1119 -rm -f $@
1120 $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ iso9660_mod-fs_iso9660.o
1122 mod-iso9660.o: mod-iso9660.c
1123 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -c -o $@ $<
1125 mod-iso9660.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1126 sh $(srcdir)/genmodsrc.sh 'iso9660' $< > $@ || (rm -f $@; exit 1)
1128 ifneq ($(iso9660_mod_EXPORTS),no)
1129 def-iso9660.lst: pre-iso9660.o
1130 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 iso9660/' > $@
1131 endif
1133 und-iso9660.lst: pre-iso9660.o
1134 echo 'iso9660' > $@
1135 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1137 iso9660_mod-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
1138 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -MD -c -o $@ $<
1139 -include iso9660_mod-fs_iso9660.d
1141 CLEANFILES += cmd-iso9660_mod-fs_iso9660.lst fs-iso9660_mod-fs_iso9660.lst partmap-iso9660_mod-fs_iso9660.lst
1142 COMMANDFILES += cmd-iso9660_mod-fs_iso9660.lst
1143 FSFILES += fs-iso9660_mod-fs_iso9660.lst
1144 PARTMAPFILES += partmap-iso9660_mod-fs_iso9660.lst
1146 cmd-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) gencmdlist.sh
1147 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh iso9660 > $@ || (rm -f $@; exit 1)
1149 fs-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genfslist.sh
1150 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh iso9660 > $@ || (rm -f $@; exit 1)
1152 partmap-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genpartmaplist.sh
1153 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh iso9660 > $@ || (rm -f $@; exit 1)
1156 iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
1157 iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
1159 # For xfs.mod.
1160 xfs_mod_SOURCES = fs/xfs.c
1161 CLEANFILES += xfs.mod mod-xfs.o mod-xfs.c pre-xfs.o xfs_mod-fs_xfs.o und-xfs.lst
1162 ifneq ($(xfs_mod_EXPORTS),no)
1163 CLEANFILES += def-xfs.lst
1164 DEFSYMFILES += def-xfs.lst
1165 endif
1166 MOSTLYCLEANFILES += xfs_mod-fs_xfs.d
1167 UNDSYMFILES += und-xfs.lst
1169 xfs.mod: pre-xfs.o mod-xfs.o $(TARGET_OBJ2ELF)
1170 -rm -f $@
1171 $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-xfs.o mod-xfs.o
1172 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1173 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1175 pre-xfs.o: $(xfs_mod_DEPENDENCIES) xfs_mod-fs_xfs.o
1176 -rm -f $@
1177 $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ xfs_mod-fs_xfs.o
1179 mod-xfs.o: mod-xfs.c
1180 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -c -o $@ $<
1182 mod-xfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1183 sh $(srcdir)/genmodsrc.sh 'xfs' $< > $@ || (rm -f $@; exit 1)
1185 ifneq ($(xfs_mod_EXPORTS),no)
1186 def-xfs.lst: pre-xfs.o
1187 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 xfs/' > $@
1188 endif
1190 und-xfs.lst: pre-xfs.o
1191 echo 'xfs' > $@
1192 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1194 xfs_mod-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
1195 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -MD -c -o $@ $<
1196 -include xfs_mod-fs_xfs.d
1198 CLEANFILES += cmd-xfs_mod-fs_xfs.lst fs-xfs_mod-fs_xfs.lst partmap-xfs_mod-fs_xfs.lst
1199 COMMANDFILES += cmd-xfs_mod-fs_xfs.lst
1200 FSFILES += fs-xfs_mod-fs_xfs.lst
1201 PARTMAPFILES += partmap-xfs_mod-fs_xfs.lst
1203 cmd-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) gencmdlist.sh
1204 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xfs > $@ || (rm -f $@; exit 1)
1206 fs-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genfslist.sh
1207 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xfs > $@ || (rm -f $@; exit 1)
1209 partmap-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genpartmaplist.sh
1210 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xfs > $@ || (rm -f $@; exit 1)
1213 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
1214 xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1216 # For affs.mod.
1217 affs_mod_SOURCES = fs/affs.c
1218 CLEANFILES += affs.mod mod-affs.o mod-affs.c pre-affs.o affs_mod-fs_affs.o und-affs.lst
1219 ifneq ($(affs_mod_EXPORTS),no)
1220 CLEANFILES += def-affs.lst
1221 DEFSYMFILES += def-affs.lst
1222 endif
1223 MOSTLYCLEANFILES += affs_mod-fs_affs.d
1224 UNDSYMFILES += und-affs.lst
1226 affs.mod: pre-affs.o mod-affs.o $(TARGET_OBJ2ELF)
1227 -rm -f $@
1228 $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-affs.o mod-affs.o
1229 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1230 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1232 pre-affs.o: $(affs_mod_DEPENDENCIES) affs_mod-fs_affs.o
1233 -rm -f $@
1234 $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ affs_mod-fs_affs.o
1236 mod-affs.o: mod-affs.c
1237 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -c -o $@ $<
1239 mod-affs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1240 sh $(srcdir)/genmodsrc.sh 'affs' $< > $@ || (rm -f $@; exit 1)
1242 ifneq ($(affs_mod_EXPORTS),no)
1243 def-affs.lst: pre-affs.o
1244 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 affs/' > $@
1245 endif
1247 und-affs.lst: pre-affs.o
1248 echo 'affs' > $@
1249 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1251 affs_mod-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
1252 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -MD -c -o $@ $<
1253 -include affs_mod-fs_affs.d
1255 CLEANFILES += cmd-affs_mod-fs_affs.lst fs-affs_mod-fs_affs.lst partmap-affs_mod-fs_affs.lst
1256 COMMANDFILES += cmd-affs_mod-fs_affs.lst
1257 FSFILES += fs-affs_mod-fs_affs.lst
1258 PARTMAPFILES += partmap-affs_mod-fs_affs.lst
1260 cmd-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) gencmdlist.sh
1261 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh affs > $@ || (rm -f $@; exit 1)
1263 fs-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genfslist.sh
1264 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh affs > $@ || (rm -f $@; exit 1)
1266 partmap-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genpartmaplist.sh
1267 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh affs > $@ || (rm -f $@; exit 1)
1270 affs_mod_CFLAGS = $(COMMON_CFLAGS)
1271 affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1273 # For sfs.mod.
1274 sfs_mod_SOURCES = fs/sfs.c
1275 CLEANFILES += sfs.mod mod-sfs.o mod-sfs.c pre-sfs.o sfs_mod-fs_sfs.o und-sfs.lst
1276 ifneq ($(sfs_mod_EXPORTS),no)
1277 CLEANFILES += def-sfs.lst
1278 DEFSYMFILES += def-sfs.lst
1279 endif
1280 MOSTLYCLEANFILES += sfs_mod-fs_sfs.d
1281 UNDSYMFILES += und-sfs.lst
1283 sfs.mod: pre-sfs.o mod-sfs.o $(TARGET_OBJ2ELF)
1284 -rm -f $@
1285 $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sfs.o mod-sfs.o
1286 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1287 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1289 pre-sfs.o: $(sfs_mod_DEPENDENCIES) sfs_mod-fs_sfs.o
1290 -rm -f $@
1291 $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sfs_mod-fs_sfs.o
1293 mod-sfs.o: mod-sfs.c
1294 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -c -o $@ $<
1296 mod-sfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1297 sh $(srcdir)/genmodsrc.sh 'sfs' $< > $@ || (rm -f $@; exit 1)
1299 ifneq ($(sfs_mod_EXPORTS),no)
1300 def-sfs.lst: pre-sfs.o
1301 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sfs/' > $@
1302 endif
1304 und-sfs.lst: pre-sfs.o
1305 echo 'sfs' > $@
1306 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1308 sfs_mod-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
1309 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -MD -c -o $@ $<
1310 -include sfs_mod-fs_sfs.d
1312 CLEANFILES += cmd-sfs_mod-fs_sfs.lst fs-sfs_mod-fs_sfs.lst partmap-sfs_mod-fs_sfs.lst
1313 COMMANDFILES += cmd-sfs_mod-fs_sfs.lst
1314 FSFILES += fs-sfs_mod-fs_sfs.lst
1315 PARTMAPFILES += partmap-sfs_mod-fs_sfs.lst
1317 cmd-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) gencmdlist.sh
1318 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sfs > $@ || (rm -f $@; exit 1)
1320 fs-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genfslist.sh
1321 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sfs > $@ || (rm -f $@; exit 1)
1323 partmap-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genpartmaplist.sh
1324 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sfs > $@ || (rm -f $@; exit 1)
1327 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
1328 sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1330 # For hfsplus.mod.
1331 hfsplus_mod_SOURCES = fs/hfsplus.c
1332 CLEANFILES += hfsplus.mod mod-hfsplus.o mod-hfsplus.c pre-hfsplus.o hfsplus_mod-fs_hfsplus.o und-hfsplus.lst
1333 ifneq ($(hfsplus_mod_EXPORTS),no)
1334 CLEANFILES += def-hfsplus.lst
1335 DEFSYMFILES += def-hfsplus.lst
1336 endif
1337 MOSTLYCLEANFILES += hfsplus_mod-fs_hfsplus.d
1338 UNDSYMFILES += und-hfsplus.lst
1340 hfsplus.mod: pre-hfsplus.o mod-hfsplus.o $(TARGET_OBJ2ELF)
1341 -rm -f $@
1342 $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hfsplus.o mod-hfsplus.o
1343 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1344 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1346 pre-hfsplus.o: $(hfsplus_mod_DEPENDENCIES) hfsplus_mod-fs_hfsplus.o
1347 -rm -f $@
1348 $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfsplus_mod-fs_hfsplus.o
1350 mod-hfsplus.o: mod-hfsplus.c
1351 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -c -o $@ $<
1353 mod-hfsplus.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1354 sh $(srcdir)/genmodsrc.sh 'hfsplus' $< > $@ || (rm -f $@; exit 1)
1356 ifneq ($(hfsplus_mod_EXPORTS),no)
1357 def-hfsplus.lst: pre-hfsplus.o
1358 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfsplus/' > $@
1359 endif
1361 und-hfsplus.lst: pre-hfsplus.o
1362 echo 'hfsplus' > $@
1363 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1365 hfsplus_mod-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
1366 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -MD -c -o $@ $<
1367 -include hfsplus_mod-fs_hfsplus.d
1369 CLEANFILES += cmd-hfsplus_mod-fs_hfsplus.lst fs-hfsplus_mod-fs_hfsplus.lst partmap-hfsplus_mod-fs_hfsplus.lst
1370 COMMANDFILES += cmd-hfsplus_mod-fs_hfsplus.lst
1371 FSFILES += fs-hfsplus_mod-fs_hfsplus.lst
1372 PARTMAPFILES += partmap-hfsplus_mod-fs_hfsplus.lst
1374 cmd-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) gencmdlist.sh
1375 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh hfsplus > $@ || (rm -f $@; exit 1)
1377 fs-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genfslist.sh
1378 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh hfsplus > $@ || (rm -f $@; exit 1)
1380 partmap-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genpartmaplist.sh
1381 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh hfsplus > $@ || (rm -f $@; exit 1)
1384 hfsplus_mod_CFLAGS = $(COMMON_CFLAGS)
1385 hfsplus_mod_LDFLAGS = $(COMMON_LDFLAGS)
1387 # For reiserfs.mod.
1388 reiserfs_mod_SOURCES = fs/reiserfs.c
1389 CLEANFILES += reiserfs.mod mod-reiserfs.o mod-reiserfs.c pre-reiserfs.o reiserfs_mod-fs_reiserfs.o und-reiserfs.lst
1390 ifneq ($(reiserfs_mod_EXPORTS),no)
1391 CLEANFILES += def-reiserfs.lst
1392 DEFSYMFILES += def-reiserfs.lst
1393 endif
1394 MOSTLYCLEANFILES += reiserfs_mod-fs_reiserfs.d
1395 UNDSYMFILES += und-reiserfs.lst
1397 reiserfs.mod: pre-reiserfs.o mod-reiserfs.o $(TARGET_OBJ2ELF)
1398 -rm -f $@
1399 $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-reiserfs.o mod-reiserfs.o
1400 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1401 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1403 pre-reiserfs.o: $(reiserfs_mod_DEPENDENCIES) reiserfs_mod-fs_reiserfs.o
1404 -rm -f $@
1405 $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reiserfs_mod-fs_reiserfs.o
1407 mod-reiserfs.o: mod-reiserfs.c
1408 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -c -o $@ $<
1410 mod-reiserfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1411 sh $(srcdir)/genmodsrc.sh 'reiserfs' $< > $@ || (rm -f $@; exit 1)
1413 ifneq ($(reiserfs_mod_EXPORTS),no)
1414 def-reiserfs.lst: pre-reiserfs.o
1415 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reiserfs/' > $@
1416 endif
1418 und-reiserfs.lst: pre-reiserfs.o
1419 echo 'reiserfs' > $@
1420 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1422 reiserfs_mod-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
1423 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -MD -c -o $@ $<
1424 -include reiserfs_mod-fs_reiserfs.d
1426 CLEANFILES += cmd-reiserfs_mod-fs_reiserfs.lst fs-reiserfs_mod-fs_reiserfs.lst partmap-reiserfs_mod-fs_reiserfs.lst
1427 COMMANDFILES += cmd-reiserfs_mod-fs_reiserfs.lst
1428 FSFILES += fs-reiserfs_mod-fs_reiserfs.lst
1429 PARTMAPFILES += partmap-reiserfs_mod-fs_reiserfs.lst
1431 cmd-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) gencmdlist.sh
1432 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh reiserfs > $@ || (rm -f $@; exit 1)
1434 fs-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genfslist.sh
1435 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh reiserfs > $@ || (rm -f $@; exit 1)
1437 partmap-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genpartmaplist.sh
1438 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh reiserfs > $@ || (rm -f $@; exit 1)
1441 reiserfs_mod_CFLAGS = $(COMMON_CFLAGS)
1442 reiserfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1444 # For cpio.mod.
1445 cpio_mod_SOURCES = fs/cpio.c
1446 CLEANFILES += cpio.mod mod-cpio.o mod-cpio.c pre-cpio.o cpio_mod-fs_cpio.o und-cpio.lst
1447 ifneq ($(cpio_mod_EXPORTS),no)
1448 CLEANFILES += def-cpio.lst
1449 DEFSYMFILES += def-cpio.lst
1450 endif
1451 MOSTLYCLEANFILES += cpio_mod-fs_cpio.d
1452 UNDSYMFILES += und-cpio.lst
1454 cpio.mod: pre-cpio.o mod-cpio.o $(TARGET_OBJ2ELF)
1455 -rm -f $@
1456 $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cpio.o mod-cpio.o
1457 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1458 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1460 pre-cpio.o: $(cpio_mod_DEPENDENCIES) cpio_mod-fs_cpio.o
1461 -rm -f $@
1462 $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpio_mod-fs_cpio.o
1464 mod-cpio.o: mod-cpio.c
1465 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -c -o $@ $<
1467 mod-cpio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1468 sh $(srcdir)/genmodsrc.sh 'cpio' $< > $@ || (rm -f $@; exit 1)
1470 ifneq ($(cpio_mod_EXPORTS),no)
1471 def-cpio.lst: pre-cpio.o
1472 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpio/' > $@
1473 endif
1475 und-cpio.lst: pre-cpio.o
1476 echo 'cpio' > $@
1477 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1479 cpio_mod-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
1480 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -MD -c -o $@ $<
1481 -include cpio_mod-fs_cpio.d
1483 CLEANFILES += cmd-cpio_mod-fs_cpio.lst fs-cpio_mod-fs_cpio.lst partmap-cpio_mod-fs_cpio.lst
1484 COMMANDFILES += cmd-cpio_mod-fs_cpio.lst
1485 FSFILES += fs-cpio_mod-fs_cpio.lst
1486 PARTMAPFILES += partmap-cpio_mod-fs_cpio.lst
1488 cmd-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) gencmdlist.sh
1489 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh cpio > $@ || (rm -f $@; exit 1)
1491 fs-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genfslist.sh
1492 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh cpio > $@ || (rm -f $@; exit 1)
1494 partmap-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genpartmaplist.sh
1495 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh cpio > $@ || (rm -f $@; exit 1)
1498 cpio_mod_CFLAGS = $(COMMON_CFLAGS)
1499 cpio_mod_LDFLAGS = $(COMMON_LDFLAGS)
1501 # For udf.mod.
1502 udf_mod_SOURCES = fs/udf.c
1503 CLEANFILES += udf.mod mod-udf.o mod-udf.c pre-udf.o udf_mod-fs_udf.o und-udf.lst
1504 ifneq ($(udf_mod_EXPORTS),no)
1505 CLEANFILES += def-udf.lst
1506 DEFSYMFILES += def-udf.lst
1507 endif
1508 MOSTLYCLEANFILES += udf_mod-fs_udf.d
1509 UNDSYMFILES += und-udf.lst
1511 udf.mod: pre-udf.o mod-udf.o $(TARGET_OBJ2ELF)
1512 -rm -f $@
1513 $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-udf.o mod-udf.o
1514 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1515 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1517 pre-udf.o: $(udf_mod_DEPENDENCIES) udf_mod-fs_udf.o
1518 -rm -f $@
1519 $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ udf_mod-fs_udf.o
1521 mod-udf.o: mod-udf.c
1522 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -c -o $@ $<
1524 mod-udf.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1525 sh $(srcdir)/genmodsrc.sh 'udf' $< > $@ || (rm -f $@; exit 1)
1527 ifneq ($(udf_mod_EXPORTS),no)
1528 def-udf.lst: pre-udf.o
1529 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 udf/' > $@
1530 endif
1532 und-udf.lst: pre-udf.o
1533 echo 'udf' > $@
1534 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1536 udf_mod-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
1537 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -MD -c -o $@ $<
1538 -include udf_mod-fs_udf.d
1540 CLEANFILES += cmd-udf_mod-fs_udf.lst fs-udf_mod-fs_udf.lst partmap-udf_mod-fs_udf.lst
1541 COMMANDFILES += cmd-udf_mod-fs_udf.lst
1542 FSFILES += fs-udf_mod-fs_udf.lst
1543 PARTMAPFILES += partmap-udf_mod-fs_udf.lst
1545 cmd-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) gencmdlist.sh
1546 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh udf > $@ || (rm -f $@; exit 1)
1548 fs-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genfslist.sh
1549 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh udf > $@ || (rm -f $@; exit 1)
1551 partmap-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genpartmaplist.sh
1552 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh udf > $@ || (rm -f $@; exit 1)
1555 udf_mod_CFLAGS = $(COMMON_CFLAGS)
1556 udf_mod_LDFLAGS = $(COMMON_LDFLAGS)
1558 # For afs.mod.
1559 afs_mod_SOURCES = fs/afs.c
1560 CLEANFILES += afs.mod mod-afs.o mod-afs.c pre-afs.o afs_mod-fs_afs.o und-afs.lst
1561 ifneq ($(afs_mod_EXPORTS),no)
1562 CLEANFILES += def-afs.lst
1563 DEFSYMFILES += def-afs.lst
1564 endif
1565 MOSTLYCLEANFILES += afs_mod-fs_afs.d
1566 UNDSYMFILES += und-afs.lst
1568 afs.mod: pre-afs.o mod-afs.o $(TARGET_OBJ2ELF)
1569 -rm -f $@
1570 $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-afs.o mod-afs.o
1571 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1572 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1574 pre-afs.o: $(afs_mod_DEPENDENCIES) afs_mod-fs_afs.o
1575 -rm -f $@
1576 $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ afs_mod-fs_afs.o
1578 mod-afs.o: mod-afs.c
1579 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -c -o $@ $<
1581 mod-afs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1582 sh $(srcdir)/genmodsrc.sh 'afs' $< > $@ || (rm -f $@; exit 1)
1584 ifneq ($(afs_mod_EXPORTS),no)
1585 def-afs.lst: pre-afs.o
1586 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 afs/' > $@
1587 endif
1589 und-afs.lst: pre-afs.o
1590 echo 'afs' > $@
1591 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1593 afs_mod-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
1594 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -MD -c -o $@ $<
1595 -include afs_mod-fs_afs.d
1597 CLEANFILES += cmd-afs_mod-fs_afs.lst fs-afs_mod-fs_afs.lst partmap-afs_mod-fs_afs.lst
1598 COMMANDFILES += cmd-afs_mod-fs_afs.lst
1599 FSFILES += fs-afs_mod-fs_afs.lst
1600 PARTMAPFILES += partmap-afs_mod-fs_afs.lst
1602 cmd-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) gencmdlist.sh
1603 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh afs > $@ || (rm -f $@; exit 1)
1605 fs-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genfslist.sh
1606 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh afs > $@ || (rm -f $@; exit 1)
1608 partmap-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genpartmaplist.sh
1609 set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh afs > $@ || (rm -f $@; exit 1)
1612 afs_mod_CFLAGS = $(COMMON_CFLAGS)
1613 afs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1615 # Partition maps.
1616 pkglib_MODULES += amiga.mod apple.mod pc.mod sun.mod acorn.mod gpt.mod
1618 # For amiga.mod
1619 amiga_mod_SOURCES = partmap/amiga.c
1620 CLEANFILES += amiga.mod mod-amiga.o mod-amiga.c pre-amiga.o amiga_mod-partmap_amiga.o und-amiga.lst
1621 ifneq ($(amiga_mod_EXPORTS),no)
1622 CLEANFILES += def-amiga.lst
1623 DEFSYMFILES += def-amiga.lst
1624 endif
1625 MOSTLYCLEANFILES += amiga_mod-partmap_amiga.d
1626 UNDSYMFILES += und-amiga.lst
1628 amiga.mod: pre-amiga.o mod-amiga.o $(TARGET_OBJ2ELF)
1629 -rm -f $@
1630 $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-amiga.o mod-amiga.o
1631 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1632 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1634 pre-amiga.o: $(amiga_mod_DEPENDENCIES) amiga_mod-partmap_amiga.o
1635 -rm -f $@
1636 $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ amiga_mod-partmap_amiga.o
1638 mod-amiga.o: mod-amiga.c
1639 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -c -o $@ $<
1641 mod-amiga.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1642 sh $(srcdir)/genmodsrc.sh 'amiga' $< > $@ || (rm -f $@; exit 1)
1644 ifneq ($(amiga_mod_EXPORTS),no)
1645 def-amiga.lst: pre-amiga.o
1646 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 amiga/' > $@
1647 endif
1649 und-amiga.lst: pre-amiga.o
1650 echo 'amiga' > $@
1651 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1653 amiga_mod-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES)
1654 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -MD -c -o $@ $<
1655 -include amiga_mod-partmap_amiga.d
1657 CLEANFILES += cmd-amiga_mod-partmap_amiga.lst fs-amiga_mod-partmap_amiga.lst partmap-amiga_mod-partmap_amiga.lst
1658 COMMANDFILES += cmd-amiga_mod-partmap_amiga.lst
1659 FSFILES += fs-amiga_mod-partmap_amiga.lst
1660 PARTMAPFILES += partmap-amiga_mod-partmap_amiga.lst
1662 cmd-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) gencmdlist.sh
1663 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh amiga > $@ || (rm -f $@; exit 1)
1665 fs-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genfslist.sh
1666 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh amiga > $@ || (rm -f $@; exit 1)
1668 partmap-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genpartmaplist.sh
1669 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh amiga > $@ || (rm -f $@; exit 1)
1672 amiga_mod_CFLAGS = $(COMMON_CFLAGS)
1673 amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
1675 # For apple.mod
1676 apple_mod_SOURCES = partmap/apple.c
1677 CLEANFILES += apple.mod mod-apple.o mod-apple.c pre-apple.o apple_mod-partmap_apple.o und-apple.lst
1678 ifneq ($(apple_mod_EXPORTS),no)
1679 CLEANFILES += def-apple.lst
1680 DEFSYMFILES += def-apple.lst
1681 endif
1682 MOSTLYCLEANFILES += apple_mod-partmap_apple.d
1683 UNDSYMFILES += und-apple.lst
1685 apple.mod: pre-apple.o mod-apple.o $(TARGET_OBJ2ELF)
1686 -rm -f $@
1687 $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-apple.o mod-apple.o
1688 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1689 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1691 pre-apple.o: $(apple_mod_DEPENDENCIES) apple_mod-partmap_apple.o
1692 -rm -f $@
1693 $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ apple_mod-partmap_apple.o
1695 mod-apple.o: mod-apple.c
1696 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -c -o $@ $<
1698 mod-apple.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1699 sh $(srcdir)/genmodsrc.sh 'apple' $< > $@ || (rm -f $@; exit 1)
1701 ifneq ($(apple_mod_EXPORTS),no)
1702 def-apple.lst: pre-apple.o
1703 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 apple/' > $@
1704 endif
1706 und-apple.lst: pre-apple.o
1707 echo 'apple' > $@
1708 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1710 apple_mod-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
1711 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -MD -c -o $@ $<
1712 -include apple_mod-partmap_apple.d
1714 CLEANFILES += cmd-apple_mod-partmap_apple.lst fs-apple_mod-partmap_apple.lst partmap-apple_mod-partmap_apple.lst
1715 COMMANDFILES += cmd-apple_mod-partmap_apple.lst
1716 FSFILES += fs-apple_mod-partmap_apple.lst
1717 PARTMAPFILES += partmap-apple_mod-partmap_apple.lst
1719 cmd-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) gencmdlist.sh
1720 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh apple > $@ || (rm -f $@; exit 1)
1722 fs-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genfslist.sh
1723 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh apple > $@ || (rm -f $@; exit 1)
1725 partmap-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genpartmaplist.sh
1726 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh apple > $@ || (rm -f $@; exit 1)
1729 apple_mod_CFLAGS = $(COMMON_CFLAGS)
1730 apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
1732 # For pc.mod
1733 pc_mod_SOURCES = partmap/pc.c
1734 CLEANFILES += pc.mod mod-pc.o mod-pc.c pre-pc.o pc_mod-partmap_pc.o und-pc.lst
1735 ifneq ($(pc_mod_EXPORTS),no)
1736 CLEANFILES += def-pc.lst
1737 DEFSYMFILES += def-pc.lst
1738 endif
1739 MOSTLYCLEANFILES += pc_mod-partmap_pc.d
1740 UNDSYMFILES += und-pc.lst
1742 pc.mod: pre-pc.o mod-pc.o $(TARGET_OBJ2ELF)
1743 -rm -f $@
1744 $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-pc.o mod-pc.o
1745 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1746 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1748 pre-pc.o: $(pc_mod_DEPENDENCIES) pc_mod-partmap_pc.o
1749 -rm -f $@
1750 $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pc_mod-partmap_pc.o
1752 mod-pc.o: mod-pc.c
1753 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -c -o $@ $<
1755 mod-pc.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1756 sh $(srcdir)/genmodsrc.sh 'pc' $< > $@ || (rm -f $@; exit 1)
1758 ifneq ($(pc_mod_EXPORTS),no)
1759 def-pc.lst: pre-pc.o
1760 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 pc/' > $@
1761 endif
1763 und-pc.lst: pre-pc.o
1764 echo 'pc' > $@
1765 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1767 pc_mod-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
1768 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -MD -c -o $@ $<
1769 -include pc_mod-partmap_pc.d
1771 CLEANFILES += cmd-pc_mod-partmap_pc.lst fs-pc_mod-partmap_pc.lst partmap-pc_mod-partmap_pc.lst
1772 COMMANDFILES += cmd-pc_mod-partmap_pc.lst
1773 FSFILES += fs-pc_mod-partmap_pc.lst
1774 PARTMAPFILES += partmap-pc_mod-partmap_pc.lst
1776 cmd-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) gencmdlist.sh
1777 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh pc > $@ || (rm -f $@; exit 1)
1779 fs-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) genfslist.sh
1780 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh pc > $@ || (rm -f $@; exit 1)
1782 partmap-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) genpartmaplist.sh
1783 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh pc > $@ || (rm -f $@; exit 1)
1786 pc_mod_CFLAGS = $(COMMON_CFLAGS)
1787 pc_mod_LDFLAGS = $(COMMON_LDFLAGS)
1789 # For sun.mod
1790 sun_mod_SOURCES = partmap/sun.c
1791 CLEANFILES += sun.mod mod-sun.o mod-sun.c pre-sun.o sun_mod-partmap_sun.o und-sun.lst
1792 ifneq ($(sun_mod_EXPORTS),no)
1793 CLEANFILES += def-sun.lst
1794 DEFSYMFILES += def-sun.lst
1795 endif
1796 MOSTLYCLEANFILES += sun_mod-partmap_sun.d
1797 UNDSYMFILES += und-sun.lst
1799 sun.mod: pre-sun.o mod-sun.o $(TARGET_OBJ2ELF)
1800 -rm -f $@
1801 $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sun.o mod-sun.o
1802 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1803 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1805 pre-sun.o: $(sun_mod_DEPENDENCIES) sun_mod-partmap_sun.o
1806 -rm -f $@
1807 $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sun_mod-partmap_sun.o
1809 mod-sun.o: mod-sun.c
1810 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
1812 mod-sun.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1813 sh $(srcdir)/genmodsrc.sh 'sun' $< > $@ || (rm -f $@; exit 1)
1815 ifneq ($(sun_mod_EXPORTS),no)
1816 def-sun.lst: pre-sun.o
1817 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sun/' > $@
1818 endif
1820 und-sun.lst: pre-sun.o
1821 echo 'sun' > $@
1822 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1824 sun_mod-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES)
1825 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -MD -c -o $@ $<
1826 -include sun_mod-partmap_sun.d
1828 CLEANFILES += cmd-sun_mod-partmap_sun.lst fs-sun_mod-partmap_sun.lst partmap-sun_mod-partmap_sun.lst
1829 COMMANDFILES += cmd-sun_mod-partmap_sun.lst
1830 FSFILES += fs-sun_mod-partmap_sun.lst
1831 PARTMAPFILES += partmap-sun_mod-partmap_sun.lst
1833 cmd-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) gencmdlist.sh
1834 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sun > $@ || (rm -f $@; exit 1)
1836 fs-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genfslist.sh
1837 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sun > $@ || (rm -f $@; exit 1)
1839 partmap-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genpartmaplist.sh
1840 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sun > $@ || (rm -f $@; exit 1)
1843 sun_mod_CFLAGS = $(COMMON_CFLAGS)
1844 sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
1846 # For acorn.mod
1847 acorn_mod_SOURCES = partmap/acorn.c
1848 CLEANFILES += acorn.mod mod-acorn.o mod-acorn.c pre-acorn.o acorn_mod-partmap_acorn.o und-acorn.lst
1849 ifneq ($(acorn_mod_EXPORTS),no)
1850 CLEANFILES += def-acorn.lst
1851 DEFSYMFILES += def-acorn.lst
1852 endif
1853 MOSTLYCLEANFILES += acorn_mod-partmap_acorn.d
1854 UNDSYMFILES += und-acorn.lst
1856 acorn.mod: pre-acorn.o mod-acorn.o $(TARGET_OBJ2ELF)
1857 -rm -f $@
1858 $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-acorn.o mod-acorn.o
1859 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1860 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1862 pre-acorn.o: $(acorn_mod_DEPENDENCIES) acorn_mod-partmap_acorn.o
1863 -rm -f $@
1864 $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ acorn_mod-partmap_acorn.o
1866 mod-acorn.o: mod-acorn.c
1867 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -c -o $@ $<
1869 mod-acorn.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1870 sh $(srcdir)/genmodsrc.sh 'acorn' $< > $@ || (rm -f $@; exit 1)
1872 ifneq ($(acorn_mod_EXPORTS),no)
1873 def-acorn.lst: pre-acorn.o
1874 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 acorn/' > $@
1875 endif
1877 und-acorn.lst: pre-acorn.o
1878 echo 'acorn' > $@
1879 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1881 acorn_mod-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES)
1882 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -MD -c -o $@ $<
1883 -include acorn_mod-partmap_acorn.d
1885 CLEANFILES += cmd-acorn_mod-partmap_acorn.lst fs-acorn_mod-partmap_acorn.lst partmap-acorn_mod-partmap_acorn.lst
1886 COMMANDFILES += cmd-acorn_mod-partmap_acorn.lst
1887 FSFILES += fs-acorn_mod-partmap_acorn.lst
1888 PARTMAPFILES += partmap-acorn_mod-partmap_acorn.lst
1890 cmd-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) gencmdlist.sh
1891 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh acorn > $@ || (rm -f $@; exit 1)
1893 fs-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genfslist.sh
1894 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh acorn > $@ || (rm -f $@; exit 1)
1896 partmap-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genpartmaplist.sh
1897 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh acorn > $@ || (rm -f $@; exit 1)
1900 acorn_mod_CFLAGS = $(COMMON_CFLAGS)
1901 acorn_mod_LDFLAGS = $(COMMON_LDFLAGS)
1903 # For gpt.mod
1904 gpt_mod_SOURCES = partmap/gpt.c
1905 CLEANFILES += gpt.mod mod-gpt.o mod-gpt.c pre-gpt.o gpt_mod-partmap_gpt.o und-gpt.lst
1906 ifneq ($(gpt_mod_EXPORTS),no)
1907 CLEANFILES += def-gpt.lst
1908 DEFSYMFILES += def-gpt.lst
1909 endif
1910 MOSTLYCLEANFILES += gpt_mod-partmap_gpt.d
1911 UNDSYMFILES += und-gpt.lst
1913 gpt.mod: pre-gpt.o mod-gpt.o $(TARGET_OBJ2ELF)
1914 -rm -f $@
1915 $(TARGET_CC) $(gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-gpt.o mod-gpt.o
1916 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1917 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1919 pre-gpt.o: $(gpt_mod_DEPENDENCIES) gpt_mod-partmap_gpt.o
1920 -rm -f $@
1921 $(TARGET_CC) $(gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gpt_mod-partmap_gpt.o
1923 mod-gpt.o: mod-gpt.c
1924 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -c -o $@ $<
1926 mod-gpt.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1927 sh $(srcdir)/genmodsrc.sh 'gpt' $< > $@ || (rm -f $@; exit 1)
1929 ifneq ($(gpt_mod_EXPORTS),no)
1930 def-gpt.lst: pre-gpt.o
1931 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gpt/' > $@
1932 endif
1934 und-gpt.lst: pre-gpt.o
1935 echo 'gpt' > $@
1936 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1938 gpt_mod-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
1939 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -MD -c -o $@ $<
1940 -include gpt_mod-partmap_gpt.d
1942 CLEANFILES += cmd-gpt_mod-partmap_gpt.lst fs-gpt_mod-partmap_gpt.lst partmap-gpt_mod-partmap_gpt.lst
1943 COMMANDFILES += cmd-gpt_mod-partmap_gpt.lst
1944 FSFILES += fs-gpt_mod-partmap_gpt.lst
1945 PARTMAPFILES += partmap-gpt_mod-partmap_gpt.lst
1947 cmd-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) gencmdlist.sh
1948 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh gpt > $@ || (rm -f $@; exit 1)
1950 fs-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genfslist.sh
1951 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh gpt > $@ || (rm -f $@; exit 1)
1953 partmap-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genpartmaplist.sh
1954 set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh gpt > $@ || (rm -f $@; exit 1)
1957 gpt_mod_CFLAGS = $(COMMON_CFLAGS)
1958 gpt_mod_LDFLAGS = $(COMMON_LDFLAGS)
1960 # Special disk structures and generic drivers
1962 pkglib_MODULES += raid.mod raid5rec.mod raid6rec.mod mdraid.mod dm_nv.mod \
1963 lvm.mod scsi.mod
1965 # For raid.mod
1966 raid_mod_SOURCES = disk/raid.c
1967 CLEANFILES += raid.mod mod-raid.o mod-raid.c pre-raid.o raid_mod-disk_raid.o und-raid.lst
1968 ifneq ($(raid_mod_EXPORTS),no)
1969 CLEANFILES += def-raid.lst
1970 DEFSYMFILES += def-raid.lst
1971 endif
1972 MOSTLYCLEANFILES += raid_mod-disk_raid.d
1973 UNDSYMFILES += und-raid.lst
1975 raid.mod: pre-raid.o mod-raid.o $(TARGET_OBJ2ELF)
1976 -rm -f $@
1977 $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-raid.o mod-raid.o
1978 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1979 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1981 pre-raid.o: $(raid_mod_DEPENDENCIES) raid_mod-disk_raid.o
1982 -rm -f $@
1983 $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid_mod-disk_raid.o
1985 mod-raid.o: mod-raid.c
1986 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -c -o $@ $<
1988 mod-raid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
1989 sh $(srcdir)/genmodsrc.sh 'raid' $< > $@ || (rm -f $@; exit 1)
1991 ifneq ($(raid_mod_EXPORTS),no)
1992 def-raid.lst: pre-raid.o
1993 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid/' > $@
1994 endif
1996 und-raid.lst: pre-raid.o
1997 echo 'raid' > $@
1998 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2000 raid_mod-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
2001 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -MD -c -o $@ $<
2002 -include raid_mod-disk_raid.d
2004 CLEANFILES += cmd-raid_mod-disk_raid.lst fs-raid_mod-disk_raid.lst partmap-raid_mod-disk_raid.lst
2005 COMMANDFILES += cmd-raid_mod-disk_raid.lst
2006 FSFILES += fs-raid_mod-disk_raid.lst
2007 PARTMAPFILES += partmap-raid_mod-disk_raid.lst
2009 cmd-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) gencmdlist.sh
2010 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh raid > $@ || (rm -f $@; exit 1)
2012 fs-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genfslist.sh
2013 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh raid > $@ || (rm -f $@; exit 1)
2015 partmap-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genpartmaplist.sh
2016 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh raid > $@ || (rm -f $@; exit 1)
2019 raid_mod_CFLAGS = $(COMMON_CFLAGS)
2020 raid_mod_LDFLAGS = $(COMMON_LDFLAGS)
2022 # For raid5rec.mod
2023 raid5rec_mod_SOURCES = disk/raid5_recover.c
2024 CLEANFILES += raid5rec.mod mod-raid5rec.o mod-raid5rec.c pre-raid5rec.o raid5rec_mod-disk_raid5_recover.o und-raid5rec.lst
2025 ifneq ($(raid5rec_mod_EXPORTS),no)
2026 CLEANFILES += def-raid5rec.lst
2027 DEFSYMFILES += def-raid5rec.lst
2028 endif
2029 MOSTLYCLEANFILES += raid5rec_mod-disk_raid5_recover.d
2030 UNDSYMFILES += und-raid5rec.lst
2032 raid5rec.mod: pre-raid5rec.o mod-raid5rec.o $(TARGET_OBJ2ELF)
2033 -rm -f $@
2034 $(TARGET_CC) $(raid5rec_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-raid5rec.o mod-raid5rec.o
2035 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2036 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2038 pre-raid5rec.o: $(raid5rec_mod_DEPENDENCIES) raid5rec_mod-disk_raid5_recover.o
2039 -rm -f $@
2040 $(TARGET_CC) $(raid5rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid5rec_mod-disk_raid5_recover.o
2042 mod-raid5rec.o: mod-raid5rec.c
2043 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -c -o $@ $<
2045 mod-raid5rec.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2046 sh $(srcdir)/genmodsrc.sh 'raid5rec' $< > $@ || (rm -f $@; exit 1)
2048 ifneq ($(raid5rec_mod_EXPORTS),no)
2049 def-raid5rec.lst: pre-raid5rec.o
2050 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid5rec/' > $@
2051 endif
2053 und-raid5rec.lst: pre-raid5rec.o
2054 echo 'raid5rec' > $@
2055 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2057 raid5rec_mod-disk_raid5_recover.o: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES)
2058 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -MD -c -o $@ $<
2059 -include raid5rec_mod-disk_raid5_recover.d
2061 CLEANFILES += cmd-raid5rec_mod-disk_raid5_recover.lst fs-raid5rec_mod-disk_raid5_recover.lst partmap-raid5rec_mod-disk_raid5_recover.lst
2062 COMMANDFILES += cmd-raid5rec_mod-disk_raid5_recover.lst
2063 FSFILES += fs-raid5rec_mod-disk_raid5_recover.lst
2064 PARTMAPFILES += partmap-raid5rec_mod-disk_raid5_recover.lst
2066 cmd-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) gencmdlist.sh
2067 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh raid5rec > $@ || (rm -f $@; exit 1)
2069 fs-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genfslist.sh
2070 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh raid5rec > $@ || (rm -f $@; exit 1)
2072 partmap-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genpartmaplist.sh
2073 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh raid5rec > $@ || (rm -f $@; exit 1)
2076 raid5rec_mod_CFLAGS = $(COMMON_CFLAGS)
2077 raid5rec_mod_LDFLAGS = $(COMMON_LDFLAGS)
2079 # For raid6rec.mod
2080 raid6rec_mod_SOURCES = disk/raid6_recover.c
2081 CLEANFILES += raid6rec.mod mod-raid6rec.o mod-raid6rec.c pre-raid6rec.o raid6rec_mod-disk_raid6_recover.o und-raid6rec.lst
2082 ifneq ($(raid6rec_mod_EXPORTS),no)
2083 CLEANFILES += def-raid6rec.lst
2084 DEFSYMFILES += def-raid6rec.lst
2085 endif
2086 MOSTLYCLEANFILES += raid6rec_mod-disk_raid6_recover.d
2087 UNDSYMFILES += und-raid6rec.lst
2089 raid6rec.mod: pre-raid6rec.o mod-raid6rec.o $(TARGET_OBJ2ELF)
2090 -rm -f $@
2091 $(TARGET_CC) $(raid6rec_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-raid6rec.o mod-raid6rec.o
2092 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2093 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2095 pre-raid6rec.o: $(raid6rec_mod_DEPENDENCIES) raid6rec_mod-disk_raid6_recover.o
2096 -rm -f $@
2097 $(TARGET_CC) $(raid6rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid6rec_mod-disk_raid6_recover.o
2099 mod-raid6rec.o: mod-raid6rec.c
2100 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -c -o $@ $<
2102 mod-raid6rec.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2103 sh $(srcdir)/genmodsrc.sh 'raid6rec' $< > $@ || (rm -f $@; exit 1)
2105 ifneq ($(raid6rec_mod_EXPORTS),no)
2106 def-raid6rec.lst: pre-raid6rec.o
2107 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid6rec/' > $@
2108 endif
2110 und-raid6rec.lst: pre-raid6rec.o
2111 echo 'raid6rec' > $@
2112 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2114 raid6rec_mod-disk_raid6_recover.o: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES)
2115 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -MD -c -o $@ $<
2116 -include raid6rec_mod-disk_raid6_recover.d
2118 CLEANFILES += cmd-raid6rec_mod-disk_raid6_recover.lst fs-raid6rec_mod-disk_raid6_recover.lst partmap-raid6rec_mod-disk_raid6_recover.lst
2119 COMMANDFILES += cmd-raid6rec_mod-disk_raid6_recover.lst
2120 FSFILES += fs-raid6rec_mod-disk_raid6_recover.lst
2121 PARTMAPFILES += partmap-raid6rec_mod-disk_raid6_recover.lst
2123 cmd-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) gencmdlist.sh
2124 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh raid6rec > $@ || (rm -f $@; exit 1)
2126 fs-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genfslist.sh
2127 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh raid6rec > $@ || (rm -f $@; exit 1)
2129 partmap-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genpartmaplist.sh
2130 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh raid6rec > $@ || (rm -f $@; exit 1)
2133 raid6rec_mod_CFLAGS = $(COMMON_CFLAGS)
2134 raid6rec_mod_LDFLAGS = $(COMMON_LDFLAGS)
2136 # For mdraid.mod
2137 mdraid_mod_SOURCES = disk/mdraid_linux.c
2138 CLEANFILES += mdraid.mod mod-mdraid.o mod-mdraid.c pre-mdraid.o mdraid_mod-disk_mdraid_linux.o und-mdraid.lst
2139 ifneq ($(mdraid_mod_EXPORTS),no)
2140 CLEANFILES += def-mdraid.lst
2141 DEFSYMFILES += def-mdraid.lst
2142 endif
2143 MOSTLYCLEANFILES += mdraid_mod-disk_mdraid_linux.d
2144 UNDSYMFILES += und-mdraid.lst
2146 mdraid.mod: pre-mdraid.o mod-mdraid.o $(TARGET_OBJ2ELF)
2147 -rm -f $@
2148 $(TARGET_CC) $(mdraid_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-mdraid.o mod-mdraid.o
2149 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2150 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2152 pre-mdraid.o: $(mdraid_mod_DEPENDENCIES) mdraid_mod-disk_mdraid_linux.o
2153 -rm -f $@
2154 $(TARGET_CC) $(mdraid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ mdraid_mod-disk_mdraid_linux.o
2156 mod-mdraid.o: mod-mdraid.c
2157 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -c -o $@ $<
2159 mod-mdraid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2160 sh $(srcdir)/genmodsrc.sh 'mdraid' $< > $@ || (rm -f $@; exit 1)
2162 ifneq ($(mdraid_mod_EXPORTS),no)
2163 def-mdraid.lst: pre-mdraid.o
2164 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 mdraid/' > $@
2165 endif
2167 und-mdraid.lst: pre-mdraid.o
2168 echo 'mdraid' > $@
2169 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2171 mdraid_mod-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES)
2172 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -MD -c -o $@ $<
2173 -include mdraid_mod-disk_mdraid_linux.d
2175 CLEANFILES += cmd-mdraid_mod-disk_mdraid_linux.lst fs-mdraid_mod-disk_mdraid_linux.lst partmap-mdraid_mod-disk_mdraid_linux.lst
2176 COMMANDFILES += cmd-mdraid_mod-disk_mdraid_linux.lst
2177 FSFILES += fs-mdraid_mod-disk_mdraid_linux.lst
2178 PARTMAPFILES += partmap-mdraid_mod-disk_mdraid_linux.lst
2180 cmd-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) gencmdlist.sh
2181 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mdraid > $@ || (rm -f $@; exit 1)
2183 fs-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genfslist.sh
2184 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mdraid > $@ || (rm -f $@; exit 1)
2186 partmap-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genpartmaplist.sh
2187 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mdraid > $@ || (rm -f $@; exit 1)
2190 mdraid_mod_CFLAGS = $(COMMON_CFLAGS)
2191 mdraid_mod_LDFLAGS = $(COMMON_LDFLAGS)
2193 # For dm_nv.mod
2194 dm_nv_mod_SOURCES = disk/dmraid_nvidia.c
2195 CLEANFILES += dm_nv.mod mod-dm_nv.o mod-dm_nv.c pre-dm_nv.o dm_nv_mod-disk_dmraid_nvidia.o und-dm_nv.lst
2196 ifneq ($(dm_nv_mod_EXPORTS),no)
2197 CLEANFILES += def-dm_nv.lst
2198 DEFSYMFILES += def-dm_nv.lst
2199 endif
2200 MOSTLYCLEANFILES += dm_nv_mod-disk_dmraid_nvidia.d
2201 UNDSYMFILES += und-dm_nv.lst
2203 dm_nv.mod: pre-dm_nv.o mod-dm_nv.o $(TARGET_OBJ2ELF)
2204 -rm -f $@
2205 $(TARGET_CC) $(dm_nv_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-dm_nv.o mod-dm_nv.o
2206 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2207 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2209 pre-dm_nv.o: $(dm_nv_mod_DEPENDENCIES) dm_nv_mod-disk_dmraid_nvidia.o
2210 -rm -f $@
2211 $(TARGET_CC) $(dm_nv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ dm_nv_mod-disk_dmraid_nvidia.o
2213 mod-dm_nv.o: mod-dm_nv.c
2214 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -c -o $@ $<
2216 mod-dm_nv.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2217 sh $(srcdir)/genmodsrc.sh 'dm_nv' $< > $@ || (rm -f $@; exit 1)
2219 ifneq ($(dm_nv_mod_EXPORTS),no)
2220 def-dm_nv.lst: pre-dm_nv.o
2221 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 dm_nv/' > $@
2222 endif
2224 und-dm_nv.lst: pre-dm_nv.o
2225 echo 'dm_nv' > $@
2226 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2228 dm_nv_mod-disk_dmraid_nvidia.o: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES)
2229 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -MD -c -o $@ $<
2230 -include dm_nv_mod-disk_dmraid_nvidia.d
2232 CLEANFILES += cmd-dm_nv_mod-disk_dmraid_nvidia.lst fs-dm_nv_mod-disk_dmraid_nvidia.lst partmap-dm_nv_mod-disk_dmraid_nvidia.lst
2233 COMMANDFILES += cmd-dm_nv_mod-disk_dmraid_nvidia.lst
2234 FSFILES += fs-dm_nv_mod-disk_dmraid_nvidia.lst
2235 PARTMAPFILES += partmap-dm_nv_mod-disk_dmraid_nvidia.lst
2237 cmd-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) gencmdlist.sh
2238 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh dm_nv > $@ || (rm -f $@; exit 1)
2240 fs-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genfslist.sh
2241 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh dm_nv > $@ || (rm -f $@; exit 1)
2243 partmap-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genpartmaplist.sh
2244 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh dm_nv > $@ || (rm -f $@; exit 1)
2247 dm_nv_mod_CFLAGS = $(COMMON_CFLAGS)
2248 dm_nv_mod_LDFLAGS = $(COMMON_LDFLAGS)
2250 # For lvm.mod
2251 lvm_mod_SOURCES = disk/lvm.c
2252 CLEANFILES += lvm.mod mod-lvm.o mod-lvm.c pre-lvm.o lvm_mod-disk_lvm.o und-lvm.lst
2253 ifneq ($(lvm_mod_EXPORTS),no)
2254 CLEANFILES += def-lvm.lst
2255 DEFSYMFILES += def-lvm.lst
2256 endif
2257 MOSTLYCLEANFILES += lvm_mod-disk_lvm.d
2258 UNDSYMFILES += und-lvm.lst
2260 lvm.mod: pre-lvm.o mod-lvm.o $(TARGET_OBJ2ELF)
2261 -rm -f $@
2262 $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-lvm.o mod-lvm.o
2263 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2264 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2266 pre-lvm.o: $(lvm_mod_DEPENDENCIES) lvm_mod-disk_lvm.o
2267 -rm -f $@
2268 $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lvm_mod-disk_lvm.o
2270 mod-lvm.o: mod-lvm.c
2271 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -c -o $@ $<
2273 mod-lvm.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2274 sh $(srcdir)/genmodsrc.sh 'lvm' $< > $@ || (rm -f $@; exit 1)
2276 ifneq ($(lvm_mod_EXPORTS),no)
2277 def-lvm.lst: pre-lvm.o
2278 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lvm/' > $@
2279 endif
2281 und-lvm.lst: pre-lvm.o
2282 echo 'lvm' > $@
2283 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2285 lvm_mod-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
2286 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -MD -c -o $@ $<
2287 -include lvm_mod-disk_lvm.d
2289 CLEANFILES += cmd-lvm_mod-disk_lvm.lst fs-lvm_mod-disk_lvm.lst partmap-lvm_mod-disk_lvm.lst
2290 COMMANDFILES += cmd-lvm_mod-disk_lvm.lst
2291 FSFILES += fs-lvm_mod-disk_lvm.lst
2292 PARTMAPFILES += partmap-lvm_mod-disk_lvm.lst
2294 cmd-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) gencmdlist.sh
2295 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh lvm > $@ || (rm -f $@; exit 1)
2297 fs-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genfslist.sh
2298 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh lvm > $@ || (rm -f $@; exit 1)
2300 partmap-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genpartmaplist.sh
2301 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh lvm > $@ || (rm -f $@; exit 1)
2304 lvm_mod_CFLAGS = $(COMMON_CFLAGS)
2305 lvm_mod_LDFLAGS = $(COMMON_LDFLAGS)
2307 # For scsi.mod
2308 scsi_mod_SOURCES = disk/scsi.c
2309 CLEANFILES += scsi.mod mod-scsi.o mod-scsi.c pre-scsi.o scsi_mod-disk_scsi.o und-scsi.lst
2310 ifneq ($(scsi_mod_EXPORTS),no)
2311 CLEANFILES += def-scsi.lst
2312 DEFSYMFILES += def-scsi.lst
2313 endif
2314 MOSTLYCLEANFILES += scsi_mod-disk_scsi.d
2315 UNDSYMFILES += und-scsi.lst
2317 scsi.mod: pre-scsi.o mod-scsi.o $(TARGET_OBJ2ELF)
2318 -rm -f $@
2319 $(TARGET_CC) $(scsi_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-scsi.o mod-scsi.o
2320 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2321 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2323 pre-scsi.o: $(scsi_mod_DEPENDENCIES) scsi_mod-disk_scsi.o
2324 -rm -f $@
2325 $(TARGET_CC) $(scsi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ scsi_mod-disk_scsi.o
2327 mod-scsi.o: mod-scsi.c
2328 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -c -o $@ $<
2330 mod-scsi.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2331 sh $(srcdir)/genmodsrc.sh 'scsi' $< > $@ || (rm -f $@; exit 1)
2333 ifneq ($(scsi_mod_EXPORTS),no)
2334 def-scsi.lst: pre-scsi.o
2335 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 scsi/' > $@
2336 endif
2338 und-scsi.lst: pre-scsi.o
2339 echo 'scsi' > $@
2340 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2342 scsi_mod-disk_scsi.o: disk/scsi.c $(disk/scsi.c_DEPENDENCIES)
2343 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -MD -c -o $@ $<
2344 -include scsi_mod-disk_scsi.d
2346 CLEANFILES += cmd-scsi_mod-disk_scsi.lst fs-scsi_mod-disk_scsi.lst partmap-scsi_mod-disk_scsi.lst
2347 COMMANDFILES += cmd-scsi_mod-disk_scsi.lst
2348 FSFILES += fs-scsi_mod-disk_scsi.lst
2349 PARTMAPFILES += partmap-scsi_mod-disk_scsi.lst
2351 cmd-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) gencmdlist.sh
2352 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh scsi > $@ || (rm -f $@; exit 1)
2354 fs-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genfslist.sh
2355 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh scsi > $@ || (rm -f $@; exit 1)
2357 partmap-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genpartmaplist.sh
2358 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh scsi > $@ || (rm -f $@; exit 1)
2361 scsi_mod_CFLAGS = $(COMMON_CFLAGS)
2362 scsi_mod_LDFLAGS = $(COMMON_LDFLAGS)
2364 # Commands.
2365 pkglib_MODULES += hello.mod boot.mod terminal.mod ls.mod \
2366 cmp.mod cat.mod help.mod search.mod \
2367 loopback.mod fs_uuid.mod configfile.mod echo.mod \
2368 terminfo.mod test.mod blocklist.mod hexdump.mod \
2369 read.mod sleep.mod loadenv.mod crc.mod
2371 # For hello.mod.
2372 hello_mod_SOURCES = hello/hello.c
2373 CLEANFILES += hello.mod mod-hello.o mod-hello.c pre-hello.o hello_mod-hello_hello.o und-hello.lst
2374 ifneq ($(hello_mod_EXPORTS),no)
2375 CLEANFILES += def-hello.lst
2376 DEFSYMFILES += def-hello.lst
2377 endif
2378 MOSTLYCLEANFILES += hello_mod-hello_hello.d
2379 UNDSYMFILES += und-hello.lst
2381 hello.mod: pre-hello.o mod-hello.o $(TARGET_OBJ2ELF)
2382 -rm -f $@
2383 $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hello.o mod-hello.o
2384 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2385 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2387 pre-hello.o: $(hello_mod_DEPENDENCIES) hello_mod-hello_hello.o
2388 -rm -f $@
2389 $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hello_mod-hello_hello.o
2391 mod-hello.o: mod-hello.c
2392 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -c -o $@ $<
2394 mod-hello.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2395 sh $(srcdir)/genmodsrc.sh 'hello' $< > $@ || (rm -f $@; exit 1)
2397 ifneq ($(hello_mod_EXPORTS),no)
2398 def-hello.lst: pre-hello.o
2399 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hello/' > $@
2400 endif
2402 und-hello.lst: pre-hello.o
2403 echo 'hello' > $@
2404 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2406 hello_mod-hello_hello.o: hello/hello.c $(hello/hello.c_DEPENDENCIES)
2407 $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -MD -c -o $@ $<
2408 -include hello_mod-hello_hello.d
2410 CLEANFILES += cmd-hello_mod-hello_hello.lst fs-hello_mod-hello_hello.lst partmap-hello_mod-hello_hello.lst
2411 COMMANDFILES += cmd-hello_mod-hello_hello.lst
2412 FSFILES += fs-hello_mod-hello_hello.lst
2413 PARTMAPFILES += partmap-hello_mod-hello_hello.lst
2415 cmd-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) gencmdlist.sh
2416 set -e; $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh hello > $@ || (rm -f $@; exit 1)
2418 fs-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genfslist.sh
2419 set -e; $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh hello > $@ || (rm -f $@; exit 1)
2421 partmap-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genpartmaplist.sh
2422 set -e; $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh hello > $@ || (rm -f $@; exit 1)
2425 hello_mod_CFLAGS = $(COMMON_CFLAGS)
2426 hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
2428 # For boot.mod.
2429 boot_mod_SOURCES = commands/boot.c
2430 CLEANFILES += boot.mod mod-boot.o mod-boot.c pre-boot.o boot_mod-commands_boot.o und-boot.lst
2431 ifneq ($(boot_mod_EXPORTS),no)
2432 CLEANFILES += def-boot.lst
2433 DEFSYMFILES += def-boot.lst
2434 endif
2435 MOSTLYCLEANFILES += boot_mod-commands_boot.d
2436 UNDSYMFILES += und-boot.lst
2438 boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF)
2439 -rm -f $@
2440 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-boot.o mod-boot.o
2441 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2442 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2444 pre-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o
2445 -rm -f $@
2446 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ boot_mod-commands_boot.o
2448 mod-boot.o: mod-boot.c
2449 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $<
2451 mod-boot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2452 sh $(srcdir)/genmodsrc.sh 'boot' $< > $@ || (rm -f $@; exit 1)
2454 ifneq ($(boot_mod_EXPORTS),no)
2455 def-boot.lst: pre-boot.o
2456 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 boot/' > $@
2457 endif
2459 und-boot.lst: pre-boot.o
2460 echo 'boot' > $@
2461 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2463 boot_mod-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES)
2464 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -MD -c -o $@ $<
2465 -include boot_mod-commands_boot.d
2467 CLEANFILES += cmd-boot_mod-commands_boot.lst fs-boot_mod-commands_boot.lst partmap-boot_mod-commands_boot.lst
2468 COMMANDFILES += cmd-boot_mod-commands_boot.lst
2469 FSFILES += fs-boot_mod-commands_boot.lst
2470 PARTMAPFILES += partmap-boot_mod-commands_boot.lst
2472 cmd-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) gencmdlist.sh
2473 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1)
2475 fs-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genfslist.sh
2476 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1)
2478 partmap-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genpartmaplist.sh
2479 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh boot > $@ || (rm -f $@; exit 1)
2482 boot_mod_CFLAGS = $(COMMON_CFLAGS)
2483 boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
2485 # For terminal.mod.
2486 terminal_mod_SOURCES = commands/terminal.c
2487 CLEANFILES += terminal.mod mod-terminal.o mod-terminal.c pre-terminal.o terminal_mod-commands_terminal.o und-terminal.lst
2488 ifneq ($(terminal_mod_EXPORTS),no)
2489 CLEANFILES += def-terminal.lst
2490 DEFSYMFILES += def-terminal.lst
2491 endif
2492 MOSTLYCLEANFILES += terminal_mod-commands_terminal.d
2493 UNDSYMFILES += und-terminal.lst
2495 terminal.mod: pre-terminal.o mod-terminal.o $(TARGET_OBJ2ELF)
2496 -rm -f $@
2497 $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-terminal.o mod-terminal.o
2498 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2499 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2501 pre-terminal.o: $(terminal_mod_DEPENDENCIES) terminal_mod-commands_terminal.o
2502 -rm -f $@
2503 $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ terminal_mod-commands_terminal.o
2505 mod-terminal.o: mod-terminal.c
2506 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -c -o $@ $<
2508 mod-terminal.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2509 sh $(srcdir)/genmodsrc.sh 'terminal' $< > $@ || (rm -f $@; exit 1)
2511 ifneq ($(terminal_mod_EXPORTS),no)
2512 def-terminal.lst: pre-terminal.o
2513 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 terminal/' > $@
2514 endif
2516 und-terminal.lst: pre-terminal.o
2517 echo 'terminal' > $@
2518 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2520 terminal_mod-commands_terminal.o: commands/terminal.c $(commands/terminal.c_DEPENDENCIES)
2521 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -MD -c -o $@ $<
2522 -include terminal_mod-commands_terminal.d
2524 CLEANFILES += cmd-terminal_mod-commands_terminal.lst fs-terminal_mod-commands_terminal.lst partmap-terminal_mod-commands_terminal.lst
2525 COMMANDFILES += cmd-terminal_mod-commands_terminal.lst
2526 FSFILES += fs-terminal_mod-commands_terminal.lst
2527 PARTMAPFILES += partmap-terminal_mod-commands_terminal.lst
2529 cmd-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) gencmdlist.sh
2530 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh terminal > $@ || (rm -f $@; exit 1)
2532 fs-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) genfslist.sh
2533 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh terminal > $@ || (rm -f $@; exit 1)
2535 partmap-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) genpartmaplist.sh
2536 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh terminal > $@ || (rm -f $@; exit 1)
2539 terminal_mod_CFLAGS = $(COMMON_CFLAGS)
2540 terminal_mod_LDFLAGS = $(COMMON_LDFLAGS)
2542 # For ls.mod.
2543 ls_mod_SOURCES = commands/ls.c
2544 CLEANFILES += ls.mod mod-ls.o mod-ls.c pre-ls.o ls_mod-commands_ls.o und-ls.lst
2545 ifneq ($(ls_mod_EXPORTS),no)
2546 CLEANFILES += def-ls.lst
2547 DEFSYMFILES += def-ls.lst
2548 endif
2549 MOSTLYCLEANFILES += ls_mod-commands_ls.d
2550 UNDSYMFILES += und-ls.lst
2552 ls.mod: pre-ls.o mod-ls.o $(TARGET_OBJ2ELF)
2553 -rm -f $@
2554 $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ls.o mod-ls.o
2555 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2556 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2558 pre-ls.o: $(ls_mod_DEPENDENCIES) ls_mod-commands_ls.o
2559 -rm -f $@
2560 $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ls_mod-commands_ls.o
2562 mod-ls.o: mod-ls.c
2563 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -c -o $@ $<
2565 mod-ls.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2566 sh $(srcdir)/genmodsrc.sh 'ls' $< > $@ || (rm -f $@; exit 1)
2568 ifneq ($(ls_mod_EXPORTS),no)
2569 def-ls.lst: pre-ls.o
2570 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ls/' > $@
2571 endif
2573 und-ls.lst: pre-ls.o
2574 echo 'ls' > $@
2575 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2577 ls_mod-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
2578 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -MD -c -o $@ $<
2579 -include ls_mod-commands_ls.d
2581 CLEANFILES += cmd-ls_mod-commands_ls.lst fs-ls_mod-commands_ls.lst partmap-ls_mod-commands_ls.lst
2582 COMMANDFILES += cmd-ls_mod-commands_ls.lst
2583 FSFILES += fs-ls_mod-commands_ls.lst
2584 PARTMAPFILES += partmap-ls_mod-commands_ls.lst
2586 cmd-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) gencmdlist.sh
2587 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ls > $@ || (rm -f $@; exit 1)
2589 fs-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genfslist.sh
2590 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ls > $@ || (rm -f $@; exit 1)
2592 partmap-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genpartmaplist.sh
2593 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ls > $@ || (rm -f $@; exit 1)
2596 ls_mod_CFLAGS = $(COMMON_CFLAGS)
2597 ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
2599 # For cmp.mod.
2600 cmp_mod_SOURCES = commands/cmp.c
2601 CLEANFILES += cmp.mod mod-cmp.o mod-cmp.c pre-cmp.o cmp_mod-commands_cmp.o und-cmp.lst
2602 ifneq ($(cmp_mod_EXPORTS),no)
2603 CLEANFILES += def-cmp.lst
2604 DEFSYMFILES += def-cmp.lst
2605 endif
2606 MOSTLYCLEANFILES += cmp_mod-commands_cmp.d
2607 UNDSYMFILES += und-cmp.lst
2609 cmp.mod: pre-cmp.o mod-cmp.o $(TARGET_OBJ2ELF)
2610 -rm -f $@
2611 $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cmp.o mod-cmp.o
2612 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2613 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2615 pre-cmp.o: $(cmp_mod_DEPENDENCIES) cmp_mod-commands_cmp.o
2616 -rm -f $@
2617 $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cmp_mod-commands_cmp.o
2619 mod-cmp.o: mod-cmp.c
2620 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -c -o $@ $<
2622 mod-cmp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2623 sh $(srcdir)/genmodsrc.sh 'cmp' $< > $@ || (rm -f $@; exit 1)
2625 ifneq ($(cmp_mod_EXPORTS),no)
2626 def-cmp.lst: pre-cmp.o
2627 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cmp/' > $@
2628 endif
2630 und-cmp.lst: pre-cmp.o
2631 echo 'cmp' > $@
2632 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2634 cmp_mod-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES)
2635 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -MD -c -o $@ $<
2636 -include cmp_mod-commands_cmp.d
2638 CLEANFILES += cmd-cmp_mod-commands_cmp.lst fs-cmp_mod-commands_cmp.lst partmap-cmp_mod-commands_cmp.lst
2639 COMMANDFILES += cmd-cmp_mod-commands_cmp.lst
2640 FSFILES += fs-cmp_mod-commands_cmp.lst
2641 PARTMAPFILES += partmap-cmp_mod-commands_cmp.lst
2643 cmd-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) gencmdlist.sh
2644 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh cmp > $@ || (rm -f $@; exit 1)
2646 fs-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genfslist.sh
2647 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh cmp > $@ || (rm -f $@; exit 1)
2649 partmap-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genpartmaplist.sh
2650 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh cmp > $@ || (rm -f $@; exit 1)
2653 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
2654 cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
2656 # For cat.mod.
2657 cat_mod_SOURCES = commands/cat.c
2658 CLEANFILES += cat.mod mod-cat.o mod-cat.c pre-cat.o cat_mod-commands_cat.o und-cat.lst
2659 ifneq ($(cat_mod_EXPORTS),no)
2660 CLEANFILES += def-cat.lst
2661 DEFSYMFILES += def-cat.lst
2662 endif
2663 MOSTLYCLEANFILES += cat_mod-commands_cat.d
2664 UNDSYMFILES += und-cat.lst
2666 cat.mod: pre-cat.o mod-cat.o $(TARGET_OBJ2ELF)
2667 -rm -f $@
2668 $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cat.o mod-cat.o
2669 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2670 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2672 pre-cat.o: $(cat_mod_DEPENDENCIES) cat_mod-commands_cat.o
2673 -rm -f $@
2674 $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cat_mod-commands_cat.o
2676 mod-cat.o: mod-cat.c
2677 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -c -o $@ $<
2679 mod-cat.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2680 sh $(srcdir)/genmodsrc.sh 'cat' $< > $@ || (rm -f $@; exit 1)
2682 ifneq ($(cat_mod_EXPORTS),no)
2683 def-cat.lst: pre-cat.o
2684 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cat/' > $@
2685 endif
2687 und-cat.lst: pre-cat.o
2688 echo 'cat' > $@
2689 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2691 cat_mod-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES)
2692 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -MD -c -o $@ $<
2693 -include cat_mod-commands_cat.d
2695 CLEANFILES += cmd-cat_mod-commands_cat.lst fs-cat_mod-commands_cat.lst partmap-cat_mod-commands_cat.lst
2696 COMMANDFILES += cmd-cat_mod-commands_cat.lst
2697 FSFILES += fs-cat_mod-commands_cat.lst
2698 PARTMAPFILES += partmap-cat_mod-commands_cat.lst
2700 cmd-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) gencmdlist.sh
2701 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh cat > $@ || (rm -f $@; exit 1)
2703 fs-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genfslist.sh
2704 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh cat > $@ || (rm -f $@; exit 1)
2706 partmap-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genpartmaplist.sh
2707 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh cat > $@ || (rm -f $@; exit 1)
2710 cat_mod_CFLAGS = $(COMMON_CFLAGS)
2711 cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
2713 # For echo.mod
2714 echo_mod_SOURCES = commands/echo.c
2715 CLEANFILES += echo.mod mod-echo.o mod-echo.c pre-echo.o echo_mod-commands_echo.o und-echo.lst
2716 ifneq ($(echo_mod_EXPORTS),no)
2717 CLEANFILES += def-echo.lst
2718 DEFSYMFILES += def-echo.lst
2719 endif
2720 MOSTLYCLEANFILES += echo_mod-commands_echo.d
2721 UNDSYMFILES += und-echo.lst
2723 echo.mod: pre-echo.o mod-echo.o $(TARGET_OBJ2ELF)
2724 -rm -f $@
2725 $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-echo.o mod-echo.o
2726 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2727 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2729 pre-echo.o: $(echo_mod_DEPENDENCIES) echo_mod-commands_echo.o
2730 -rm -f $@
2731 $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ echo_mod-commands_echo.o
2733 mod-echo.o: mod-echo.c
2734 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -c -o $@ $<
2736 mod-echo.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2737 sh $(srcdir)/genmodsrc.sh 'echo' $< > $@ || (rm -f $@; exit 1)
2739 ifneq ($(echo_mod_EXPORTS),no)
2740 def-echo.lst: pre-echo.o
2741 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 echo/' > $@
2742 endif
2744 und-echo.lst: pre-echo.o
2745 echo 'echo' > $@
2746 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2748 echo_mod-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES)
2749 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -MD -c -o $@ $<
2750 -include echo_mod-commands_echo.d
2752 CLEANFILES += cmd-echo_mod-commands_echo.lst fs-echo_mod-commands_echo.lst partmap-echo_mod-commands_echo.lst
2753 COMMANDFILES += cmd-echo_mod-commands_echo.lst
2754 FSFILES += fs-echo_mod-commands_echo.lst
2755 PARTMAPFILES += partmap-echo_mod-commands_echo.lst
2757 cmd-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) gencmdlist.sh
2758 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh echo > $@ || (rm -f $@; exit 1)
2760 fs-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genfslist.sh
2761 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh echo > $@ || (rm -f $@; exit 1)
2763 partmap-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genpartmaplist.sh
2764 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh echo > $@ || (rm -f $@; exit 1)
2767 echo_mod_CFLAGS = $(COMMON_CFLAGS)
2768 echo_mod_LDFLAGS = $(COMMON_LDFLAGS)
2770 # For help.mod.
2771 help_mod_SOURCES = commands/help.c
2772 CLEANFILES += help.mod mod-help.o mod-help.c pre-help.o help_mod-commands_help.o und-help.lst
2773 ifneq ($(help_mod_EXPORTS),no)
2774 CLEANFILES += def-help.lst
2775 DEFSYMFILES += def-help.lst
2776 endif
2777 MOSTLYCLEANFILES += help_mod-commands_help.d
2778 UNDSYMFILES += und-help.lst
2780 help.mod: pre-help.o mod-help.o $(TARGET_OBJ2ELF)
2781 -rm -f $@
2782 $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-help.o mod-help.o
2783 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2784 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2786 pre-help.o: $(help_mod_DEPENDENCIES) help_mod-commands_help.o
2787 -rm -f $@
2788 $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ help_mod-commands_help.o
2790 mod-help.o: mod-help.c
2791 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -c -o $@ $<
2793 mod-help.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2794 sh $(srcdir)/genmodsrc.sh 'help' $< > $@ || (rm -f $@; exit 1)
2796 ifneq ($(help_mod_EXPORTS),no)
2797 def-help.lst: pre-help.o
2798 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 help/' > $@
2799 endif
2801 und-help.lst: pre-help.o
2802 echo 'help' > $@
2803 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2805 help_mod-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES)
2806 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -MD -c -o $@ $<
2807 -include help_mod-commands_help.d
2809 CLEANFILES += cmd-help_mod-commands_help.lst fs-help_mod-commands_help.lst partmap-help_mod-commands_help.lst
2810 COMMANDFILES += cmd-help_mod-commands_help.lst
2811 FSFILES += fs-help_mod-commands_help.lst
2812 PARTMAPFILES += partmap-help_mod-commands_help.lst
2814 cmd-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) gencmdlist.sh
2815 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh help > $@ || (rm -f $@; exit 1)
2817 fs-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genfslist.sh
2818 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh help > $@ || (rm -f $@; exit 1)
2820 partmap-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genpartmaplist.sh
2821 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh help > $@ || (rm -f $@; exit 1)
2824 help_mod_CFLAGS = $(COMMON_CFLAGS)
2825 help_mod_LDFLAGS = $(COMMON_LDFLAGS)
2827 # For search.mod.
2828 search_mod_SOURCES = commands/search.c
2829 CLEANFILES += search.mod mod-search.o mod-search.c pre-search.o search_mod-commands_search.o und-search.lst
2830 ifneq ($(search_mod_EXPORTS),no)
2831 CLEANFILES += def-search.lst
2832 DEFSYMFILES += def-search.lst
2833 endif
2834 MOSTLYCLEANFILES += search_mod-commands_search.d
2835 UNDSYMFILES += und-search.lst
2837 search.mod: pre-search.o mod-search.o $(TARGET_OBJ2ELF)
2838 -rm -f $@
2839 $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-search.o mod-search.o
2840 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2841 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2843 pre-search.o: $(search_mod_DEPENDENCIES) search_mod-commands_search.o
2844 -rm -f $@
2845 $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ search_mod-commands_search.o
2847 mod-search.o: mod-search.c
2848 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -c -o $@ $<
2850 mod-search.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2851 sh $(srcdir)/genmodsrc.sh 'search' $< > $@ || (rm -f $@; exit 1)
2853 ifneq ($(search_mod_EXPORTS),no)
2854 def-search.lst: pre-search.o
2855 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 search/' > $@
2856 endif
2858 und-search.lst: pre-search.o
2859 echo 'search' > $@
2860 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2862 search_mod-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES)
2863 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -MD -c -o $@ $<
2864 -include search_mod-commands_search.d
2866 CLEANFILES += cmd-search_mod-commands_search.lst fs-search_mod-commands_search.lst partmap-search_mod-commands_search.lst
2867 COMMANDFILES += cmd-search_mod-commands_search.lst
2868 FSFILES += fs-search_mod-commands_search.lst
2869 PARTMAPFILES += partmap-search_mod-commands_search.lst
2871 cmd-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) gencmdlist.sh
2872 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh search > $@ || (rm -f $@; exit 1)
2874 fs-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genfslist.sh
2875 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh search > $@ || (rm -f $@; exit 1)
2877 partmap-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genpartmaplist.sh
2878 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh search > $@ || (rm -f $@; exit 1)
2881 search_mod_CFLAGS = $(COMMON_CFLAGS)
2882 search_mod_LDFLAGS = $(COMMON_LDFLAGS)
2884 # For test.mod.
2885 test_mod_SOURCES = commands/test.c
2886 CLEANFILES += test.mod mod-test.o mod-test.c pre-test.o test_mod-commands_test.o und-test.lst
2887 ifneq ($(test_mod_EXPORTS),no)
2888 CLEANFILES += def-test.lst
2889 DEFSYMFILES += def-test.lst
2890 endif
2891 MOSTLYCLEANFILES += test_mod-commands_test.d
2892 UNDSYMFILES += und-test.lst
2894 test.mod: pre-test.o mod-test.o $(TARGET_OBJ2ELF)
2895 -rm -f $@
2896 $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-test.o mod-test.o
2897 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2898 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2900 pre-test.o: $(test_mod_DEPENDENCIES) test_mod-commands_test.o
2901 -rm -f $@
2902 $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ test_mod-commands_test.o
2904 mod-test.o: mod-test.c
2905 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -c -o $@ $<
2907 mod-test.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2908 sh $(srcdir)/genmodsrc.sh 'test' $< > $@ || (rm -f $@; exit 1)
2910 ifneq ($(test_mod_EXPORTS),no)
2911 def-test.lst: pre-test.o
2912 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 test/' > $@
2913 endif
2915 und-test.lst: pre-test.o
2916 echo 'test' > $@
2917 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2919 test_mod-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES)
2920 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -MD -c -o $@ $<
2921 -include test_mod-commands_test.d
2923 CLEANFILES += cmd-test_mod-commands_test.lst fs-test_mod-commands_test.lst partmap-test_mod-commands_test.lst
2924 COMMANDFILES += cmd-test_mod-commands_test.lst
2925 FSFILES += fs-test_mod-commands_test.lst
2926 PARTMAPFILES += partmap-test_mod-commands_test.lst
2928 cmd-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) gencmdlist.sh
2929 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh test > $@ || (rm -f $@; exit 1)
2931 fs-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genfslist.sh
2932 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh test > $@ || (rm -f $@; exit 1)
2934 partmap-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genpartmaplist.sh
2935 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh test > $@ || (rm -f $@; exit 1)
2938 test_mod_CFLAGS = $(COMMON_CFLAGS)
2939 test_mod_LDFLAGS = $(COMMON_LDFLAGS)
2941 # For loopback.mod
2942 loopback_mod_SOURCES = disk/loopback.c
2943 CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o und-loopback.lst
2944 ifneq ($(loopback_mod_EXPORTS),no)
2945 CLEANFILES += def-loopback.lst
2946 DEFSYMFILES += def-loopback.lst
2947 endif
2948 MOSTLYCLEANFILES += loopback_mod-disk_loopback.d
2949 UNDSYMFILES += und-loopback.lst
2951 loopback.mod: pre-loopback.o mod-loopback.o $(TARGET_OBJ2ELF)
2952 -rm -f $@
2953 $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-loopback.o mod-loopback.o
2954 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2955 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2957 pre-loopback.o: $(loopback_mod_DEPENDENCIES) loopback_mod-disk_loopback.o
2958 -rm -f $@
2959 $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loopback_mod-disk_loopback.o
2961 mod-loopback.o: mod-loopback.c
2962 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -c -o $@ $<
2964 mod-loopback.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
2965 sh $(srcdir)/genmodsrc.sh 'loopback' $< > $@ || (rm -f $@; exit 1)
2967 ifneq ($(loopback_mod_EXPORTS),no)
2968 def-loopback.lst: pre-loopback.o
2969 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loopback/' > $@
2970 endif
2972 und-loopback.lst: pre-loopback.o
2973 echo 'loopback' > $@
2974 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2976 loopback_mod-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
2977 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -MD -c -o $@ $<
2978 -include loopback_mod-disk_loopback.d
2980 CLEANFILES += cmd-loopback_mod-disk_loopback.lst fs-loopback_mod-disk_loopback.lst partmap-loopback_mod-disk_loopback.lst
2981 COMMANDFILES += cmd-loopback_mod-disk_loopback.lst
2982 FSFILES += fs-loopback_mod-disk_loopback.lst
2983 PARTMAPFILES += partmap-loopback_mod-disk_loopback.lst
2985 cmd-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) gencmdlist.sh
2986 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh loopback > $@ || (rm -f $@; exit 1)
2988 fs-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genfslist.sh
2989 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh loopback > $@ || (rm -f $@; exit 1)
2991 partmap-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genpartmaplist.sh
2992 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh loopback > $@ || (rm -f $@; exit 1)
2995 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
2996 loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
2998 # For fs_uuid.mod
2999 fs_uuid_mod_SOURCES = disk/fs_uuid.c
3000 CLEANFILES += fs_uuid.mod mod-fs_uuid.o mod-fs_uuid.c pre-fs_uuid.o fs_uuid_mod-disk_fs_uuid.o und-fs_uuid.lst
3001 ifneq ($(fs_uuid_mod_EXPORTS),no)
3002 CLEANFILES += def-fs_uuid.lst
3003 DEFSYMFILES += def-fs_uuid.lst
3004 endif
3005 MOSTLYCLEANFILES += fs_uuid_mod-disk_fs_uuid.d
3006 UNDSYMFILES += und-fs_uuid.lst
3008 fs_uuid.mod: pre-fs_uuid.o mod-fs_uuid.o $(TARGET_OBJ2ELF)
3009 -rm -f $@
3010 $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fs_uuid.o mod-fs_uuid.o
3011 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3012 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3014 pre-fs_uuid.o: $(fs_uuid_mod_DEPENDENCIES) fs_uuid_mod-disk_fs_uuid.o
3015 -rm -f $@
3016 $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fs_uuid_mod-disk_fs_uuid.o
3018 mod-fs_uuid.o: mod-fs_uuid.c
3019 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -c -o $@ $<
3021 mod-fs_uuid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3022 sh $(srcdir)/genmodsrc.sh 'fs_uuid' $< > $@ || (rm -f $@; exit 1)
3024 ifneq ($(fs_uuid_mod_EXPORTS),no)
3025 def-fs_uuid.lst: pre-fs_uuid.o
3026 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fs_uuid/' > $@
3027 endif
3029 und-fs_uuid.lst: pre-fs_uuid.o
3030 echo 'fs_uuid' > $@
3031 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3033 fs_uuid_mod-disk_fs_uuid.o: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES)
3034 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -MD -c -o $@ $<
3035 -include fs_uuid_mod-disk_fs_uuid.d
3037 CLEANFILES += cmd-fs_uuid_mod-disk_fs_uuid.lst fs-fs_uuid_mod-disk_fs_uuid.lst partmap-fs_uuid_mod-disk_fs_uuid.lst
3038 COMMANDFILES += cmd-fs_uuid_mod-disk_fs_uuid.lst
3039 FSFILES += fs-fs_uuid_mod-disk_fs_uuid.lst
3040 PARTMAPFILES += partmap-fs_uuid_mod-disk_fs_uuid.lst
3042 cmd-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) gencmdlist.sh
3043 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh fs_uuid > $@ || (rm -f $@; exit 1)
3045 fs-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genfslist.sh
3046 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh fs_uuid > $@ || (rm -f $@; exit 1)
3048 partmap-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genpartmaplist.sh
3049 set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh fs_uuid > $@ || (rm -f $@; exit 1)
3052 fs_uuid_mod_CFLAGS = $(COMMON_CFLAGS)
3053 fs_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
3055 # For configfile.mod
3056 configfile_mod_SOURCES = commands/configfile.c
3057 CLEANFILES += configfile.mod mod-configfile.o mod-configfile.c pre-configfile.o configfile_mod-commands_configfile.o und-configfile.lst
3058 ifneq ($(configfile_mod_EXPORTS),no)
3059 CLEANFILES += def-configfile.lst
3060 DEFSYMFILES += def-configfile.lst
3061 endif
3062 MOSTLYCLEANFILES += configfile_mod-commands_configfile.d
3063 UNDSYMFILES += und-configfile.lst
3065 configfile.mod: pre-configfile.o mod-configfile.o $(TARGET_OBJ2ELF)
3066 -rm -f $@
3067 $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-configfile.o mod-configfile.o
3068 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3069 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3071 pre-configfile.o: $(configfile_mod_DEPENDENCIES) configfile_mod-commands_configfile.o
3072 -rm -f $@
3073 $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ configfile_mod-commands_configfile.o
3075 mod-configfile.o: mod-configfile.c
3076 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -c -o $@ $<
3078 mod-configfile.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3079 sh $(srcdir)/genmodsrc.sh 'configfile' $< > $@ || (rm -f $@; exit 1)
3081 ifneq ($(configfile_mod_EXPORTS),no)
3082 def-configfile.lst: pre-configfile.o
3083 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 configfile/' > $@
3084 endif
3086 und-configfile.lst: pre-configfile.o
3087 echo 'configfile' > $@
3088 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3090 configfile_mod-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES)
3091 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -MD -c -o $@ $<
3092 -include configfile_mod-commands_configfile.d
3094 CLEANFILES += cmd-configfile_mod-commands_configfile.lst fs-configfile_mod-commands_configfile.lst partmap-configfile_mod-commands_configfile.lst
3095 COMMANDFILES += cmd-configfile_mod-commands_configfile.lst
3096 FSFILES += fs-configfile_mod-commands_configfile.lst
3097 PARTMAPFILES += partmap-configfile_mod-commands_configfile.lst
3099 cmd-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) gencmdlist.sh
3100 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh configfile > $@ || (rm -f $@; exit 1)
3102 fs-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genfslist.sh
3103 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh configfile > $@ || (rm -f $@; exit 1)
3105 partmap-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genpartmaplist.sh
3106 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh configfile > $@ || (rm -f $@; exit 1)
3109 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
3110 configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
3112 # For terminfo.mod.
3113 terminfo_mod_SOURCES = term/terminfo.c term/tparm.c
3114 CLEANFILES += terminfo.mod mod-terminfo.o mod-terminfo.c pre-terminfo.o terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o und-terminfo.lst
3115 ifneq ($(terminfo_mod_EXPORTS),no)
3116 CLEANFILES += def-terminfo.lst
3117 DEFSYMFILES += def-terminfo.lst
3118 endif
3119 MOSTLYCLEANFILES += terminfo_mod-term_terminfo.d terminfo_mod-term_tparm.d
3120 UNDSYMFILES += und-terminfo.lst
3122 terminfo.mod: pre-terminfo.o mod-terminfo.o $(TARGET_OBJ2ELF)
3123 -rm -f $@
3124 $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-terminfo.o mod-terminfo.o
3125 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3126 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3128 pre-terminfo.o: $(terminfo_mod_DEPENDENCIES) terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o
3129 -rm -f $@
3130 $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o
3132 mod-terminfo.o: mod-terminfo.c
3133 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -c -o $@ $<
3135 mod-terminfo.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3136 sh $(srcdir)/genmodsrc.sh 'terminfo' $< > $@ || (rm -f $@; exit 1)
3138 ifneq ($(terminfo_mod_EXPORTS),no)
3139 def-terminfo.lst: pre-terminfo.o
3140 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 terminfo/' > $@
3141 endif
3143 und-terminfo.lst: pre-terminfo.o
3144 echo 'terminfo' > $@
3145 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3147 terminfo_mod-term_terminfo.o: term/terminfo.c $(term/terminfo.c_DEPENDENCIES)
3148 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $<
3149 -include terminfo_mod-term_terminfo.d
3151 CLEANFILES += cmd-terminfo_mod-term_terminfo.lst fs-terminfo_mod-term_terminfo.lst partmap-terminfo_mod-term_terminfo.lst
3152 COMMANDFILES += cmd-terminfo_mod-term_terminfo.lst
3153 FSFILES += fs-terminfo_mod-term_terminfo.lst
3154 PARTMAPFILES += partmap-terminfo_mod-term_terminfo.lst
3156 cmd-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) gencmdlist.sh
3157 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
3159 fs-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genfslist.sh
3160 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
3162 partmap-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genpartmaplist.sh
3163 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh terminfo > $@ || (rm -f $@; exit 1)
3166 terminfo_mod-term_tparm.o: term/tparm.c $(term/tparm.c_DEPENDENCIES)
3167 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $<
3168 -include terminfo_mod-term_tparm.d
3170 CLEANFILES += cmd-terminfo_mod-term_tparm.lst fs-terminfo_mod-term_tparm.lst partmap-terminfo_mod-term_tparm.lst
3171 COMMANDFILES += cmd-terminfo_mod-term_tparm.lst
3172 FSFILES += fs-terminfo_mod-term_tparm.lst
3173 PARTMAPFILES += partmap-terminfo_mod-term_tparm.lst
3175 cmd-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) gencmdlist.sh
3176 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh terminfo > $@ || (rm -f $@; exit 1)
3178 fs-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genfslist.sh
3179 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh terminfo > $@ || (rm -f $@; exit 1)
3181 partmap-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genpartmaplist.sh
3182 set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh terminfo > $@ || (rm -f $@; exit 1)
3185 terminfo_mod_CFLAGS = $(COMMON_CFLAGS)
3186 terminfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
3188 # For blocklist.mod.
3189 blocklist_mod_SOURCES = commands/blocklist.c
3190 CLEANFILES += blocklist.mod mod-blocklist.o mod-blocklist.c pre-blocklist.o blocklist_mod-commands_blocklist.o und-blocklist.lst
3191 ifneq ($(blocklist_mod_EXPORTS),no)
3192 CLEANFILES += def-blocklist.lst
3193 DEFSYMFILES += def-blocklist.lst
3194 endif
3195 MOSTLYCLEANFILES += blocklist_mod-commands_blocklist.d
3196 UNDSYMFILES += und-blocklist.lst
3198 blocklist.mod: pre-blocklist.o mod-blocklist.o $(TARGET_OBJ2ELF)
3199 -rm -f $@
3200 $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-blocklist.o mod-blocklist.o
3201 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3202 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3204 pre-blocklist.o: $(blocklist_mod_DEPENDENCIES) blocklist_mod-commands_blocklist.o
3205 -rm -f $@
3206 $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ blocklist_mod-commands_blocklist.o
3208 mod-blocklist.o: mod-blocklist.c
3209 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -c -o $@ $<
3211 mod-blocklist.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3212 sh $(srcdir)/genmodsrc.sh 'blocklist' $< > $@ || (rm -f $@; exit 1)
3214 ifneq ($(blocklist_mod_EXPORTS),no)
3215 def-blocklist.lst: pre-blocklist.o
3216 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 blocklist/' > $@
3217 endif
3219 und-blocklist.lst: pre-blocklist.o
3220 echo 'blocklist' > $@
3221 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3223 blocklist_mod-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
3224 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -MD -c -o $@ $<
3225 -include blocklist_mod-commands_blocklist.d
3227 CLEANFILES += cmd-blocklist_mod-commands_blocklist.lst fs-blocklist_mod-commands_blocklist.lst partmap-blocklist_mod-commands_blocklist.lst
3228 COMMANDFILES += cmd-blocklist_mod-commands_blocklist.lst
3229 FSFILES += fs-blocklist_mod-commands_blocklist.lst
3230 PARTMAPFILES += partmap-blocklist_mod-commands_blocklist.lst
3232 cmd-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) gencmdlist.sh
3233 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh blocklist > $@ || (rm -f $@; exit 1)
3235 fs-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genfslist.sh
3236 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh blocklist > $@ || (rm -f $@; exit 1)
3238 partmap-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genpartmaplist.sh
3239 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh blocklist > $@ || (rm -f $@; exit 1)
3242 blocklist_mod_CFLAGS = $(COMMON_CFLAGS)
3243 blocklist_mod_LDFLAGS = $(COMMON_LDFLAGS)
3245 # For hexdump.mod.
3246 hexdump_mod_SOURCES = commands/hexdump.c lib/hexdump.c
3247 CLEANFILES += hexdump.mod mod-hexdump.o mod-hexdump.c pre-hexdump.o hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o und-hexdump.lst
3248 ifneq ($(hexdump_mod_EXPORTS),no)
3249 CLEANFILES += def-hexdump.lst
3250 DEFSYMFILES += def-hexdump.lst
3251 endif
3252 MOSTLYCLEANFILES += hexdump_mod-commands_hexdump.d hexdump_mod-lib_hexdump.d
3253 UNDSYMFILES += und-hexdump.lst
3255 hexdump.mod: pre-hexdump.o mod-hexdump.o $(TARGET_OBJ2ELF)
3256 -rm -f $@
3257 $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hexdump.o mod-hexdump.o
3258 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3259 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3261 pre-hexdump.o: $(hexdump_mod_DEPENDENCIES) hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o
3262 -rm -f $@
3263 $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o
3265 mod-hexdump.o: mod-hexdump.c
3266 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -c -o $@ $<
3268 mod-hexdump.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3269 sh $(srcdir)/genmodsrc.sh 'hexdump' $< > $@ || (rm -f $@; exit 1)
3271 ifneq ($(hexdump_mod_EXPORTS),no)
3272 def-hexdump.lst: pre-hexdump.o
3273 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hexdump/' > $@
3274 endif
3276 und-hexdump.lst: pre-hexdump.o
3277 echo 'hexdump' > $@
3278 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3280 hexdump_mod-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES)
3281 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $<
3282 -include hexdump_mod-commands_hexdump.d
3284 CLEANFILES += cmd-hexdump_mod-commands_hexdump.lst fs-hexdump_mod-commands_hexdump.lst partmap-hexdump_mod-commands_hexdump.lst
3285 COMMANDFILES += cmd-hexdump_mod-commands_hexdump.lst
3286 FSFILES += fs-hexdump_mod-commands_hexdump.lst
3287 PARTMAPFILES += partmap-hexdump_mod-commands_hexdump.lst
3289 cmd-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) gencmdlist.sh
3290 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh hexdump > $@ || (rm -f $@; exit 1)
3292 fs-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genfslist.sh
3293 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh hexdump > $@ || (rm -f $@; exit 1)
3295 partmap-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genpartmaplist.sh
3296 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh hexdump > $@ || (rm -f $@; exit 1)
3299 hexdump_mod-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES)
3300 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $<
3301 -include hexdump_mod-lib_hexdump.d
3303 CLEANFILES += cmd-hexdump_mod-lib_hexdump.lst fs-hexdump_mod-lib_hexdump.lst partmap-hexdump_mod-lib_hexdump.lst
3304 COMMANDFILES += cmd-hexdump_mod-lib_hexdump.lst
3305 FSFILES += fs-hexdump_mod-lib_hexdump.lst
3306 PARTMAPFILES += partmap-hexdump_mod-lib_hexdump.lst
3308 cmd-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) gencmdlist.sh
3309 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh hexdump > $@ || (rm -f $@; exit 1)
3311 fs-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genfslist.sh
3312 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh hexdump > $@ || (rm -f $@; exit 1)
3314 partmap-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genpartmaplist.sh
3315 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh hexdump > $@ || (rm -f $@; exit 1)
3318 hexdump_mod_CFLAGS = $(COMMON_CFLAGS)
3319 hexdump_mod_LDFLAGS = $(COMMON_LDFLAGS)
3321 # For read.mod.
3322 read_mod_SOURCES = commands/read.c
3323 CLEANFILES += read.mod mod-read.o mod-read.c pre-read.o read_mod-commands_read.o und-read.lst
3324 ifneq ($(read_mod_EXPORTS),no)
3325 CLEANFILES += def-read.lst
3326 DEFSYMFILES += def-read.lst
3327 endif
3328 MOSTLYCLEANFILES += read_mod-commands_read.d
3329 UNDSYMFILES += und-read.lst
3331 read.mod: pre-read.o mod-read.o $(TARGET_OBJ2ELF)
3332 -rm -f $@
3333 $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-read.o mod-read.o
3334 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3335 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3337 pre-read.o: $(read_mod_DEPENDENCIES) read_mod-commands_read.o
3338 -rm -f $@
3339 $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ read_mod-commands_read.o
3341 mod-read.o: mod-read.c
3342 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -c -o $@ $<
3344 mod-read.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3345 sh $(srcdir)/genmodsrc.sh 'read' $< > $@ || (rm -f $@; exit 1)
3347 ifneq ($(read_mod_EXPORTS),no)
3348 def-read.lst: pre-read.o
3349 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 read/' > $@
3350 endif
3352 und-read.lst: pre-read.o
3353 echo 'read' > $@
3354 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3356 read_mod-commands_read.o: commands/read.c $(commands/read.c_DEPENDENCIES)
3357 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -MD -c -o $@ $<
3358 -include read_mod-commands_read.d
3360 CLEANFILES += cmd-read_mod-commands_read.lst fs-read_mod-commands_read.lst partmap-read_mod-commands_read.lst
3361 COMMANDFILES += cmd-read_mod-commands_read.lst
3362 FSFILES += fs-read_mod-commands_read.lst
3363 PARTMAPFILES += partmap-read_mod-commands_read.lst
3365 cmd-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) gencmdlist.sh
3366 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh read > $@ || (rm -f $@; exit 1)
3368 fs-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genfslist.sh
3369 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh read > $@ || (rm -f $@; exit 1)
3371 partmap-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genpartmaplist.sh
3372 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh read > $@ || (rm -f $@; exit 1)
3375 read_mod_CFLAGS = $(COMMON_CFLAGS)
3376 read_mod_LDFLAGS = $(COMMON_LDFLAGS)
3378 # For sleep.mod.
3379 sleep_mod_SOURCES = commands/sleep.c
3380 CLEANFILES += sleep.mod mod-sleep.o mod-sleep.c pre-sleep.o sleep_mod-commands_sleep.o und-sleep.lst
3381 ifneq ($(sleep_mod_EXPORTS),no)
3382 CLEANFILES += def-sleep.lst
3383 DEFSYMFILES += def-sleep.lst
3384 endif
3385 MOSTLYCLEANFILES += sleep_mod-commands_sleep.d
3386 UNDSYMFILES += und-sleep.lst
3388 sleep.mod: pre-sleep.o mod-sleep.o $(TARGET_OBJ2ELF)
3389 -rm -f $@
3390 $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sleep.o mod-sleep.o
3391 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3392 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3394 pre-sleep.o: $(sleep_mod_DEPENDENCIES) sleep_mod-commands_sleep.o
3395 -rm -f $@
3396 $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sleep_mod-commands_sleep.o
3398 mod-sleep.o: mod-sleep.c
3399 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -c -o $@ $<
3401 mod-sleep.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3402 sh $(srcdir)/genmodsrc.sh 'sleep' $< > $@ || (rm -f $@; exit 1)
3404 ifneq ($(sleep_mod_EXPORTS),no)
3405 def-sleep.lst: pre-sleep.o
3406 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sleep/' > $@
3407 endif
3409 und-sleep.lst: pre-sleep.o
3410 echo 'sleep' > $@
3411 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3413 sleep_mod-commands_sleep.o: commands/sleep.c $(commands/sleep.c_DEPENDENCIES)
3414 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -MD -c -o $@ $<
3415 -include sleep_mod-commands_sleep.d
3417 CLEANFILES += cmd-sleep_mod-commands_sleep.lst fs-sleep_mod-commands_sleep.lst partmap-sleep_mod-commands_sleep.lst
3418 COMMANDFILES += cmd-sleep_mod-commands_sleep.lst
3419 FSFILES += fs-sleep_mod-commands_sleep.lst
3420 PARTMAPFILES += partmap-sleep_mod-commands_sleep.lst
3422 cmd-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) gencmdlist.sh
3423 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sleep > $@ || (rm -f $@; exit 1)
3425 fs-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genfslist.sh
3426 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sleep > $@ || (rm -f $@; exit 1)
3428 partmap-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genpartmaplist.sh
3429 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sleep > $@ || (rm -f $@; exit 1)
3432 sleep_mod_CFLAGS = $(COMMON_CFLAGS)
3433 sleep_mod_LDFLAGS = $(COMMON_LDFLAGS)
3435 # For loadenv.mod.
3436 loadenv_mod_SOURCES = commands/loadenv.c lib/envblk.c
3437 CLEANFILES += loadenv.mod mod-loadenv.o mod-loadenv.c pre-loadenv.o loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o und-loadenv.lst
3438 ifneq ($(loadenv_mod_EXPORTS),no)
3439 CLEANFILES += def-loadenv.lst
3440 DEFSYMFILES += def-loadenv.lst
3441 endif
3442 MOSTLYCLEANFILES += loadenv_mod-commands_loadenv.d loadenv_mod-lib_envblk.d
3443 UNDSYMFILES += und-loadenv.lst
3445 loadenv.mod: pre-loadenv.o mod-loadenv.o $(TARGET_OBJ2ELF)
3446 -rm -f $@
3447 $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-loadenv.o mod-loadenv.o
3448 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3449 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3451 pre-loadenv.o: $(loadenv_mod_DEPENDENCIES) loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o
3452 -rm -f $@
3453 $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o
3455 mod-loadenv.o: mod-loadenv.c
3456 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -c -o $@ $<
3458 mod-loadenv.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3459 sh $(srcdir)/genmodsrc.sh 'loadenv' $< > $@ || (rm -f $@; exit 1)
3461 ifneq ($(loadenv_mod_EXPORTS),no)
3462 def-loadenv.lst: pre-loadenv.o
3463 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loadenv/' > $@
3464 endif
3466 und-loadenv.lst: pre-loadenv.o
3467 echo 'loadenv' > $@
3468 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3470 loadenv_mod-commands_loadenv.o: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES)
3471 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $<
3472 -include loadenv_mod-commands_loadenv.d
3474 CLEANFILES += cmd-loadenv_mod-commands_loadenv.lst fs-loadenv_mod-commands_loadenv.lst partmap-loadenv_mod-commands_loadenv.lst
3475 COMMANDFILES += cmd-loadenv_mod-commands_loadenv.lst
3476 FSFILES += fs-loadenv_mod-commands_loadenv.lst
3477 PARTMAPFILES += partmap-loadenv_mod-commands_loadenv.lst
3479 cmd-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) gencmdlist.sh
3480 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh loadenv > $@ || (rm -f $@; exit 1)
3482 fs-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genfslist.sh
3483 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh loadenv > $@ || (rm -f $@; exit 1)
3485 partmap-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genpartmaplist.sh
3486 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh loadenv > $@ || (rm -f $@; exit 1)
3489 loadenv_mod-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES)
3490 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $<
3491 -include loadenv_mod-lib_envblk.d
3493 CLEANFILES += cmd-loadenv_mod-lib_envblk.lst fs-loadenv_mod-lib_envblk.lst partmap-loadenv_mod-lib_envblk.lst
3494 COMMANDFILES += cmd-loadenv_mod-lib_envblk.lst
3495 FSFILES += fs-loadenv_mod-lib_envblk.lst
3496 PARTMAPFILES += partmap-loadenv_mod-lib_envblk.lst
3498 cmd-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) gencmdlist.sh
3499 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh loadenv > $@ || (rm -f $@; exit 1)
3501 fs-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genfslist.sh
3502 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh loadenv > $@ || (rm -f $@; exit 1)
3504 partmap-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genpartmaplist.sh
3505 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh loadenv > $@ || (rm -f $@; exit 1)
3508 loadenv_mod_CFLAGS = $(COMMON_CFLAGS)
3509 loadenv_mod_LDFLAGS = $(COMMON_LDFLAGS)
3511 # For crc.mod.
3512 crc_mod_SOURCES = commands/crc.c lib/crc.c
3513 CLEANFILES += crc.mod mod-crc.o mod-crc.c pre-crc.o crc_mod-commands_crc.o crc_mod-lib_crc.o und-crc.lst
3514 ifneq ($(crc_mod_EXPORTS),no)
3515 CLEANFILES += def-crc.lst
3516 DEFSYMFILES += def-crc.lst
3517 endif
3518 MOSTLYCLEANFILES += crc_mod-commands_crc.d crc_mod-lib_crc.d
3519 UNDSYMFILES += und-crc.lst
3521 crc.mod: pre-crc.o mod-crc.o $(TARGET_OBJ2ELF)
3522 -rm -f $@
3523 $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-crc.o mod-crc.o
3524 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3525 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3527 pre-crc.o: $(crc_mod_DEPENDENCIES) crc_mod-commands_crc.o crc_mod-lib_crc.o
3528 -rm -f $@
3529 $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ crc_mod-commands_crc.o crc_mod-lib_crc.o
3531 mod-crc.o: mod-crc.c
3532 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -c -o $@ $<
3534 mod-crc.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3535 sh $(srcdir)/genmodsrc.sh 'crc' $< > $@ || (rm -f $@; exit 1)
3537 ifneq ($(crc_mod_EXPORTS),no)
3538 def-crc.lst: pre-crc.o
3539 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 crc/' > $@
3540 endif
3542 und-crc.lst: pre-crc.o
3543 echo 'crc' > $@
3544 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3546 crc_mod-commands_crc.o: commands/crc.c $(commands/crc.c_DEPENDENCIES)
3547 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $<
3548 -include crc_mod-commands_crc.d
3550 CLEANFILES += cmd-crc_mod-commands_crc.lst fs-crc_mod-commands_crc.lst partmap-crc_mod-commands_crc.lst
3551 COMMANDFILES += cmd-crc_mod-commands_crc.lst
3552 FSFILES += fs-crc_mod-commands_crc.lst
3553 PARTMAPFILES += partmap-crc_mod-commands_crc.lst
3555 cmd-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) gencmdlist.sh
3556 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh crc > $@ || (rm -f $@; exit 1)
3558 fs-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genfslist.sh
3559 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh crc > $@ || (rm -f $@; exit 1)
3561 partmap-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genpartmaplist.sh
3562 set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh crc > $@ || (rm -f $@; exit 1)
3565 crc_mod-lib_crc.o: lib/crc.c $(lib/crc.c_DEPENDENCIES)
3566 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $<
3567 -include crc_mod-lib_crc.d
3569 CLEANFILES += cmd-crc_mod-lib_crc.lst fs-crc_mod-lib_crc.lst partmap-crc_mod-lib_crc.lst
3570 COMMANDFILES += cmd-crc_mod-lib_crc.lst
3571 FSFILES += fs-crc_mod-lib_crc.lst
3572 PARTMAPFILES += partmap-crc_mod-lib_crc.lst
3574 cmd-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) gencmdlist.sh
3575 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh crc > $@ || (rm -f $@; exit 1)
3577 fs-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genfslist.sh
3578 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh crc > $@ || (rm -f $@; exit 1)
3580 partmap-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genpartmaplist.sh
3581 set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh crc > $@ || (rm -f $@; exit 1)
3584 crc_mod_CFLAGS = $(COMMON_CFLAGS)
3585 crc_mod_LDFLAGS = $(COMMON_LDFLAGS)
3587 # Common Video Subsystem specific modules.
3588 pkglib_MODULES += video.mod videotest.mod bitmap.mod tga.mod jpeg.mod \
3589 png.mod font.mod gfxterm.mod
3591 # For video.mod.
3592 video_mod_SOURCES = video/video.c
3593 CLEANFILES += video.mod mod-video.o mod-video.c pre-video.o video_mod-video_video.o und-video.lst
3594 ifneq ($(video_mod_EXPORTS),no)
3595 CLEANFILES += def-video.lst
3596 DEFSYMFILES += def-video.lst
3597 endif
3598 MOSTLYCLEANFILES += video_mod-video_video.d
3599 UNDSYMFILES += und-video.lst
3601 video.mod: pre-video.o mod-video.o $(TARGET_OBJ2ELF)
3602 -rm -f $@
3603 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-video.o mod-video.o
3604 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3605 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3607 pre-video.o: $(video_mod_DEPENDENCIES) video_mod-video_video.o
3608 -rm -f $@
3609 $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ video_mod-video_video.o
3611 mod-video.o: mod-video.c
3612 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -c -o $@ $<
3614 mod-video.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3615 sh $(srcdir)/genmodsrc.sh 'video' $< > $@ || (rm -f $@; exit 1)
3617 ifneq ($(video_mod_EXPORTS),no)
3618 def-video.lst: pre-video.o
3619 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 video/' > $@
3620 endif
3622 und-video.lst: pre-video.o
3623 echo 'video' > $@
3624 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3626 video_mod-video_video.o: video/video.c $(video/video.c_DEPENDENCIES)
3627 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -MD -c -o $@ $<
3628 -include video_mod-video_video.d
3630 CLEANFILES += cmd-video_mod-video_video.lst fs-video_mod-video_video.lst partmap-video_mod-video_video.lst
3631 COMMANDFILES += cmd-video_mod-video_video.lst
3632 FSFILES += fs-video_mod-video_video.lst
3633 PARTMAPFILES += partmap-video_mod-video_video.lst
3635 cmd-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) gencmdlist.sh
3636 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)
3638 fs-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genfslist.sh
3639 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)
3641 partmap-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genpartmaplist.sh
3642 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)
3645 video_mod_CFLAGS = $(COMMON_CFLAGS)
3646 video_mod_LDFLAGS = $(COMMON_LDFLAGS)
3648 # For videotest.mod.
3649 videotest_mod_SOURCES = commands/videotest.c
3650 CLEANFILES += videotest.mod mod-videotest.o mod-videotest.c pre-videotest.o videotest_mod-commands_videotest.o und-videotest.lst
3651 ifneq ($(videotest_mod_EXPORTS),no)
3652 CLEANFILES += def-videotest.lst
3653 DEFSYMFILES += def-videotest.lst
3654 endif
3655 MOSTLYCLEANFILES += videotest_mod-commands_videotest.d
3656 UNDSYMFILES += und-videotest.lst
3658 videotest.mod: pre-videotest.o mod-videotest.o $(TARGET_OBJ2ELF)
3659 -rm -f $@
3660 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-videotest.o mod-videotest.o
3661 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3662 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3664 pre-videotest.o: $(videotest_mod_DEPENDENCIES) videotest_mod-commands_videotest.o
3665 -rm -f $@
3666 $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ videotest_mod-commands_videotest.o
3668 mod-videotest.o: mod-videotest.c
3669 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -c -o $@ $<
3671 mod-videotest.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3672 sh $(srcdir)/genmodsrc.sh 'videotest' $< > $@ || (rm -f $@; exit 1)
3674 ifneq ($(videotest_mod_EXPORTS),no)
3675 def-videotest.lst: pre-videotest.o
3676 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 videotest/' > $@
3677 endif
3679 und-videotest.lst: pre-videotest.o
3680 echo 'videotest' > $@
3681 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3683 videotest_mod-commands_videotest.o: commands/videotest.c $(commands/videotest.c_DEPENDENCIES)
3684 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -MD -c -o $@ $<
3685 -include videotest_mod-commands_videotest.d
3687 CLEANFILES += cmd-videotest_mod-commands_videotest.lst fs-videotest_mod-commands_videotest.lst partmap-videotest_mod-commands_videotest.lst
3688 COMMANDFILES += cmd-videotest_mod-commands_videotest.lst
3689 FSFILES += fs-videotest_mod-commands_videotest.lst
3690 PARTMAPFILES += partmap-videotest_mod-commands_videotest.lst
3692 cmd-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) gencmdlist.sh
3693 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)
3695 fs-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genfslist.sh
3696 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)
3698 partmap-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genpartmaplist.sh
3699 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)
3702 videotest_mod_CFLAGS = $(COMMON_CFLAGS)
3703 videotest_mod_LDFLAGS = $(COMMON_LDFLAGS)
3705 # For bitmap.mod
3706 bitmap_mod_SOURCES = video/bitmap.c
3707 CLEANFILES += bitmap.mod mod-bitmap.o mod-bitmap.c pre-bitmap.o bitmap_mod-video_bitmap.o und-bitmap.lst
3708 ifneq ($(bitmap_mod_EXPORTS),no)
3709 CLEANFILES += def-bitmap.lst
3710 DEFSYMFILES += def-bitmap.lst
3711 endif
3712 MOSTLYCLEANFILES += bitmap_mod-video_bitmap.d
3713 UNDSYMFILES += und-bitmap.lst
3715 bitmap.mod: pre-bitmap.o mod-bitmap.o $(TARGET_OBJ2ELF)
3716 -rm -f $@
3717 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-bitmap.o mod-bitmap.o
3718 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3719 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3721 pre-bitmap.o: $(bitmap_mod_DEPENDENCIES) bitmap_mod-video_bitmap.o
3722 -rm -f $@
3723 $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bitmap_mod-video_bitmap.o
3725 mod-bitmap.o: mod-bitmap.c
3726 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -c -o $@ $<
3728 mod-bitmap.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3729 sh $(srcdir)/genmodsrc.sh 'bitmap' $< > $@ || (rm -f $@; exit 1)
3731 ifneq ($(bitmap_mod_EXPORTS),no)
3732 def-bitmap.lst: pre-bitmap.o
3733 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bitmap/' > $@
3734 endif
3736 und-bitmap.lst: pre-bitmap.o
3737 echo 'bitmap' > $@
3738 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3740 bitmap_mod-video_bitmap.o: video/bitmap.c $(video/bitmap.c_DEPENDENCIES)
3741 $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -MD -c -o $@ $<
3742 -include bitmap_mod-video_bitmap.d
3744 CLEANFILES += cmd-bitmap_mod-video_bitmap.lst fs-bitmap_mod-video_bitmap.lst partmap-bitmap_mod-video_bitmap.lst
3745 COMMANDFILES += cmd-bitmap_mod-video_bitmap.lst
3746 FSFILES += fs-bitmap_mod-video_bitmap.lst
3747 PARTMAPFILES += partmap-bitmap_mod-video_bitmap.lst
3749 cmd-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) gencmdlist.sh
3750 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)
3752 fs-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genfslist.sh
3753 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)
3755 partmap-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genpartmaplist.sh
3756 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)
3759 bitmap_mod_CFLAGS = $(COMMON_CFLAGS)
3760 bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
3762 # For tga.mod
3763 tga_mod_SOURCES = video/readers/tga.c
3764 CLEANFILES += tga.mod mod-tga.o mod-tga.c pre-tga.o tga_mod-video_readers_tga.o und-tga.lst
3765 ifneq ($(tga_mod_EXPORTS),no)
3766 CLEANFILES += def-tga.lst
3767 DEFSYMFILES += def-tga.lst
3768 endif
3769 MOSTLYCLEANFILES += tga_mod-video_readers_tga.d
3770 UNDSYMFILES += und-tga.lst
3772 tga.mod: pre-tga.o mod-tga.o $(TARGET_OBJ2ELF)
3773 -rm -f $@
3774 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-tga.o mod-tga.o
3775 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3776 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3778 pre-tga.o: $(tga_mod_DEPENDENCIES) tga_mod-video_readers_tga.o
3779 -rm -f $@
3780 $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ tga_mod-video_readers_tga.o
3782 mod-tga.o: mod-tga.c
3783 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -c -o $@ $<
3785 mod-tga.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3786 sh $(srcdir)/genmodsrc.sh 'tga' $< > $@ || (rm -f $@; exit 1)
3788 ifneq ($(tga_mod_EXPORTS),no)
3789 def-tga.lst: pre-tga.o
3790 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 tga/' > $@
3791 endif
3793 und-tga.lst: pre-tga.o
3794 echo 'tga' > $@
3795 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3797 tga_mod-video_readers_tga.o: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES)
3798 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -MD -c -o $@ $<
3799 -include tga_mod-video_readers_tga.d
3801 CLEANFILES += cmd-tga_mod-video_readers_tga.lst fs-tga_mod-video_readers_tga.lst partmap-tga_mod-video_readers_tga.lst
3802 COMMANDFILES += cmd-tga_mod-video_readers_tga.lst
3803 FSFILES += fs-tga_mod-video_readers_tga.lst
3804 PARTMAPFILES += partmap-tga_mod-video_readers_tga.lst
3806 cmd-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) gencmdlist.sh
3807 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)
3809 fs-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genfslist.sh
3810 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)
3812 partmap-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genpartmaplist.sh
3813 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)
3816 tga_mod_CFLAGS = $(COMMON_CFLAGS)
3817 tga_mod_LDFLAGS = $(COMMON_LDFLAGS)
3819 # For jpeg.mod.
3820 jpeg_mod_SOURCES = video/readers/jpeg.c
3821 CLEANFILES += jpeg.mod mod-jpeg.o mod-jpeg.c pre-jpeg.o jpeg_mod-video_readers_jpeg.o und-jpeg.lst
3822 ifneq ($(jpeg_mod_EXPORTS),no)
3823 CLEANFILES += def-jpeg.lst
3824 DEFSYMFILES += def-jpeg.lst
3825 endif
3826 MOSTLYCLEANFILES += jpeg_mod-video_readers_jpeg.d
3827 UNDSYMFILES += und-jpeg.lst
3829 jpeg.mod: pre-jpeg.o mod-jpeg.o $(TARGET_OBJ2ELF)
3830 -rm -f $@
3831 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-jpeg.o mod-jpeg.o
3832 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3833 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3835 pre-jpeg.o: $(jpeg_mod_DEPENDENCIES) jpeg_mod-video_readers_jpeg.o
3836 -rm -f $@
3837 $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jpeg_mod-video_readers_jpeg.o
3839 mod-jpeg.o: mod-jpeg.c
3840 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -c -o $@ $<
3842 mod-jpeg.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3843 sh $(srcdir)/genmodsrc.sh 'jpeg' $< > $@ || (rm -f $@; exit 1)
3845 ifneq ($(jpeg_mod_EXPORTS),no)
3846 def-jpeg.lst: pre-jpeg.o
3847 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jpeg/' > $@
3848 endif
3850 und-jpeg.lst: pre-jpeg.o
3851 echo 'jpeg' > $@
3852 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3854 jpeg_mod-video_readers_jpeg.o: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES)
3855 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -MD -c -o $@ $<
3856 -include jpeg_mod-video_readers_jpeg.d
3858 CLEANFILES += cmd-jpeg_mod-video_readers_jpeg.lst fs-jpeg_mod-video_readers_jpeg.lst partmap-jpeg_mod-video_readers_jpeg.lst
3859 COMMANDFILES += cmd-jpeg_mod-video_readers_jpeg.lst
3860 FSFILES += fs-jpeg_mod-video_readers_jpeg.lst
3861 PARTMAPFILES += partmap-jpeg_mod-video_readers_jpeg.lst
3863 cmd-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) gencmdlist.sh
3864 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)
3866 fs-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genfslist.sh
3867 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)
3869 partmap-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genpartmaplist.sh
3870 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)
3873 jpeg_mod_CFLAGS = $(COMMON_CFLAGS)
3874 jpeg_mod_LDFLAGS = $(COMMON_LDFLAGS)
3876 # For png.mod.
3877 png_mod_SOURCES = video/readers/png.c
3878 CLEANFILES += png.mod mod-png.o mod-png.c pre-png.o png_mod-video_readers_png.o und-png.lst
3879 ifneq ($(png_mod_EXPORTS),no)
3880 CLEANFILES += def-png.lst
3881 DEFSYMFILES += def-png.lst
3882 endif
3883 MOSTLYCLEANFILES += png_mod-video_readers_png.d
3884 UNDSYMFILES += und-png.lst
3886 png.mod: pre-png.o mod-png.o $(TARGET_OBJ2ELF)
3887 -rm -f $@
3888 $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-png.o mod-png.o
3889 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3890 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3892 pre-png.o: $(png_mod_DEPENDENCIES) png_mod-video_readers_png.o
3893 -rm -f $@
3894 $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ png_mod-video_readers_png.o
3896 mod-png.o: mod-png.c
3897 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -c -o $@ $<
3899 mod-png.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3900 sh $(srcdir)/genmodsrc.sh 'png' $< > $@ || (rm -f $@; exit 1)
3902 ifneq ($(png_mod_EXPORTS),no)
3903 def-png.lst: pre-png.o
3904 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 png/' > $@
3905 endif
3907 und-png.lst: pre-png.o
3908 echo 'png' > $@
3909 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3911 png_mod-video_readers_png.o: video/readers/png.c $(video/readers/png.c_DEPENDENCIES)
3912 $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -MD -c -o $@ $<
3913 -include png_mod-video_readers_png.d
3915 CLEANFILES += cmd-png_mod-video_readers_png.lst fs-png_mod-video_readers_png.lst partmap-png_mod-video_readers_png.lst
3916 COMMANDFILES += cmd-png_mod-video_readers_png.lst
3917 FSFILES += fs-png_mod-video_readers_png.lst
3918 PARTMAPFILES += partmap-png_mod-video_readers_png.lst
3920 cmd-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) gencmdlist.sh
3921 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)
3923 fs-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genfslist.sh
3924 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)
3926 partmap-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genpartmaplist.sh
3927 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)
3930 png_mod_CFLAGS = $(COMMON_CFLAGS)
3931 png_mod_LDFLAGS = $(COMMON_LDFLAGS)
3933 # For font.mod.
3934 font_mod_SOURCES = font/font_cmd.c font/font.c
3935 CLEANFILES += font.mod mod-font.o mod-font.c pre-font.o font_mod-font_font_cmd.o font_mod-font_font.o und-font.lst
3936 ifneq ($(font_mod_EXPORTS),no)
3937 CLEANFILES += def-font.lst
3938 DEFSYMFILES += def-font.lst
3939 endif
3940 MOSTLYCLEANFILES += font_mod-font_font_cmd.d font_mod-font_font.d
3941 UNDSYMFILES += und-font.lst
3943 font.mod: pre-font.o mod-font.o $(TARGET_OBJ2ELF)
3944 -rm -f $@
3945 $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-font.o mod-font.o
3946 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3947 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3949 pre-font.o: $(font_mod_DEPENDENCIES) font_mod-font_font_cmd.o font_mod-font_font.o
3950 -rm -f $@
3951 $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ font_mod-font_font_cmd.o font_mod-font_font.o
3953 mod-font.o: mod-font.c
3954 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -c -o $@ $<
3956 mod-font.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
3957 sh $(srcdir)/genmodsrc.sh 'font' $< > $@ || (rm -f $@; exit 1)
3959 ifneq ($(font_mod_EXPORTS),no)
3960 def-font.lst: pre-font.o
3961 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 font/' > $@
3962 endif
3964 und-font.lst: pre-font.o
3965 echo 'font' > $@
3966 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3968 font_mod-font_font_cmd.o: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES)
3969 $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -MD -c -o $@ $<
3970 -include font_mod-font_font_cmd.d
3972 CLEANFILES += cmd-font_mod-font_font_cmd.lst fs-font_mod-font_font_cmd.lst partmap-font_mod-font_font_cmd.lst
3973 COMMANDFILES += cmd-font_mod-font_font_cmd.lst
3974 FSFILES += fs-font_mod-font_font_cmd.lst
3975 PARTMAPFILES += partmap-font_mod-font_font_cmd.lst
3977 cmd-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) gencmdlist.sh
3978 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
3980 fs-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genfslist.sh
3981 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
3983 partmap-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genpartmaplist.sh
3984 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh font > $@ || (rm -f $@; exit 1)
3987 font_mod-font_font.o: font/font.c $(font/font.c_DEPENDENCIES)
3988 $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -MD -c -o $@ $<
3989 -include font_mod-font_font.d
3991 CLEANFILES += cmd-font_mod-font_font.lst fs-font_mod-font_font.lst partmap-font_mod-font_font.lst
3992 COMMANDFILES += cmd-font_mod-font_font.lst
3993 FSFILES += fs-font_mod-font_font.lst
3994 PARTMAPFILES += partmap-font_mod-font_font.lst
3996 cmd-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) gencmdlist.sh
3997 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh font > $@ || (rm -f $@; exit 1)
3999 fs-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genfslist.sh
4000 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh font > $@ || (rm -f $@; exit 1)
4002 partmap-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genpartmaplist.sh
4003 set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh font > $@ || (rm -f $@; exit 1)
4006 font_mod_CFLAGS = $(COMMON_CFLAGS)
4007 font_mod_LDFLAGS = $(COMMON_LDFLAGS)
4009 # For gfxterm.mod.
4010 gfxterm_mod_SOURCES = term/gfxterm.c
4011 CLEANFILES += gfxterm.mod mod-gfxterm.o mod-gfxterm.c pre-gfxterm.o gfxterm_mod-term_gfxterm.o und-gfxterm.lst
4012 ifneq ($(gfxterm_mod_EXPORTS),no)
4013 CLEANFILES += def-gfxterm.lst
4014 DEFSYMFILES += def-gfxterm.lst
4015 endif
4016 MOSTLYCLEANFILES += gfxterm_mod-term_gfxterm.d
4017 UNDSYMFILES += und-gfxterm.lst
4019 gfxterm.mod: pre-gfxterm.o mod-gfxterm.o $(TARGET_OBJ2ELF)
4020 -rm -f $@
4021 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-gfxterm.o mod-gfxterm.o
4022 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
4023 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
4025 pre-gfxterm.o: $(gfxterm_mod_DEPENDENCIES) gfxterm_mod-term_gfxterm.o
4026 -rm -f $@
4027 $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gfxterm_mod-term_gfxterm.o
4029 mod-gfxterm.o: mod-gfxterm.c
4030 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -c -o $@ $<
4032 mod-gfxterm.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
4033 sh $(srcdir)/genmodsrc.sh 'gfxterm' $< > $@ || (rm -f $@; exit 1)
4035 ifneq ($(gfxterm_mod_EXPORTS),no)
4036 def-gfxterm.lst: pre-gfxterm.o
4037 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gfxterm/' > $@
4038 endif
4040 und-gfxterm.lst: pre-gfxterm.o
4041 echo 'gfxterm' > $@
4042 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
4044 gfxterm_mod-term_gfxterm.o: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES)
4045 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -MD -c -o $@ $<
4046 -include gfxterm_mod-term_gfxterm.d
4048 CLEANFILES += cmd-gfxterm_mod-term_gfxterm.lst fs-gfxterm_mod-term_gfxterm.lst partmap-gfxterm_mod-term_gfxterm.lst
4049 COMMANDFILES += cmd-gfxterm_mod-term_gfxterm.lst
4050 FSFILES += fs-gfxterm_mod-term_gfxterm.lst
4051 PARTMAPFILES += partmap-gfxterm_mod-term_gfxterm.lst
4053 cmd-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) gencmdlist.sh
4054 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)
4056 fs-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genfslist.sh
4057 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)
4059 partmap-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genpartmaplist.sh
4060 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)
4063 gfxterm_mod_CFLAGS = $(COMMON_CFLAGS)
4064 gfxterm_mod_LDFLAGS = $(COMMON_LDFLAGS)
4066 # Misc.
4067 pkglib_MODULES += gzio.mod bufio.mod elf.mod
4069 # For elf.mod.
4070 elf_mod_SOURCES = kern/elf.c
4071 CLEANFILES += elf.mod mod-elf.o mod-elf.c pre-elf.o elf_mod-kern_elf.o und-elf.lst
4072 ifneq ($(elf_mod_EXPORTS),no)
4073 CLEANFILES += def-elf.lst
4074 DEFSYMFILES += def-elf.lst
4075 endif
4076 MOSTLYCLEANFILES += elf_mod-kern_elf.d
4077 UNDSYMFILES += und-elf.lst
4079 elf.mod: pre-elf.o mod-elf.o $(TARGET_OBJ2ELF)
4080 -rm -f $@
4081 $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-elf.o mod-elf.o
4082 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
4083 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
4085 pre-elf.o: $(elf_mod_DEPENDENCIES) elf_mod-kern_elf.o
4086 -rm -f $@
4087 $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ elf_mod-kern_elf.o
4089 mod-elf.o: mod-elf.c
4090 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -c -o $@ $<
4092 mod-elf.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
4093 sh $(srcdir)/genmodsrc.sh 'elf' $< > $@ || (rm -f $@; exit 1)
4095 ifneq ($(elf_mod_EXPORTS),no)
4096 def-elf.lst: pre-elf.o
4097 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 elf/' > $@
4098 endif
4100 und-elf.lst: pre-elf.o
4101 echo 'elf' > $@
4102 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
4104 elf_mod-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES)
4105 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -MD -c -o $@ $<
4106 -include elf_mod-kern_elf.d
4108 CLEANFILES += cmd-elf_mod-kern_elf.lst fs-elf_mod-kern_elf.lst partmap-elf_mod-kern_elf.lst
4109 COMMANDFILES += cmd-elf_mod-kern_elf.lst
4110 FSFILES += fs-elf_mod-kern_elf.lst
4111 PARTMAPFILES += partmap-elf_mod-kern_elf.lst
4113 cmd-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) gencmdlist.sh
4114 set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh elf > $@ || (rm -f $@; exit 1)
4116 fs-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genfslist.sh
4117 set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh elf > $@ || (rm -f $@; exit 1)
4119 partmap-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genpartmaplist.sh
4120 set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh elf > $@ || (rm -f $@; exit 1)
4123 elf_mod_CFLAGS = $(COMMON_CFLAGS)
4124 elf_mod_LDFLAGS = $(COMMON_LDFLAGS)
4126 # For gzio.mod.
4127 gzio_mod_SOURCES = io/gzio.c
4128 CLEANFILES += gzio.mod mod-gzio.o mod-gzio.c pre-gzio.o gzio_mod-io_gzio.o und-gzio.lst
4129 ifneq ($(gzio_mod_EXPORTS),no)
4130 CLEANFILES += def-gzio.lst
4131 DEFSYMFILES += def-gzio.lst
4132 endif
4133 MOSTLYCLEANFILES += gzio_mod-io_gzio.d
4134 UNDSYMFILES += und-gzio.lst
4136 gzio.mod: pre-gzio.o mod-gzio.o $(TARGET_OBJ2ELF)
4137 -rm -f $@
4138 $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-gzio.o mod-gzio.o
4139 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
4140 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
4142 pre-gzio.o: $(gzio_mod_DEPENDENCIES) gzio_mod-io_gzio.o
4143 -rm -f $@
4144 $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gzio_mod-io_gzio.o
4146 mod-gzio.o: mod-gzio.c
4147 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -c -o $@ $<
4149 mod-gzio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
4150 sh $(srcdir)/genmodsrc.sh 'gzio' $< > $@ || (rm -f $@; exit 1)
4152 ifneq ($(gzio_mod_EXPORTS),no)
4153 def-gzio.lst: pre-gzio.o
4154 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gzio/' > $@
4155 endif
4157 und-gzio.lst: pre-gzio.o
4158 echo 'gzio' > $@
4159 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
4161 gzio_mod-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES)
4162 $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -MD -c -o $@ $<
4163 -include gzio_mod-io_gzio.d
4165 CLEANFILES += cmd-gzio_mod-io_gzio.lst fs-gzio_mod-io_gzio.lst partmap-gzio_mod-io_gzio.lst
4166 COMMANDFILES += cmd-gzio_mod-io_gzio.lst
4167 FSFILES += fs-gzio_mod-io_gzio.lst
4168 PARTMAPFILES += partmap-gzio_mod-io_gzio.lst
4170 cmd-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) gencmdlist.sh
4171 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh gzio > $@ || (rm -f $@; exit 1)
4173 fs-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genfslist.sh
4174 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh gzio > $@ || (rm -f $@; exit 1)
4176 partmap-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genpartmaplist.sh
4177 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh gzio > $@ || (rm -f $@; exit 1)
4180 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
4181 gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)
4183 # For bufio.mod.
4184 bufio_mod_SOURCES = io/bufio.c
4185 CLEANFILES += bufio.mod mod-bufio.o mod-bufio.c pre-bufio.o bufio_mod-io_bufio.o und-bufio.lst
4186 ifneq ($(bufio_mod_EXPORTS),no)
4187 CLEANFILES += def-bufio.lst
4188 DEFSYMFILES += def-bufio.lst
4189 endif
4190 MOSTLYCLEANFILES += bufio_mod-io_bufio.d
4191 UNDSYMFILES += und-bufio.lst
4193 bufio.mod: pre-bufio.o mod-bufio.o $(TARGET_OBJ2ELF)
4194 -rm -f $@
4195 $(TARGET_CC) $(bufio_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-bufio.o mod-bufio.o
4196 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
4197 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
4199 pre-bufio.o: $(bufio_mod_DEPENDENCIES) bufio_mod-io_bufio.o
4200 -rm -f $@
4201 $(TARGET_CC) $(bufio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bufio_mod-io_bufio.o
4203 mod-bufio.o: mod-bufio.c
4204 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -c -o $@ $<
4206 mod-bufio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh
4207 sh $(srcdir)/genmodsrc.sh 'bufio' $< > $@ || (rm -f $@; exit 1)
4209 ifneq ($(bufio_mod_EXPORTS),no)
4210 def-bufio.lst: pre-bufio.o
4211 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bufio/' > $@
4212 endif
4214 und-bufio.lst: pre-bufio.o
4215 echo 'bufio' > $@
4216 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
4218 bufio_mod-io_bufio.o: io/bufio.c $(io/bufio.c_DEPENDENCIES)
4219 $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -MD -c -o $@ $<
4220 -include bufio_mod-io_bufio.d
4222 CLEANFILES += cmd-bufio_mod-io_bufio.lst fs-bufio_mod-io_bufio.lst partmap-bufio_mod-io_bufio.lst
4223 COMMANDFILES += cmd-bufio_mod-io_bufio.lst
4224 FSFILES += fs-bufio_mod-io_bufio.lst
4225 PARTMAPFILES += partmap-bufio_mod-io_bufio.lst
4227 cmd-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) gencmdlist.sh
4228 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh bufio > $@ || (rm -f $@; exit 1)
4230 fs-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genfslist.sh
4231 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh bufio > $@ || (rm -f $@; exit 1)
4233 partmap-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genpartmaplist.sh
4234 set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh bufio > $@ || (rm -f $@; exit 1)
4237 bufio_mod_CFLAGS = $(COMMON_CFLAGS)
4238 bufio_mod_LDFLAGS = $(COMMON_LDFLAGS)