2008-07-30 Robert Millan <rmh@aybabtu.com>
[grub2/phcoder/solaris.git] / conf / common.mk
blob11aeee981a7273c840d042afe63aa8eceb2ab8fc
1 # -*- makefile -*-
2 # Generated by genmk.rb, please don't edit!
4 # For grub-probe.
5 sbin_UTILITIES += grub-probe
6 util/grub-probe.c_DEPENDENCIES = grub_probe_init.h
7 grub_probe_SOURCES = util/grub-probe.c \
8 util/biosdisk.c util/misc.c util/getroot.c \
9 kern/device.c kern/disk.c kern/err.c kern/misc.c \
10 kern/parser.c kern/partition.c kern/file.c \
12 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
13 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
14 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
15 fs/ufs.c fs/xfs.c fs/afs.c \
17 partmap/pc.c partmap/apple.c partmap/gpt.c \
18 kern/fs.c kern/env.c fs/fshelp.c \
19 disk/lvm.c disk/raid.c grub_probe_init.c
20 CLEANFILES += grub-probe$(EXEEXT) grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-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-grub_probe_init.o
21 MOSTLYCLEANFILES += grub_probe-util_grub_probe.d grub_probe-util_biosdisk.d grub_probe-util_misc.d grub_probe-util_getroot.d grub_probe-kern_device.d grub_probe-kern_disk.d grub_probe-kern_err.d grub_probe-kern_misc.d grub_probe-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-grub_probe_init.d
23 grub-probe: $(grub_probe_DEPENDENCIES) grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-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-grub_probe_init.o
24 $(CC) -o $@ grub_probe-util_grub_probe.o grub_probe-util_biosdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-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-grub_probe_init.o $(LDFLAGS) $(grub_probe_LDFLAGS)
26 grub_probe-util_grub_probe.o: util/grub-probe.c $(util/grub-probe.c_DEPENDENCIES)
27 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
28 -include grub_probe-util_grub_probe.d
30 grub_probe-util_biosdisk.o: util/biosdisk.c $(util/biosdisk.c_DEPENDENCIES)
31 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
32 -include grub_probe-util_biosdisk.d
34 grub_probe-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
35 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
36 -include grub_probe-util_misc.d
38 grub_probe-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES)
39 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
40 -include grub_probe-util_getroot.d
42 grub_probe-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
43 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
44 -include grub_probe-kern_device.d
46 grub_probe-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
47 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
48 -include grub_probe-kern_disk.d
50 grub_probe-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
51 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
52 -include grub_probe-kern_err.d
54 grub_probe-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
55 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
56 -include grub_probe-kern_misc.d
58 grub_probe-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES)
59 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
60 -include grub_probe-kern_parser.d
62 grub_probe-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
63 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
64 -include grub_probe-kern_partition.d
66 grub_probe-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
67 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
68 -include grub_probe-kern_file.d
70 grub_probe-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
71 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
72 -include grub_probe-fs_affs.d
74 grub_probe-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
75 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
76 -include grub_probe-fs_cpio.d
78 grub_probe-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
79 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
80 -include grub_probe-fs_ext2.d
82 grub_probe-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
83 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
84 -include grub_probe-fs_fat.d
86 grub_probe-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
87 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
88 -include grub_probe-fs_hfs.d
90 grub_probe-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
91 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
92 -include grub_probe-fs_hfsplus.d
94 grub_probe-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
95 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
96 -include grub_probe-fs_iso9660.d
98 grub_probe-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
99 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
100 -include grub_probe-fs_udf.d
102 grub_probe-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
103 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
104 -include grub_probe-fs_jfs.d
106 grub_probe-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
107 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
108 -include grub_probe-fs_minix.d
110 grub_probe-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
111 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
112 -include grub_probe-fs_ntfs.d
114 grub_probe-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
115 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
116 -include grub_probe-fs_ntfscomp.d
118 grub_probe-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
119 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
120 -include grub_probe-fs_reiserfs.d
122 grub_probe-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
123 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
124 -include grub_probe-fs_sfs.d
126 grub_probe-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
127 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
128 -include grub_probe-fs_ufs.d
130 grub_probe-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
131 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
132 -include grub_probe-fs_xfs.d
134 grub_probe-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
135 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
136 -include grub_probe-fs_afs.d
138 grub_probe-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
139 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
140 -include grub_probe-partmap_pc.d
142 grub_probe-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
143 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
144 -include grub_probe-partmap_apple.d
146 grub_probe-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
147 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
148 -include grub_probe-partmap_gpt.d
150 grub_probe-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
151 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
152 -include grub_probe-kern_fs.d
154 grub_probe-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
155 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
156 -include grub_probe-kern_env.d
158 grub_probe-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
159 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
160 -include grub_probe-fs_fshelp.d
162 grub_probe-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
163 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
164 -include grub_probe-disk_lvm.d
166 grub_probe-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
167 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
168 -include grub_probe-disk_raid.d
170 grub_probe-grub_probe_init.o: grub_probe_init.c $(grub_probe_init.c_DEPENDENCIES)
171 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $<
172 -include grub_probe-grub_probe_init.d
175 ifeq ($(enable_grub_fstest), yes)
176 bin_UTILITIES += grub-fstest
177 endif
179 # For grub-fstest.
180 util/grub-fstest.c_DEPENDENCIES = grub_fstest_init.h
181 grub_fstest_SOURCES = util/grub-fstest.c util/hostfs.c util/misc.c \
182 kern/file.c kern/device.c kern/disk.c kern/err.c kern/misc.c \
183 disk/host.c disk/loopback.c normal/arg.c normal/misc.c \
184 io/gzio.c lib/hexdump.c commands/blocklist.c commands/ls.c \
186 fs/affs.c fs/cpio.c fs/ext2.c fs/fat.c fs/hfs.c \
187 fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \
188 fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \
189 fs/ufs.c fs/xfs.c fs/afs.c \
191 kern/partition.c partmap/pc.c partmap/apple.c partmap/gpt.c \
192 kern/fs.c kern/env.c fs/fshelp.c disk/lvm.c disk/raid.c \
193 grub_fstest_init.c
194 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-io_gzio.o grub_fstest-lib_hexdump.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-grub_fstest_init.o
195 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-io_gzio.d grub_fstest-lib_hexdump.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-grub_fstest_init.d
197 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-io_gzio.o grub_fstest-lib_hexdump.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-grub_fstest_init.o
198 $(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-io_gzio.o grub_fstest-lib_hexdump.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-grub_fstest_init.o $(LDFLAGS) $(grub_fstest_LDFLAGS)
200 grub_fstest-util_grub_fstest.o: util/grub-fstest.c $(util/grub-fstest.c_DEPENDENCIES)
201 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
202 -include grub_fstest-util_grub_fstest.d
204 grub_fstest-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES)
205 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
206 -include grub_fstest-util_hostfs.d
208 grub_fstest-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
209 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
210 -include grub_fstest-util_misc.d
212 grub_fstest-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES)
213 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
214 -include grub_fstest-kern_file.d
216 grub_fstest-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES)
217 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
218 -include grub_fstest-kern_device.d
220 grub_fstest-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES)
221 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
222 -include grub_fstest-kern_disk.d
224 grub_fstest-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
225 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
226 -include grub_fstest-kern_err.d
228 grub_fstest-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
229 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
230 -include grub_fstest-kern_misc.d
232 grub_fstest-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES)
233 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
234 -include grub_fstest-disk_host.d
236 grub_fstest-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
237 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
238 -include grub_fstest-disk_loopback.d
240 grub_fstest-normal_arg.o: normal/arg.c $(normal/arg.c_DEPENDENCIES)
241 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
242 -include grub_fstest-normal_arg.d
244 grub_fstest-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES)
245 $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
246 -include grub_fstest-normal_misc.d
248 grub_fstest-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES)
249 $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
250 -include grub_fstest-io_gzio.d
252 grub_fstest-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES)
253 $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
254 -include grub_fstest-lib_hexdump.d
256 grub_fstest-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
257 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
258 -include grub_fstest-commands_blocklist.d
260 grub_fstest-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
261 $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
262 -include grub_fstest-commands_ls.d
264 grub_fstest-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
265 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
266 -include grub_fstest-fs_affs.d
268 grub_fstest-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
269 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
270 -include grub_fstest-fs_cpio.d
272 grub_fstest-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
273 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
274 -include grub_fstest-fs_ext2.d
276 grub_fstest-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
277 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
278 -include grub_fstest-fs_fat.d
280 grub_fstest-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
281 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
282 -include grub_fstest-fs_hfs.d
284 grub_fstest-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
285 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
286 -include grub_fstest-fs_hfsplus.d
288 grub_fstest-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
289 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
290 -include grub_fstest-fs_iso9660.d
292 grub_fstest-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
293 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
294 -include grub_fstest-fs_udf.d
296 grub_fstest-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
297 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
298 -include grub_fstest-fs_jfs.d
300 grub_fstest-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
301 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
302 -include grub_fstest-fs_minix.d
304 grub_fstest-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
305 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
306 -include grub_fstest-fs_ntfs.d
308 grub_fstest-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
309 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
310 -include grub_fstest-fs_ntfscomp.d
312 grub_fstest-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
313 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
314 -include grub_fstest-fs_reiserfs.d
316 grub_fstest-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
317 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
318 -include grub_fstest-fs_sfs.d
320 grub_fstest-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
321 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
322 -include grub_fstest-fs_ufs.d
324 grub_fstest-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
325 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
326 -include grub_fstest-fs_xfs.d
328 grub_fstest-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
329 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
330 -include grub_fstest-fs_afs.d
332 grub_fstest-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES)
333 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
334 -include grub_fstest-kern_partition.d
336 grub_fstest-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
337 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
338 -include grub_fstest-partmap_pc.d
340 grub_fstest-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
341 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
342 -include grub_fstest-partmap_apple.d
344 grub_fstest-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
345 $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
346 -include grub_fstest-partmap_gpt.d
348 grub_fstest-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES)
349 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
350 -include grub_fstest-kern_fs.d
352 grub_fstest-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES)
353 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
354 -include grub_fstest-kern_env.d
356 grub_fstest-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
357 $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
358 -include grub_fstest-fs_fshelp.d
360 grub_fstest-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
361 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
362 -include grub_fstest-disk_lvm.d
364 grub_fstest-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
365 $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
366 -include grub_fstest-disk_raid.d
368 grub_fstest-grub_fstest_init.o: grub_fstest_init.c $(grub_fstest_init.c_DEPENDENCIES)
369 $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $<
370 -include grub_fstest-grub_fstest_init.d
373 # For the parser.
374 grub_script.tab.c grub_script.tab.h: normal/parser.y
375 $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/normal/parser.y
376 DISTCLEANFILES += grub_script.tab.c grub_script.tab.h
378 # For grub-emu.
379 grub_emu_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES))
380 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
381 DISTCLEANFILES += grub_emu_init.lst
383 grub_emu_init.h: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh
384 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
385 DISTCLEANFILES += grub_emu_init.h
387 grub_emu_init.c: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_emu_init.h
388 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
389 DISTCLEANFILES += grub_emu_init.c
391 # For grub-probe.
392 grub_probe_init.lst: geninit.sh $(filter-out grub_probe_init.c,$(grub_probe_SOURCES))
393 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
394 DISTCLEANFILES += grub_probe_init.lst
396 grub_probe_init.h: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninitheader.sh
397 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
398 DISTCLEANFILES += grub_probe_init.h
400 grub_probe_init.c: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninit.sh grub_probe_init.h
401 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
402 DISTCLEANFILES += grub_probe_init.c
404 # For grub-setup.
405 grub_setup_init.lst: geninit.sh $(filter-out grub_setup_init.c,$(grub_setup_SOURCES))
406 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
407 DISTCLEANFILES += grub_setup_init.lst
409 grub_setup_init.h: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninitheader.sh
410 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
411 DISTCLEANFILES += grub_setup_init.h
413 grub_setup_init.c: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninit.sh grub_setup_init.h
414 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
415 DISTCLEANFILES += grub_setup_init.c
417 # For grub-fstest.
418 grub_fstest_init.lst: geninit.sh $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES))
419 rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@
420 DISTCLEANFILES += grub_fstest_init.lst
422 grub_fstest_init.h: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninitheader.sh
423 rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@
424 DISTCLEANFILES += grub_fstest_init.h
426 grub_fstest_init.c: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninit.sh grub_fstest_init.h
427 rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@
428 DISTCLEANFILES += grub_fstest_init.c
430 # for grub-editenv
431 bin_UTILITIES += grub-editenv
432 grub_editenv_SOURCES = util/grub-editenv.c lib/envblk.c util/misc.c kern/misc.c kern/err.c
433 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
434 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
436 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
437 $(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)
439 grub_editenv-util_grub_editenv.o: util/grub-editenv.c $(util/grub-editenv.c_DEPENDENCIES)
440 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
441 -include grub_editenv-util_grub_editenv.d
443 grub_editenv-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES)
444 $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
445 -include grub_editenv-lib_envblk.d
447 grub_editenv-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
448 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
449 -include grub_editenv-util_misc.d
451 grub_editenv-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES)
452 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
453 -include grub_editenv-kern_misc.d
455 grub_editenv-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES)
456 $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $<
457 -include grub_editenv-kern_err.d
459 CLEANFILES += grub-editenv
461 # for grub-pe2elf
462 bin_UTILITIES += grub-pe2elf
463 grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c
464 CLEANFILES += grub-pe2elf$(EXEEXT) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o
465 MOSTLYCLEANFILES += grub_pe2elf-util_grub_pe2elf.d grub_pe2elf-util_misc.d
467 grub-pe2elf: $(grub_pe2elf_DEPENDENCIES) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o
468 $(CC) -o $@ grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o $(LDFLAGS) $(grub_pe2elf_LDFLAGS)
470 grub_pe2elf-util_grub_pe2elf.o: util/grub-pe2elf.c $(util/grub-pe2elf.c_DEPENDENCIES)
471 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $<
472 -include grub_pe2elf-util_grub_pe2elf.d
474 grub_pe2elf-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES)
475 $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $<
476 -include grub_pe2elf-util_misc.d
478 CLEANFILES += grub-pe2elf
480 # For update-grub
481 update-grub: util/update-grub.in config.status
482 ./config.status --file=$@:$<
483 chmod +x $@
484 sbin_SCRIPTS += update-grub
485 CLEANFILES += update-grub
487 update-grub_lib: util/update-grub_lib.in config.status
488 ./config.status --file=$@:$<
489 chmod +x $@
490 lib_DATA += update-grub_lib
491 CLEANFILES += update-grub_lib
493 %: util/grub.d/%.in config.status
494 ./config.status --file=$@:$<
495 chmod +x $@
496 update-grub_SCRIPTS = 00_header 10_linux 10_hurd 30_os-prober 40_custom
497 CLEANFILES += $(update-grub_SCRIPTS)
499 update-grub_DATA += util/grub.d/README
502 # Filing systems.
503 pkglib_MODULES += fshelp.mod fat.mod ufs.mod ext2.mod ntfs.mod \
504 ntfscomp.mod minix.mod hfs.mod jfs.mod iso9660.mod xfs.mod \
505 affs.mod sfs.mod hfsplus.mod reiserfs.mod cpio.mod udf.mod \
506 afs.mod
508 # For fshelp.mod.
509 fshelp_mod_SOURCES = fs/fshelp.c
510 CLEANFILES += fshelp.mod mod-fshelp.o mod-fshelp.c pre-fshelp.o fshelp_mod-fs_fshelp.o und-fshelp.lst
511 ifneq ($(fshelp_mod_EXPORTS),no)
512 CLEANFILES += def-fshelp.lst
513 DEFSYMFILES += def-fshelp.lst
514 endif
515 MOSTLYCLEANFILES += fshelp_mod-fs_fshelp.d
516 UNDSYMFILES += und-fshelp.lst
518 fshelp.mod: pre-fshelp.o mod-fshelp.o $(TARGET_OBJ2ELF)
519 -rm -f $@
520 $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fshelp.o mod-fshelp.o
521 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
522 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
524 pre-fshelp.o: $(fshelp_mod_DEPENDENCIES) fshelp_mod-fs_fshelp.o
525 -rm -f $@
526 $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fshelp_mod-fs_fshelp.o
528 mod-fshelp.o: mod-fshelp.c
529 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -c -o $@ $<
531 mod-fshelp.c: moddep.lst genmodsrc.sh
532 sh $(srcdir)/genmodsrc.sh 'fshelp' $< > $@ || (rm -f $@; exit 1)
534 ifneq ($(fshelp_mod_EXPORTS),no)
535 def-fshelp.lst: pre-fshelp.o
536 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fshelp/' > $@
537 endif
539 und-fshelp.lst: pre-fshelp.o
540 echo 'fshelp' > $@
541 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
543 fshelp_mod-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES)
544 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -MD -c -o $@ $<
545 -include fshelp_mod-fs_fshelp.d
547 CLEANFILES += cmd-fshelp_mod-fs_fshelp.lst fs-fshelp_mod-fs_fshelp.lst partmap-fshelp_mod-fs_fshelp.lst
548 COMMANDFILES += cmd-fshelp_mod-fs_fshelp.lst
549 FSFILES += fs-fshelp_mod-fs_fshelp.lst
550 PARTMAPFILES += partmap-fshelp_mod-fs_fshelp.lst
552 cmd-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) gencmdlist.sh
553 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)
555 fs-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genfslist.sh
556 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)
558 partmap-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genpartmaplist.sh
559 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)
562 fshelp_mod_CFLAGS = $(COMMON_CFLAGS)
563 fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS)
565 # For fat.mod.
566 fat_mod_SOURCES = fs/fat.c
567 CLEANFILES += fat.mod mod-fat.o mod-fat.c pre-fat.o fat_mod-fs_fat.o und-fat.lst
568 ifneq ($(fat_mod_EXPORTS),no)
569 CLEANFILES += def-fat.lst
570 DEFSYMFILES += def-fat.lst
571 endif
572 MOSTLYCLEANFILES += fat_mod-fs_fat.d
573 UNDSYMFILES += und-fat.lst
575 fat.mod: pre-fat.o mod-fat.o $(TARGET_OBJ2ELF)
576 -rm -f $@
577 $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fat.o mod-fat.o
578 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
579 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
581 pre-fat.o: $(fat_mod_DEPENDENCIES) fat_mod-fs_fat.o
582 -rm -f $@
583 $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fat_mod-fs_fat.o
585 mod-fat.o: mod-fat.c
586 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -c -o $@ $<
588 mod-fat.c: moddep.lst genmodsrc.sh
589 sh $(srcdir)/genmodsrc.sh 'fat' $< > $@ || (rm -f $@; exit 1)
591 ifneq ($(fat_mod_EXPORTS),no)
592 def-fat.lst: pre-fat.o
593 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fat/' > $@
594 endif
596 und-fat.lst: pre-fat.o
597 echo 'fat' > $@
598 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
600 fat_mod-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES)
601 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -MD -c -o $@ $<
602 -include fat_mod-fs_fat.d
604 CLEANFILES += cmd-fat_mod-fs_fat.lst fs-fat_mod-fs_fat.lst partmap-fat_mod-fs_fat.lst
605 COMMANDFILES += cmd-fat_mod-fs_fat.lst
606 FSFILES += fs-fat_mod-fs_fat.lst
607 PARTMAPFILES += partmap-fat_mod-fs_fat.lst
609 cmd-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) gencmdlist.sh
610 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)
612 fs-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genfslist.sh
613 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)
615 partmap-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genpartmaplist.sh
616 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)
619 fat_mod_CFLAGS = $(COMMON_CFLAGS)
620 fat_mod_LDFLAGS = $(COMMON_LDFLAGS)
622 # For ufs.mod.
623 ufs_mod_SOURCES = fs/ufs.c
624 CLEANFILES += ufs.mod mod-ufs.o mod-ufs.c pre-ufs.o ufs_mod-fs_ufs.o und-ufs.lst
625 ifneq ($(ufs_mod_EXPORTS),no)
626 CLEANFILES += def-ufs.lst
627 DEFSYMFILES += def-ufs.lst
628 endif
629 MOSTLYCLEANFILES += ufs_mod-fs_ufs.d
630 UNDSYMFILES += und-ufs.lst
632 ufs.mod: pre-ufs.o mod-ufs.o $(TARGET_OBJ2ELF)
633 -rm -f $@
634 $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ufs.o mod-ufs.o
635 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
636 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
638 pre-ufs.o: $(ufs_mod_DEPENDENCIES) ufs_mod-fs_ufs.o
639 -rm -f $@
640 $(TARGET_CC) $(ufs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ufs_mod-fs_ufs.o
642 mod-ufs.o: mod-ufs.c
643 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -c -o $@ $<
645 mod-ufs.c: moddep.lst genmodsrc.sh
646 sh $(srcdir)/genmodsrc.sh 'ufs' $< > $@ || (rm -f $@; exit 1)
648 ifneq ($(ufs_mod_EXPORTS),no)
649 def-ufs.lst: pre-ufs.o
650 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ufs/' > $@
651 endif
653 und-ufs.lst: pre-ufs.o
654 echo 'ufs' > $@
655 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
657 ufs_mod-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES)
658 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs_mod_CFLAGS) -MD -c -o $@ $<
659 -include ufs_mod-fs_ufs.d
661 CLEANFILES += cmd-ufs_mod-fs_ufs.lst fs-ufs_mod-fs_ufs.lst partmap-ufs_mod-fs_ufs.lst
662 COMMANDFILES += cmd-ufs_mod-fs_ufs.lst
663 FSFILES += fs-ufs_mod-fs_ufs.lst
664 PARTMAPFILES += partmap-ufs_mod-fs_ufs.lst
666 cmd-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) gencmdlist.sh
667 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)
669 fs-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genfslist.sh
670 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)
672 partmap-ufs_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genpartmaplist.sh
673 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)
676 ufs_mod_CFLAGS = $(COMMON_CFLAGS)
677 ufs_mod_LDFLAGS = $(COMMON_LDFLAGS)
679 # For ext2.mod.
680 ext2_mod_SOURCES = fs/ext2.c
681 CLEANFILES += ext2.mod mod-ext2.o mod-ext2.c pre-ext2.o ext2_mod-fs_ext2.o und-ext2.lst
682 ifneq ($(ext2_mod_EXPORTS),no)
683 CLEANFILES += def-ext2.lst
684 DEFSYMFILES += def-ext2.lst
685 endif
686 MOSTLYCLEANFILES += ext2_mod-fs_ext2.d
687 UNDSYMFILES += und-ext2.lst
689 ext2.mod: pre-ext2.o mod-ext2.o $(TARGET_OBJ2ELF)
690 -rm -f $@
691 $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ext2.o mod-ext2.o
692 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
693 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
695 pre-ext2.o: $(ext2_mod_DEPENDENCIES) ext2_mod-fs_ext2.o
696 -rm -f $@
697 $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ext2_mod-fs_ext2.o
699 mod-ext2.o: mod-ext2.c
700 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -c -o $@ $<
702 mod-ext2.c: moddep.lst genmodsrc.sh
703 sh $(srcdir)/genmodsrc.sh 'ext2' $< > $@ || (rm -f $@; exit 1)
705 ifneq ($(ext2_mod_EXPORTS),no)
706 def-ext2.lst: pre-ext2.o
707 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ext2/' > $@
708 endif
710 und-ext2.lst: pre-ext2.o
711 echo 'ext2' > $@
712 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
714 ext2_mod-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES)
715 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -MD -c -o $@ $<
716 -include ext2_mod-fs_ext2.d
718 CLEANFILES += cmd-ext2_mod-fs_ext2.lst fs-ext2_mod-fs_ext2.lst partmap-ext2_mod-fs_ext2.lst
719 COMMANDFILES += cmd-ext2_mod-fs_ext2.lst
720 FSFILES += fs-ext2_mod-fs_ext2.lst
721 PARTMAPFILES += partmap-ext2_mod-fs_ext2.lst
723 cmd-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) gencmdlist.sh
724 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)
726 fs-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genfslist.sh
727 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)
729 partmap-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genpartmaplist.sh
730 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)
733 ext2_mod_CFLAGS = $(COMMON_CFLAGS)
734 ext2_mod_LDFLAGS = $(COMMON_LDFLAGS)
736 # For ntfs.mod.
737 ntfs_mod_SOURCES = fs/ntfs.c
738 CLEANFILES += ntfs.mod mod-ntfs.o mod-ntfs.c pre-ntfs.o ntfs_mod-fs_ntfs.o und-ntfs.lst
739 ifneq ($(ntfs_mod_EXPORTS),no)
740 CLEANFILES += def-ntfs.lst
741 DEFSYMFILES += def-ntfs.lst
742 endif
743 MOSTLYCLEANFILES += ntfs_mod-fs_ntfs.d
744 UNDSYMFILES += und-ntfs.lst
746 ntfs.mod: pre-ntfs.o mod-ntfs.o $(TARGET_OBJ2ELF)
747 -rm -f $@
748 $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfs.o mod-ntfs.o
749 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
750 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
752 pre-ntfs.o: $(ntfs_mod_DEPENDENCIES) ntfs_mod-fs_ntfs.o
753 -rm -f $@
754 $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfs_mod-fs_ntfs.o
756 mod-ntfs.o: mod-ntfs.c
757 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -c -o $@ $<
759 mod-ntfs.c: moddep.lst genmodsrc.sh
760 sh $(srcdir)/genmodsrc.sh 'ntfs' $< > $@ || (rm -f $@; exit 1)
762 ifneq ($(ntfs_mod_EXPORTS),no)
763 def-ntfs.lst: pre-ntfs.o
764 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfs/' > $@
765 endif
767 und-ntfs.lst: pre-ntfs.o
768 echo 'ntfs' > $@
769 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
771 ntfs_mod-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES)
772 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -MD -c -o $@ $<
773 -include ntfs_mod-fs_ntfs.d
775 CLEANFILES += cmd-ntfs_mod-fs_ntfs.lst fs-ntfs_mod-fs_ntfs.lst partmap-ntfs_mod-fs_ntfs.lst
776 COMMANDFILES += cmd-ntfs_mod-fs_ntfs.lst
777 FSFILES += fs-ntfs_mod-fs_ntfs.lst
778 PARTMAPFILES += partmap-ntfs_mod-fs_ntfs.lst
780 cmd-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) gencmdlist.sh
781 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)
783 fs-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genfslist.sh
784 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)
786 partmap-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genpartmaplist.sh
787 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)
790 ntfs_mod_CFLAGS = $(COMMON_CFLAGS)
791 ntfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
793 # For ntfscomp.mod.
794 ntfscomp_mod_SOURCES = fs/ntfscomp.c
795 CLEANFILES += ntfscomp.mod mod-ntfscomp.o mod-ntfscomp.c pre-ntfscomp.o ntfscomp_mod-fs_ntfscomp.o und-ntfscomp.lst
796 ifneq ($(ntfscomp_mod_EXPORTS),no)
797 CLEANFILES += def-ntfscomp.lst
798 DEFSYMFILES += def-ntfscomp.lst
799 endif
800 MOSTLYCLEANFILES += ntfscomp_mod-fs_ntfscomp.d
801 UNDSYMFILES += und-ntfscomp.lst
803 ntfscomp.mod: pre-ntfscomp.o mod-ntfscomp.o $(TARGET_OBJ2ELF)
804 -rm -f $@
805 $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfscomp.o mod-ntfscomp.o
806 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
807 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
809 pre-ntfscomp.o: $(ntfscomp_mod_DEPENDENCIES) ntfscomp_mod-fs_ntfscomp.o
810 -rm -f $@
811 $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfscomp_mod-fs_ntfscomp.o
813 mod-ntfscomp.o: mod-ntfscomp.c
814 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -c -o $@ $<
816 mod-ntfscomp.c: moddep.lst genmodsrc.sh
817 sh $(srcdir)/genmodsrc.sh 'ntfscomp' $< > $@ || (rm -f $@; exit 1)
819 ifneq ($(ntfscomp_mod_EXPORTS),no)
820 def-ntfscomp.lst: pre-ntfscomp.o
821 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfscomp/' > $@
822 endif
824 und-ntfscomp.lst: pre-ntfscomp.o
825 echo 'ntfscomp' > $@
826 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
828 ntfscomp_mod-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES)
829 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -MD -c -o $@ $<
830 -include ntfscomp_mod-fs_ntfscomp.d
832 CLEANFILES += cmd-ntfscomp_mod-fs_ntfscomp.lst fs-ntfscomp_mod-fs_ntfscomp.lst partmap-ntfscomp_mod-fs_ntfscomp.lst
833 COMMANDFILES += cmd-ntfscomp_mod-fs_ntfscomp.lst
834 FSFILES += fs-ntfscomp_mod-fs_ntfscomp.lst
835 PARTMAPFILES += partmap-ntfscomp_mod-fs_ntfscomp.lst
837 cmd-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) gencmdlist.sh
838 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)
840 fs-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genfslist.sh
841 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)
843 partmap-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genpartmaplist.sh
844 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)
847 ntfscomp_mod_CFLAGS = $(COMMON_CFLAGS)
848 ntfscomp_mod_LDFLAGS = $(COMMON_LDFLAGS)
850 # For minix.mod.
851 minix_mod_SOURCES = fs/minix.c
852 CLEANFILES += minix.mod mod-minix.o mod-minix.c pre-minix.o minix_mod-fs_minix.o und-minix.lst
853 ifneq ($(minix_mod_EXPORTS),no)
854 CLEANFILES += def-minix.lst
855 DEFSYMFILES += def-minix.lst
856 endif
857 MOSTLYCLEANFILES += minix_mod-fs_minix.d
858 UNDSYMFILES += und-minix.lst
860 minix.mod: pre-minix.o mod-minix.o $(TARGET_OBJ2ELF)
861 -rm -f $@
862 $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-minix.o mod-minix.o
863 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
864 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
866 pre-minix.o: $(minix_mod_DEPENDENCIES) minix_mod-fs_minix.o
867 -rm -f $@
868 $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ minix_mod-fs_minix.o
870 mod-minix.o: mod-minix.c
871 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -c -o $@ $<
873 mod-minix.c: moddep.lst genmodsrc.sh
874 sh $(srcdir)/genmodsrc.sh 'minix' $< > $@ || (rm -f $@; exit 1)
876 ifneq ($(minix_mod_EXPORTS),no)
877 def-minix.lst: pre-minix.o
878 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 minix/' > $@
879 endif
881 und-minix.lst: pre-minix.o
882 echo 'minix' > $@
883 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
885 minix_mod-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES)
886 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -MD -c -o $@ $<
887 -include minix_mod-fs_minix.d
889 CLEANFILES += cmd-minix_mod-fs_minix.lst fs-minix_mod-fs_minix.lst partmap-minix_mod-fs_minix.lst
890 COMMANDFILES += cmd-minix_mod-fs_minix.lst
891 FSFILES += fs-minix_mod-fs_minix.lst
892 PARTMAPFILES += partmap-minix_mod-fs_minix.lst
894 cmd-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) gencmdlist.sh
895 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)
897 fs-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genfslist.sh
898 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)
900 partmap-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genpartmaplist.sh
901 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)
904 minix_mod_CFLAGS = $(COMMON_CFLAGS)
905 minix_mod_LDFLAGS = $(COMMON_LDFLAGS)
907 # For hfs.mod.
908 hfs_mod_SOURCES = fs/hfs.c
909 CLEANFILES += hfs.mod mod-hfs.o mod-hfs.c pre-hfs.o hfs_mod-fs_hfs.o und-hfs.lst
910 ifneq ($(hfs_mod_EXPORTS),no)
911 CLEANFILES += def-hfs.lst
912 DEFSYMFILES += def-hfs.lst
913 endif
914 MOSTLYCLEANFILES += hfs_mod-fs_hfs.d
915 UNDSYMFILES += und-hfs.lst
917 hfs.mod: pre-hfs.o mod-hfs.o $(TARGET_OBJ2ELF)
918 -rm -f $@
919 $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hfs.o mod-hfs.o
920 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
921 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
923 pre-hfs.o: $(hfs_mod_DEPENDENCIES) hfs_mod-fs_hfs.o
924 -rm -f $@
925 $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfs_mod-fs_hfs.o
927 mod-hfs.o: mod-hfs.c
928 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -c -o $@ $<
930 mod-hfs.c: moddep.lst genmodsrc.sh
931 sh $(srcdir)/genmodsrc.sh 'hfs' $< > $@ || (rm -f $@; exit 1)
933 ifneq ($(hfs_mod_EXPORTS),no)
934 def-hfs.lst: pre-hfs.o
935 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfs/' > $@
936 endif
938 und-hfs.lst: pre-hfs.o
939 echo 'hfs' > $@
940 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
942 hfs_mod-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES)
943 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -MD -c -o $@ $<
944 -include hfs_mod-fs_hfs.d
946 CLEANFILES += cmd-hfs_mod-fs_hfs.lst fs-hfs_mod-fs_hfs.lst partmap-hfs_mod-fs_hfs.lst
947 COMMANDFILES += cmd-hfs_mod-fs_hfs.lst
948 FSFILES += fs-hfs_mod-fs_hfs.lst
949 PARTMAPFILES += partmap-hfs_mod-fs_hfs.lst
951 cmd-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) gencmdlist.sh
952 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)
954 fs-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genfslist.sh
955 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)
957 partmap-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genpartmaplist.sh
958 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)
961 hfs_mod_CFLAGS = $(COMMON_CFLAGS)
962 hfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
964 # For jfs.mod.
965 jfs_mod_SOURCES = fs/jfs.c
966 CLEANFILES += jfs.mod mod-jfs.o mod-jfs.c pre-jfs.o jfs_mod-fs_jfs.o und-jfs.lst
967 ifneq ($(jfs_mod_EXPORTS),no)
968 CLEANFILES += def-jfs.lst
969 DEFSYMFILES += def-jfs.lst
970 endif
971 MOSTLYCLEANFILES += jfs_mod-fs_jfs.d
972 UNDSYMFILES += und-jfs.lst
974 jfs.mod: pre-jfs.o mod-jfs.o $(TARGET_OBJ2ELF)
975 -rm -f $@
976 $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-jfs.o mod-jfs.o
977 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
978 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
980 pre-jfs.o: $(jfs_mod_DEPENDENCIES) jfs_mod-fs_jfs.o
981 -rm -f $@
982 $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jfs_mod-fs_jfs.o
984 mod-jfs.o: mod-jfs.c
985 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -c -o $@ $<
987 mod-jfs.c: moddep.lst genmodsrc.sh
988 sh $(srcdir)/genmodsrc.sh 'jfs' $< > $@ || (rm -f $@; exit 1)
990 ifneq ($(jfs_mod_EXPORTS),no)
991 def-jfs.lst: pre-jfs.o
992 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jfs/' > $@
993 endif
995 und-jfs.lst: pre-jfs.o
996 echo 'jfs' > $@
997 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
999 jfs_mod-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES)
1000 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -MD -c -o $@ $<
1001 -include jfs_mod-fs_jfs.d
1003 CLEANFILES += cmd-jfs_mod-fs_jfs.lst fs-jfs_mod-fs_jfs.lst partmap-jfs_mod-fs_jfs.lst
1004 COMMANDFILES += cmd-jfs_mod-fs_jfs.lst
1005 FSFILES += fs-jfs_mod-fs_jfs.lst
1006 PARTMAPFILES += partmap-jfs_mod-fs_jfs.lst
1008 cmd-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) gencmdlist.sh
1009 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)
1011 fs-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genfslist.sh
1012 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)
1014 partmap-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genpartmaplist.sh
1015 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)
1018 jfs_mod_CFLAGS = $(COMMON_CFLAGS)
1019 jfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1021 # For iso9660.mod.
1022 iso9660_mod_SOURCES = fs/iso9660.c
1023 CLEANFILES += iso9660.mod mod-iso9660.o mod-iso9660.c pre-iso9660.o iso9660_mod-fs_iso9660.o und-iso9660.lst
1024 ifneq ($(iso9660_mod_EXPORTS),no)
1025 CLEANFILES += def-iso9660.lst
1026 DEFSYMFILES += def-iso9660.lst
1027 endif
1028 MOSTLYCLEANFILES += iso9660_mod-fs_iso9660.d
1029 UNDSYMFILES += und-iso9660.lst
1031 iso9660.mod: pre-iso9660.o mod-iso9660.o $(TARGET_OBJ2ELF)
1032 -rm -f $@
1033 $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-iso9660.o mod-iso9660.o
1034 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1035 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1037 pre-iso9660.o: $(iso9660_mod_DEPENDENCIES) iso9660_mod-fs_iso9660.o
1038 -rm -f $@
1039 $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ iso9660_mod-fs_iso9660.o
1041 mod-iso9660.o: mod-iso9660.c
1042 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -c -o $@ $<
1044 mod-iso9660.c: moddep.lst genmodsrc.sh
1045 sh $(srcdir)/genmodsrc.sh 'iso9660' $< > $@ || (rm -f $@; exit 1)
1047 ifneq ($(iso9660_mod_EXPORTS),no)
1048 def-iso9660.lst: pre-iso9660.o
1049 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 iso9660/' > $@
1050 endif
1052 und-iso9660.lst: pre-iso9660.o
1053 echo 'iso9660' > $@
1054 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1056 iso9660_mod-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES)
1057 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -MD -c -o $@ $<
1058 -include iso9660_mod-fs_iso9660.d
1060 CLEANFILES += cmd-iso9660_mod-fs_iso9660.lst fs-iso9660_mod-fs_iso9660.lst partmap-iso9660_mod-fs_iso9660.lst
1061 COMMANDFILES += cmd-iso9660_mod-fs_iso9660.lst
1062 FSFILES += fs-iso9660_mod-fs_iso9660.lst
1063 PARTMAPFILES += partmap-iso9660_mod-fs_iso9660.lst
1065 cmd-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) gencmdlist.sh
1066 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)
1068 fs-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genfslist.sh
1069 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)
1071 partmap-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genpartmaplist.sh
1072 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)
1075 iso9660_mod_CFLAGS = $(COMMON_CFLAGS)
1076 iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS)
1078 # For xfs.mod.
1079 xfs_mod_SOURCES = fs/xfs.c
1080 CLEANFILES += xfs.mod mod-xfs.o mod-xfs.c pre-xfs.o xfs_mod-fs_xfs.o und-xfs.lst
1081 ifneq ($(xfs_mod_EXPORTS),no)
1082 CLEANFILES += def-xfs.lst
1083 DEFSYMFILES += def-xfs.lst
1084 endif
1085 MOSTLYCLEANFILES += xfs_mod-fs_xfs.d
1086 UNDSYMFILES += und-xfs.lst
1088 xfs.mod: pre-xfs.o mod-xfs.o $(TARGET_OBJ2ELF)
1089 -rm -f $@
1090 $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-xfs.o mod-xfs.o
1091 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1092 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1094 pre-xfs.o: $(xfs_mod_DEPENDENCIES) xfs_mod-fs_xfs.o
1095 -rm -f $@
1096 $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ xfs_mod-fs_xfs.o
1098 mod-xfs.o: mod-xfs.c
1099 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -c -o $@ $<
1101 mod-xfs.c: moddep.lst genmodsrc.sh
1102 sh $(srcdir)/genmodsrc.sh 'xfs' $< > $@ || (rm -f $@; exit 1)
1104 ifneq ($(xfs_mod_EXPORTS),no)
1105 def-xfs.lst: pre-xfs.o
1106 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 xfs/' > $@
1107 endif
1109 und-xfs.lst: pre-xfs.o
1110 echo 'xfs' > $@
1111 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1113 xfs_mod-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES)
1114 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -MD -c -o $@ $<
1115 -include xfs_mod-fs_xfs.d
1117 CLEANFILES += cmd-xfs_mod-fs_xfs.lst fs-xfs_mod-fs_xfs.lst partmap-xfs_mod-fs_xfs.lst
1118 COMMANDFILES += cmd-xfs_mod-fs_xfs.lst
1119 FSFILES += fs-xfs_mod-fs_xfs.lst
1120 PARTMAPFILES += partmap-xfs_mod-fs_xfs.lst
1122 cmd-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) gencmdlist.sh
1123 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)
1125 fs-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genfslist.sh
1126 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)
1128 partmap-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genpartmaplist.sh
1129 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)
1132 xfs_mod_CFLAGS = $(COMMON_CFLAGS)
1133 xfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1135 # For affs.mod.
1136 affs_mod_SOURCES = fs/affs.c
1137 CLEANFILES += affs.mod mod-affs.o mod-affs.c pre-affs.o affs_mod-fs_affs.o und-affs.lst
1138 ifneq ($(affs_mod_EXPORTS),no)
1139 CLEANFILES += def-affs.lst
1140 DEFSYMFILES += def-affs.lst
1141 endif
1142 MOSTLYCLEANFILES += affs_mod-fs_affs.d
1143 UNDSYMFILES += und-affs.lst
1145 affs.mod: pre-affs.o mod-affs.o $(TARGET_OBJ2ELF)
1146 -rm -f $@
1147 $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-affs.o mod-affs.o
1148 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1149 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1151 pre-affs.o: $(affs_mod_DEPENDENCIES) affs_mod-fs_affs.o
1152 -rm -f $@
1153 $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ affs_mod-fs_affs.o
1155 mod-affs.o: mod-affs.c
1156 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -c -o $@ $<
1158 mod-affs.c: moddep.lst genmodsrc.sh
1159 sh $(srcdir)/genmodsrc.sh 'affs' $< > $@ || (rm -f $@; exit 1)
1161 ifneq ($(affs_mod_EXPORTS),no)
1162 def-affs.lst: pre-affs.o
1163 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 affs/' > $@
1164 endif
1166 und-affs.lst: pre-affs.o
1167 echo 'affs' > $@
1168 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1170 affs_mod-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES)
1171 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -MD -c -o $@ $<
1172 -include affs_mod-fs_affs.d
1174 CLEANFILES += cmd-affs_mod-fs_affs.lst fs-affs_mod-fs_affs.lst partmap-affs_mod-fs_affs.lst
1175 COMMANDFILES += cmd-affs_mod-fs_affs.lst
1176 FSFILES += fs-affs_mod-fs_affs.lst
1177 PARTMAPFILES += partmap-affs_mod-fs_affs.lst
1179 cmd-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) gencmdlist.sh
1180 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)
1182 fs-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genfslist.sh
1183 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)
1185 partmap-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genpartmaplist.sh
1186 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)
1189 affs_mod_CFLAGS = $(COMMON_CFLAGS)
1190 affs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1192 # For sfs.mod.
1193 sfs_mod_SOURCES = fs/sfs.c
1194 CLEANFILES += sfs.mod mod-sfs.o mod-sfs.c pre-sfs.o sfs_mod-fs_sfs.o und-sfs.lst
1195 ifneq ($(sfs_mod_EXPORTS),no)
1196 CLEANFILES += def-sfs.lst
1197 DEFSYMFILES += def-sfs.lst
1198 endif
1199 MOSTLYCLEANFILES += sfs_mod-fs_sfs.d
1200 UNDSYMFILES += und-sfs.lst
1202 sfs.mod: pre-sfs.o mod-sfs.o $(TARGET_OBJ2ELF)
1203 -rm -f $@
1204 $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sfs.o mod-sfs.o
1205 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1206 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1208 pre-sfs.o: $(sfs_mod_DEPENDENCIES) sfs_mod-fs_sfs.o
1209 -rm -f $@
1210 $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sfs_mod-fs_sfs.o
1212 mod-sfs.o: mod-sfs.c
1213 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -c -o $@ $<
1215 mod-sfs.c: moddep.lst genmodsrc.sh
1216 sh $(srcdir)/genmodsrc.sh 'sfs' $< > $@ || (rm -f $@; exit 1)
1218 ifneq ($(sfs_mod_EXPORTS),no)
1219 def-sfs.lst: pre-sfs.o
1220 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sfs/' > $@
1221 endif
1223 und-sfs.lst: pre-sfs.o
1224 echo 'sfs' > $@
1225 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1227 sfs_mod-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES)
1228 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -MD -c -o $@ $<
1229 -include sfs_mod-fs_sfs.d
1231 CLEANFILES += cmd-sfs_mod-fs_sfs.lst fs-sfs_mod-fs_sfs.lst partmap-sfs_mod-fs_sfs.lst
1232 COMMANDFILES += cmd-sfs_mod-fs_sfs.lst
1233 FSFILES += fs-sfs_mod-fs_sfs.lst
1234 PARTMAPFILES += partmap-sfs_mod-fs_sfs.lst
1236 cmd-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) gencmdlist.sh
1237 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)
1239 fs-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genfslist.sh
1240 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)
1242 partmap-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genpartmaplist.sh
1243 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)
1246 sfs_mod_CFLAGS = $(COMMON_CFLAGS)
1247 sfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1249 # For hfsplus.mod.
1250 hfsplus_mod_SOURCES = fs/hfsplus.c
1251 CLEANFILES += hfsplus.mod mod-hfsplus.o mod-hfsplus.c pre-hfsplus.o hfsplus_mod-fs_hfsplus.o und-hfsplus.lst
1252 ifneq ($(hfsplus_mod_EXPORTS),no)
1253 CLEANFILES += def-hfsplus.lst
1254 DEFSYMFILES += def-hfsplus.lst
1255 endif
1256 MOSTLYCLEANFILES += hfsplus_mod-fs_hfsplus.d
1257 UNDSYMFILES += und-hfsplus.lst
1259 hfsplus.mod: pre-hfsplus.o mod-hfsplus.o $(TARGET_OBJ2ELF)
1260 -rm -f $@
1261 $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hfsplus.o mod-hfsplus.o
1262 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1263 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1265 pre-hfsplus.o: $(hfsplus_mod_DEPENDENCIES) hfsplus_mod-fs_hfsplus.o
1266 -rm -f $@
1267 $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfsplus_mod-fs_hfsplus.o
1269 mod-hfsplus.o: mod-hfsplus.c
1270 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -c -o $@ $<
1272 mod-hfsplus.c: moddep.lst genmodsrc.sh
1273 sh $(srcdir)/genmodsrc.sh 'hfsplus' $< > $@ || (rm -f $@; exit 1)
1275 ifneq ($(hfsplus_mod_EXPORTS),no)
1276 def-hfsplus.lst: pre-hfsplus.o
1277 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfsplus/' > $@
1278 endif
1280 und-hfsplus.lst: pre-hfsplus.o
1281 echo 'hfsplus' > $@
1282 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1284 hfsplus_mod-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES)
1285 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -MD -c -o $@ $<
1286 -include hfsplus_mod-fs_hfsplus.d
1288 CLEANFILES += cmd-hfsplus_mod-fs_hfsplus.lst fs-hfsplus_mod-fs_hfsplus.lst partmap-hfsplus_mod-fs_hfsplus.lst
1289 COMMANDFILES += cmd-hfsplus_mod-fs_hfsplus.lst
1290 FSFILES += fs-hfsplus_mod-fs_hfsplus.lst
1291 PARTMAPFILES += partmap-hfsplus_mod-fs_hfsplus.lst
1293 cmd-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) gencmdlist.sh
1294 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)
1296 fs-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genfslist.sh
1297 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)
1299 partmap-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genpartmaplist.sh
1300 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)
1303 hfsplus_mod_CFLAGS = $(COMMON_CFLAGS)
1304 hfsplus_mod_LDFLAGS = $(COMMON_LDFLAGS)
1306 # For reiserfs.mod.
1307 reiserfs_mod_SOURCES = fs/reiserfs.c
1308 CLEANFILES += reiserfs.mod mod-reiserfs.o mod-reiserfs.c pre-reiserfs.o reiserfs_mod-fs_reiserfs.o und-reiserfs.lst
1309 ifneq ($(reiserfs_mod_EXPORTS),no)
1310 CLEANFILES += def-reiserfs.lst
1311 DEFSYMFILES += def-reiserfs.lst
1312 endif
1313 MOSTLYCLEANFILES += reiserfs_mod-fs_reiserfs.d
1314 UNDSYMFILES += und-reiserfs.lst
1316 reiserfs.mod: pre-reiserfs.o mod-reiserfs.o $(TARGET_OBJ2ELF)
1317 -rm -f $@
1318 $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-reiserfs.o mod-reiserfs.o
1319 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1320 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1322 pre-reiserfs.o: $(reiserfs_mod_DEPENDENCIES) reiserfs_mod-fs_reiserfs.o
1323 -rm -f $@
1324 $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reiserfs_mod-fs_reiserfs.o
1326 mod-reiserfs.o: mod-reiserfs.c
1327 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -c -o $@ $<
1329 mod-reiserfs.c: moddep.lst genmodsrc.sh
1330 sh $(srcdir)/genmodsrc.sh 'reiserfs' $< > $@ || (rm -f $@; exit 1)
1332 ifneq ($(reiserfs_mod_EXPORTS),no)
1333 def-reiserfs.lst: pre-reiserfs.o
1334 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reiserfs/' > $@
1335 endif
1337 und-reiserfs.lst: pre-reiserfs.o
1338 echo 'reiserfs' > $@
1339 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1341 reiserfs_mod-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES)
1342 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -MD -c -o $@ $<
1343 -include reiserfs_mod-fs_reiserfs.d
1345 CLEANFILES += cmd-reiserfs_mod-fs_reiserfs.lst fs-reiserfs_mod-fs_reiserfs.lst partmap-reiserfs_mod-fs_reiserfs.lst
1346 COMMANDFILES += cmd-reiserfs_mod-fs_reiserfs.lst
1347 FSFILES += fs-reiserfs_mod-fs_reiserfs.lst
1348 PARTMAPFILES += partmap-reiserfs_mod-fs_reiserfs.lst
1350 cmd-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) gencmdlist.sh
1351 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)
1353 fs-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genfslist.sh
1354 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)
1356 partmap-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genpartmaplist.sh
1357 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)
1360 reiserfs_mod_CFLAGS = $(COMMON_CFLAGS)
1361 reiserfs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1363 # For cpio.mod.
1364 cpio_mod_SOURCES = fs/cpio.c
1365 CLEANFILES += cpio.mod mod-cpio.o mod-cpio.c pre-cpio.o cpio_mod-fs_cpio.o und-cpio.lst
1366 ifneq ($(cpio_mod_EXPORTS),no)
1367 CLEANFILES += def-cpio.lst
1368 DEFSYMFILES += def-cpio.lst
1369 endif
1370 MOSTLYCLEANFILES += cpio_mod-fs_cpio.d
1371 UNDSYMFILES += und-cpio.lst
1373 cpio.mod: pre-cpio.o mod-cpio.o $(TARGET_OBJ2ELF)
1374 -rm -f $@
1375 $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cpio.o mod-cpio.o
1376 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1377 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1379 pre-cpio.o: $(cpio_mod_DEPENDENCIES) cpio_mod-fs_cpio.o
1380 -rm -f $@
1381 $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpio_mod-fs_cpio.o
1383 mod-cpio.o: mod-cpio.c
1384 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -c -o $@ $<
1386 mod-cpio.c: moddep.lst genmodsrc.sh
1387 sh $(srcdir)/genmodsrc.sh 'cpio' $< > $@ || (rm -f $@; exit 1)
1389 ifneq ($(cpio_mod_EXPORTS),no)
1390 def-cpio.lst: pre-cpio.o
1391 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpio/' > $@
1392 endif
1394 und-cpio.lst: pre-cpio.o
1395 echo 'cpio' > $@
1396 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1398 cpio_mod-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES)
1399 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -MD -c -o $@ $<
1400 -include cpio_mod-fs_cpio.d
1402 CLEANFILES += cmd-cpio_mod-fs_cpio.lst fs-cpio_mod-fs_cpio.lst partmap-cpio_mod-fs_cpio.lst
1403 COMMANDFILES += cmd-cpio_mod-fs_cpio.lst
1404 FSFILES += fs-cpio_mod-fs_cpio.lst
1405 PARTMAPFILES += partmap-cpio_mod-fs_cpio.lst
1407 cmd-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) gencmdlist.sh
1408 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)
1410 fs-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genfslist.sh
1411 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)
1413 partmap-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genpartmaplist.sh
1414 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)
1417 cpio_mod_CFLAGS = $(COMMON_CFLAGS)
1418 cpio_mod_LDFLAGS = $(COMMON_LDFLAGS)
1420 # For udf.mod.
1421 udf_mod_SOURCES = fs/udf.c
1422 CLEANFILES += udf.mod mod-udf.o mod-udf.c pre-udf.o udf_mod-fs_udf.o und-udf.lst
1423 ifneq ($(udf_mod_EXPORTS),no)
1424 CLEANFILES += def-udf.lst
1425 DEFSYMFILES += def-udf.lst
1426 endif
1427 MOSTLYCLEANFILES += udf_mod-fs_udf.d
1428 UNDSYMFILES += und-udf.lst
1430 udf.mod: pre-udf.o mod-udf.o $(TARGET_OBJ2ELF)
1431 -rm -f $@
1432 $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-udf.o mod-udf.o
1433 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1434 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1436 pre-udf.o: $(udf_mod_DEPENDENCIES) udf_mod-fs_udf.o
1437 -rm -f $@
1438 $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ udf_mod-fs_udf.o
1440 mod-udf.o: mod-udf.c
1441 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -c -o $@ $<
1443 mod-udf.c: moddep.lst genmodsrc.sh
1444 sh $(srcdir)/genmodsrc.sh 'udf' $< > $@ || (rm -f $@; exit 1)
1446 ifneq ($(udf_mod_EXPORTS),no)
1447 def-udf.lst: pre-udf.o
1448 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 udf/' > $@
1449 endif
1451 und-udf.lst: pre-udf.o
1452 echo 'udf' > $@
1453 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1455 udf_mod-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES)
1456 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -MD -c -o $@ $<
1457 -include udf_mod-fs_udf.d
1459 CLEANFILES += cmd-udf_mod-fs_udf.lst fs-udf_mod-fs_udf.lst partmap-udf_mod-fs_udf.lst
1460 COMMANDFILES += cmd-udf_mod-fs_udf.lst
1461 FSFILES += fs-udf_mod-fs_udf.lst
1462 PARTMAPFILES += partmap-udf_mod-fs_udf.lst
1464 cmd-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) gencmdlist.sh
1465 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)
1467 fs-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genfslist.sh
1468 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)
1470 partmap-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genpartmaplist.sh
1471 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)
1474 udf_mod_CFLAGS = $(COMMON_CFLAGS)
1475 udf_mod_LDFLAGS = $(COMMON_LDFLAGS)
1477 # For afs.mod.
1478 afs_mod_SOURCES = fs/afs.c
1479 CLEANFILES += afs.mod mod-afs.o mod-afs.c pre-afs.o afs_mod-fs_afs.o und-afs.lst
1480 ifneq ($(afs_mod_EXPORTS),no)
1481 CLEANFILES += def-afs.lst
1482 DEFSYMFILES += def-afs.lst
1483 endif
1484 MOSTLYCLEANFILES += afs_mod-fs_afs.d
1485 UNDSYMFILES += und-afs.lst
1487 afs.mod: pre-afs.o mod-afs.o $(TARGET_OBJ2ELF)
1488 -rm -f $@
1489 $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-afs.o mod-afs.o
1490 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1491 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1493 pre-afs.o: $(afs_mod_DEPENDENCIES) afs_mod-fs_afs.o
1494 -rm -f $@
1495 $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ afs_mod-fs_afs.o
1497 mod-afs.o: mod-afs.c
1498 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -c -o $@ $<
1500 mod-afs.c: moddep.lst genmodsrc.sh
1501 sh $(srcdir)/genmodsrc.sh 'afs' $< > $@ || (rm -f $@; exit 1)
1503 ifneq ($(afs_mod_EXPORTS),no)
1504 def-afs.lst: pre-afs.o
1505 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 afs/' > $@
1506 endif
1508 und-afs.lst: pre-afs.o
1509 echo 'afs' > $@
1510 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1512 afs_mod-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES)
1513 $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -MD -c -o $@ $<
1514 -include afs_mod-fs_afs.d
1516 CLEANFILES += cmd-afs_mod-fs_afs.lst fs-afs_mod-fs_afs.lst partmap-afs_mod-fs_afs.lst
1517 COMMANDFILES += cmd-afs_mod-fs_afs.lst
1518 FSFILES += fs-afs_mod-fs_afs.lst
1519 PARTMAPFILES += partmap-afs_mod-fs_afs.lst
1521 cmd-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) gencmdlist.sh
1522 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)
1524 fs-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genfslist.sh
1525 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)
1527 partmap-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genpartmaplist.sh
1528 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)
1531 afs_mod_CFLAGS = $(COMMON_CFLAGS)
1532 afs_mod_LDFLAGS = $(COMMON_LDFLAGS)
1534 # Partition maps.
1535 pkglib_MODULES += amiga.mod apple.mod pc.mod sun.mod acorn.mod gpt.mod
1537 # For amiga.mod
1538 amiga_mod_SOURCES = partmap/amiga.c
1539 CLEANFILES += amiga.mod mod-amiga.o mod-amiga.c pre-amiga.o amiga_mod-partmap_amiga.o und-amiga.lst
1540 ifneq ($(amiga_mod_EXPORTS),no)
1541 CLEANFILES += def-amiga.lst
1542 DEFSYMFILES += def-amiga.lst
1543 endif
1544 MOSTLYCLEANFILES += amiga_mod-partmap_amiga.d
1545 UNDSYMFILES += und-amiga.lst
1547 amiga.mod: pre-amiga.o mod-amiga.o $(TARGET_OBJ2ELF)
1548 -rm -f $@
1549 $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-amiga.o mod-amiga.o
1550 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1551 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1553 pre-amiga.o: $(amiga_mod_DEPENDENCIES) amiga_mod-partmap_amiga.o
1554 -rm -f $@
1555 $(TARGET_CC) $(amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ amiga_mod-partmap_amiga.o
1557 mod-amiga.o: mod-amiga.c
1558 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -c -o $@ $<
1560 mod-amiga.c: moddep.lst genmodsrc.sh
1561 sh $(srcdir)/genmodsrc.sh 'amiga' $< > $@ || (rm -f $@; exit 1)
1563 ifneq ($(amiga_mod_EXPORTS),no)
1564 def-amiga.lst: pre-amiga.o
1565 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 amiga/' > $@
1566 endif
1568 und-amiga.lst: pre-amiga.o
1569 echo 'amiga' > $@
1570 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1572 amiga_mod-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES)
1573 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(amiga_mod_CFLAGS) -MD -c -o $@ $<
1574 -include amiga_mod-partmap_amiga.d
1576 CLEANFILES += cmd-amiga_mod-partmap_amiga.lst fs-amiga_mod-partmap_amiga.lst partmap-amiga_mod-partmap_amiga.lst
1577 COMMANDFILES += cmd-amiga_mod-partmap_amiga.lst
1578 FSFILES += fs-amiga_mod-partmap_amiga.lst
1579 PARTMAPFILES += partmap-amiga_mod-partmap_amiga.lst
1581 cmd-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) gencmdlist.sh
1582 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)
1584 fs-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genfslist.sh
1585 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)
1587 partmap-amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genpartmaplist.sh
1588 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)
1591 amiga_mod_CFLAGS = $(COMMON_CFLAGS)
1592 amiga_mod_LDFLAGS = $(COMMON_LDFLAGS)
1594 # For apple.mod
1595 apple_mod_SOURCES = partmap/apple.c
1596 CLEANFILES += apple.mod mod-apple.o mod-apple.c pre-apple.o apple_mod-partmap_apple.o und-apple.lst
1597 ifneq ($(apple_mod_EXPORTS),no)
1598 CLEANFILES += def-apple.lst
1599 DEFSYMFILES += def-apple.lst
1600 endif
1601 MOSTLYCLEANFILES += apple_mod-partmap_apple.d
1602 UNDSYMFILES += und-apple.lst
1604 apple.mod: pre-apple.o mod-apple.o $(TARGET_OBJ2ELF)
1605 -rm -f $@
1606 $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-apple.o mod-apple.o
1607 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1608 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1610 pre-apple.o: $(apple_mod_DEPENDENCIES) apple_mod-partmap_apple.o
1611 -rm -f $@
1612 $(TARGET_CC) $(apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ apple_mod-partmap_apple.o
1614 mod-apple.o: mod-apple.c
1615 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -c -o $@ $<
1617 mod-apple.c: moddep.lst genmodsrc.sh
1618 sh $(srcdir)/genmodsrc.sh 'apple' $< > $@ || (rm -f $@; exit 1)
1620 ifneq ($(apple_mod_EXPORTS),no)
1621 def-apple.lst: pre-apple.o
1622 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 apple/' > $@
1623 endif
1625 und-apple.lst: pre-apple.o
1626 echo 'apple' > $@
1627 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1629 apple_mod-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES)
1630 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(apple_mod_CFLAGS) -MD -c -o $@ $<
1631 -include apple_mod-partmap_apple.d
1633 CLEANFILES += cmd-apple_mod-partmap_apple.lst fs-apple_mod-partmap_apple.lst partmap-apple_mod-partmap_apple.lst
1634 COMMANDFILES += cmd-apple_mod-partmap_apple.lst
1635 FSFILES += fs-apple_mod-partmap_apple.lst
1636 PARTMAPFILES += partmap-apple_mod-partmap_apple.lst
1638 cmd-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) gencmdlist.sh
1639 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)
1641 fs-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genfslist.sh
1642 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)
1644 partmap-apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genpartmaplist.sh
1645 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)
1648 apple_mod_CFLAGS = $(COMMON_CFLAGS)
1649 apple_mod_LDFLAGS = $(COMMON_LDFLAGS)
1651 # For pc.mod
1652 pc_mod_SOURCES = partmap/pc.c
1653 CLEANFILES += pc.mod mod-pc.o mod-pc.c pre-pc.o pc_mod-partmap_pc.o und-pc.lst
1654 ifneq ($(pc_mod_EXPORTS),no)
1655 CLEANFILES += def-pc.lst
1656 DEFSYMFILES += def-pc.lst
1657 endif
1658 MOSTLYCLEANFILES += pc_mod-partmap_pc.d
1659 UNDSYMFILES += und-pc.lst
1661 pc.mod: pre-pc.o mod-pc.o $(TARGET_OBJ2ELF)
1662 -rm -f $@
1663 $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-pc.o mod-pc.o
1664 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1665 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1667 pre-pc.o: $(pc_mod_DEPENDENCIES) pc_mod-partmap_pc.o
1668 -rm -f $@
1669 $(TARGET_CC) $(pc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pc_mod-partmap_pc.o
1671 mod-pc.o: mod-pc.c
1672 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -c -o $@ $<
1674 mod-pc.c: moddep.lst genmodsrc.sh
1675 sh $(srcdir)/genmodsrc.sh 'pc' $< > $@ || (rm -f $@; exit 1)
1677 ifneq ($(pc_mod_EXPORTS),no)
1678 def-pc.lst: pre-pc.o
1679 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 pc/' > $@
1680 endif
1682 und-pc.lst: pre-pc.o
1683 echo 'pc' > $@
1684 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1686 pc_mod-partmap_pc.o: partmap/pc.c $(partmap/pc.c_DEPENDENCIES)
1687 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pc_mod_CFLAGS) -MD -c -o $@ $<
1688 -include pc_mod-partmap_pc.d
1690 CLEANFILES += cmd-pc_mod-partmap_pc.lst fs-pc_mod-partmap_pc.lst partmap-pc_mod-partmap_pc.lst
1691 COMMANDFILES += cmd-pc_mod-partmap_pc.lst
1692 FSFILES += fs-pc_mod-partmap_pc.lst
1693 PARTMAPFILES += partmap-pc_mod-partmap_pc.lst
1695 cmd-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) gencmdlist.sh
1696 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)
1698 fs-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) genfslist.sh
1699 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)
1701 partmap-pc_mod-partmap_pc.lst: partmap/pc.c $(partmap/pc.c_DEPENDENCIES) genpartmaplist.sh
1702 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)
1705 pc_mod_CFLAGS = $(COMMON_CFLAGS)
1706 pc_mod_LDFLAGS = $(COMMON_LDFLAGS)
1708 # For sun.mod
1709 sun_mod_SOURCES = partmap/sun.c
1710 CLEANFILES += sun.mod mod-sun.o mod-sun.c pre-sun.o sun_mod-partmap_sun.o und-sun.lst
1711 ifneq ($(sun_mod_EXPORTS),no)
1712 CLEANFILES += def-sun.lst
1713 DEFSYMFILES += def-sun.lst
1714 endif
1715 MOSTLYCLEANFILES += sun_mod-partmap_sun.d
1716 UNDSYMFILES += und-sun.lst
1718 sun.mod: pre-sun.o mod-sun.o $(TARGET_OBJ2ELF)
1719 -rm -f $@
1720 $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sun.o mod-sun.o
1721 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1722 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1724 pre-sun.o: $(sun_mod_DEPENDENCIES) sun_mod-partmap_sun.o
1725 -rm -f $@
1726 $(TARGET_CC) $(sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sun_mod-partmap_sun.o
1728 mod-sun.o: mod-sun.c
1729 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -c -o $@ $<
1731 mod-sun.c: moddep.lst genmodsrc.sh
1732 sh $(srcdir)/genmodsrc.sh 'sun' $< > $@ || (rm -f $@; exit 1)
1734 ifneq ($(sun_mod_EXPORTS),no)
1735 def-sun.lst: pre-sun.o
1736 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sun/' > $@
1737 endif
1739 und-sun.lst: pre-sun.o
1740 echo 'sun' > $@
1741 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1743 sun_mod-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES)
1744 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sun_mod_CFLAGS) -MD -c -o $@ $<
1745 -include sun_mod-partmap_sun.d
1747 CLEANFILES += cmd-sun_mod-partmap_sun.lst fs-sun_mod-partmap_sun.lst partmap-sun_mod-partmap_sun.lst
1748 COMMANDFILES += cmd-sun_mod-partmap_sun.lst
1749 FSFILES += fs-sun_mod-partmap_sun.lst
1750 PARTMAPFILES += partmap-sun_mod-partmap_sun.lst
1752 cmd-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) gencmdlist.sh
1753 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)
1755 fs-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genfslist.sh
1756 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)
1758 partmap-sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genpartmaplist.sh
1759 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)
1762 sun_mod_CFLAGS = $(COMMON_CFLAGS)
1763 sun_mod_LDFLAGS = $(COMMON_LDFLAGS)
1765 # For acorn.mod
1766 acorn_mod_SOURCES = partmap/acorn.c
1767 CLEANFILES += acorn.mod mod-acorn.o mod-acorn.c pre-acorn.o acorn_mod-partmap_acorn.o und-acorn.lst
1768 ifneq ($(acorn_mod_EXPORTS),no)
1769 CLEANFILES += def-acorn.lst
1770 DEFSYMFILES += def-acorn.lst
1771 endif
1772 MOSTLYCLEANFILES += acorn_mod-partmap_acorn.d
1773 UNDSYMFILES += und-acorn.lst
1775 acorn.mod: pre-acorn.o mod-acorn.o $(TARGET_OBJ2ELF)
1776 -rm -f $@
1777 $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-acorn.o mod-acorn.o
1778 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1779 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1781 pre-acorn.o: $(acorn_mod_DEPENDENCIES) acorn_mod-partmap_acorn.o
1782 -rm -f $@
1783 $(TARGET_CC) $(acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ acorn_mod-partmap_acorn.o
1785 mod-acorn.o: mod-acorn.c
1786 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -c -o $@ $<
1788 mod-acorn.c: moddep.lst genmodsrc.sh
1789 sh $(srcdir)/genmodsrc.sh 'acorn' $< > $@ || (rm -f $@; exit 1)
1791 ifneq ($(acorn_mod_EXPORTS),no)
1792 def-acorn.lst: pre-acorn.o
1793 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 acorn/' > $@
1794 endif
1796 und-acorn.lst: pre-acorn.o
1797 echo 'acorn' > $@
1798 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1800 acorn_mod-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES)
1801 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(acorn_mod_CFLAGS) -MD -c -o $@ $<
1802 -include acorn_mod-partmap_acorn.d
1804 CLEANFILES += cmd-acorn_mod-partmap_acorn.lst fs-acorn_mod-partmap_acorn.lst partmap-acorn_mod-partmap_acorn.lst
1805 COMMANDFILES += cmd-acorn_mod-partmap_acorn.lst
1806 FSFILES += fs-acorn_mod-partmap_acorn.lst
1807 PARTMAPFILES += partmap-acorn_mod-partmap_acorn.lst
1809 cmd-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) gencmdlist.sh
1810 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)
1812 fs-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genfslist.sh
1813 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)
1815 partmap-acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genpartmaplist.sh
1816 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)
1819 acorn_mod_CFLAGS = $(COMMON_CFLAGS)
1820 acorn_mod_LDFLAGS = $(COMMON_LDFLAGS)
1822 # For gpt.mod
1823 gpt_mod_SOURCES = partmap/gpt.c
1824 CLEANFILES += gpt.mod mod-gpt.o mod-gpt.c pre-gpt.o gpt_mod-partmap_gpt.o und-gpt.lst
1825 ifneq ($(gpt_mod_EXPORTS),no)
1826 CLEANFILES += def-gpt.lst
1827 DEFSYMFILES += def-gpt.lst
1828 endif
1829 MOSTLYCLEANFILES += gpt_mod-partmap_gpt.d
1830 UNDSYMFILES += und-gpt.lst
1832 gpt.mod: pre-gpt.o mod-gpt.o $(TARGET_OBJ2ELF)
1833 -rm -f $@
1834 $(TARGET_CC) $(gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-gpt.o mod-gpt.o
1835 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1836 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1838 pre-gpt.o: $(gpt_mod_DEPENDENCIES) gpt_mod-partmap_gpt.o
1839 -rm -f $@
1840 $(TARGET_CC) $(gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gpt_mod-partmap_gpt.o
1842 mod-gpt.o: mod-gpt.c
1843 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -c -o $@ $<
1845 mod-gpt.c: moddep.lst genmodsrc.sh
1846 sh $(srcdir)/genmodsrc.sh 'gpt' $< > $@ || (rm -f $@; exit 1)
1848 ifneq ($(gpt_mod_EXPORTS),no)
1849 def-gpt.lst: pre-gpt.o
1850 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gpt/' > $@
1851 endif
1853 und-gpt.lst: pre-gpt.o
1854 echo 'gpt' > $@
1855 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1857 gpt_mod-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES)
1858 $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gpt_mod_CFLAGS) -MD -c -o $@ $<
1859 -include gpt_mod-partmap_gpt.d
1861 CLEANFILES += cmd-gpt_mod-partmap_gpt.lst fs-gpt_mod-partmap_gpt.lst partmap-gpt_mod-partmap_gpt.lst
1862 COMMANDFILES += cmd-gpt_mod-partmap_gpt.lst
1863 FSFILES += fs-gpt_mod-partmap_gpt.lst
1864 PARTMAPFILES += partmap-gpt_mod-partmap_gpt.lst
1866 cmd-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) gencmdlist.sh
1867 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)
1869 fs-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genfslist.sh
1870 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)
1872 partmap-gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genpartmaplist.sh
1873 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)
1876 gpt_mod_CFLAGS = $(COMMON_CFLAGS)
1877 gpt_mod_LDFLAGS = $(COMMON_LDFLAGS)
1879 # Special disk structures
1881 pkglib_MODULES += raid.mod lvm.mod
1883 # For raid.mod
1884 raid_mod_SOURCES = disk/raid.c
1885 CLEANFILES += raid.mod mod-raid.o mod-raid.c pre-raid.o raid_mod-disk_raid.o und-raid.lst
1886 ifneq ($(raid_mod_EXPORTS),no)
1887 CLEANFILES += def-raid.lst
1888 DEFSYMFILES += def-raid.lst
1889 endif
1890 MOSTLYCLEANFILES += raid_mod-disk_raid.d
1891 UNDSYMFILES += und-raid.lst
1893 raid.mod: pre-raid.o mod-raid.o $(TARGET_OBJ2ELF)
1894 -rm -f $@
1895 $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-raid.o mod-raid.o
1896 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1897 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1899 pre-raid.o: $(raid_mod_DEPENDENCIES) raid_mod-disk_raid.o
1900 -rm -f $@
1901 $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid_mod-disk_raid.o
1903 mod-raid.o: mod-raid.c
1904 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -c -o $@ $<
1906 mod-raid.c: moddep.lst genmodsrc.sh
1907 sh $(srcdir)/genmodsrc.sh 'raid' $< > $@ || (rm -f $@; exit 1)
1909 ifneq ($(raid_mod_EXPORTS),no)
1910 def-raid.lst: pre-raid.o
1911 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid/' > $@
1912 endif
1914 und-raid.lst: pre-raid.o
1915 echo 'raid' > $@
1916 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1918 raid_mod-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES)
1919 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -MD -c -o $@ $<
1920 -include raid_mod-disk_raid.d
1922 CLEANFILES += cmd-raid_mod-disk_raid.lst fs-raid_mod-disk_raid.lst partmap-raid_mod-disk_raid.lst
1923 COMMANDFILES += cmd-raid_mod-disk_raid.lst
1924 FSFILES += fs-raid_mod-disk_raid.lst
1925 PARTMAPFILES += partmap-raid_mod-disk_raid.lst
1927 cmd-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) gencmdlist.sh
1928 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)
1930 fs-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genfslist.sh
1931 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)
1933 partmap-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genpartmaplist.sh
1934 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)
1937 raid_mod_CFLAGS = $(COMMON_CFLAGS)
1938 raid_mod_LDFLAGS = $(COMMON_LDFLAGS)
1940 # For raid.mod
1941 lvm_mod_SOURCES = disk/lvm.c
1942 CLEANFILES += lvm.mod mod-lvm.o mod-lvm.c pre-lvm.o lvm_mod-disk_lvm.o und-lvm.lst
1943 ifneq ($(lvm_mod_EXPORTS),no)
1944 CLEANFILES += def-lvm.lst
1945 DEFSYMFILES += def-lvm.lst
1946 endif
1947 MOSTLYCLEANFILES += lvm_mod-disk_lvm.d
1948 UNDSYMFILES += und-lvm.lst
1950 lvm.mod: pre-lvm.o mod-lvm.o $(TARGET_OBJ2ELF)
1951 -rm -f $@
1952 $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-lvm.o mod-lvm.o
1953 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
1954 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
1956 pre-lvm.o: $(lvm_mod_DEPENDENCIES) lvm_mod-disk_lvm.o
1957 -rm -f $@
1958 $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lvm_mod-disk_lvm.o
1960 mod-lvm.o: mod-lvm.c
1961 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -c -o $@ $<
1963 mod-lvm.c: moddep.lst genmodsrc.sh
1964 sh $(srcdir)/genmodsrc.sh 'lvm' $< > $@ || (rm -f $@; exit 1)
1966 ifneq ($(lvm_mod_EXPORTS),no)
1967 def-lvm.lst: pre-lvm.o
1968 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lvm/' > $@
1969 endif
1971 und-lvm.lst: pre-lvm.o
1972 echo 'lvm' > $@
1973 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
1975 lvm_mod-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES)
1976 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -MD -c -o $@ $<
1977 -include lvm_mod-disk_lvm.d
1979 CLEANFILES += cmd-lvm_mod-disk_lvm.lst fs-lvm_mod-disk_lvm.lst partmap-lvm_mod-disk_lvm.lst
1980 COMMANDFILES += cmd-lvm_mod-disk_lvm.lst
1981 FSFILES += fs-lvm_mod-disk_lvm.lst
1982 PARTMAPFILES += partmap-lvm_mod-disk_lvm.lst
1984 cmd-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) gencmdlist.sh
1985 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)
1987 fs-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genfslist.sh
1988 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)
1990 partmap-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genpartmaplist.sh
1991 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)
1994 lvm_mod_CFLAGS = $(COMMON_CFLAGS)
1995 lvm_mod_LDFLAGS = $(COMMON_LDFLAGS)
1997 # Commands.
1998 pkglib_MODULES += hello.mod boot.mod terminal.mod ls.mod \
1999 cmp.mod cat.mod help.mod font.mod search.mod \
2000 loopback.mod fs_uuid.mod configfile.mod echo.mod \
2001 terminfo.mod test.mod blocklist.mod hexdump.mod \
2002 read.mod sleep.mod loadenv.mod crc.mod
2004 # For hello.mod.
2005 hello_mod_SOURCES = hello/hello.c
2006 CLEANFILES += hello.mod mod-hello.o mod-hello.c pre-hello.o hello_mod-hello_hello.o und-hello.lst
2007 ifneq ($(hello_mod_EXPORTS),no)
2008 CLEANFILES += def-hello.lst
2009 DEFSYMFILES += def-hello.lst
2010 endif
2011 MOSTLYCLEANFILES += hello_mod-hello_hello.d
2012 UNDSYMFILES += und-hello.lst
2014 hello.mod: pre-hello.o mod-hello.o $(TARGET_OBJ2ELF)
2015 -rm -f $@
2016 $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hello.o mod-hello.o
2017 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2018 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2020 pre-hello.o: $(hello_mod_DEPENDENCIES) hello_mod-hello_hello.o
2021 -rm -f $@
2022 $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hello_mod-hello_hello.o
2024 mod-hello.o: mod-hello.c
2025 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -c -o $@ $<
2027 mod-hello.c: moddep.lst genmodsrc.sh
2028 sh $(srcdir)/genmodsrc.sh 'hello' $< > $@ || (rm -f $@; exit 1)
2030 ifneq ($(hello_mod_EXPORTS),no)
2031 def-hello.lst: pre-hello.o
2032 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hello/' > $@
2033 endif
2035 und-hello.lst: pre-hello.o
2036 echo 'hello' > $@
2037 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2039 hello_mod-hello_hello.o: hello/hello.c $(hello/hello.c_DEPENDENCIES)
2040 $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -MD -c -o $@ $<
2041 -include hello_mod-hello_hello.d
2043 CLEANFILES += cmd-hello_mod-hello_hello.lst fs-hello_mod-hello_hello.lst partmap-hello_mod-hello_hello.lst
2044 COMMANDFILES += cmd-hello_mod-hello_hello.lst
2045 FSFILES += fs-hello_mod-hello_hello.lst
2046 PARTMAPFILES += partmap-hello_mod-hello_hello.lst
2048 cmd-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) gencmdlist.sh
2049 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)
2051 fs-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genfslist.sh
2052 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)
2054 partmap-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genpartmaplist.sh
2055 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)
2058 hello_mod_CFLAGS = $(COMMON_CFLAGS)
2059 hello_mod_LDFLAGS = $(COMMON_LDFLAGS)
2061 # For boot.mod.
2062 boot_mod_SOURCES = commands/boot.c
2063 CLEANFILES += boot.mod mod-boot.o mod-boot.c pre-boot.o boot_mod-commands_boot.o und-boot.lst
2064 ifneq ($(boot_mod_EXPORTS),no)
2065 CLEANFILES += def-boot.lst
2066 DEFSYMFILES += def-boot.lst
2067 endif
2068 MOSTLYCLEANFILES += boot_mod-commands_boot.d
2069 UNDSYMFILES += und-boot.lst
2071 boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF)
2072 -rm -f $@
2073 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-boot.o mod-boot.o
2074 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2075 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2077 pre-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o
2078 -rm -f $@
2079 $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ boot_mod-commands_boot.o
2081 mod-boot.o: mod-boot.c
2082 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $<
2084 mod-boot.c: moddep.lst genmodsrc.sh
2085 sh $(srcdir)/genmodsrc.sh 'boot' $< > $@ || (rm -f $@; exit 1)
2087 ifneq ($(boot_mod_EXPORTS),no)
2088 def-boot.lst: pre-boot.o
2089 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 boot/' > $@
2090 endif
2092 und-boot.lst: pre-boot.o
2093 echo 'boot' > $@
2094 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2096 boot_mod-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES)
2097 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -MD -c -o $@ $<
2098 -include boot_mod-commands_boot.d
2100 CLEANFILES += cmd-boot_mod-commands_boot.lst fs-boot_mod-commands_boot.lst partmap-boot_mod-commands_boot.lst
2101 COMMANDFILES += cmd-boot_mod-commands_boot.lst
2102 FSFILES += fs-boot_mod-commands_boot.lst
2103 PARTMAPFILES += partmap-boot_mod-commands_boot.lst
2105 cmd-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) gencmdlist.sh
2106 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)
2108 fs-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genfslist.sh
2109 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)
2111 partmap-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genpartmaplist.sh
2112 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)
2115 boot_mod_CFLAGS = $(COMMON_CFLAGS)
2116 boot_mod_LDFLAGS = $(COMMON_LDFLAGS)
2118 # For terminal.mod.
2119 terminal_mod_SOURCES = commands/terminal.c
2120 CLEANFILES += terminal.mod mod-terminal.o mod-terminal.c pre-terminal.o terminal_mod-commands_terminal.o und-terminal.lst
2121 ifneq ($(terminal_mod_EXPORTS),no)
2122 CLEANFILES += def-terminal.lst
2123 DEFSYMFILES += def-terminal.lst
2124 endif
2125 MOSTLYCLEANFILES += terminal_mod-commands_terminal.d
2126 UNDSYMFILES += und-terminal.lst
2128 terminal.mod: pre-terminal.o mod-terminal.o $(TARGET_OBJ2ELF)
2129 -rm -f $@
2130 $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-terminal.o mod-terminal.o
2131 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2132 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2134 pre-terminal.o: $(terminal_mod_DEPENDENCIES) terminal_mod-commands_terminal.o
2135 -rm -f $@
2136 $(TARGET_CC) $(terminal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ terminal_mod-commands_terminal.o
2138 mod-terminal.o: mod-terminal.c
2139 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -c -o $@ $<
2141 mod-terminal.c: moddep.lst genmodsrc.sh
2142 sh $(srcdir)/genmodsrc.sh 'terminal' $< > $@ || (rm -f $@; exit 1)
2144 ifneq ($(terminal_mod_EXPORTS),no)
2145 def-terminal.lst: pre-terminal.o
2146 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 terminal/' > $@
2147 endif
2149 und-terminal.lst: pre-terminal.o
2150 echo 'terminal' > $@
2151 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2153 terminal_mod-commands_terminal.o: commands/terminal.c $(commands/terminal.c_DEPENDENCIES)
2154 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminal_mod_CFLAGS) -MD -c -o $@ $<
2155 -include terminal_mod-commands_terminal.d
2157 CLEANFILES += cmd-terminal_mod-commands_terminal.lst fs-terminal_mod-commands_terminal.lst partmap-terminal_mod-commands_terminal.lst
2158 COMMANDFILES += cmd-terminal_mod-commands_terminal.lst
2159 FSFILES += fs-terminal_mod-commands_terminal.lst
2160 PARTMAPFILES += partmap-terminal_mod-commands_terminal.lst
2162 cmd-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) gencmdlist.sh
2163 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)
2165 fs-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) genfslist.sh
2166 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)
2168 partmap-terminal_mod-commands_terminal.lst: commands/terminal.c $(commands/terminal.c_DEPENDENCIES) genpartmaplist.sh
2169 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)
2172 terminal_mod_CFLAGS = $(COMMON_CFLAGS)
2173 terminal_mod_LDFLAGS = $(COMMON_LDFLAGS)
2175 # For ls.mod.
2176 ls_mod_SOURCES = commands/ls.c
2177 CLEANFILES += ls.mod mod-ls.o mod-ls.c pre-ls.o ls_mod-commands_ls.o und-ls.lst
2178 ifneq ($(ls_mod_EXPORTS),no)
2179 CLEANFILES += def-ls.lst
2180 DEFSYMFILES += def-ls.lst
2181 endif
2182 MOSTLYCLEANFILES += ls_mod-commands_ls.d
2183 UNDSYMFILES += und-ls.lst
2185 ls.mod: pre-ls.o mod-ls.o $(TARGET_OBJ2ELF)
2186 -rm -f $@
2187 $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-ls.o mod-ls.o
2188 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2189 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2191 pre-ls.o: $(ls_mod_DEPENDENCIES) ls_mod-commands_ls.o
2192 -rm -f $@
2193 $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ls_mod-commands_ls.o
2195 mod-ls.o: mod-ls.c
2196 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -c -o $@ $<
2198 mod-ls.c: moddep.lst genmodsrc.sh
2199 sh $(srcdir)/genmodsrc.sh 'ls' $< > $@ || (rm -f $@; exit 1)
2201 ifneq ($(ls_mod_EXPORTS),no)
2202 def-ls.lst: pre-ls.o
2203 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ls/' > $@
2204 endif
2206 und-ls.lst: pre-ls.o
2207 echo 'ls' > $@
2208 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2210 ls_mod-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES)
2211 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -MD -c -o $@ $<
2212 -include ls_mod-commands_ls.d
2214 CLEANFILES += cmd-ls_mod-commands_ls.lst fs-ls_mod-commands_ls.lst partmap-ls_mod-commands_ls.lst
2215 COMMANDFILES += cmd-ls_mod-commands_ls.lst
2216 FSFILES += fs-ls_mod-commands_ls.lst
2217 PARTMAPFILES += partmap-ls_mod-commands_ls.lst
2219 cmd-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) gencmdlist.sh
2220 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)
2222 fs-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genfslist.sh
2223 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)
2225 partmap-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genpartmaplist.sh
2226 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)
2229 ls_mod_CFLAGS = $(COMMON_CFLAGS)
2230 ls_mod_LDFLAGS = $(COMMON_LDFLAGS)
2232 # For cmp.mod.
2233 cmp_mod_SOURCES = commands/cmp.c
2234 CLEANFILES += cmp.mod mod-cmp.o mod-cmp.c pre-cmp.o cmp_mod-commands_cmp.o und-cmp.lst
2235 ifneq ($(cmp_mod_EXPORTS),no)
2236 CLEANFILES += def-cmp.lst
2237 DEFSYMFILES += def-cmp.lst
2238 endif
2239 MOSTLYCLEANFILES += cmp_mod-commands_cmp.d
2240 UNDSYMFILES += und-cmp.lst
2242 cmp.mod: pre-cmp.o mod-cmp.o $(TARGET_OBJ2ELF)
2243 -rm -f $@
2244 $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cmp.o mod-cmp.o
2245 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2246 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2248 pre-cmp.o: $(cmp_mod_DEPENDENCIES) cmp_mod-commands_cmp.o
2249 -rm -f $@
2250 $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cmp_mod-commands_cmp.o
2252 mod-cmp.o: mod-cmp.c
2253 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -c -o $@ $<
2255 mod-cmp.c: moddep.lst genmodsrc.sh
2256 sh $(srcdir)/genmodsrc.sh 'cmp' $< > $@ || (rm -f $@; exit 1)
2258 ifneq ($(cmp_mod_EXPORTS),no)
2259 def-cmp.lst: pre-cmp.o
2260 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cmp/' > $@
2261 endif
2263 und-cmp.lst: pre-cmp.o
2264 echo 'cmp' > $@
2265 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2267 cmp_mod-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES)
2268 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -MD -c -o $@ $<
2269 -include cmp_mod-commands_cmp.d
2271 CLEANFILES += cmd-cmp_mod-commands_cmp.lst fs-cmp_mod-commands_cmp.lst partmap-cmp_mod-commands_cmp.lst
2272 COMMANDFILES += cmd-cmp_mod-commands_cmp.lst
2273 FSFILES += fs-cmp_mod-commands_cmp.lst
2274 PARTMAPFILES += partmap-cmp_mod-commands_cmp.lst
2276 cmd-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) gencmdlist.sh
2277 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)
2279 fs-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genfslist.sh
2280 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)
2282 partmap-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genpartmaplist.sh
2283 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)
2286 cmp_mod_CFLAGS = $(COMMON_CFLAGS)
2287 cmp_mod_LDFLAGS = $(COMMON_LDFLAGS)
2289 # For cat.mod.
2290 cat_mod_SOURCES = commands/cat.c
2291 CLEANFILES += cat.mod mod-cat.o mod-cat.c pre-cat.o cat_mod-commands_cat.o und-cat.lst
2292 ifneq ($(cat_mod_EXPORTS),no)
2293 CLEANFILES += def-cat.lst
2294 DEFSYMFILES += def-cat.lst
2295 endif
2296 MOSTLYCLEANFILES += cat_mod-commands_cat.d
2297 UNDSYMFILES += und-cat.lst
2299 cat.mod: pre-cat.o mod-cat.o $(TARGET_OBJ2ELF)
2300 -rm -f $@
2301 $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-cat.o mod-cat.o
2302 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2303 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2305 pre-cat.o: $(cat_mod_DEPENDENCIES) cat_mod-commands_cat.o
2306 -rm -f $@
2307 $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cat_mod-commands_cat.o
2309 mod-cat.o: mod-cat.c
2310 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -c -o $@ $<
2312 mod-cat.c: moddep.lst genmodsrc.sh
2313 sh $(srcdir)/genmodsrc.sh 'cat' $< > $@ || (rm -f $@; exit 1)
2315 ifneq ($(cat_mod_EXPORTS),no)
2316 def-cat.lst: pre-cat.o
2317 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cat/' > $@
2318 endif
2320 und-cat.lst: pre-cat.o
2321 echo 'cat' > $@
2322 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2324 cat_mod-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES)
2325 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -MD -c -o $@ $<
2326 -include cat_mod-commands_cat.d
2328 CLEANFILES += cmd-cat_mod-commands_cat.lst fs-cat_mod-commands_cat.lst partmap-cat_mod-commands_cat.lst
2329 COMMANDFILES += cmd-cat_mod-commands_cat.lst
2330 FSFILES += fs-cat_mod-commands_cat.lst
2331 PARTMAPFILES += partmap-cat_mod-commands_cat.lst
2333 cmd-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) gencmdlist.sh
2334 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)
2336 fs-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genfslist.sh
2337 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)
2339 partmap-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genpartmaplist.sh
2340 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)
2343 cat_mod_CFLAGS = $(COMMON_CFLAGS)
2344 cat_mod_LDFLAGS = $(COMMON_LDFLAGS)
2346 # For echo.mod
2347 echo_mod_SOURCES = commands/echo.c
2348 CLEANFILES += echo.mod mod-echo.o mod-echo.c pre-echo.o echo_mod-commands_echo.o und-echo.lst
2349 ifneq ($(echo_mod_EXPORTS),no)
2350 CLEANFILES += def-echo.lst
2351 DEFSYMFILES += def-echo.lst
2352 endif
2353 MOSTLYCLEANFILES += echo_mod-commands_echo.d
2354 UNDSYMFILES += und-echo.lst
2356 echo.mod: pre-echo.o mod-echo.o $(TARGET_OBJ2ELF)
2357 -rm -f $@
2358 $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-echo.o mod-echo.o
2359 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2360 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2362 pre-echo.o: $(echo_mod_DEPENDENCIES) echo_mod-commands_echo.o
2363 -rm -f $@
2364 $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ echo_mod-commands_echo.o
2366 mod-echo.o: mod-echo.c
2367 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -c -o $@ $<
2369 mod-echo.c: moddep.lst genmodsrc.sh
2370 sh $(srcdir)/genmodsrc.sh 'echo' $< > $@ || (rm -f $@; exit 1)
2372 ifneq ($(echo_mod_EXPORTS),no)
2373 def-echo.lst: pre-echo.o
2374 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 echo/' > $@
2375 endif
2377 und-echo.lst: pre-echo.o
2378 echo 'echo' > $@
2379 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2381 echo_mod-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES)
2382 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -MD -c -o $@ $<
2383 -include echo_mod-commands_echo.d
2385 CLEANFILES += cmd-echo_mod-commands_echo.lst fs-echo_mod-commands_echo.lst partmap-echo_mod-commands_echo.lst
2386 COMMANDFILES += cmd-echo_mod-commands_echo.lst
2387 FSFILES += fs-echo_mod-commands_echo.lst
2388 PARTMAPFILES += partmap-echo_mod-commands_echo.lst
2390 cmd-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) gencmdlist.sh
2391 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)
2393 fs-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genfslist.sh
2394 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)
2396 partmap-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genpartmaplist.sh
2397 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)
2400 echo_mod_CFLAGS = $(COMMON_CFLAGS)
2401 echo_mod_LDFLAGS = $(COMMON_LDFLAGS)
2403 # For help.mod.
2404 help_mod_SOURCES = commands/help.c
2405 CLEANFILES += help.mod mod-help.o mod-help.c pre-help.o help_mod-commands_help.o und-help.lst
2406 ifneq ($(help_mod_EXPORTS),no)
2407 CLEANFILES += def-help.lst
2408 DEFSYMFILES += def-help.lst
2409 endif
2410 MOSTLYCLEANFILES += help_mod-commands_help.d
2411 UNDSYMFILES += und-help.lst
2413 help.mod: pre-help.o mod-help.o $(TARGET_OBJ2ELF)
2414 -rm -f $@
2415 $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-help.o mod-help.o
2416 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2417 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2419 pre-help.o: $(help_mod_DEPENDENCIES) help_mod-commands_help.o
2420 -rm -f $@
2421 $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ help_mod-commands_help.o
2423 mod-help.o: mod-help.c
2424 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -c -o $@ $<
2426 mod-help.c: moddep.lst genmodsrc.sh
2427 sh $(srcdir)/genmodsrc.sh 'help' $< > $@ || (rm -f $@; exit 1)
2429 ifneq ($(help_mod_EXPORTS),no)
2430 def-help.lst: pre-help.o
2431 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 help/' > $@
2432 endif
2434 und-help.lst: pre-help.o
2435 echo 'help' > $@
2436 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2438 help_mod-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES)
2439 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -MD -c -o $@ $<
2440 -include help_mod-commands_help.d
2442 CLEANFILES += cmd-help_mod-commands_help.lst fs-help_mod-commands_help.lst partmap-help_mod-commands_help.lst
2443 COMMANDFILES += cmd-help_mod-commands_help.lst
2444 FSFILES += fs-help_mod-commands_help.lst
2445 PARTMAPFILES += partmap-help_mod-commands_help.lst
2447 cmd-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) gencmdlist.sh
2448 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)
2450 fs-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genfslist.sh
2451 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)
2453 partmap-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genpartmaplist.sh
2454 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)
2457 help_mod_CFLAGS = $(COMMON_CFLAGS)
2458 help_mod_LDFLAGS = $(COMMON_LDFLAGS)
2460 # For font.mod.
2461 font_mod_SOURCES = font/manager.c
2462 CLEANFILES += font.mod mod-font.o mod-font.c pre-font.o font_mod-font_manager.o und-font.lst
2463 ifneq ($(font_mod_EXPORTS),no)
2464 CLEANFILES += def-font.lst
2465 DEFSYMFILES += def-font.lst
2466 endif
2467 MOSTLYCLEANFILES += font_mod-font_manager.d
2468 UNDSYMFILES += und-font.lst
2470 font.mod: pre-font.o mod-font.o $(TARGET_OBJ2ELF)
2471 -rm -f $@
2472 $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-font.o mod-font.o
2473 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2474 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2476 pre-font.o: $(font_mod_DEPENDENCIES) font_mod-font_manager.o
2477 -rm -f $@
2478 $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ font_mod-font_manager.o
2480 mod-font.o: mod-font.c
2481 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -c -o $@ $<
2483 mod-font.c: moddep.lst genmodsrc.sh
2484 sh $(srcdir)/genmodsrc.sh 'font' $< > $@ || (rm -f $@; exit 1)
2486 ifneq ($(font_mod_EXPORTS),no)
2487 def-font.lst: pre-font.o
2488 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 font/' > $@
2489 endif
2491 und-font.lst: pre-font.o
2492 echo 'font' > $@
2493 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2495 font_mod-font_manager.o: font/manager.c $(font/manager.c_DEPENDENCIES)
2496 $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -MD -c -o $@ $<
2497 -include font_mod-font_manager.d
2499 CLEANFILES += cmd-font_mod-font_manager.lst fs-font_mod-font_manager.lst partmap-font_mod-font_manager.lst
2500 COMMANDFILES += cmd-font_mod-font_manager.lst
2501 FSFILES += fs-font_mod-font_manager.lst
2502 PARTMAPFILES += partmap-font_mod-font_manager.lst
2504 cmd-font_mod-font_manager.lst: font/manager.c $(font/manager.c_DEPENDENCIES) gencmdlist.sh
2505 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)
2507 fs-font_mod-font_manager.lst: font/manager.c $(font/manager.c_DEPENDENCIES) genfslist.sh
2508 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)
2510 partmap-font_mod-font_manager.lst: font/manager.c $(font/manager.c_DEPENDENCIES) genpartmaplist.sh
2511 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)
2514 font_mod_CFLAGS = $(COMMON_CFLAGS)
2515 font_mod_LDFLAGS = $(COMMON_LDFLAGS)
2517 # For search.mod.
2518 search_mod_SOURCES = commands/search.c
2519 CLEANFILES += search.mod mod-search.o mod-search.c pre-search.o search_mod-commands_search.o und-search.lst
2520 ifneq ($(search_mod_EXPORTS),no)
2521 CLEANFILES += def-search.lst
2522 DEFSYMFILES += def-search.lst
2523 endif
2524 MOSTLYCLEANFILES += search_mod-commands_search.d
2525 UNDSYMFILES += und-search.lst
2527 search.mod: pre-search.o mod-search.o $(TARGET_OBJ2ELF)
2528 -rm -f $@
2529 $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-search.o mod-search.o
2530 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2531 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2533 pre-search.o: $(search_mod_DEPENDENCIES) search_mod-commands_search.o
2534 -rm -f $@
2535 $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ search_mod-commands_search.o
2537 mod-search.o: mod-search.c
2538 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -c -o $@ $<
2540 mod-search.c: moddep.lst genmodsrc.sh
2541 sh $(srcdir)/genmodsrc.sh 'search' $< > $@ || (rm -f $@; exit 1)
2543 ifneq ($(search_mod_EXPORTS),no)
2544 def-search.lst: pre-search.o
2545 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 search/' > $@
2546 endif
2548 und-search.lst: pre-search.o
2549 echo 'search' > $@
2550 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2552 search_mod-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES)
2553 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -MD -c -o $@ $<
2554 -include search_mod-commands_search.d
2556 CLEANFILES += cmd-search_mod-commands_search.lst fs-search_mod-commands_search.lst partmap-search_mod-commands_search.lst
2557 COMMANDFILES += cmd-search_mod-commands_search.lst
2558 FSFILES += fs-search_mod-commands_search.lst
2559 PARTMAPFILES += partmap-search_mod-commands_search.lst
2561 cmd-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) gencmdlist.sh
2562 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)
2564 fs-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genfslist.sh
2565 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)
2567 partmap-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genpartmaplist.sh
2568 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)
2571 search_mod_CFLAGS = $(COMMON_CFLAGS)
2572 search_mod_LDFLAGS = $(COMMON_LDFLAGS)
2574 # For test.mod.
2575 test_mod_SOURCES = commands/test.c
2576 CLEANFILES += test.mod mod-test.o mod-test.c pre-test.o test_mod-commands_test.o und-test.lst
2577 ifneq ($(test_mod_EXPORTS),no)
2578 CLEANFILES += def-test.lst
2579 DEFSYMFILES += def-test.lst
2580 endif
2581 MOSTLYCLEANFILES += test_mod-commands_test.d
2582 UNDSYMFILES += und-test.lst
2584 test.mod: pre-test.o mod-test.o $(TARGET_OBJ2ELF)
2585 -rm -f $@
2586 $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-test.o mod-test.o
2587 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2588 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2590 pre-test.o: $(test_mod_DEPENDENCIES) test_mod-commands_test.o
2591 -rm -f $@
2592 $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ test_mod-commands_test.o
2594 mod-test.o: mod-test.c
2595 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -c -o $@ $<
2597 mod-test.c: moddep.lst genmodsrc.sh
2598 sh $(srcdir)/genmodsrc.sh 'test' $< > $@ || (rm -f $@; exit 1)
2600 ifneq ($(test_mod_EXPORTS),no)
2601 def-test.lst: pre-test.o
2602 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 test/' > $@
2603 endif
2605 und-test.lst: pre-test.o
2606 echo 'test' > $@
2607 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2609 test_mod-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES)
2610 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -MD -c -o $@ $<
2611 -include test_mod-commands_test.d
2613 CLEANFILES += cmd-test_mod-commands_test.lst fs-test_mod-commands_test.lst partmap-test_mod-commands_test.lst
2614 COMMANDFILES += cmd-test_mod-commands_test.lst
2615 FSFILES += fs-test_mod-commands_test.lst
2616 PARTMAPFILES += partmap-test_mod-commands_test.lst
2618 cmd-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) gencmdlist.sh
2619 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)
2621 fs-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genfslist.sh
2622 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)
2624 partmap-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genpartmaplist.sh
2625 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)
2628 test_mod_CFLAGS = $(COMMON_CFLAGS)
2629 test_mod_LDFLAGS = $(COMMON_LDFLAGS)
2631 # For loopback.mod
2632 loopback_mod_SOURCES = disk/loopback.c
2633 CLEANFILES += loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o und-loopback.lst
2634 ifneq ($(loopback_mod_EXPORTS),no)
2635 CLEANFILES += def-loopback.lst
2636 DEFSYMFILES += def-loopback.lst
2637 endif
2638 MOSTLYCLEANFILES += loopback_mod-disk_loopback.d
2639 UNDSYMFILES += und-loopback.lst
2641 loopback.mod: pre-loopback.o mod-loopback.o $(TARGET_OBJ2ELF)
2642 -rm -f $@
2643 $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-loopback.o mod-loopback.o
2644 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2645 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2647 pre-loopback.o: $(loopback_mod_DEPENDENCIES) loopback_mod-disk_loopback.o
2648 -rm -f $@
2649 $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loopback_mod-disk_loopback.o
2651 mod-loopback.o: mod-loopback.c
2652 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -c -o $@ $<
2654 mod-loopback.c: moddep.lst genmodsrc.sh
2655 sh $(srcdir)/genmodsrc.sh 'loopback' $< > $@ || (rm -f $@; exit 1)
2657 ifneq ($(loopback_mod_EXPORTS),no)
2658 def-loopback.lst: pre-loopback.o
2659 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loopback/' > $@
2660 endif
2662 und-loopback.lst: pre-loopback.o
2663 echo 'loopback' > $@
2664 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2666 loopback_mod-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES)
2667 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -MD -c -o $@ $<
2668 -include loopback_mod-disk_loopback.d
2670 CLEANFILES += cmd-loopback_mod-disk_loopback.lst fs-loopback_mod-disk_loopback.lst partmap-loopback_mod-disk_loopback.lst
2671 COMMANDFILES += cmd-loopback_mod-disk_loopback.lst
2672 FSFILES += fs-loopback_mod-disk_loopback.lst
2673 PARTMAPFILES += partmap-loopback_mod-disk_loopback.lst
2675 cmd-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) gencmdlist.sh
2676 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)
2678 fs-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genfslist.sh
2679 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)
2681 partmap-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genpartmaplist.sh
2682 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)
2685 loopback_mod_CFLAGS = $(COMMON_CFLAGS)
2686 loopback_mod_LDFLAGS = $(COMMON_LDFLAGS)
2688 # For fs_uuid.mod
2689 fs_uuid_mod_SOURCES = disk/fs_uuid.c
2690 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
2691 ifneq ($(fs_uuid_mod_EXPORTS),no)
2692 CLEANFILES += def-fs_uuid.lst
2693 DEFSYMFILES += def-fs_uuid.lst
2694 endif
2695 MOSTLYCLEANFILES += fs_uuid_mod-disk_fs_uuid.d
2696 UNDSYMFILES += und-fs_uuid.lst
2698 fs_uuid.mod: pre-fs_uuid.o mod-fs_uuid.o $(TARGET_OBJ2ELF)
2699 -rm -f $@
2700 $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-fs_uuid.o mod-fs_uuid.o
2701 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2702 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2704 pre-fs_uuid.o: $(fs_uuid_mod_DEPENDENCIES) fs_uuid_mod-disk_fs_uuid.o
2705 -rm -f $@
2706 $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fs_uuid_mod-disk_fs_uuid.o
2708 mod-fs_uuid.o: mod-fs_uuid.c
2709 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -c -o $@ $<
2711 mod-fs_uuid.c: moddep.lst genmodsrc.sh
2712 sh $(srcdir)/genmodsrc.sh 'fs_uuid' $< > $@ || (rm -f $@; exit 1)
2714 ifneq ($(fs_uuid_mod_EXPORTS),no)
2715 def-fs_uuid.lst: pre-fs_uuid.o
2716 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fs_uuid/' > $@
2717 endif
2719 und-fs_uuid.lst: pre-fs_uuid.o
2720 echo 'fs_uuid' > $@
2721 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2723 fs_uuid_mod-disk_fs_uuid.o: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES)
2724 $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -MD -c -o $@ $<
2725 -include fs_uuid_mod-disk_fs_uuid.d
2727 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
2728 COMMANDFILES += cmd-fs_uuid_mod-disk_fs_uuid.lst
2729 FSFILES += fs-fs_uuid_mod-disk_fs_uuid.lst
2730 PARTMAPFILES += partmap-fs_uuid_mod-disk_fs_uuid.lst
2732 cmd-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) gencmdlist.sh
2733 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)
2735 fs-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genfslist.sh
2736 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)
2738 partmap-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genpartmaplist.sh
2739 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)
2742 fs_uuid_mod_CFLAGS = $(COMMON_CFLAGS)
2743 fs_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS)
2745 # For configfile.mod
2746 configfile_mod_SOURCES = commands/configfile.c
2747 CLEANFILES += configfile.mod mod-configfile.o mod-configfile.c pre-configfile.o configfile_mod-commands_configfile.o und-configfile.lst
2748 ifneq ($(configfile_mod_EXPORTS),no)
2749 CLEANFILES += def-configfile.lst
2750 DEFSYMFILES += def-configfile.lst
2751 endif
2752 MOSTLYCLEANFILES += configfile_mod-commands_configfile.d
2753 UNDSYMFILES += und-configfile.lst
2755 configfile.mod: pre-configfile.o mod-configfile.o $(TARGET_OBJ2ELF)
2756 -rm -f $@
2757 $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-configfile.o mod-configfile.o
2758 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2759 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2761 pre-configfile.o: $(configfile_mod_DEPENDENCIES) configfile_mod-commands_configfile.o
2762 -rm -f $@
2763 $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ configfile_mod-commands_configfile.o
2765 mod-configfile.o: mod-configfile.c
2766 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -c -o $@ $<
2768 mod-configfile.c: moddep.lst genmodsrc.sh
2769 sh $(srcdir)/genmodsrc.sh 'configfile' $< > $@ || (rm -f $@; exit 1)
2771 ifneq ($(configfile_mod_EXPORTS),no)
2772 def-configfile.lst: pre-configfile.o
2773 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 configfile/' > $@
2774 endif
2776 und-configfile.lst: pre-configfile.o
2777 echo 'configfile' > $@
2778 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2780 configfile_mod-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES)
2781 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -MD -c -o $@ $<
2782 -include configfile_mod-commands_configfile.d
2784 CLEANFILES += cmd-configfile_mod-commands_configfile.lst fs-configfile_mod-commands_configfile.lst partmap-configfile_mod-commands_configfile.lst
2785 COMMANDFILES += cmd-configfile_mod-commands_configfile.lst
2786 FSFILES += fs-configfile_mod-commands_configfile.lst
2787 PARTMAPFILES += partmap-configfile_mod-commands_configfile.lst
2789 cmd-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) gencmdlist.sh
2790 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)
2792 fs-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genfslist.sh
2793 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)
2795 partmap-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genpartmaplist.sh
2796 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)
2799 configfile_mod_CFLAGS = $(COMMON_CFLAGS)
2800 configfile_mod_LDFLAGS = $(COMMON_LDFLAGS)
2802 # For terminfo.mod.
2803 terminfo_mod_SOURCES = term/terminfo.c term/tparm.c
2804 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
2805 ifneq ($(terminfo_mod_EXPORTS),no)
2806 CLEANFILES += def-terminfo.lst
2807 DEFSYMFILES += def-terminfo.lst
2808 endif
2809 MOSTLYCLEANFILES += terminfo_mod-term_terminfo.d terminfo_mod-term_tparm.d
2810 UNDSYMFILES += und-terminfo.lst
2812 terminfo.mod: pre-terminfo.o mod-terminfo.o $(TARGET_OBJ2ELF)
2813 -rm -f $@
2814 $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-terminfo.o mod-terminfo.o
2815 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2816 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2818 pre-terminfo.o: $(terminfo_mod_DEPENDENCIES) terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o
2819 -rm -f $@
2820 $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o
2822 mod-terminfo.o: mod-terminfo.c
2823 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -c -o $@ $<
2825 mod-terminfo.c: moddep.lst genmodsrc.sh
2826 sh $(srcdir)/genmodsrc.sh 'terminfo' $< > $@ || (rm -f $@; exit 1)
2828 ifneq ($(terminfo_mod_EXPORTS),no)
2829 def-terminfo.lst: pre-terminfo.o
2830 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 terminfo/' > $@
2831 endif
2833 und-terminfo.lst: pre-terminfo.o
2834 echo 'terminfo' > $@
2835 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2837 terminfo_mod-term_terminfo.o: term/terminfo.c $(term/terminfo.c_DEPENDENCIES)
2838 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $<
2839 -include terminfo_mod-term_terminfo.d
2841 CLEANFILES += cmd-terminfo_mod-term_terminfo.lst fs-terminfo_mod-term_terminfo.lst partmap-terminfo_mod-term_terminfo.lst
2842 COMMANDFILES += cmd-terminfo_mod-term_terminfo.lst
2843 FSFILES += fs-terminfo_mod-term_terminfo.lst
2844 PARTMAPFILES += partmap-terminfo_mod-term_terminfo.lst
2846 cmd-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) gencmdlist.sh
2847 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)
2849 fs-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genfslist.sh
2850 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)
2852 partmap-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genpartmaplist.sh
2853 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)
2856 terminfo_mod-term_tparm.o: term/tparm.c $(term/tparm.c_DEPENDENCIES)
2857 $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $<
2858 -include terminfo_mod-term_tparm.d
2860 CLEANFILES += cmd-terminfo_mod-term_tparm.lst fs-terminfo_mod-term_tparm.lst partmap-terminfo_mod-term_tparm.lst
2861 COMMANDFILES += cmd-terminfo_mod-term_tparm.lst
2862 FSFILES += fs-terminfo_mod-term_tparm.lst
2863 PARTMAPFILES += partmap-terminfo_mod-term_tparm.lst
2865 cmd-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) gencmdlist.sh
2866 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)
2868 fs-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genfslist.sh
2869 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)
2871 partmap-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genpartmaplist.sh
2872 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)
2875 terminfo_mod_CFLAGS = $(COMMON_CFLAGS)
2876 terminfo_mod_LDFLAGS = $(COMMON_LDFLAGS)
2878 # For blocklist.mod.
2879 blocklist_mod_SOURCES = commands/blocklist.c
2880 CLEANFILES += blocklist.mod mod-blocklist.o mod-blocklist.c pre-blocklist.o blocklist_mod-commands_blocklist.o und-blocklist.lst
2881 ifneq ($(blocklist_mod_EXPORTS),no)
2882 CLEANFILES += def-blocklist.lst
2883 DEFSYMFILES += def-blocklist.lst
2884 endif
2885 MOSTLYCLEANFILES += blocklist_mod-commands_blocklist.d
2886 UNDSYMFILES += und-blocklist.lst
2888 blocklist.mod: pre-blocklist.o mod-blocklist.o $(TARGET_OBJ2ELF)
2889 -rm -f $@
2890 $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-blocklist.o mod-blocklist.o
2891 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2892 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2894 pre-blocklist.o: $(blocklist_mod_DEPENDENCIES) blocklist_mod-commands_blocklist.o
2895 -rm -f $@
2896 $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ blocklist_mod-commands_blocklist.o
2898 mod-blocklist.o: mod-blocklist.c
2899 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -c -o $@ $<
2901 mod-blocklist.c: moddep.lst genmodsrc.sh
2902 sh $(srcdir)/genmodsrc.sh 'blocklist' $< > $@ || (rm -f $@; exit 1)
2904 ifneq ($(blocklist_mod_EXPORTS),no)
2905 def-blocklist.lst: pre-blocklist.o
2906 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 blocklist/' > $@
2907 endif
2909 und-blocklist.lst: pre-blocklist.o
2910 echo 'blocklist' > $@
2911 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2913 blocklist_mod-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES)
2914 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -MD -c -o $@ $<
2915 -include blocklist_mod-commands_blocklist.d
2917 CLEANFILES += cmd-blocklist_mod-commands_blocklist.lst fs-blocklist_mod-commands_blocklist.lst partmap-blocklist_mod-commands_blocklist.lst
2918 COMMANDFILES += cmd-blocklist_mod-commands_blocklist.lst
2919 FSFILES += fs-blocklist_mod-commands_blocklist.lst
2920 PARTMAPFILES += partmap-blocklist_mod-commands_blocklist.lst
2922 cmd-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) gencmdlist.sh
2923 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)
2925 fs-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genfslist.sh
2926 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)
2928 partmap-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genpartmaplist.sh
2929 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)
2932 blocklist_mod_CFLAGS = $(COMMON_CFLAGS)
2933 blocklist_mod_LDFLAGS = $(COMMON_LDFLAGS)
2935 # For hexdump.mod.
2936 hexdump_mod_SOURCES = commands/hexdump.c lib/hexdump.c
2937 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
2938 ifneq ($(hexdump_mod_EXPORTS),no)
2939 CLEANFILES += def-hexdump.lst
2940 DEFSYMFILES += def-hexdump.lst
2941 endif
2942 MOSTLYCLEANFILES += hexdump_mod-commands_hexdump.d hexdump_mod-lib_hexdump.d
2943 UNDSYMFILES += und-hexdump.lst
2945 hexdump.mod: pre-hexdump.o mod-hexdump.o $(TARGET_OBJ2ELF)
2946 -rm -f $@
2947 $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-hexdump.o mod-hexdump.o
2948 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
2949 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
2951 pre-hexdump.o: $(hexdump_mod_DEPENDENCIES) hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o
2952 -rm -f $@
2953 $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o
2955 mod-hexdump.o: mod-hexdump.c
2956 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -c -o $@ $<
2958 mod-hexdump.c: moddep.lst genmodsrc.sh
2959 sh $(srcdir)/genmodsrc.sh 'hexdump' $< > $@ || (rm -f $@; exit 1)
2961 ifneq ($(hexdump_mod_EXPORTS),no)
2962 def-hexdump.lst: pre-hexdump.o
2963 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hexdump/' > $@
2964 endif
2966 und-hexdump.lst: pre-hexdump.o
2967 echo 'hexdump' > $@
2968 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
2970 hexdump_mod-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES)
2971 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $<
2972 -include hexdump_mod-commands_hexdump.d
2974 CLEANFILES += cmd-hexdump_mod-commands_hexdump.lst fs-hexdump_mod-commands_hexdump.lst partmap-hexdump_mod-commands_hexdump.lst
2975 COMMANDFILES += cmd-hexdump_mod-commands_hexdump.lst
2976 FSFILES += fs-hexdump_mod-commands_hexdump.lst
2977 PARTMAPFILES += partmap-hexdump_mod-commands_hexdump.lst
2979 cmd-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) gencmdlist.sh
2980 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)
2982 fs-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genfslist.sh
2983 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)
2985 partmap-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genpartmaplist.sh
2986 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)
2989 hexdump_mod-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES)
2990 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $<
2991 -include hexdump_mod-lib_hexdump.d
2993 CLEANFILES += cmd-hexdump_mod-lib_hexdump.lst fs-hexdump_mod-lib_hexdump.lst partmap-hexdump_mod-lib_hexdump.lst
2994 COMMANDFILES += cmd-hexdump_mod-lib_hexdump.lst
2995 FSFILES += fs-hexdump_mod-lib_hexdump.lst
2996 PARTMAPFILES += partmap-hexdump_mod-lib_hexdump.lst
2998 cmd-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) gencmdlist.sh
2999 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)
3001 fs-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genfslist.sh
3002 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)
3004 partmap-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genpartmaplist.sh
3005 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)
3008 hexdump_mod_CFLAGS = $(COMMON_CFLAGS)
3009 hexdump_mod_LDFLAGS = $(COMMON_LDFLAGS)
3011 # For read.mod.
3012 read_mod_SOURCES = commands/read.c
3013 CLEANFILES += read.mod mod-read.o mod-read.c pre-read.o read_mod-commands_read.o und-read.lst
3014 ifneq ($(read_mod_EXPORTS),no)
3015 CLEANFILES += def-read.lst
3016 DEFSYMFILES += def-read.lst
3017 endif
3018 MOSTLYCLEANFILES += read_mod-commands_read.d
3019 UNDSYMFILES += und-read.lst
3021 read.mod: pre-read.o mod-read.o $(TARGET_OBJ2ELF)
3022 -rm -f $@
3023 $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-read.o mod-read.o
3024 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3025 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3027 pre-read.o: $(read_mod_DEPENDENCIES) read_mod-commands_read.o
3028 -rm -f $@
3029 $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ read_mod-commands_read.o
3031 mod-read.o: mod-read.c
3032 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -c -o $@ $<
3034 mod-read.c: moddep.lst genmodsrc.sh
3035 sh $(srcdir)/genmodsrc.sh 'read' $< > $@ || (rm -f $@; exit 1)
3037 ifneq ($(read_mod_EXPORTS),no)
3038 def-read.lst: pre-read.o
3039 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 read/' > $@
3040 endif
3042 und-read.lst: pre-read.o
3043 echo 'read' > $@
3044 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3046 read_mod-commands_read.o: commands/read.c $(commands/read.c_DEPENDENCIES)
3047 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -MD -c -o $@ $<
3048 -include read_mod-commands_read.d
3050 CLEANFILES += cmd-read_mod-commands_read.lst fs-read_mod-commands_read.lst partmap-read_mod-commands_read.lst
3051 COMMANDFILES += cmd-read_mod-commands_read.lst
3052 FSFILES += fs-read_mod-commands_read.lst
3053 PARTMAPFILES += partmap-read_mod-commands_read.lst
3055 cmd-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) gencmdlist.sh
3056 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)
3058 fs-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genfslist.sh
3059 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)
3061 partmap-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genpartmaplist.sh
3062 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)
3065 read_mod_CFLAGS = $(COMMON_CFLAGS)
3066 read_mod_LDFLAGS = $(COMMON_LDFLAGS)
3068 # For sleep.mod.
3069 sleep_mod_SOURCES = commands/sleep.c
3070 CLEANFILES += sleep.mod mod-sleep.o mod-sleep.c pre-sleep.o sleep_mod-commands_sleep.o und-sleep.lst
3071 ifneq ($(sleep_mod_EXPORTS),no)
3072 CLEANFILES += def-sleep.lst
3073 DEFSYMFILES += def-sleep.lst
3074 endif
3075 MOSTLYCLEANFILES += sleep_mod-commands_sleep.d
3076 UNDSYMFILES += und-sleep.lst
3078 sleep.mod: pre-sleep.o mod-sleep.o $(TARGET_OBJ2ELF)
3079 -rm -f $@
3080 $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-sleep.o mod-sleep.o
3081 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3082 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3084 pre-sleep.o: $(sleep_mod_DEPENDENCIES) sleep_mod-commands_sleep.o
3085 -rm -f $@
3086 $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sleep_mod-commands_sleep.o
3088 mod-sleep.o: mod-sleep.c
3089 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -c -o $@ $<
3091 mod-sleep.c: moddep.lst genmodsrc.sh
3092 sh $(srcdir)/genmodsrc.sh 'sleep' $< > $@ || (rm -f $@; exit 1)
3094 ifneq ($(sleep_mod_EXPORTS),no)
3095 def-sleep.lst: pre-sleep.o
3096 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sleep/' > $@
3097 endif
3099 und-sleep.lst: pre-sleep.o
3100 echo 'sleep' > $@
3101 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3103 sleep_mod-commands_sleep.o: commands/sleep.c $(commands/sleep.c_DEPENDENCIES)
3104 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -MD -c -o $@ $<
3105 -include sleep_mod-commands_sleep.d
3107 CLEANFILES += cmd-sleep_mod-commands_sleep.lst fs-sleep_mod-commands_sleep.lst partmap-sleep_mod-commands_sleep.lst
3108 COMMANDFILES += cmd-sleep_mod-commands_sleep.lst
3109 FSFILES += fs-sleep_mod-commands_sleep.lst
3110 PARTMAPFILES += partmap-sleep_mod-commands_sleep.lst
3112 cmd-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) gencmdlist.sh
3113 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)
3115 fs-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genfslist.sh
3116 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)
3118 partmap-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genpartmaplist.sh
3119 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)
3122 sleep_mod_CFLAGS = $(COMMON_CFLAGS)
3123 sleep_mod_LDFLAGS = $(COMMON_LDFLAGS)
3125 # For loadenv.mod.
3126 loadenv_mod_SOURCES = commands/loadenv.c lib/envblk.c
3127 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
3128 ifneq ($(loadenv_mod_EXPORTS),no)
3129 CLEANFILES += def-loadenv.lst
3130 DEFSYMFILES += def-loadenv.lst
3131 endif
3132 MOSTLYCLEANFILES += loadenv_mod-commands_loadenv.d loadenv_mod-lib_envblk.d
3133 UNDSYMFILES += und-loadenv.lst
3135 loadenv.mod: pre-loadenv.o mod-loadenv.o $(TARGET_OBJ2ELF)
3136 -rm -f $@
3137 $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-loadenv.o mod-loadenv.o
3138 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3139 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3141 pre-loadenv.o: $(loadenv_mod_DEPENDENCIES) loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o
3142 -rm -f $@
3143 $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o
3145 mod-loadenv.o: mod-loadenv.c
3146 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -c -o $@ $<
3148 mod-loadenv.c: moddep.lst genmodsrc.sh
3149 sh $(srcdir)/genmodsrc.sh 'loadenv' $< > $@ || (rm -f $@; exit 1)
3151 ifneq ($(loadenv_mod_EXPORTS),no)
3152 def-loadenv.lst: pre-loadenv.o
3153 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loadenv/' > $@
3154 endif
3156 und-loadenv.lst: pre-loadenv.o
3157 echo 'loadenv' > $@
3158 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3160 loadenv_mod-commands_loadenv.o: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES)
3161 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $<
3162 -include loadenv_mod-commands_loadenv.d
3164 CLEANFILES += cmd-loadenv_mod-commands_loadenv.lst fs-loadenv_mod-commands_loadenv.lst partmap-loadenv_mod-commands_loadenv.lst
3165 COMMANDFILES += cmd-loadenv_mod-commands_loadenv.lst
3166 FSFILES += fs-loadenv_mod-commands_loadenv.lst
3167 PARTMAPFILES += partmap-loadenv_mod-commands_loadenv.lst
3169 cmd-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) gencmdlist.sh
3170 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)
3172 fs-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genfslist.sh
3173 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)
3175 partmap-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genpartmaplist.sh
3176 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)
3179 loadenv_mod-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES)
3180 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $<
3181 -include loadenv_mod-lib_envblk.d
3183 CLEANFILES += cmd-loadenv_mod-lib_envblk.lst fs-loadenv_mod-lib_envblk.lst partmap-loadenv_mod-lib_envblk.lst
3184 COMMANDFILES += cmd-loadenv_mod-lib_envblk.lst
3185 FSFILES += fs-loadenv_mod-lib_envblk.lst
3186 PARTMAPFILES += partmap-loadenv_mod-lib_envblk.lst
3188 cmd-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) gencmdlist.sh
3189 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)
3191 fs-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genfslist.sh
3192 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)
3194 partmap-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genpartmaplist.sh
3195 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)
3198 loadenv_mod_CFLAGS = $(COMMON_CFLAGS)
3199 loadenv_mod_LDFLAGS = $(COMMON_LDFLAGS)
3201 # For crc.mod.
3202 crc_mod_SOURCES = commands/crc.c lib/crc.c
3203 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
3204 ifneq ($(crc_mod_EXPORTS),no)
3205 CLEANFILES += def-crc.lst
3206 DEFSYMFILES += def-crc.lst
3207 endif
3208 MOSTLYCLEANFILES += crc_mod-commands_crc.d crc_mod-lib_crc.d
3209 UNDSYMFILES += und-crc.lst
3211 crc.mod: pre-crc.o mod-crc.o $(TARGET_OBJ2ELF)
3212 -rm -f $@
3213 $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-crc.o mod-crc.o
3214 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3215 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3217 pre-crc.o: $(crc_mod_DEPENDENCIES) crc_mod-commands_crc.o crc_mod-lib_crc.o
3218 -rm -f $@
3219 $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ crc_mod-commands_crc.o crc_mod-lib_crc.o
3221 mod-crc.o: mod-crc.c
3222 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -c -o $@ $<
3224 mod-crc.c: moddep.lst genmodsrc.sh
3225 sh $(srcdir)/genmodsrc.sh 'crc' $< > $@ || (rm -f $@; exit 1)
3227 ifneq ($(crc_mod_EXPORTS),no)
3228 def-crc.lst: pre-crc.o
3229 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 crc/' > $@
3230 endif
3232 und-crc.lst: pre-crc.o
3233 echo 'crc' > $@
3234 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3236 crc_mod-commands_crc.o: commands/crc.c $(commands/crc.c_DEPENDENCIES)
3237 $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $<
3238 -include crc_mod-commands_crc.d
3240 CLEANFILES += cmd-crc_mod-commands_crc.lst fs-crc_mod-commands_crc.lst partmap-crc_mod-commands_crc.lst
3241 COMMANDFILES += cmd-crc_mod-commands_crc.lst
3242 FSFILES += fs-crc_mod-commands_crc.lst
3243 PARTMAPFILES += partmap-crc_mod-commands_crc.lst
3245 cmd-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) gencmdlist.sh
3246 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)
3248 fs-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genfslist.sh
3249 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)
3251 partmap-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genpartmaplist.sh
3252 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)
3255 crc_mod-lib_crc.o: lib/crc.c $(lib/crc.c_DEPENDENCIES)
3256 $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $<
3257 -include crc_mod-lib_crc.d
3259 CLEANFILES += cmd-crc_mod-lib_crc.lst fs-crc_mod-lib_crc.lst partmap-crc_mod-lib_crc.lst
3260 COMMANDFILES += cmd-crc_mod-lib_crc.lst
3261 FSFILES += fs-crc_mod-lib_crc.lst
3262 PARTMAPFILES += partmap-crc_mod-lib_crc.lst
3264 cmd-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) gencmdlist.sh
3265 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)
3267 fs-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genfslist.sh
3268 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)
3270 partmap-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genpartmaplist.sh
3271 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)
3274 crc_mod_CFLAGS = $(COMMON_CFLAGS)
3275 crc_mod_LDFLAGS = $(COMMON_LDFLAGS)
3277 # Misc.
3278 pkglib_MODULES += gzio.mod elf.mod
3280 # For elf.mod.
3281 elf_mod_SOURCES = kern/elf.c
3282 CLEANFILES += elf.mod mod-elf.o mod-elf.c pre-elf.o elf_mod-kern_elf.o und-elf.lst
3283 ifneq ($(elf_mod_EXPORTS),no)
3284 CLEANFILES += def-elf.lst
3285 DEFSYMFILES += def-elf.lst
3286 endif
3287 MOSTLYCLEANFILES += elf_mod-kern_elf.d
3288 UNDSYMFILES += und-elf.lst
3290 elf.mod: pre-elf.o mod-elf.o $(TARGET_OBJ2ELF)
3291 -rm -f $@
3292 $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-elf.o mod-elf.o
3293 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3294 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3296 pre-elf.o: $(elf_mod_DEPENDENCIES) elf_mod-kern_elf.o
3297 -rm -f $@
3298 $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ elf_mod-kern_elf.o
3300 mod-elf.o: mod-elf.c
3301 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -c -o $@ $<
3303 mod-elf.c: moddep.lst genmodsrc.sh
3304 sh $(srcdir)/genmodsrc.sh 'elf' $< > $@ || (rm -f $@; exit 1)
3306 ifneq ($(elf_mod_EXPORTS),no)
3307 def-elf.lst: pre-elf.o
3308 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 elf/' > $@
3309 endif
3311 und-elf.lst: pre-elf.o
3312 echo 'elf' > $@
3313 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3315 elf_mod-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES)
3316 $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -MD -c -o $@ $<
3317 -include elf_mod-kern_elf.d
3319 CLEANFILES += cmd-elf_mod-kern_elf.lst fs-elf_mod-kern_elf.lst partmap-elf_mod-kern_elf.lst
3320 COMMANDFILES += cmd-elf_mod-kern_elf.lst
3321 FSFILES += fs-elf_mod-kern_elf.lst
3322 PARTMAPFILES += partmap-elf_mod-kern_elf.lst
3324 cmd-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) gencmdlist.sh
3325 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)
3327 fs-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genfslist.sh
3328 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)
3330 partmap-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genpartmaplist.sh
3331 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)
3334 elf_mod_CFLAGS = $(COMMON_CFLAGS)
3335 elf_mod_LDFLAGS = $(COMMON_LDFLAGS)
3337 # For gzio.mod.
3338 gzio_mod_SOURCES = io/gzio.c
3339 CLEANFILES += gzio.mod mod-gzio.o mod-gzio.c pre-gzio.o gzio_mod-io_gzio.o und-gzio.lst
3340 ifneq ($(gzio_mod_EXPORTS),no)
3341 CLEANFILES += def-gzio.lst
3342 DEFSYMFILES += def-gzio.lst
3343 endif
3344 MOSTLYCLEANFILES += gzio_mod-io_gzio.d
3345 UNDSYMFILES += und-gzio.lst
3347 gzio.mod: pre-gzio.o mod-gzio.o $(TARGET_OBJ2ELF)
3348 -rm -f $@
3349 $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) $(MODULE_LDFLAGS) -Wl,-r,-d -o $@ pre-gzio.o mod-gzio.o
3350 if test ! -z $(TARGET_OBJ2ELF); then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
3351 $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
3353 pre-gzio.o: $(gzio_mod_DEPENDENCIES) gzio_mod-io_gzio.o
3354 -rm -f $@
3355 $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gzio_mod-io_gzio.o
3357 mod-gzio.o: mod-gzio.c
3358 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -c -o $@ $<
3360 mod-gzio.c: moddep.lst genmodsrc.sh
3361 sh $(srcdir)/genmodsrc.sh 'gzio' $< > $@ || (rm -f $@; exit 1)
3363 ifneq ($(gzio_mod_EXPORTS),no)
3364 def-gzio.lst: pre-gzio.o
3365 $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gzio/' > $@
3366 endif
3368 und-gzio.lst: pre-gzio.o
3369 echo 'gzio' > $@
3370 $(NM) -u -P -p $< | cut -f1 -d' ' >> $@
3372 gzio_mod-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES)
3373 $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -MD -c -o $@ $<
3374 -include gzio_mod-io_gzio.d
3376 CLEANFILES += cmd-gzio_mod-io_gzio.lst fs-gzio_mod-io_gzio.lst partmap-gzio_mod-io_gzio.lst
3377 COMMANDFILES += cmd-gzio_mod-io_gzio.lst
3378 FSFILES += fs-gzio_mod-io_gzio.lst
3379 PARTMAPFILES += partmap-gzio_mod-io_gzio.lst
3381 cmd-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) gencmdlist.sh
3382 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)
3384 fs-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genfslist.sh
3385 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)
3387 partmap-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genpartmaplist.sh
3388 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)
3391 gzio_mod_CFLAGS = $(COMMON_CFLAGS)
3392 gzio_mod_LDFLAGS = $(COMMON_LDFLAGS)