| # -*- makefile -*- |
| # Generated by genmk.rb, please don't edit! |
| |
| # For grub-mkelfimage. |
| bin_UTILITIES += grub-mkelfimage |
| grub_mkelfimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \ |
| util/resolve.c |
| |
| clean-utility-grub-mkelfimage.1: |
| rm -f grub-mkelfimage$(EXEEXT) grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o grub_mkelfimage-util_resolve.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-mkelfimage.1 |
| |
| mostlyclean-utility-grub-mkelfimage.1: |
| rm -f grub_mkelfimage-util_elf_grub_mkimage.d grub_mkelfimage-util_misc.d grub_mkelfimage-util_resolve.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-mkelfimage.1 |
| |
| grub_mkelfimage_OBJECTS += grub_mkelfimage-util_elf_grub_mkimage.o grub_mkelfimage-util_misc.o grub_mkelfimage-util_resolve.o |
| |
| grub_mkelfimage-util_elf_grub_mkimage.o: util/elf/grub-mkimage.c $(util/elf/grub-mkimage.c_DEPENDENCIES) |
| $(CC) -Iutil/elf -I$(srcdir)/util/elf $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkelfimage-util_elf_grub_mkimage.d |
| |
| grub_mkelfimage-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkelfimage-util_misc.d |
| |
| grub_mkelfimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkelfimage_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkelfimage-util_resolve.d |
| |
| util/elf/grub-mkimage.c_DEPENDENCIES = Makefile |
| |
| # For grub-probe. |
| sbin_UTILITIES += grub-probe |
| util/grub-probe.c_DEPENDENCIES = grub_probe_init.h |
| grub_probe_SOURCES = util/grub-probe.c \ |
| util/hostdisk.c util/misc.c util/getroot.c \ |
| kern/device.c kern/disk.c kern/err.c kern/misc.c \ |
| kern/parser.c kern/partition.c kern/file.c \ |
| \ |
| fs/affs.c fs/cpio.c fs/fat.c fs/ext2.c fs/hfs.c \ |
| fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \ |
| fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \ |
| fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c fs/afs_be.c \ |
| fs/befs.c fs/befs_be.c fs/tar.c \ |
| \ |
| partmap/msdos.c partmap/apple.c partmap/sun.c partmap/gpt.c\ |
| kern/fs.c kern/env.c fs/fshelp.c \ |
| disk/raid.c disk/mdraid_linux.c disk/lvm.c grub_probe_init.c |
| |
| clean-utility-grub-probe.1: |
| rm -f grub-probe$(EXEEXT) grub_probe-util_grub_probe.o grub_probe-util_hostdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_fat.o grub_probe-fs_ext2.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_ufs2.o grub_probe-fs_xfs.o grub_probe-fs_afs.o grub_probe-fs_afs_be.o grub_probe-fs_befs.o grub_probe-fs_befs_be.o grub_probe-fs_tar.o grub_probe-partmap_msdos.o grub_probe-partmap_apple.o grub_probe-partmap_sun.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_raid.o grub_probe-disk_mdraid_linux.o grub_probe-disk_lvm.o grub_probe-grub_probe_init.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-probe.1 |
| |
| mostlyclean-utility-grub-probe.1: |
| rm -f grub_probe-util_grub_probe.d grub_probe-util_hostdisk.d grub_probe-util_misc.d grub_probe-util_getroot.d grub_probe-kern_device.d grub_probe-kern_disk.d grub_probe-kern_err.d grub_probe-kern_misc.d grub_probe-kern_parser.d grub_probe-kern_partition.d grub_probe-kern_file.d grub_probe-fs_affs.d grub_probe-fs_cpio.d grub_probe-fs_fat.d grub_probe-fs_ext2.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_ufs2.d grub_probe-fs_xfs.d grub_probe-fs_afs.d grub_probe-fs_afs_be.d grub_probe-fs_befs.d grub_probe-fs_befs_be.d grub_probe-fs_tar.d grub_probe-partmap_msdos.d grub_probe-partmap_apple.d grub_probe-partmap_sun.d grub_probe-partmap_gpt.d grub_probe-kern_fs.d grub_probe-kern_env.d grub_probe-fs_fshelp.d grub_probe-disk_raid.d grub_probe-disk_mdraid_linux.d grub_probe-disk_lvm.d grub_probe-grub_probe_init.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-probe.1 |
| |
| grub_probe_OBJECTS += grub_probe-util_grub_probe.o grub_probe-util_hostdisk.o grub_probe-util_misc.o grub_probe-util_getroot.o grub_probe-kern_device.o grub_probe-kern_disk.o grub_probe-kern_err.o grub_probe-kern_misc.o grub_probe-kern_parser.o grub_probe-kern_partition.o grub_probe-kern_file.o grub_probe-fs_affs.o grub_probe-fs_cpio.o grub_probe-fs_fat.o grub_probe-fs_ext2.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_ufs2.o grub_probe-fs_xfs.o grub_probe-fs_afs.o grub_probe-fs_afs_be.o grub_probe-fs_befs.o grub_probe-fs_befs_be.o grub_probe-fs_tar.o grub_probe-partmap_msdos.o grub_probe-partmap_apple.o grub_probe-partmap_sun.o grub_probe-partmap_gpt.o grub_probe-kern_fs.o grub_probe-kern_env.o grub_probe-fs_fshelp.o grub_probe-disk_raid.o grub_probe-disk_mdraid_linux.o grub_probe-disk_lvm.o grub_probe-grub_probe_init.o |
| |
| grub_probe-util_grub_probe.o: util/grub-probe.c $(util/grub-probe.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-util_grub_probe.d |
| |
| grub_probe-util_hostdisk.o: util/hostdisk.c $(util/hostdisk.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-util_hostdisk.d |
| |
| grub_probe-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-util_misc.d |
| |
| grub_probe-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-util_getroot.d |
| |
| grub_probe-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_device.d |
| |
| grub_probe-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_disk.d |
| |
| grub_probe-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_err.d |
| |
| grub_probe-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_misc.d |
| |
| grub_probe-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_parser.d |
| |
| grub_probe-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_partition.d |
| |
| grub_probe-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_file.d |
| |
| grub_probe-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_affs.d |
| |
| grub_probe-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_cpio.d |
| |
| grub_probe-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_fat.d |
| |
| grub_probe-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_ext2.d |
| |
| grub_probe-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_hfs.d |
| |
| grub_probe-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_hfsplus.d |
| |
| grub_probe-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_iso9660.d |
| |
| grub_probe-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_udf.d |
| |
| grub_probe-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_jfs.d |
| |
| grub_probe-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_minix.d |
| |
| grub_probe-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_ntfs.d |
| |
| grub_probe-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_ntfscomp.d |
| |
| grub_probe-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_reiserfs.d |
| |
| grub_probe-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_sfs.d |
| |
| grub_probe-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_ufs.d |
| |
| grub_probe-fs_ufs2.o: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_ufs2.d |
| |
| grub_probe-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_xfs.d |
| |
| grub_probe-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_afs.d |
| |
| grub_probe-fs_afs_be.o: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_afs_be.d |
| |
| grub_probe-fs_befs.o: fs/befs.c $(fs/befs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_befs.d |
| |
| grub_probe-fs_befs_be.o: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_befs_be.d |
| |
| grub_probe-fs_tar.o: fs/tar.c $(fs/tar.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_tar.d |
| |
| grub_probe-partmap_msdos.o: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-partmap_msdos.d |
| |
| grub_probe-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-partmap_apple.d |
| |
| grub_probe-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-partmap_sun.d |
| |
| grub_probe-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-partmap_gpt.d |
| |
| grub_probe-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_fs.d |
| |
| grub_probe-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-kern_env.d |
| |
| grub_probe-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-fs_fshelp.d |
| |
| grub_probe-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-disk_raid.d |
| |
| grub_probe-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-disk_mdraid_linux.d |
| |
| grub_probe-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-disk_lvm.d |
| |
| grub_probe-grub_probe_init.o: grub_probe_init.c $(grub_probe_init.c_DEPENDENCIES) |
| $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_probe_CFLAGS) -MD -c -o $@ $< |
| -include grub_probe-grub_probe_init.d |
| |
| |
| ifeq ($(enable_grub_fstest), yes) |
| bin_UTILITIES += grub-fstest |
| endif |
| |
| # For grub-fstest. |
| util/grub-fstest.c_DEPENDENCIES = grub_fstest_init.h |
| grub_fstest_SOURCES = util/grub-fstest.c util/hostfs.c util/misc.c \ |
| kern/file.c kern/device.c kern/disk.c kern/err.c kern/misc.c \ |
| disk/host.c disk/loopback.c kern/list.c kern/command.c \ |
| lib/arg.c commands/extcmd.c normal/datetime.c normal/misc.c \ |
| lib/hexdump.c lib/crc.c commands/blocklist.c commands/ls.c \ |
| \ |
| fs/affs.c fs/cpio.c fs/fat.c fs/ext2.c fs/hfs.c \ |
| fs/hfsplus.c fs/iso9660.c fs/udf.c fs/jfs.c fs/minix.c \ |
| fs/ntfs.c fs/ntfscomp.c fs/reiserfs.c fs/sfs.c \ |
| fs/ufs.c fs/ufs2.c fs/xfs.c fs/afs.c fs/afs_be.c fs/befs.c \ |
| fs/befs_be.c fs/tar.c \ |
| \ |
| kern/partition.c partmap/msdos.c partmap/apple.c partmap/sun.c \ |
| partmap/gpt.c \ |
| kern/fs.c kern/env.c fs/fshelp.c disk/raid.c \ |
| disk/raid5_recover.c disk/raid6_recover.c \ |
| disk/mdraid_linux.c disk/dmraid_nvidia.c disk/lvm.c \ |
| grub_fstest_init.c |
| |
| clean-utility-grub-fstest.1: |
| rm -f 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-kern_list.o grub_fstest-kern_command.o grub_fstest-lib_arg.o grub_fstest-commands_extcmd.o grub_fstest-normal_datetime.o grub_fstest-normal_misc.o grub_fstest-lib_hexdump.o grub_fstest-lib_crc.o grub_fstest-commands_blocklist.o grub_fstest-commands_ls.o grub_fstest-fs_affs.o grub_fstest-fs_cpio.o grub_fstest-fs_fat.o grub_fstest-fs_ext2.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_ufs2.o grub_fstest-fs_xfs.o grub_fstest-fs_afs.o grub_fstest-fs_afs_be.o grub_fstest-fs_befs.o grub_fstest-fs_befs_be.o grub_fstest-fs_tar.o grub_fstest-kern_partition.o grub_fstest-partmap_msdos.o grub_fstest-partmap_apple.o grub_fstest-partmap_sun.o grub_fstest-partmap_gpt.o grub_fstest-kern_fs.o grub_fstest-kern_env.o grub_fstest-fs_fshelp.o grub_fstest-disk_raid.o grub_fstest-disk_raid5_recover.o grub_fstest-disk_raid6_recover.o grub_fstest-disk_mdraid_linux.o grub_fstest-disk_dmraid_nvidia.o grub_fstest-disk_lvm.o grub_fstest-grub_fstest_init.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-fstest.1 |
| |
| mostlyclean-utility-grub-fstest.1: |
| rm -f 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-kern_list.d grub_fstest-kern_command.d grub_fstest-lib_arg.d grub_fstest-commands_extcmd.d grub_fstest-normal_datetime.d grub_fstest-normal_misc.d grub_fstest-lib_hexdump.d grub_fstest-lib_crc.d grub_fstest-commands_blocklist.d grub_fstest-commands_ls.d grub_fstest-fs_affs.d grub_fstest-fs_cpio.d grub_fstest-fs_fat.d grub_fstest-fs_ext2.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_ufs2.d grub_fstest-fs_xfs.d grub_fstest-fs_afs.d grub_fstest-fs_afs_be.d grub_fstest-fs_befs.d grub_fstest-fs_befs_be.d grub_fstest-fs_tar.d grub_fstest-kern_partition.d grub_fstest-partmap_msdos.d grub_fstest-partmap_apple.d grub_fstest-partmap_sun.d grub_fstest-partmap_gpt.d grub_fstest-kern_fs.d grub_fstest-kern_env.d grub_fstest-fs_fshelp.d grub_fstest-disk_raid.d grub_fstest-disk_raid5_recover.d grub_fstest-disk_raid6_recover.d grub_fstest-disk_mdraid_linux.d grub_fstest-disk_dmraid_nvidia.d grub_fstest-disk_lvm.d grub_fstest-grub_fstest_init.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-fstest.1 |
| |
| grub_fstest_OBJECTS += 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-kern_list.o grub_fstest-kern_command.o grub_fstest-lib_arg.o grub_fstest-commands_extcmd.o grub_fstest-normal_datetime.o grub_fstest-normal_misc.o grub_fstest-lib_hexdump.o grub_fstest-lib_crc.o grub_fstest-commands_blocklist.o grub_fstest-commands_ls.o grub_fstest-fs_affs.o grub_fstest-fs_cpio.o grub_fstest-fs_fat.o grub_fstest-fs_ext2.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_ufs2.o grub_fstest-fs_xfs.o grub_fstest-fs_afs.o grub_fstest-fs_afs_be.o grub_fstest-fs_befs.o grub_fstest-fs_befs_be.o grub_fstest-fs_tar.o grub_fstest-kern_partition.o grub_fstest-partmap_msdos.o grub_fstest-partmap_apple.o grub_fstest-partmap_sun.o grub_fstest-partmap_gpt.o grub_fstest-kern_fs.o grub_fstest-kern_env.o grub_fstest-fs_fshelp.o grub_fstest-disk_raid.o grub_fstest-disk_raid5_recover.o grub_fstest-disk_raid6_recover.o grub_fstest-disk_mdraid_linux.o grub_fstest-disk_dmraid_nvidia.o grub_fstest-disk_lvm.o grub_fstest-grub_fstest_init.o |
| |
| grub_fstest-util_grub_fstest.o: util/grub-fstest.c $(util/grub-fstest.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-util_grub_fstest.d |
| |
| grub_fstest-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-util_hostfs.d |
| |
| grub_fstest-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-util_misc.d |
| |
| grub_fstest-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_file.d |
| |
| grub_fstest-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_device.d |
| |
| grub_fstest-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_disk.d |
| |
| grub_fstest-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_err.d |
| |
| grub_fstest-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_misc.d |
| |
| grub_fstest-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_host.d |
| |
| grub_fstest-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_loopback.d |
| |
| grub_fstest-kern_list.o: kern/list.c $(kern/list.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_list.d |
| |
| grub_fstest-kern_command.o: kern/command.c $(kern/command.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_command.d |
| |
| grub_fstest-lib_arg.o: lib/arg.c $(lib/arg.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-lib_arg.d |
| |
| grub_fstest-commands_extcmd.o: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-commands_extcmd.d |
| |
| grub_fstest-normal_datetime.o: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-normal_datetime.d |
| |
| grub_fstest-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-normal_misc.d |
| |
| grub_fstest-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-lib_hexdump.d |
| |
| grub_fstest-lib_crc.o: lib/crc.c $(lib/crc.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-lib_crc.d |
| |
| grub_fstest-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-commands_blocklist.d |
| |
| grub_fstest-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-commands_ls.d |
| |
| grub_fstest-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_affs.d |
| |
| grub_fstest-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_cpio.d |
| |
| grub_fstest-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_fat.d |
| |
| grub_fstest-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_ext2.d |
| |
| grub_fstest-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_hfs.d |
| |
| grub_fstest-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_hfsplus.d |
| |
| grub_fstest-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_iso9660.d |
| |
| grub_fstest-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_udf.d |
| |
| grub_fstest-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_jfs.d |
| |
| grub_fstest-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_minix.d |
| |
| grub_fstest-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_ntfs.d |
| |
| grub_fstest-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_ntfscomp.d |
| |
| grub_fstest-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_reiserfs.d |
| |
| grub_fstest-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_sfs.d |
| |
| grub_fstest-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_ufs.d |
| |
| grub_fstest-fs_ufs2.o: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_ufs2.d |
| |
| grub_fstest-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_xfs.d |
| |
| grub_fstest-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_afs.d |
| |
| grub_fstest-fs_afs_be.o: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_afs_be.d |
| |
| grub_fstest-fs_befs.o: fs/befs.c $(fs/befs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_befs.d |
| |
| grub_fstest-fs_befs_be.o: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_befs_be.d |
| |
| grub_fstest-fs_tar.o: fs/tar.c $(fs/tar.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_tar.d |
| |
| grub_fstest-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_partition.d |
| |
| grub_fstest-partmap_msdos.o: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-partmap_msdos.d |
| |
| grub_fstest-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-partmap_apple.d |
| |
| grub_fstest-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-partmap_sun.d |
| |
| grub_fstest-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-partmap_gpt.d |
| |
| grub_fstest-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_fs.d |
| |
| grub_fstest-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-kern_env.d |
| |
| grub_fstest-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-fs_fshelp.d |
| |
| grub_fstest-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_raid.d |
| |
| grub_fstest-disk_raid5_recover.o: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_raid5_recover.d |
| |
| grub_fstest-disk_raid6_recover.o: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_raid6_recover.d |
| |
| grub_fstest-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_mdraid_linux.d |
| |
| grub_fstest-disk_dmraid_nvidia.o: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_dmraid_nvidia.d |
| |
| grub_fstest-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-disk_lvm.d |
| |
| grub_fstest-grub_fstest_init.o: grub_fstest_init.c $(grub_fstest_init.c_DEPENDENCIES) |
| $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_fstest_CFLAGS) -MD -c -o $@ $< |
| -include grub_fstest-grub_fstest_init.d |
| |
| |
| # For grub-mkfont. |
| ifeq ($(enable_grub_mkfont), yes) |
| bin_UTILITIES += grub-mkfont |
| grub_mkfont_SOURCES = util/grub-mkfont.c util/misc.c |
| |
| clean-utility-grub-mkfont.1: |
| rm -f grub-mkfont$(EXEEXT) grub_mkfont-util_grub_mkfont.o grub_mkfont-util_misc.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-mkfont.1 |
| |
| mostlyclean-utility-grub-mkfont.1: |
| rm -f grub_mkfont-util_grub_mkfont.d grub_mkfont-util_misc.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-mkfont.1 |
| |
| grub_mkfont_OBJECTS += grub_mkfont-util_grub_mkfont.o grub_mkfont-util_misc.o |
| |
| grub_mkfont-util_grub_mkfont.o: util/grub-mkfont.c $(util/grub-mkfont.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkfont_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkfont-util_grub_mkfont.d |
| |
| grub_mkfont-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkfont_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkfont-util_misc.d |
| |
| grub_mkfont_CFLAGS = $(freetype_cflags) |
| grub_mkfont_LDFLAGS = $(freetype_libs) |
| endif |
| |
| # For the parser. |
| grub_script.tab.c grub_script.tab.h: script/sh/parser.y |
| $(YACC) -d -p grub_script_yy -b grub_script $(srcdir)/script/sh/parser.y |
| DISTCLEANFILES += grub_script.tab.c grub_script.tab.h |
| |
| # For grub-emu. |
| grub_emu_init.lst: geninit.sh $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) |
| rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@ |
| DISTCLEANFILES += grub_emu_init.lst |
| |
| grub_emu_init.h: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninitheader.sh |
| rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@ |
| DISTCLEANFILES += grub_emu_init.h |
| |
| grub_emu_init.c: grub_emu_init.lst $(filter-out grub_emu_init.c,$(grub_emu_SOURCES)) geninit.sh grub_emu_init.h |
| rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@ |
| DISTCLEANFILES += grub_emu_init.c |
| |
| # For grub-probe. |
| grub_probe_init.lst: geninit.sh $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) |
| rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@ |
| DISTCLEANFILES += grub_probe_init.lst |
| |
| grub_probe_init.h: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninitheader.sh |
| rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@ |
| DISTCLEANFILES += grub_probe_init.h |
| |
| grub_probe_init.c: grub_probe_init.lst $(filter-out grub_probe_init.c,$(grub_probe_SOURCES)) geninit.sh grub_probe_init.h |
| rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@ |
| DISTCLEANFILES += grub_probe_init.c |
| |
| # For grub-setup. |
| grub_setup_init.lst: geninit.sh $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) |
| rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@ |
| DISTCLEANFILES += grub_setup_init.lst |
| |
| grub_setup_init.h: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninitheader.sh |
| rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@ |
| DISTCLEANFILES += grub_setup_init.h |
| |
| grub_setup_init.c: grub_setup_init.lst $(filter-out grub_setup_init.c,$(grub_setup_SOURCES)) geninit.sh grub_setup_init.h |
| rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@ |
| DISTCLEANFILES += grub_setup_init.c |
| |
| # For grub-fstest. |
| grub_fstest_init.lst: geninit.sh $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) |
| rm -f $@; grep GRUB_MOD_INIT $(filter %.c,$^) /dev/null > $@ |
| DISTCLEANFILES += grub_fstest_init.lst |
| |
| grub_fstest_init.h: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninitheader.sh |
| rm -f $@; sh $(srcdir)/geninitheader.sh $< > $@ |
| DISTCLEANFILES += grub_fstest_init.h |
| |
| grub_fstest_init.c: grub_fstest_init.lst $(filter-out grub_fstest_init.c,$(grub_fstest_SOURCES)) geninit.sh grub_fstest_init.h |
| rm -f $@; sh $(srcdir)/geninit.sh $< $(filter %.c,$^) > $@ |
| DISTCLEANFILES += grub_fstest_init.c |
| |
| # for grub-editenv |
| bin_UTILITIES += grub-editenv |
| grub_editenv_SOURCES = util/grub-editenv.c lib/envblk.c util/misc.c kern/misc.c kern/err.c |
| |
| clean-utility-grub-editenv.1: |
| rm -f 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 |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-editenv.1 |
| |
| mostlyclean-utility-grub-editenv.1: |
| rm -f 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 |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-editenv.1 |
| |
| grub_editenv_OBJECTS += 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 |
| |
| grub_editenv-util_grub_editenv.o: util/grub-editenv.c $(util/grub-editenv.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $< |
| -include grub_editenv-util_grub_editenv.d |
| |
| grub_editenv-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $< |
| -include grub_editenv-lib_envblk.d |
| |
| grub_editenv-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $< |
| -include grub_editenv-util_misc.d |
| |
| grub_editenv-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $< |
| -include grub_editenv-kern_misc.d |
| |
| grub_editenv-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_editenv_CFLAGS) -MD -c -o $@ $< |
| -include grub_editenv-kern_err.d |
| |
| CLEANFILES += grub-editenv |
| |
| # Needed for genmk.rb to work |
| ifeq (0,1) |
| bin_UTILITIES += grub-macho2img grub-pe2elf |
| endif |
| |
| grub_pe2elf_SOURCES = util/grub-pe2elf.c util/misc.c |
| |
| clean-utility-grub-pe2elf.1: |
| rm -f grub-pe2elf$(EXEEXT) grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-pe2elf.1 |
| |
| mostlyclean-utility-grub-pe2elf.1: |
| rm -f grub_pe2elf-util_grub_pe2elf.d grub_pe2elf-util_misc.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-pe2elf.1 |
| |
| grub_pe2elf_OBJECTS += grub_pe2elf-util_grub_pe2elf.o grub_pe2elf-util_misc.o |
| |
| grub_pe2elf-util_grub_pe2elf.o: util/grub-pe2elf.c $(util/grub-pe2elf.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $< |
| -include grub_pe2elf-util_grub_pe2elf.d |
| |
| grub_pe2elf-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_pe2elf_CFLAGS) -MD -c -o $@ $< |
| -include grub_pe2elf-util_misc.d |
| |
| CLEANFILES += grub-pe2elf |
| |
| grub_macho2img_SOURCES = util/grub-macho2img.c |
| |
| clean-utility-grub-macho2img.1: |
| rm -f grub-macho2img$(EXEEXT) grub_macho2img-util_grub_macho2img.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-macho2img.1 |
| |
| mostlyclean-utility-grub-macho2img.1: |
| rm -f grub_macho2img-util_grub_macho2img.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-macho2img.1 |
| |
| grub_macho2img_OBJECTS += grub_macho2img-util_grub_macho2img.o |
| |
| grub_macho2img-util_grub_macho2img.o: util/grub-macho2img.c $(util/grub-macho2img.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_macho2img_CFLAGS) -MD -c -o $@ $< |
| -include grub_macho2img-util_grub_macho2img.d |
| |
| CLEANFILES += grub-macho2img |
| |
| # For grub-mkconfig |
| grub-mkconfig: util/grub-mkconfig.in config.status |
| ./config.status --file=$@:$< |
| chmod +x $@ |
| sbin_SCRIPTS += grub-mkconfig |
| CLEANFILES += grub-mkconfig |
| |
| grub-mkconfig_lib: util/grub-mkconfig_lib.in config.status |
| ./config.status --file=$@:$< |
| chmod +x $@ |
| lib_SCRIPTS += grub-mkconfig_lib |
| CLEANFILES += grub-mkconfig_lib |
| |
| update-grub_lib: util/update-grub_lib.in config.status |
| ./config.status --file=$@:$< |
| chmod +x $@ |
| lib_SCRIPTS += update-grub_lib |
| CLEANFILES += update-grub_lib |
| |
| %: util/grub.d/%.in config.status |
| ./config.status --file=$@:$< |
| chmod +x $@ |
| grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom |
| ifneq (, $(host_kernel)) |
| grub-mkconfig_SCRIPTS += 10_$(host_kernel) |
| endif |
| |
| CLEANFILES += $(grub-mkconfig_SCRIPTS) |
| |
| grub-mkconfig_DATA += util/grub.d/README |
| |
| # Filing systems. |
| pkglib_MODULES += fshelp.mod fat.mod ufs1.mod ufs2.mod ext2.mod ntfs.mod \ |
| ntfscomp.mod minix.mod hfs.mod jfs.mod iso9660.mod xfs.mod \ |
| affs.mod sfs.mod hfsplus.mod reiserfs.mod cpio.mod tar.mod \ |
| udf.mod afs.mod afs_be.mod befs.mod befs_be.mod |
| |
| # For fshelp.mod. |
| fshelp_mod_SOURCES = fs/fshelp.c |
| |
| clean-module-fshelp.mod.1: |
| rm -f fshelp.mod mod-fshelp.o mod-fshelp.c pre-fshelp.o fshelp_mod-fs_fshelp.o und-fshelp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fshelp.mod.1 |
| |
| ifneq ($(fshelp_mod_EXPORTS),no) |
| clean-module-fshelp.mod-symbol.1: |
| rm -f def-fshelp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fshelp.mod-symbol.1 |
| DEFSYMFILES += def-fshelp.lst |
| endif |
| mostlyclean-module-fshelp.mod.1: |
| rm -f fshelp_mod-fs_fshelp.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-fshelp.mod.1 |
| UNDSYMFILES += und-fshelp.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| fshelp.mod: pre-fshelp.o mod-fshelp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-fshelp.o mod-fshelp.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| fshelp.mod: pre-fshelp.o mod-fshelp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-fshelp.o mod-fshelp.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-fshelp.o: $(fshelp_mod_DEPENDENCIES) fshelp_mod-fs_fshelp.o |
| -rm -f $@ |
| $(TARGET_CC) $(fshelp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fshelp_mod-fs_fshelp.o |
| |
| mod-fshelp.o: mod-fshelp.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -c -o $@ $< |
| |
| mod-fshelp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'fshelp' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(fshelp_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-fshelp.lst: pre-fshelp.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fshelp/' > $@ |
| else |
| def-fshelp.lst: pre-fshelp.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 fshelp/' > $@ |
| endif |
| endif |
| |
| und-fshelp.lst: pre-fshelp.o |
| echo 'fshelp' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| fshelp_mod-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -MD -c -o $@ $< |
| -include fshelp_mod-fs_fshelp.d |
| |
| clean-module-fshelp_mod-fs_fshelp-extra.1: |
| rm -f cmd-fshelp_mod-fs_fshelp.lst fs-fshelp_mod-fs_fshelp.lst partmap-fshelp_mod-fs_fshelp.lst handler-fshelp_mod-fs_fshelp.lst parttool-fshelp_mod-fs_fshelp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fshelp_mod-fs_fshelp-extra.1 |
| |
| COMMANDFILES += cmd-fshelp_mod-fs_fshelp.lst |
| FSFILES += fs-fshelp_mod-fs_fshelp.lst |
| PARTTOOLFILES += parttool-fshelp_mod-fs_fshelp.lst |
| PARTMAPFILES += partmap-fshelp_mod-fs_fshelp.lst |
| HANDLERFILES += handler-fshelp_mod-fs_fshelp.lst |
| |
| cmd-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh fshelp > $@ || (rm -f $@; exit 1) |
| |
| partmap-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-fshelp_mod-fs_fshelp.lst: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fshelp_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh fshelp > $@ || (rm -f $@; exit 1) |
| |
| fshelp_mod_CFLAGS = $(COMMON_CFLAGS) |
| fshelp_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For fat.mod. |
| fat_mod_SOURCES = fs/fat.c |
| |
| clean-module-fat.mod.1: |
| rm -f fat.mod mod-fat.o mod-fat.c pre-fat.o fat_mod-fs_fat.o und-fat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fat.mod.1 |
| |
| ifneq ($(fat_mod_EXPORTS),no) |
| clean-module-fat.mod-symbol.1: |
| rm -f def-fat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fat.mod-symbol.1 |
| DEFSYMFILES += def-fat.lst |
| endif |
| mostlyclean-module-fat.mod.1: |
| rm -f fat_mod-fs_fat.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-fat.mod.1 |
| UNDSYMFILES += und-fat.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| fat.mod: pre-fat.o mod-fat.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-fat.o mod-fat.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| fat.mod: pre-fat.o mod-fat.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-fat.o mod-fat.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-fat.o: $(fat_mod_DEPENDENCIES) fat_mod-fs_fat.o |
| -rm -f $@ |
| $(TARGET_CC) $(fat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fat_mod-fs_fat.o |
| |
| mod-fat.o: mod-fat.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -c -o $@ $< |
| |
| mod-fat.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'fat' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(fat_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-fat.lst: pre-fat.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fat/' > $@ |
| else |
| def-fat.lst: pre-fat.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 fat/' > $@ |
| endif |
| endif |
| |
| und-fat.lst: pre-fat.o |
| echo 'fat' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| fat_mod-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -MD -c -o $@ $< |
| -include fat_mod-fs_fat.d |
| |
| clean-module-fat_mod-fs_fat-extra.1: |
| rm -f cmd-fat_mod-fs_fat.lst fs-fat_mod-fs_fat.lst partmap-fat_mod-fs_fat.lst handler-fat_mod-fs_fat.lst parttool-fat_mod-fs_fat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fat_mod-fs_fat-extra.1 |
| |
| COMMANDFILES += cmd-fat_mod-fs_fat.lst |
| FSFILES += fs-fat_mod-fs_fat.lst |
| PARTTOOLFILES += parttool-fat_mod-fs_fat.lst |
| PARTMAPFILES += partmap-fat_mod-fs_fat.lst |
| HANDLERFILES += handler-fat_mod-fs_fat.lst |
| |
| cmd-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh fat > $@ || (rm -f $@; exit 1) |
| |
| partmap-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-fat_mod-fs_fat.lst: fs/fat.c $(fs/fat.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fat_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh fat > $@ || (rm -f $@; exit 1) |
| |
| fat_mod_CFLAGS = $(COMMON_CFLAGS) |
| fat_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ufs1.mod. |
| ufs1_mod_SOURCES = fs/ufs.c |
| |
| clean-module-ufs1.mod.1: |
| rm -f ufs1.mod mod-ufs1.o mod-ufs1.c pre-ufs1.o ufs1_mod-fs_ufs.o und-ufs1.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs1.mod.1 |
| |
| ifneq ($(ufs1_mod_EXPORTS),no) |
| clean-module-ufs1.mod-symbol.1: |
| rm -f def-ufs1.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs1.mod-symbol.1 |
| DEFSYMFILES += def-ufs1.lst |
| endif |
| mostlyclean-module-ufs1.mod.1: |
| rm -f ufs1_mod-fs_ufs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ufs1.mod.1 |
| UNDSYMFILES += und-ufs1.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ufs1.mod: pre-ufs1.o mod-ufs1.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ufs1_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ufs1.o mod-ufs1.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ufs1.mod: pre-ufs1.o mod-ufs1.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ufs1_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ufs1.o mod-ufs1.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ufs1.o: $(ufs1_mod_DEPENDENCIES) ufs1_mod-fs_ufs.o |
| -rm -f $@ |
| $(TARGET_CC) $(ufs1_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ufs1_mod-fs_ufs.o |
| |
| mod-ufs1.o: mod-ufs1.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ufs1.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ufs1' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ufs1_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ufs1.lst: pre-ufs1.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ufs1/' > $@ |
| else |
| def-ufs1.lst: pre-ufs1.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ufs1/' > $@ |
| endif |
| endif |
| |
| und-ufs1.lst: pre-ufs1.o |
| echo 'ufs1' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ufs1_mod-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -MD -c -o $@ $< |
| -include ufs1_mod-fs_ufs.d |
| |
| clean-module-ufs1_mod-fs_ufs-extra.1: |
| rm -f cmd-ufs1_mod-fs_ufs.lst fs-ufs1_mod-fs_ufs.lst partmap-ufs1_mod-fs_ufs.lst handler-ufs1_mod-fs_ufs.lst parttool-ufs1_mod-fs_ufs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs1_mod-fs_ufs-extra.1 |
| |
| COMMANDFILES += cmd-ufs1_mod-fs_ufs.lst |
| FSFILES += fs-ufs1_mod-fs_ufs.lst |
| PARTTOOLFILES += parttool-ufs1_mod-fs_ufs.lst |
| PARTMAPFILES += partmap-ufs1_mod-fs_ufs.lst |
| HANDLERFILES += handler-ufs1_mod-fs_ufs.lst |
| |
| cmd-ufs1_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ufs1 > $@ || (rm -f $@; exit 1) |
| |
| fs-ufs1_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ufs1 > $@ || (rm -f $@; exit 1) |
| |
| parttool-ufs1_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ufs1 > $@ || (rm -f $@; exit 1) |
| |
| partmap-ufs1_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ufs1 > $@ || (rm -f $@; exit 1) |
| |
| handler-ufs1_mod-fs_ufs.lst: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs1_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ufs1 > $@ || (rm -f $@; exit 1) |
| |
| ufs1_mod_CFLAGS = $(COMMON_CFLAGS) |
| ufs1_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ufs2.mod. |
| ufs2_mod_SOURCES = fs/ufs2.c |
| |
| clean-module-ufs2.mod.1: |
| rm -f ufs2.mod mod-ufs2.o mod-ufs2.c pre-ufs2.o ufs2_mod-fs_ufs2.o und-ufs2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs2.mod.1 |
| |
| ifneq ($(ufs2_mod_EXPORTS),no) |
| clean-module-ufs2.mod-symbol.1: |
| rm -f def-ufs2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs2.mod-symbol.1 |
| DEFSYMFILES += def-ufs2.lst |
| endif |
| mostlyclean-module-ufs2.mod.1: |
| rm -f ufs2_mod-fs_ufs2.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ufs2.mod.1 |
| UNDSYMFILES += und-ufs2.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ufs2.mod: pre-ufs2.o mod-ufs2.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ufs2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ufs2.o mod-ufs2.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ufs2.mod: pre-ufs2.o mod-ufs2.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ufs2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ufs2.o mod-ufs2.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ufs2.o: $(ufs2_mod_DEPENDENCIES) ufs2_mod-fs_ufs2.o |
| -rm -f $@ |
| $(TARGET_CC) $(ufs2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ufs2_mod-fs_ufs2.o |
| |
| mod-ufs2.o: mod-ufs2.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ufs2.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ufs2' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ufs2_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ufs2.lst: pre-ufs2.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ufs2/' > $@ |
| else |
| def-ufs2.lst: pre-ufs2.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ufs2/' > $@ |
| endif |
| endif |
| |
| und-ufs2.lst: pre-ufs2.o |
| echo 'ufs2' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ufs2_mod-fs_ufs2.o: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -MD -c -o $@ $< |
| -include ufs2_mod-fs_ufs2.d |
| |
| clean-module-ufs2_mod-fs_ufs2-extra.1: |
| rm -f cmd-ufs2_mod-fs_ufs2.lst fs-ufs2_mod-fs_ufs2.lst partmap-ufs2_mod-fs_ufs2.lst handler-ufs2_mod-fs_ufs2.lst parttool-ufs2_mod-fs_ufs2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ufs2_mod-fs_ufs2-extra.1 |
| |
| COMMANDFILES += cmd-ufs2_mod-fs_ufs2.lst |
| FSFILES += fs-ufs2_mod-fs_ufs2.lst |
| PARTTOOLFILES += parttool-ufs2_mod-fs_ufs2.lst |
| PARTMAPFILES += partmap-ufs2_mod-fs_ufs2.lst |
| HANDLERFILES += handler-ufs2_mod-fs_ufs2.lst |
| |
| cmd-ufs2_mod-fs_ufs2.lst: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh ufs2 > $@ || (rm -f $@; exit 1) |
| |
| fs-ufs2_mod-fs_ufs2.lst: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh ufs2 > $@ || (rm -f $@; exit 1) |
| |
| parttool-ufs2_mod-fs_ufs2.lst: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ufs2 > $@ || (rm -f $@; exit 1) |
| |
| partmap-ufs2_mod-fs_ufs2.lst: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh ufs2 > $@ || (rm -f $@; exit 1) |
| |
| handler-ufs2_mod-fs_ufs2.lst: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ufs2_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ufs2 > $@ || (rm -f $@; exit 1) |
| |
| ufs2_mod_CFLAGS = $(COMMON_CFLAGS) |
| ufs2_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ext2.mod. |
| ext2_mod_SOURCES = fs/ext2.c |
| |
| clean-module-ext2.mod.1: |
| rm -f ext2.mod mod-ext2.o mod-ext2.c pre-ext2.o ext2_mod-fs_ext2.o und-ext2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ext2.mod.1 |
| |
| ifneq ($(ext2_mod_EXPORTS),no) |
| clean-module-ext2.mod-symbol.1: |
| rm -f def-ext2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ext2.mod-symbol.1 |
| DEFSYMFILES += def-ext2.lst |
| endif |
| mostlyclean-module-ext2.mod.1: |
| rm -f ext2_mod-fs_ext2.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ext2.mod.1 |
| UNDSYMFILES += und-ext2.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ext2.mod: pre-ext2.o mod-ext2.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ext2.o mod-ext2.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ext2.mod: pre-ext2.o mod-ext2.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ext2.o mod-ext2.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ext2.o: $(ext2_mod_DEPENDENCIES) ext2_mod-fs_ext2.o |
| -rm -f $@ |
| $(TARGET_CC) $(ext2_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ext2_mod-fs_ext2.o |
| |
| mod-ext2.o: mod-ext2.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ext2.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ext2' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ext2_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ext2.lst: pre-ext2.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ext2/' > $@ |
| else |
| def-ext2.lst: pre-ext2.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ext2/' > $@ |
| endif |
| endif |
| |
| und-ext2.lst: pre-ext2.o |
| echo 'ext2' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ext2_mod-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -MD -c -o $@ $< |
| -include ext2_mod-fs_ext2.d |
| |
| clean-module-ext2_mod-fs_ext2-extra.1: |
| rm -f cmd-ext2_mod-fs_ext2.lst fs-ext2_mod-fs_ext2.lst partmap-ext2_mod-fs_ext2.lst handler-ext2_mod-fs_ext2.lst parttool-ext2_mod-fs_ext2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ext2_mod-fs_ext2-extra.1 |
| |
| COMMANDFILES += cmd-ext2_mod-fs_ext2.lst |
| FSFILES += fs-ext2_mod-fs_ext2.lst |
| PARTTOOLFILES += parttool-ext2_mod-fs_ext2.lst |
| PARTMAPFILES += partmap-ext2_mod-fs_ext2.lst |
| HANDLERFILES += handler-ext2_mod-fs_ext2.lst |
| |
| cmd-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ext2 > $@ || (rm -f $@; exit 1) |
| |
| partmap-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-ext2_mod-fs_ext2.lst: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ext2_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ext2 > $@ || (rm -f $@; exit 1) |
| |
| ext2_mod_CFLAGS = $(COMMON_CFLAGS) |
| ext2_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ntfs.mod. |
| ntfs_mod_SOURCES = fs/ntfs.c |
| |
| clean-module-ntfs.mod.1: |
| rm -f ntfs.mod mod-ntfs.o mod-ntfs.c pre-ntfs.o ntfs_mod-fs_ntfs.o und-ntfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfs.mod.1 |
| |
| ifneq ($(ntfs_mod_EXPORTS),no) |
| clean-module-ntfs.mod-symbol.1: |
| rm -f def-ntfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfs.mod-symbol.1 |
| DEFSYMFILES += def-ntfs.lst |
| endif |
| mostlyclean-module-ntfs.mod.1: |
| rm -f ntfs_mod-fs_ntfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ntfs.mod.1 |
| UNDSYMFILES += und-ntfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ntfs.mod: pre-ntfs.o mod-ntfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfs.o mod-ntfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ntfs.mod: pre-ntfs.o mod-ntfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ntfs.o mod-ntfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ntfs.o: $(ntfs_mod_DEPENDENCIES) ntfs_mod-fs_ntfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(ntfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfs_mod-fs_ntfs.o |
| |
| mod-ntfs.o: mod-ntfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ntfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ntfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ntfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ntfs.lst: pre-ntfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfs/' > $@ |
| else |
| def-ntfs.lst: pre-ntfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ntfs/' > $@ |
| endif |
| endif |
| |
| und-ntfs.lst: pre-ntfs.o |
| echo 'ntfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ntfs_mod-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include ntfs_mod-fs_ntfs.d |
| |
| clean-module-ntfs_mod-fs_ntfs-extra.1: |
| rm -f cmd-ntfs_mod-fs_ntfs.lst fs-ntfs_mod-fs_ntfs.lst partmap-ntfs_mod-fs_ntfs.lst handler-ntfs_mod-fs_ntfs.lst parttool-ntfs_mod-fs_ntfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfs_mod-fs_ntfs-extra.1 |
| |
| COMMANDFILES += cmd-ntfs_mod-fs_ntfs.lst |
| FSFILES += fs-ntfs_mod-fs_ntfs.lst |
| PARTTOOLFILES += parttool-ntfs_mod-fs_ntfs.lst |
| PARTMAPFILES += partmap-ntfs_mod-fs_ntfs.lst |
| HANDLERFILES += handler-ntfs_mod-fs_ntfs.lst |
| |
| cmd-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ntfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-ntfs_mod-fs_ntfs.lst: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ntfs > $@ || (rm -f $@; exit 1) |
| |
| ntfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| ntfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ntfscomp.mod. |
| ntfscomp_mod_SOURCES = fs/ntfscomp.c |
| |
| clean-module-ntfscomp.mod.1: |
| rm -f ntfscomp.mod mod-ntfscomp.o mod-ntfscomp.c pre-ntfscomp.o ntfscomp_mod-fs_ntfscomp.o und-ntfscomp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfscomp.mod.1 |
| |
| ifneq ($(ntfscomp_mod_EXPORTS),no) |
| clean-module-ntfscomp.mod-symbol.1: |
| rm -f def-ntfscomp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfscomp.mod-symbol.1 |
| DEFSYMFILES += def-ntfscomp.lst |
| endif |
| mostlyclean-module-ntfscomp.mod.1: |
| rm -f ntfscomp_mod-fs_ntfscomp.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ntfscomp.mod.1 |
| UNDSYMFILES += und-ntfscomp.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ntfscomp.mod: pre-ntfscomp.o mod-ntfscomp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ntfscomp.o mod-ntfscomp.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ntfscomp.mod: pre-ntfscomp.o mod-ntfscomp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ntfscomp.o mod-ntfscomp.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ntfscomp.o: $(ntfscomp_mod_DEPENDENCIES) ntfscomp_mod-fs_ntfscomp.o |
| -rm -f $@ |
| $(TARGET_CC) $(ntfscomp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ntfscomp_mod-fs_ntfscomp.o |
| |
| mod-ntfscomp.o: mod-ntfscomp.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ntfscomp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ntfscomp' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ntfscomp_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ntfscomp.lst: pre-ntfscomp.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ntfscomp/' > $@ |
| else |
| def-ntfscomp.lst: pre-ntfscomp.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ntfscomp/' > $@ |
| endif |
| endif |
| |
| und-ntfscomp.lst: pre-ntfscomp.o |
| echo 'ntfscomp' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ntfscomp_mod-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -MD -c -o $@ $< |
| -include ntfscomp_mod-fs_ntfscomp.d |
| |
| clean-module-ntfscomp_mod-fs_ntfscomp-extra.1: |
| rm -f cmd-ntfscomp_mod-fs_ntfscomp.lst fs-ntfscomp_mod-fs_ntfscomp.lst partmap-ntfscomp_mod-fs_ntfscomp.lst handler-ntfscomp_mod-fs_ntfscomp.lst parttool-ntfscomp_mod-fs_ntfscomp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ntfscomp_mod-fs_ntfscomp-extra.1 |
| |
| COMMANDFILES += cmd-ntfscomp_mod-fs_ntfscomp.lst |
| FSFILES += fs-ntfscomp_mod-fs_ntfscomp.lst |
| PARTTOOLFILES += parttool-ntfscomp_mod-fs_ntfscomp.lst |
| PARTMAPFILES += partmap-ntfscomp_mod-fs_ntfscomp.lst |
| HANDLERFILES += handler-ntfscomp_mod-fs_ntfscomp.lst |
| |
| cmd-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ntfscomp > $@ || (rm -f $@; exit 1) |
| |
| partmap-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-ntfscomp_mod-fs_ntfscomp.lst: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ntfscomp_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ntfscomp > $@ || (rm -f $@; exit 1) |
| |
| ntfscomp_mod_CFLAGS = $(COMMON_CFLAGS) |
| ntfscomp_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For minix.mod. |
| minix_mod_SOURCES = fs/minix.c |
| |
| clean-module-minix.mod.1: |
| rm -f minix.mod mod-minix.o mod-minix.c pre-minix.o minix_mod-fs_minix.o und-minix.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minix.mod.1 |
| |
| ifneq ($(minix_mod_EXPORTS),no) |
| clean-module-minix.mod-symbol.1: |
| rm -f def-minix.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minix.mod-symbol.1 |
| DEFSYMFILES += def-minix.lst |
| endif |
| mostlyclean-module-minix.mod.1: |
| rm -f minix_mod-fs_minix.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-minix.mod.1 |
| UNDSYMFILES += und-minix.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| minix.mod: pre-minix.o mod-minix.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-minix.o mod-minix.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| minix.mod: pre-minix.o mod-minix.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-minix.o mod-minix.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-minix.o: $(minix_mod_DEPENDENCIES) minix_mod-fs_minix.o |
| -rm -f $@ |
| $(TARGET_CC) $(minix_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ minix_mod-fs_minix.o |
| |
| mod-minix.o: mod-minix.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -c -o $@ $< |
| |
| mod-minix.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'minix' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(minix_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-minix.lst: pre-minix.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 minix/' > $@ |
| else |
| def-minix.lst: pre-minix.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 minix/' > $@ |
| endif |
| endif |
| |
| und-minix.lst: pre-minix.o |
| echo 'minix' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| minix_mod-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -MD -c -o $@ $< |
| -include minix_mod-fs_minix.d |
| |
| clean-module-minix_mod-fs_minix-extra.1: |
| rm -f cmd-minix_mod-fs_minix.lst fs-minix_mod-fs_minix.lst partmap-minix_mod-fs_minix.lst handler-minix_mod-fs_minix.lst parttool-minix_mod-fs_minix.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minix_mod-fs_minix-extra.1 |
| |
| COMMANDFILES += cmd-minix_mod-fs_minix.lst |
| FSFILES += fs-minix_mod-fs_minix.lst |
| PARTTOOLFILES += parttool-minix_mod-fs_minix.lst |
| PARTMAPFILES += partmap-minix_mod-fs_minix.lst |
| HANDLERFILES += handler-minix_mod-fs_minix.lst |
| |
| cmd-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh minix > $@ || (rm -f $@; exit 1) |
| |
| partmap-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-minix_mod-fs_minix.lst: fs/minix.c $(fs/minix.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minix_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh minix > $@ || (rm -f $@; exit 1) |
| |
| minix_mod_CFLAGS = $(COMMON_CFLAGS) |
| minix_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For hfs.mod. |
| hfs_mod_SOURCES = fs/hfs.c |
| |
| clean-module-hfs.mod.1: |
| rm -f hfs.mod mod-hfs.o mod-hfs.c pre-hfs.o hfs_mod-fs_hfs.o und-hfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfs.mod.1 |
| |
| ifneq ($(hfs_mod_EXPORTS),no) |
| clean-module-hfs.mod-symbol.1: |
| rm -f def-hfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfs.mod-symbol.1 |
| DEFSYMFILES += def-hfs.lst |
| endif |
| mostlyclean-module-hfs.mod.1: |
| rm -f hfs_mod-fs_hfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-hfs.mod.1 |
| UNDSYMFILES += und-hfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| hfs.mod: pre-hfs.o mod-hfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-hfs.o mod-hfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| hfs.mod: pre-hfs.o mod-hfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-hfs.o mod-hfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-hfs.o: $(hfs_mod_DEPENDENCIES) hfs_mod-fs_hfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(hfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfs_mod-fs_hfs.o |
| |
| mod-hfs.o: mod-hfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-hfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'hfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(hfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-hfs.lst: pre-hfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfs/' > $@ |
| else |
| def-hfs.lst: pre-hfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 hfs/' > $@ |
| endif |
| endif |
| |
| und-hfs.lst: pre-hfs.o |
| echo 'hfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| hfs_mod-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include hfs_mod-fs_hfs.d |
| |
| clean-module-hfs_mod-fs_hfs-extra.1: |
| rm -f cmd-hfs_mod-fs_hfs.lst fs-hfs_mod-fs_hfs.lst partmap-hfs_mod-fs_hfs.lst handler-hfs_mod-fs_hfs.lst parttool-hfs_mod-fs_hfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfs_mod-fs_hfs-extra.1 |
| |
| COMMANDFILES += cmd-hfs_mod-fs_hfs.lst |
| FSFILES += fs-hfs_mod-fs_hfs.lst |
| PARTTOOLFILES += parttool-hfs_mod-fs_hfs.lst |
| PARTMAPFILES += partmap-hfs_mod-fs_hfs.lst |
| HANDLERFILES += handler-hfs_mod-fs_hfs.lst |
| |
| cmd-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh hfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-hfs_mod-fs_hfs.lst: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh hfs > $@ || (rm -f $@; exit 1) |
| |
| hfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| hfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For jfs.mod. |
| jfs_mod_SOURCES = fs/jfs.c |
| |
| clean-module-jfs.mod.1: |
| rm -f jfs.mod mod-jfs.o mod-jfs.c pre-jfs.o jfs_mod-fs_jfs.o und-jfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jfs.mod.1 |
| |
| ifneq ($(jfs_mod_EXPORTS),no) |
| clean-module-jfs.mod-symbol.1: |
| rm -f def-jfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jfs.mod-symbol.1 |
| DEFSYMFILES += def-jfs.lst |
| endif |
| mostlyclean-module-jfs.mod.1: |
| rm -f jfs_mod-fs_jfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-jfs.mod.1 |
| UNDSYMFILES += und-jfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| jfs.mod: pre-jfs.o mod-jfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-jfs.o mod-jfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| jfs.mod: pre-jfs.o mod-jfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-jfs.o mod-jfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-jfs.o: $(jfs_mod_DEPENDENCIES) jfs_mod-fs_jfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(jfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jfs_mod-fs_jfs.o |
| |
| mod-jfs.o: mod-jfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-jfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'jfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(jfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-jfs.lst: pre-jfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jfs/' > $@ |
| else |
| def-jfs.lst: pre-jfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 jfs/' > $@ |
| endif |
| endif |
| |
| und-jfs.lst: pre-jfs.o |
| echo 'jfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| jfs_mod-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include jfs_mod-fs_jfs.d |
| |
| clean-module-jfs_mod-fs_jfs-extra.1: |
| rm -f cmd-jfs_mod-fs_jfs.lst fs-jfs_mod-fs_jfs.lst partmap-jfs_mod-fs_jfs.lst handler-jfs_mod-fs_jfs.lst parttool-jfs_mod-fs_jfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jfs_mod-fs_jfs-extra.1 |
| |
| COMMANDFILES += cmd-jfs_mod-fs_jfs.lst |
| FSFILES += fs-jfs_mod-fs_jfs.lst |
| PARTTOOLFILES += parttool-jfs_mod-fs_jfs.lst |
| PARTMAPFILES += partmap-jfs_mod-fs_jfs.lst |
| HANDLERFILES += handler-jfs_mod-fs_jfs.lst |
| |
| cmd-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh jfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-jfs_mod-fs_jfs.lst: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh jfs > $@ || (rm -f $@; exit 1) |
| |
| jfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| jfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For iso9660.mod. |
| iso9660_mod_SOURCES = fs/iso9660.c |
| |
| clean-module-iso9660.mod.1: |
| rm -f iso9660.mod mod-iso9660.o mod-iso9660.c pre-iso9660.o iso9660_mod-fs_iso9660.o und-iso9660.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-iso9660.mod.1 |
| |
| ifneq ($(iso9660_mod_EXPORTS),no) |
| clean-module-iso9660.mod-symbol.1: |
| rm -f def-iso9660.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-iso9660.mod-symbol.1 |
| DEFSYMFILES += def-iso9660.lst |
| endif |
| mostlyclean-module-iso9660.mod.1: |
| rm -f iso9660_mod-fs_iso9660.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-iso9660.mod.1 |
| UNDSYMFILES += und-iso9660.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| iso9660.mod: pre-iso9660.o mod-iso9660.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-iso9660.o mod-iso9660.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| iso9660.mod: pre-iso9660.o mod-iso9660.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-iso9660.o mod-iso9660.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-iso9660.o: $(iso9660_mod_DEPENDENCIES) iso9660_mod-fs_iso9660.o |
| -rm -f $@ |
| $(TARGET_CC) $(iso9660_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ iso9660_mod-fs_iso9660.o |
| |
| mod-iso9660.o: mod-iso9660.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -c -o $@ $< |
| |
| mod-iso9660.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'iso9660' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(iso9660_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-iso9660.lst: pre-iso9660.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 iso9660/' > $@ |
| else |
| def-iso9660.lst: pre-iso9660.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 iso9660/' > $@ |
| endif |
| endif |
| |
| und-iso9660.lst: pre-iso9660.o |
| echo 'iso9660' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| iso9660_mod-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -MD -c -o $@ $< |
| -include iso9660_mod-fs_iso9660.d |
| |
| clean-module-iso9660_mod-fs_iso9660-extra.1: |
| rm -f cmd-iso9660_mod-fs_iso9660.lst fs-iso9660_mod-fs_iso9660.lst partmap-iso9660_mod-fs_iso9660.lst handler-iso9660_mod-fs_iso9660.lst parttool-iso9660_mod-fs_iso9660.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-iso9660_mod-fs_iso9660-extra.1 |
| |
| COMMANDFILES += cmd-iso9660_mod-fs_iso9660.lst |
| FSFILES += fs-iso9660_mod-fs_iso9660.lst |
| PARTTOOLFILES += parttool-iso9660_mod-fs_iso9660.lst |
| PARTMAPFILES += partmap-iso9660_mod-fs_iso9660.lst |
| HANDLERFILES += handler-iso9660_mod-fs_iso9660.lst |
| |
| cmd-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh iso9660 > $@ || (rm -f $@; exit 1) |
| |
| partmap-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-iso9660_mod-fs_iso9660.lst: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(iso9660_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh iso9660 > $@ || (rm -f $@; exit 1) |
| |
| iso9660_mod_CFLAGS = $(COMMON_CFLAGS) |
| iso9660_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For xfs.mod. |
| xfs_mod_SOURCES = fs/xfs.c |
| |
| clean-module-xfs.mod.1: |
| rm -f xfs.mod mod-xfs.o mod-xfs.c pre-xfs.o xfs_mod-fs_xfs.o und-xfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xfs.mod.1 |
| |
| ifneq ($(xfs_mod_EXPORTS),no) |
| clean-module-xfs.mod-symbol.1: |
| rm -f def-xfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xfs.mod-symbol.1 |
| DEFSYMFILES += def-xfs.lst |
| endif |
| mostlyclean-module-xfs.mod.1: |
| rm -f xfs_mod-fs_xfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-xfs.mod.1 |
| UNDSYMFILES += und-xfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| xfs.mod: pre-xfs.o mod-xfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-xfs.o mod-xfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| xfs.mod: pre-xfs.o mod-xfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-xfs.o mod-xfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-xfs.o: $(xfs_mod_DEPENDENCIES) xfs_mod-fs_xfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(xfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ xfs_mod-fs_xfs.o |
| |
| mod-xfs.o: mod-xfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-xfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'xfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(xfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-xfs.lst: pre-xfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 xfs/' > $@ |
| else |
| def-xfs.lst: pre-xfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 xfs/' > $@ |
| endif |
| endif |
| |
| und-xfs.lst: pre-xfs.o |
| echo 'xfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| xfs_mod-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include xfs_mod-fs_xfs.d |
| |
| clean-module-xfs_mod-fs_xfs-extra.1: |
| rm -f cmd-xfs_mod-fs_xfs.lst fs-xfs_mod-fs_xfs.lst partmap-xfs_mod-fs_xfs.lst handler-xfs_mod-fs_xfs.lst parttool-xfs_mod-fs_xfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xfs_mod-fs_xfs-extra.1 |
| |
| COMMANDFILES += cmd-xfs_mod-fs_xfs.lst |
| FSFILES += fs-xfs_mod-fs_xfs.lst |
| PARTTOOLFILES += parttool-xfs_mod-fs_xfs.lst |
| PARTMAPFILES += partmap-xfs_mod-fs_xfs.lst |
| HANDLERFILES += handler-xfs_mod-fs_xfs.lst |
| |
| cmd-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-xfs_mod-fs_xfs.lst: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xfs > $@ || (rm -f $@; exit 1) |
| |
| xfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| xfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For affs.mod. |
| affs_mod_SOURCES = fs/affs.c |
| |
| clean-module-affs.mod.1: |
| rm -f affs.mod mod-affs.o mod-affs.c pre-affs.o affs_mod-fs_affs.o und-affs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-affs.mod.1 |
| |
| ifneq ($(affs_mod_EXPORTS),no) |
| clean-module-affs.mod-symbol.1: |
| rm -f def-affs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-affs.mod-symbol.1 |
| DEFSYMFILES += def-affs.lst |
| endif |
| mostlyclean-module-affs.mod.1: |
| rm -f affs_mod-fs_affs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-affs.mod.1 |
| UNDSYMFILES += und-affs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| affs.mod: pre-affs.o mod-affs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-affs.o mod-affs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| affs.mod: pre-affs.o mod-affs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-affs.o mod-affs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-affs.o: $(affs_mod_DEPENDENCIES) affs_mod-fs_affs.o |
| -rm -f $@ |
| $(TARGET_CC) $(affs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ affs_mod-fs_affs.o |
| |
| mod-affs.o: mod-affs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-affs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'affs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(affs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-affs.lst: pre-affs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 affs/' > $@ |
| else |
| def-affs.lst: pre-affs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 affs/' > $@ |
| endif |
| endif |
| |
| und-affs.lst: pre-affs.o |
| echo 'affs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| affs_mod-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -MD -c -o $@ $< |
| -include affs_mod-fs_affs.d |
| |
| clean-module-affs_mod-fs_affs-extra.1: |
| rm -f cmd-affs_mod-fs_affs.lst fs-affs_mod-fs_affs.lst partmap-affs_mod-fs_affs.lst handler-affs_mod-fs_affs.lst parttool-affs_mod-fs_affs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-affs_mod-fs_affs-extra.1 |
| |
| COMMANDFILES += cmd-affs_mod-fs_affs.lst |
| FSFILES += fs-affs_mod-fs_affs.lst |
| PARTTOOLFILES += parttool-affs_mod-fs_affs.lst |
| PARTMAPFILES += partmap-affs_mod-fs_affs.lst |
| HANDLERFILES += handler-affs_mod-fs_affs.lst |
| |
| cmd-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh affs > $@ || (rm -f $@; exit 1) |
| |
| partmap-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-affs_mod-fs_affs.lst: fs/affs.c $(fs/affs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(affs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh affs > $@ || (rm -f $@; exit 1) |
| |
| affs_mod_CFLAGS = $(COMMON_CFLAGS) |
| affs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For sfs.mod. |
| sfs_mod_SOURCES = fs/sfs.c |
| |
| clean-module-sfs.mod.1: |
| rm -f sfs.mod mod-sfs.o mod-sfs.c pre-sfs.o sfs_mod-fs_sfs.o und-sfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sfs.mod.1 |
| |
| ifneq ($(sfs_mod_EXPORTS),no) |
| clean-module-sfs.mod-symbol.1: |
| rm -f def-sfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sfs.mod-symbol.1 |
| DEFSYMFILES += def-sfs.lst |
| endif |
| mostlyclean-module-sfs.mod.1: |
| rm -f sfs_mod-fs_sfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-sfs.mod.1 |
| UNDSYMFILES += und-sfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| sfs.mod: pre-sfs.o mod-sfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-sfs.o mod-sfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| sfs.mod: pre-sfs.o mod-sfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-sfs.o mod-sfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-sfs.o: $(sfs_mod_DEPENDENCIES) sfs_mod-fs_sfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(sfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sfs_mod-fs_sfs.o |
| |
| mod-sfs.o: mod-sfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-sfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'sfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(sfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-sfs.lst: pre-sfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sfs/' > $@ |
| else |
| def-sfs.lst: pre-sfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 sfs/' > $@ |
| endif |
| endif |
| |
| und-sfs.lst: pre-sfs.o |
| echo 'sfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| sfs_mod-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include sfs_mod-fs_sfs.d |
| |
| clean-module-sfs_mod-fs_sfs-extra.1: |
| rm -f cmd-sfs_mod-fs_sfs.lst fs-sfs_mod-fs_sfs.lst partmap-sfs_mod-fs_sfs.lst handler-sfs_mod-fs_sfs.lst parttool-sfs_mod-fs_sfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sfs_mod-fs_sfs-extra.1 |
| |
| COMMANDFILES += cmd-sfs_mod-fs_sfs.lst |
| FSFILES += fs-sfs_mod-fs_sfs.lst |
| PARTTOOLFILES += parttool-sfs_mod-fs_sfs.lst |
| PARTMAPFILES += partmap-sfs_mod-fs_sfs.lst |
| HANDLERFILES += handler-sfs_mod-fs_sfs.lst |
| |
| cmd-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-sfs_mod-fs_sfs.lst: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sfs > $@ || (rm -f $@; exit 1) |
| |
| sfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| sfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For hfsplus.mod. |
| hfsplus_mod_SOURCES = fs/hfsplus.c |
| |
| clean-module-hfsplus.mod.1: |
| rm -f hfsplus.mod mod-hfsplus.o mod-hfsplus.c pre-hfsplus.o hfsplus_mod-fs_hfsplus.o und-hfsplus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfsplus.mod.1 |
| |
| ifneq ($(hfsplus_mod_EXPORTS),no) |
| clean-module-hfsplus.mod-symbol.1: |
| rm -f def-hfsplus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfsplus.mod-symbol.1 |
| DEFSYMFILES += def-hfsplus.lst |
| endif |
| mostlyclean-module-hfsplus.mod.1: |
| rm -f hfsplus_mod-fs_hfsplus.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-hfsplus.mod.1 |
| UNDSYMFILES += und-hfsplus.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| hfsplus.mod: pre-hfsplus.o mod-hfsplus.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-hfsplus.o mod-hfsplus.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| hfsplus.mod: pre-hfsplus.o mod-hfsplus.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-hfsplus.o mod-hfsplus.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-hfsplus.o: $(hfsplus_mod_DEPENDENCIES) hfsplus_mod-fs_hfsplus.o |
| -rm -f $@ |
| $(TARGET_CC) $(hfsplus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hfsplus_mod-fs_hfsplus.o |
| |
| mod-hfsplus.o: mod-hfsplus.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -c -o $@ $< |
| |
| mod-hfsplus.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'hfsplus' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(hfsplus_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-hfsplus.lst: pre-hfsplus.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hfsplus/' > $@ |
| else |
| def-hfsplus.lst: pre-hfsplus.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 hfsplus/' > $@ |
| endif |
| endif |
| |
| und-hfsplus.lst: pre-hfsplus.o |
| echo 'hfsplus' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| hfsplus_mod-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -MD -c -o $@ $< |
| -include hfsplus_mod-fs_hfsplus.d |
| |
| clean-module-hfsplus_mod-fs_hfsplus-extra.1: |
| rm -f cmd-hfsplus_mod-fs_hfsplus.lst fs-hfsplus_mod-fs_hfsplus.lst partmap-hfsplus_mod-fs_hfsplus.lst handler-hfsplus_mod-fs_hfsplus.lst parttool-hfsplus_mod-fs_hfsplus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hfsplus_mod-fs_hfsplus-extra.1 |
| |
| COMMANDFILES += cmd-hfsplus_mod-fs_hfsplus.lst |
| FSFILES += fs-hfsplus_mod-fs_hfsplus.lst |
| PARTTOOLFILES += parttool-hfsplus_mod-fs_hfsplus.lst |
| PARTMAPFILES += partmap-hfsplus_mod-fs_hfsplus.lst |
| HANDLERFILES += handler-hfsplus_mod-fs_hfsplus.lst |
| |
| cmd-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh hfsplus > $@ || (rm -f $@; exit 1) |
| |
| partmap-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-hfsplus_mod-fs_hfsplus.lst: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hfsplus_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh hfsplus > $@ || (rm -f $@; exit 1) |
| |
| hfsplus_mod_CFLAGS = $(COMMON_CFLAGS) |
| hfsplus_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For reiserfs.mod. |
| reiserfs_mod_SOURCES = fs/reiserfs.c |
| |
| clean-module-reiserfs.mod.1: |
| rm -f reiserfs.mod mod-reiserfs.o mod-reiserfs.c pre-reiserfs.o reiserfs_mod-fs_reiserfs.o und-reiserfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reiserfs.mod.1 |
| |
| ifneq ($(reiserfs_mod_EXPORTS),no) |
| clean-module-reiserfs.mod-symbol.1: |
| rm -f def-reiserfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reiserfs.mod-symbol.1 |
| DEFSYMFILES += def-reiserfs.lst |
| endif |
| mostlyclean-module-reiserfs.mod.1: |
| rm -f reiserfs_mod-fs_reiserfs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-reiserfs.mod.1 |
| UNDSYMFILES += und-reiserfs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| reiserfs.mod: pre-reiserfs.o mod-reiserfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-reiserfs.o mod-reiserfs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| reiserfs.mod: pre-reiserfs.o mod-reiserfs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-reiserfs.o mod-reiserfs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-reiserfs.o: $(reiserfs_mod_DEPENDENCIES) reiserfs_mod-fs_reiserfs.o |
| -rm -f $@ |
| $(TARGET_CC) $(reiserfs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reiserfs_mod-fs_reiserfs.o |
| |
| mod-reiserfs.o: mod-reiserfs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-reiserfs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'reiserfs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(reiserfs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-reiserfs.lst: pre-reiserfs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reiserfs/' > $@ |
| else |
| def-reiserfs.lst: pre-reiserfs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 reiserfs/' > $@ |
| endif |
| endif |
| |
| und-reiserfs.lst: pre-reiserfs.o |
| echo 'reiserfs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| reiserfs_mod-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -MD -c -o $@ $< |
| -include reiserfs_mod-fs_reiserfs.d |
| |
| clean-module-reiserfs_mod-fs_reiserfs-extra.1: |
| rm -f cmd-reiserfs_mod-fs_reiserfs.lst fs-reiserfs_mod-fs_reiserfs.lst partmap-reiserfs_mod-fs_reiserfs.lst handler-reiserfs_mod-fs_reiserfs.lst parttool-reiserfs_mod-fs_reiserfs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reiserfs_mod-fs_reiserfs-extra.1 |
| |
| COMMANDFILES += cmd-reiserfs_mod-fs_reiserfs.lst |
| FSFILES += fs-reiserfs_mod-fs_reiserfs.lst |
| PARTTOOLFILES += parttool-reiserfs_mod-fs_reiserfs.lst |
| PARTMAPFILES += partmap-reiserfs_mod-fs_reiserfs.lst |
| HANDLERFILES += handler-reiserfs_mod-fs_reiserfs.lst |
| |
| cmd-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh reiserfs > $@ || (rm -f $@; exit 1) |
| |
| partmap-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-reiserfs_mod-fs_reiserfs.lst: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reiserfs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh reiserfs > $@ || (rm -f $@; exit 1) |
| |
| reiserfs_mod_CFLAGS = $(COMMON_CFLAGS) |
| reiserfs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For cpio.mod. |
| cpio_mod_SOURCES = fs/cpio.c |
| |
| clean-module-cpio.mod.1: |
| rm -f cpio.mod mod-cpio.o mod-cpio.c pre-cpio.o cpio_mod-fs_cpio.o und-cpio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cpio.mod.1 |
| |
| ifneq ($(cpio_mod_EXPORTS),no) |
| clean-module-cpio.mod-symbol.1: |
| rm -f def-cpio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cpio.mod-symbol.1 |
| DEFSYMFILES += def-cpio.lst |
| endif |
| mostlyclean-module-cpio.mod.1: |
| rm -f cpio_mod-fs_cpio.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-cpio.mod.1 |
| UNDSYMFILES += und-cpio.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| cpio.mod: pre-cpio.o mod-cpio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-cpio.o mod-cpio.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| cpio.mod: pre-cpio.o mod-cpio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-cpio.o mod-cpio.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-cpio.o: $(cpio_mod_DEPENDENCIES) cpio_mod-fs_cpio.o |
| -rm -f $@ |
| $(TARGET_CC) $(cpio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cpio_mod-fs_cpio.o |
| |
| mod-cpio.o: mod-cpio.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -c -o $@ $< |
| |
| mod-cpio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'cpio' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(cpio_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-cpio.lst: pre-cpio.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cpio/' > $@ |
| else |
| def-cpio.lst: pre-cpio.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 cpio/' > $@ |
| endif |
| endif |
| |
| und-cpio.lst: pre-cpio.o |
| echo 'cpio' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| cpio_mod-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -MD -c -o $@ $< |
| -include cpio_mod-fs_cpio.d |
| |
| clean-module-cpio_mod-fs_cpio-extra.1: |
| rm -f cmd-cpio_mod-fs_cpio.lst fs-cpio_mod-fs_cpio.lst partmap-cpio_mod-fs_cpio.lst handler-cpio_mod-fs_cpio.lst parttool-cpio_mod-fs_cpio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cpio_mod-fs_cpio-extra.1 |
| |
| COMMANDFILES += cmd-cpio_mod-fs_cpio.lst |
| FSFILES += fs-cpio_mod-fs_cpio.lst |
| PARTTOOLFILES += parttool-cpio_mod-fs_cpio.lst |
| PARTMAPFILES += partmap-cpio_mod-fs_cpio.lst |
| HANDLERFILES += handler-cpio_mod-fs_cpio.lst |
| |
| cmd-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh cpio > $@ || (rm -f $@; exit 1) |
| |
| partmap-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-cpio_mod-fs_cpio.lst: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cpio_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh cpio > $@ || (rm -f $@; exit 1) |
| |
| cpio_mod_CFLAGS = $(COMMON_CFLAGS) |
| cpio_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For tar.mod. |
| tar_mod_SOURCES = fs/tar.c |
| |
| clean-module-tar.mod.1: |
| rm -f tar.mod mod-tar.o mod-tar.c pre-tar.o tar_mod-fs_tar.o und-tar.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tar.mod.1 |
| |
| ifneq ($(tar_mod_EXPORTS),no) |
| clean-module-tar.mod-symbol.1: |
| rm -f def-tar.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tar.mod-symbol.1 |
| DEFSYMFILES += def-tar.lst |
| endif |
| mostlyclean-module-tar.mod.1: |
| rm -f tar_mod-fs_tar.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-tar.mod.1 |
| UNDSYMFILES += und-tar.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| tar.mod: pre-tar.o mod-tar.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(tar_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-tar.o mod-tar.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| tar.mod: pre-tar.o mod-tar.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(tar_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-tar.o mod-tar.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-tar.o: $(tar_mod_DEPENDENCIES) tar_mod-fs_tar.o |
| -rm -f $@ |
| $(TARGET_CC) $(tar_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ tar_mod-fs_tar.o |
| |
| mod-tar.o: mod-tar.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -c -o $@ $< |
| |
| mod-tar.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'tar' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(tar_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-tar.lst: pre-tar.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 tar/' > $@ |
| else |
| def-tar.lst: pre-tar.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 tar/' > $@ |
| endif |
| endif |
| |
| und-tar.lst: pre-tar.o |
| echo 'tar' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| tar_mod-fs_tar.o: fs/tar.c $(fs/tar.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -MD -c -o $@ $< |
| -include tar_mod-fs_tar.d |
| |
| clean-module-tar_mod-fs_tar-extra.1: |
| rm -f cmd-tar_mod-fs_tar.lst fs-tar_mod-fs_tar.lst partmap-tar_mod-fs_tar.lst handler-tar_mod-fs_tar.lst parttool-tar_mod-fs_tar.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tar_mod-fs_tar-extra.1 |
| |
| COMMANDFILES += cmd-tar_mod-fs_tar.lst |
| FSFILES += fs-tar_mod-fs_tar.lst |
| PARTTOOLFILES += parttool-tar_mod-fs_tar.lst |
| PARTMAPFILES += partmap-tar_mod-fs_tar.lst |
| HANDLERFILES += handler-tar_mod-fs_tar.lst |
| |
| cmd-tar_mod-fs_tar.lst: fs/tar.c $(fs/tar.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh tar > $@ || (rm -f $@; exit 1) |
| |
| fs-tar_mod-fs_tar.lst: fs/tar.c $(fs/tar.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh tar > $@ || (rm -f $@; exit 1) |
| |
| parttool-tar_mod-fs_tar.lst: fs/tar.c $(fs/tar.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh tar > $@ || (rm -f $@; exit 1) |
| |
| partmap-tar_mod-fs_tar.lst: fs/tar.c $(fs/tar.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh tar > $@ || (rm -f $@; exit 1) |
| |
| handler-tar_mod-fs_tar.lst: fs/tar.c $(fs/tar.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tar_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh tar > $@ || (rm -f $@; exit 1) |
| |
| tar_mod_CFLAGS = $(COMMON_CFLAGS) |
| tar_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For udf.mod. |
| udf_mod_SOURCES = fs/udf.c |
| |
| clean-module-udf.mod.1: |
| rm -f udf.mod mod-udf.o mod-udf.c pre-udf.o udf_mod-fs_udf.o und-udf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-udf.mod.1 |
| |
| ifneq ($(udf_mod_EXPORTS),no) |
| clean-module-udf.mod-symbol.1: |
| rm -f def-udf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-udf.mod-symbol.1 |
| DEFSYMFILES += def-udf.lst |
| endif |
| mostlyclean-module-udf.mod.1: |
| rm -f udf_mod-fs_udf.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-udf.mod.1 |
| UNDSYMFILES += und-udf.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| udf.mod: pre-udf.o mod-udf.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-udf.o mod-udf.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| udf.mod: pre-udf.o mod-udf.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-udf.o mod-udf.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-udf.o: $(udf_mod_DEPENDENCIES) udf_mod-fs_udf.o |
| -rm -f $@ |
| $(TARGET_CC) $(udf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ udf_mod-fs_udf.o |
| |
| mod-udf.o: mod-udf.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -c -o $@ $< |
| |
| mod-udf.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'udf' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(udf_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-udf.lst: pre-udf.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 udf/' > $@ |
| else |
| def-udf.lst: pre-udf.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 udf/' > $@ |
| endif |
| endif |
| |
| und-udf.lst: pre-udf.o |
| echo 'udf' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| udf_mod-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -MD -c -o $@ $< |
| -include udf_mod-fs_udf.d |
| |
| clean-module-udf_mod-fs_udf-extra.1: |
| rm -f cmd-udf_mod-fs_udf.lst fs-udf_mod-fs_udf.lst partmap-udf_mod-fs_udf.lst handler-udf_mod-fs_udf.lst parttool-udf_mod-fs_udf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-udf_mod-fs_udf-extra.1 |
| |
| COMMANDFILES += cmd-udf_mod-fs_udf.lst |
| FSFILES += fs-udf_mod-fs_udf.lst |
| PARTTOOLFILES += parttool-udf_mod-fs_udf.lst |
| PARTMAPFILES += partmap-udf_mod-fs_udf.lst |
| HANDLERFILES += handler-udf_mod-fs_udf.lst |
| |
| cmd-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh udf > $@ || (rm -f $@; exit 1) |
| |
| partmap-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-udf_mod-fs_udf.lst: fs/udf.c $(fs/udf.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(udf_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh udf > $@ || (rm -f $@; exit 1) |
| |
| udf_mod_CFLAGS = $(COMMON_CFLAGS) |
| udf_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For afs.mod. |
| afs_mod_SOURCES = fs/afs.c |
| |
| clean-module-afs.mod.1: |
| rm -f afs.mod mod-afs.o mod-afs.c pre-afs.o afs_mod-fs_afs.o und-afs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs.mod.1 |
| |
| ifneq ($(afs_mod_EXPORTS),no) |
| clean-module-afs.mod-symbol.1: |
| rm -f def-afs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs.mod-symbol.1 |
| DEFSYMFILES += def-afs.lst |
| endif |
| mostlyclean-module-afs.mod.1: |
| rm -f afs_mod-fs_afs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-afs.mod.1 |
| UNDSYMFILES += und-afs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| afs.mod: pre-afs.o mod-afs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-afs.o mod-afs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| afs.mod: pre-afs.o mod-afs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-afs.o mod-afs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-afs.o: $(afs_mod_DEPENDENCIES) afs_mod-fs_afs.o |
| -rm -f $@ |
| $(TARGET_CC) $(afs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ afs_mod-fs_afs.o |
| |
| mod-afs.o: mod-afs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-afs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'afs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(afs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-afs.lst: pre-afs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 afs/' > $@ |
| else |
| def-afs.lst: pre-afs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 afs/' > $@ |
| endif |
| endif |
| |
| und-afs.lst: pre-afs.o |
| echo 'afs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| afs_mod-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -MD -c -o $@ $< |
| -include afs_mod-fs_afs.d |
| |
| clean-module-afs_mod-fs_afs-extra.1: |
| rm -f cmd-afs_mod-fs_afs.lst fs-afs_mod-fs_afs.lst partmap-afs_mod-fs_afs.lst handler-afs_mod-fs_afs.lst parttool-afs_mod-fs_afs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs_mod-fs_afs-extra.1 |
| |
| COMMANDFILES += cmd-afs_mod-fs_afs.lst |
| FSFILES += fs-afs_mod-fs_afs.lst |
| PARTTOOLFILES += parttool-afs_mod-fs_afs.lst |
| PARTMAPFILES += partmap-afs_mod-fs_afs.lst |
| HANDLERFILES += handler-afs_mod-fs_afs.lst |
| |
| cmd-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh afs > $@ || (rm -f $@; exit 1) |
| |
| partmap-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-afs_mod-fs_afs.lst: fs/afs.c $(fs/afs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh afs > $@ || (rm -f $@; exit 1) |
| |
| afs_mod_CFLAGS = $(COMMON_CFLAGS) |
| afs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For afs_be.mod. |
| afs_be_mod_SOURCES = fs/afs_be.c |
| |
| clean-module-afs_be.mod.1: |
| rm -f afs_be.mod mod-afs_be.o mod-afs_be.c pre-afs_be.o afs_be_mod-fs_afs_be.o und-afs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs_be.mod.1 |
| |
| ifneq ($(afs_be_mod_EXPORTS),no) |
| clean-module-afs_be.mod-symbol.1: |
| rm -f def-afs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs_be.mod-symbol.1 |
| DEFSYMFILES += def-afs_be.lst |
| endif |
| mostlyclean-module-afs_be.mod.1: |
| rm -f afs_be_mod-fs_afs_be.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-afs_be.mod.1 |
| UNDSYMFILES += und-afs_be.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| afs_be.mod: pre-afs_be.o mod-afs_be.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(afs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-afs_be.o mod-afs_be.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| afs_be.mod: pre-afs_be.o mod-afs_be.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(afs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-afs_be.o mod-afs_be.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-afs_be.o: $(afs_be_mod_DEPENDENCIES) afs_be_mod-fs_afs_be.o |
| -rm -f $@ |
| $(TARGET_CC) $(afs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ afs_be_mod-fs_afs_be.o |
| |
| mod-afs_be.o: mod-afs_be.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -c -o $@ $< |
| |
| mod-afs_be.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'afs_be' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(afs_be_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-afs_be.lst: pre-afs_be.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 afs_be/' > $@ |
| else |
| def-afs_be.lst: pre-afs_be.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 afs_be/' > $@ |
| endif |
| endif |
| |
| und-afs_be.lst: pre-afs_be.o |
| echo 'afs_be' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| afs_be_mod-fs_afs_be.o: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -MD -c -o $@ $< |
| -include afs_be_mod-fs_afs_be.d |
| |
| clean-module-afs_be_mod-fs_afs_be-extra.1: |
| rm -f cmd-afs_be_mod-fs_afs_be.lst fs-afs_be_mod-fs_afs_be.lst partmap-afs_be_mod-fs_afs_be.lst handler-afs_be_mod-fs_afs_be.lst parttool-afs_be_mod-fs_afs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-afs_be_mod-fs_afs_be-extra.1 |
| |
| COMMANDFILES += cmd-afs_be_mod-fs_afs_be.lst |
| FSFILES += fs-afs_be_mod-fs_afs_be.lst |
| PARTTOOLFILES += parttool-afs_be_mod-fs_afs_be.lst |
| PARTMAPFILES += partmap-afs_be_mod-fs_afs_be.lst |
| HANDLERFILES += handler-afs_be_mod-fs_afs_be.lst |
| |
| cmd-afs_be_mod-fs_afs_be.lst: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh afs_be > $@ || (rm -f $@; exit 1) |
| |
| fs-afs_be_mod-fs_afs_be.lst: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh afs_be > $@ || (rm -f $@; exit 1) |
| |
| parttool-afs_be_mod-fs_afs_be.lst: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh afs_be > $@ || (rm -f $@; exit 1) |
| |
| partmap-afs_be_mod-fs_afs_be.lst: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh afs_be > $@ || (rm -f $@; exit 1) |
| |
| handler-afs_be_mod-fs_afs_be.lst: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(afs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh afs_be > $@ || (rm -f $@; exit 1) |
| |
| afs_be_mod_CFLAGS = $(COMMON_CFLAGS) |
| afs_be_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For befs.mod. |
| befs_mod_SOURCES = fs/befs.c |
| |
| clean-module-befs.mod.1: |
| rm -f befs.mod mod-befs.o mod-befs.c pre-befs.o befs_mod-fs_befs.o und-befs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs.mod.1 |
| |
| ifneq ($(befs_mod_EXPORTS),no) |
| clean-module-befs.mod-symbol.1: |
| rm -f def-befs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs.mod-symbol.1 |
| DEFSYMFILES += def-befs.lst |
| endif |
| mostlyclean-module-befs.mod.1: |
| rm -f befs_mod-fs_befs.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-befs.mod.1 |
| UNDSYMFILES += und-befs.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| befs.mod: pre-befs.o mod-befs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(befs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-befs.o mod-befs.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| befs.mod: pre-befs.o mod-befs.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(befs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-befs.o mod-befs.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-befs.o: $(befs_mod_DEPENDENCIES) befs_mod-fs_befs.o |
| -rm -f $@ |
| $(TARGET_CC) $(befs_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ befs_mod-fs_befs.o |
| |
| mod-befs.o: mod-befs.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -c -o $@ $< |
| |
| mod-befs.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'befs' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(befs_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-befs.lst: pre-befs.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 befs/' > $@ |
| else |
| def-befs.lst: pre-befs.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 befs/' > $@ |
| endif |
| endif |
| |
| und-befs.lst: pre-befs.o |
| echo 'befs' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| befs_mod-fs_befs.o: fs/befs.c $(fs/befs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -MD -c -o $@ $< |
| -include befs_mod-fs_befs.d |
| |
| clean-module-befs_mod-fs_befs-extra.1: |
| rm -f cmd-befs_mod-fs_befs.lst fs-befs_mod-fs_befs.lst partmap-befs_mod-fs_befs.lst handler-befs_mod-fs_befs.lst parttool-befs_mod-fs_befs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs_mod-fs_befs-extra.1 |
| |
| COMMANDFILES += cmd-befs_mod-fs_befs.lst |
| FSFILES += fs-befs_mod-fs_befs.lst |
| PARTTOOLFILES += parttool-befs_mod-fs_befs.lst |
| PARTMAPFILES += partmap-befs_mod-fs_befs.lst |
| HANDLERFILES += handler-befs_mod-fs_befs.lst |
| |
| cmd-befs_mod-fs_befs.lst: fs/befs.c $(fs/befs.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh befs > $@ || (rm -f $@; exit 1) |
| |
| fs-befs_mod-fs_befs.lst: fs/befs.c $(fs/befs.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh befs > $@ || (rm -f $@; exit 1) |
| |
| parttool-befs_mod-fs_befs.lst: fs/befs.c $(fs/befs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh befs > $@ || (rm -f $@; exit 1) |
| |
| partmap-befs_mod-fs_befs.lst: fs/befs.c $(fs/befs.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh befs > $@ || (rm -f $@; exit 1) |
| |
| handler-befs_mod-fs_befs.lst: fs/befs.c $(fs/befs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh befs > $@ || (rm -f $@; exit 1) |
| |
| befs_mod_CFLAGS = $(COMMON_CFLAGS) |
| befs_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For befs_be.mod. |
| befs_be_mod_SOURCES = fs/befs_be.c |
| |
| clean-module-befs_be.mod.1: |
| rm -f befs_be.mod mod-befs_be.o mod-befs_be.c pre-befs_be.o befs_be_mod-fs_befs_be.o und-befs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs_be.mod.1 |
| |
| ifneq ($(befs_be_mod_EXPORTS),no) |
| clean-module-befs_be.mod-symbol.1: |
| rm -f def-befs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs_be.mod-symbol.1 |
| DEFSYMFILES += def-befs_be.lst |
| endif |
| mostlyclean-module-befs_be.mod.1: |
| rm -f befs_be_mod-fs_befs_be.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-befs_be.mod.1 |
| UNDSYMFILES += und-befs_be.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| befs_be.mod: pre-befs_be.o mod-befs_be.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(befs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-befs_be.o mod-befs_be.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| befs_be.mod: pre-befs_be.o mod-befs_be.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(befs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-befs_be.o mod-befs_be.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-befs_be.o: $(befs_be_mod_DEPENDENCIES) befs_be_mod-fs_befs_be.o |
| -rm -f $@ |
| $(TARGET_CC) $(befs_be_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ befs_be_mod-fs_befs_be.o |
| |
| mod-befs_be.o: mod-befs_be.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -c -o $@ $< |
| |
| mod-befs_be.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'befs_be' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(befs_be_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-befs_be.lst: pre-befs_be.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 befs_be/' > $@ |
| else |
| def-befs_be.lst: pre-befs_be.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 befs_be/' > $@ |
| endif |
| endif |
| |
| und-befs_be.lst: pre-befs_be.o |
| echo 'befs_be' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| befs_be_mod-fs_befs_be.o: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -MD -c -o $@ $< |
| -include befs_be_mod-fs_befs_be.d |
| |
| clean-module-befs_be_mod-fs_befs_be-extra.1: |
| rm -f cmd-befs_be_mod-fs_befs_be.lst fs-befs_be_mod-fs_befs_be.lst partmap-befs_be_mod-fs_befs_be.lst handler-befs_be_mod-fs_befs_be.lst parttool-befs_be_mod-fs_befs_be.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-befs_be_mod-fs_befs_be-extra.1 |
| |
| COMMANDFILES += cmd-befs_be_mod-fs_befs_be.lst |
| FSFILES += fs-befs_be_mod-fs_befs_be.lst |
| PARTTOOLFILES += parttool-befs_be_mod-fs_befs_be.lst |
| PARTMAPFILES += partmap-befs_be_mod-fs_befs_be.lst |
| HANDLERFILES += handler-befs_be_mod-fs_befs_be.lst |
| |
| cmd-befs_be_mod-fs_befs_be.lst: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh befs_be > $@ || (rm -f $@; exit 1) |
| |
| fs-befs_be_mod-fs_befs_be.lst: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh befs_be > $@ || (rm -f $@; exit 1) |
| |
| parttool-befs_be_mod-fs_befs_be.lst: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh befs_be > $@ || (rm -f $@; exit 1) |
| |
| partmap-befs_be_mod-fs_befs_be.lst: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh befs_be > $@ || (rm -f $@; exit 1) |
| |
| handler-befs_be_mod-fs_befs_be.lst: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifs -I$(srcdir)/fs $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(befs_be_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh befs_be > $@ || (rm -f $@; exit 1) |
| |
| befs_be_mod_CFLAGS = $(COMMON_CFLAGS) |
| befs_be_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Partition maps. |
| |
| pkglib_MODULES += part_amiga.mod |
| part_amiga_mod_SOURCES = partmap/amiga.c |
| |
| clean-module-part_amiga.mod.1: |
| rm -f part_amiga.mod mod-part_amiga.o mod-part_amiga.c pre-part_amiga.o part_amiga_mod-partmap_amiga.o und-part_amiga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_amiga.mod.1 |
| |
| ifneq ($(part_amiga_mod_EXPORTS),no) |
| clean-module-part_amiga.mod-symbol.1: |
| rm -f def-part_amiga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_amiga.mod-symbol.1 |
| DEFSYMFILES += def-part_amiga.lst |
| endif |
| mostlyclean-module-part_amiga.mod.1: |
| rm -f part_amiga_mod-partmap_amiga.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_amiga.mod.1 |
| UNDSYMFILES += und-part_amiga.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_amiga.mod: pre-part_amiga.o mod-part_amiga.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_amiga.o mod-part_amiga.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_amiga.mod: pre-part_amiga.o mod-part_amiga.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_amiga.o mod-part_amiga.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_amiga.o: $(part_amiga_mod_DEPENDENCIES) part_amiga_mod-partmap_amiga.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_amiga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_amiga_mod-partmap_amiga.o |
| |
| mod-part_amiga.o: mod-part_amiga.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_amiga.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_amiga' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_amiga_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_amiga.lst: pre-part_amiga.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_amiga/' > $@ |
| else |
| def-part_amiga.lst: pre-part_amiga.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_amiga/' > $@ |
| endif |
| endif |
| |
| und-part_amiga.lst: pre-part_amiga.o |
| echo 'part_amiga' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_amiga_mod-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_amiga_mod-partmap_amiga.d |
| |
| clean-module-part_amiga_mod-partmap_amiga-extra.1: |
| rm -f cmd-part_amiga_mod-partmap_amiga.lst fs-part_amiga_mod-partmap_amiga.lst partmap-part_amiga_mod-partmap_amiga.lst handler-part_amiga_mod-partmap_amiga.lst parttool-part_amiga_mod-partmap_amiga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_amiga_mod-partmap_amiga-extra.1 |
| |
| COMMANDFILES += cmd-part_amiga_mod-partmap_amiga.lst |
| FSFILES += fs-part_amiga_mod-partmap_amiga.lst |
| PARTTOOLFILES += parttool-part_amiga_mod-partmap_amiga.lst |
| PARTMAPFILES += partmap-part_amiga_mod-partmap_amiga.lst |
| HANDLERFILES += handler-part_amiga_mod-partmap_amiga.lst |
| |
| cmd-part_amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_amiga > $@ || (rm -f $@; exit 1) |
| |
| fs-part_amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_amiga > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_amiga > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_amiga > $@ || (rm -f $@; exit 1) |
| |
| handler-part_amiga_mod-partmap_amiga.lst: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_amiga_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_amiga > $@ || (rm -f $@; exit 1) |
| |
| part_amiga_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_amiga_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += part_apple.mod |
| part_apple_mod_SOURCES = partmap/apple.c |
| |
| clean-module-part_apple.mod.1: |
| rm -f part_apple.mod mod-part_apple.o mod-part_apple.c pre-part_apple.o part_apple_mod-partmap_apple.o und-part_apple.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_apple.mod.1 |
| |
| ifneq ($(part_apple_mod_EXPORTS),no) |
| clean-module-part_apple.mod-symbol.1: |
| rm -f def-part_apple.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_apple.mod-symbol.1 |
| DEFSYMFILES += def-part_apple.lst |
| endif |
| mostlyclean-module-part_apple.mod.1: |
| rm -f part_apple_mod-partmap_apple.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_apple.mod.1 |
| UNDSYMFILES += und-part_apple.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_apple.mod: pre-part_apple.o mod-part_apple.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_apple.o mod-part_apple.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_apple.mod: pre-part_apple.o mod-part_apple.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_apple.o mod-part_apple.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_apple.o: $(part_apple_mod_DEPENDENCIES) part_apple_mod-partmap_apple.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_apple_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_apple_mod-partmap_apple.o |
| |
| mod-part_apple.o: mod-part_apple.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_apple.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_apple' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_apple_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_apple.lst: pre-part_apple.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_apple/' > $@ |
| else |
| def-part_apple.lst: pre-part_apple.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_apple/' > $@ |
| endif |
| endif |
| |
| und-part_apple.lst: pre-part_apple.o |
| echo 'part_apple' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_apple_mod-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_apple_mod-partmap_apple.d |
| |
| clean-module-part_apple_mod-partmap_apple-extra.1: |
| rm -f cmd-part_apple_mod-partmap_apple.lst fs-part_apple_mod-partmap_apple.lst partmap-part_apple_mod-partmap_apple.lst handler-part_apple_mod-partmap_apple.lst parttool-part_apple_mod-partmap_apple.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_apple_mod-partmap_apple-extra.1 |
| |
| COMMANDFILES += cmd-part_apple_mod-partmap_apple.lst |
| FSFILES += fs-part_apple_mod-partmap_apple.lst |
| PARTTOOLFILES += parttool-part_apple_mod-partmap_apple.lst |
| PARTMAPFILES += partmap-part_apple_mod-partmap_apple.lst |
| HANDLERFILES += handler-part_apple_mod-partmap_apple.lst |
| |
| cmd-part_apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_apple > $@ || (rm -f $@; exit 1) |
| |
| fs-part_apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_apple > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_apple > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_apple > $@ || (rm -f $@; exit 1) |
| |
| handler-part_apple_mod-partmap_apple.lst: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_apple_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_apple > $@ || (rm -f $@; exit 1) |
| |
| part_apple_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_apple_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += part_msdos.mod |
| part_msdos_mod_SOURCES = partmap/msdos.c |
| |
| clean-module-part_msdos.mod.1: |
| rm -f part_msdos.mod mod-part_msdos.o mod-part_msdos.c pre-part_msdos.o part_msdos_mod-partmap_msdos.o und-part_msdos.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_msdos.mod.1 |
| |
| ifneq ($(part_msdos_mod_EXPORTS),no) |
| clean-module-part_msdos.mod-symbol.1: |
| rm -f def-part_msdos.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_msdos.mod-symbol.1 |
| DEFSYMFILES += def-part_msdos.lst |
| endif |
| mostlyclean-module-part_msdos.mod.1: |
| rm -f part_msdos_mod-partmap_msdos.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_msdos.mod.1 |
| UNDSYMFILES += und-part_msdos.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_msdos.mod: pre-part_msdos.o mod-part_msdos.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_msdos_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_msdos.o mod-part_msdos.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_msdos.mod: pre-part_msdos.o mod-part_msdos.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_msdos_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_msdos.o mod-part_msdos.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_msdos.o: $(part_msdos_mod_DEPENDENCIES) part_msdos_mod-partmap_msdos.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_msdos_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_msdos_mod-partmap_msdos.o |
| |
| mod-part_msdos.o: mod-part_msdos.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_msdos.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_msdos' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_msdos_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_msdos.lst: pre-part_msdos.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_msdos/' > $@ |
| else |
| def-part_msdos.lst: pre-part_msdos.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_msdos/' > $@ |
| endif |
| endif |
| |
| und-part_msdos.lst: pre-part_msdos.o |
| echo 'part_msdos' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_msdos_mod-partmap_msdos.o: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_msdos_mod-partmap_msdos.d |
| |
| clean-module-part_msdos_mod-partmap_msdos-extra.1: |
| rm -f cmd-part_msdos_mod-partmap_msdos.lst fs-part_msdos_mod-partmap_msdos.lst partmap-part_msdos_mod-partmap_msdos.lst handler-part_msdos_mod-partmap_msdos.lst parttool-part_msdos_mod-partmap_msdos.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_msdos_mod-partmap_msdos-extra.1 |
| |
| COMMANDFILES += cmd-part_msdos_mod-partmap_msdos.lst |
| FSFILES += fs-part_msdos_mod-partmap_msdos.lst |
| PARTTOOLFILES += parttool-part_msdos_mod-partmap_msdos.lst |
| PARTMAPFILES += partmap-part_msdos_mod-partmap_msdos.lst |
| HANDLERFILES += handler-part_msdos_mod-partmap_msdos.lst |
| |
| cmd-part_msdos_mod-partmap_msdos.lst: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_msdos > $@ || (rm -f $@; exit 1) |
| |
| fs-part_msdos_mod-partmap_msdos.lst: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_msdos > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_msdos_mod-partmap_msdos.lst: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_msdos > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_msdos_mod-partmap_msdos.lst: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_msdos > $@ || (rm -f $@; exit 1) |
| |
| handler-part_msdos_mod-partmap_msdos.lst: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_msdos_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_msdos > $@ || (rm -f $@; exit 1) |
| |
| part_msdos_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_msdos_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += part_sun.mod |
| part_sun_mod_SOURCES = partmap/sun.c |
| |
| clean-module-part_sun.mod.1: |
| rm -f part_sun.mod mod-part_sun.o mod-part_sun.c pre-part_sun.o part_sun_mod-partmap_sun.o und-part_sun.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_sun.mod.1 |
| |
| ifneq ($(part_sun_mod_EXPORTS),no) |
| clean-module-part_sun.mod-symbol.1: |
| rm -f def-part_sun.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_sun.mod-symbol.1 |
| DEFSYMFILES += def-part_sun.lst |
| endif |
| mostlyclean-module-part_sun.mod.1: |
| rm -f part_sun_mod-partmap_sun.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_sun.mod.1 |
| UNDSYMFILES += und-part_sun.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_sun.mod: pre-part_sun.o mod-part_sun.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_sun.o mod-part_sun.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_sun.mod: pre-part_sun.o mod-part_sun.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_sun.o mod-part_sun.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_sun.o: $(part_sun_mod_DEPENDENCIES) part_sun_mod-partmap_sun.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_sun_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_sun_mod-partmap_sun.o |
| |
| mod-part_sun.o: mod-part_sun.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_sun.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_sun' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_sun_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_sun.lst: pre-part_sun.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_sun/' > $@ |
| else |
| def-part_sun.lst: pre-part_sun.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_sun/' > $@ |
| endif |
| endif |
| |
| und-part_sun.lst: pre-part_sun.o |
| echo 'part_sun' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_sun_mod-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_sun_mod-partmap_sun.d |
| |
| clean-module-part_sun_mod-partmap_sun-extra.1: |
| rm -f cmd-part_sun_mod-partmap_sun.lst fs-part_sun_mod-partmap_sun.lst partmap-part_sun_mod-partmap_sun.lst handler-part_sun_mod-partmap_sun.lst parttool-part_sun_mod-partmap_sun.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_sun_mod-partmap_sun-extra.1 |
| |
| COMMANDFILES += cmd-part_sun_mod-partmap_sun.lst |
| FSFILES += fs-part_sun_mod-partmap_sun.lst |
| PARTTOOLFILES += parttool-part_sun_mod-partmap_sun.lst |
| PARTMAPFILES += partmap-part_sun_mod-partmap_sun.lst |
| HANDLERFILES += handler-part_sun_mod-partmap_sun.lst |
| |
| cmd-part_sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_sun > $@ || (rm -f $@; exit 1) |
| |
| fs-part_sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_sun > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_sun > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_sun > $@ || (rm -f $@; exit 1) |
| |
| handler-part_sun_mod-partmap_sun.lst: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_sun_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_sun > $@ || (rm -f $@; exit 1) |
| |
| part_sun_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_sun_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += part_acorn.mod |
| part_acorn_mod_SOURCES = partmap/acorn.c |
| |
| clean-module-part_acorn.mod.1: |
| rm -f part_acorn.mod mod-part_acorn.o mod-part_acorn.c pre-part_acorn.o part_acorn_mod-partmap_acorn.o und-part_acorn.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_acorn.mod.1 |
| |
| ifneq ($(part_acorn_mod_EXPORTS),no) |
| clean-module-part_acorn.mod-symbol.1: |
| rm -f def-part_acorn.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_acorn.mod-symbol.1 |
| DEFSYMFILES += def-part_acorn.lst |
| endif |
| mostlyclean-module-part_acorn.mod.1: |
| rm -f part_acorn_mod-partmap_acorn.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_acorn.mod.1 |
| UNDSYMFILES += und-part_acorn.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_acorn.mod: pre-part_acorn.o mod-part_acorn.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_acorn.o mod-part_acorn.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_acorn.mod: pre-part_acorn.o mod-part_acorn.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_acorn.o mod-part_acorn.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_acorn.o: $(part_acorn_mod_DEPENDENCIES) part_acorn_mod-partmap_acorn.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_acorn_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_acorn_mod-partmap_acorn.o |
| |
| mod-part_acorn.o: mod-part_acorn.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_acorn.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_acorn' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_acorn_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_acorn.lst: pre-part_acorn.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_acorn/' > $@ |
| else |
| def-part_acorn.lst: pre-part_acorn.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_acorn/' > $@ |
| endif |
| endif |
| |
| und-part_acorn.lst: pre-part_acorn.o |
| echo 'part_acorn' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_acorn_mod-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_acorn_mod-partmap_acorn.d |
| |
| clean-module-part_acorn_mod-partmap_acorn-extra.1: |
| rm -f cmd-part_acorn_mod-partmap_acorn.lst fs-part_acorn_mod-partmap_acorn.lst partmap-part_acorn_mod-partmap_acorn.lst handler-part_acorn_mod-partmap_acorn.lst parttool-part_acorn_mod-partmap_acorn.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_acorn_mod-partmap_acorn-extra.1 |
| |
| COMMANDFILES += cmd-part_acorn_mod-partmap_acorn.lst |
| FSFILES += fs-part_acorn_mod-partmap_acorn.lst |
| PARTTOOLFILES += parttool-part_acorn_mod-partmap_acorn.lst |
| PARTMAPFILES += partmap-part_acorn_mod-partmap_acorn.lst |
| HANDLERFILES += handler-part_acorn_mod-partmap_acorn.lst |
| |
| cmd-part_acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_acorn > $@ || (rm -f $@; exit 1) |
| |
| fs-part_acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_acorn > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_acorn > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_acorn > $@ || (rm -f $@; exit 1) |
| |
| handler-part_acorn_mod-partmap_acorn.lst: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_acorn_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_acorn > $@ || (rm -f $@; exit 1) |
| |
| part_acorn_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_acorn_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += part_gpt.mod |
| part_gpt_mod_SOURCES = partmap/gpt.c |
| |
| clean-module-part_gpt.mod.1: |
| rm -f part_gpt.mod mod-part_gpt.o mod-part_gpt.c pre-part_gpt.o part_gpt_mod-partmap_gpt.o und-part_gpt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_gpt.mod.1 |
| |
| ifneq ($(part_gpt_mod_EXPORTS),no) |
| clean-module-part_gpt.mod-symbol.1: |
| rm -f def-part_gpt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_gpt.mod-symbol.1 |
| DEFSYMFILES += def-part_gpt.lst |
| endif |
| mostlyclean-module-part_gpt.mod.1: |
| rm -f part_gpt_mod-partmap_gpt.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-part_gpt.mod.1 |
| UNDSYMFILES += und-part_gpt.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| part_gpt.mod: pre-part_gpt.o mod-part_gpt.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(part_gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-part_gpt.o mod-part_gpt.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| part_gpt.mod: pre-part_gpt.o mod-part_gpt.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(part_gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-part_gpt.o mod-part_gpt.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-part_gpt.o: $(part_gpt_mod_DEPENDENCIES) part_gpt_mod-partmap_gpt.o |
| -rm -f $@ |
| $(TARGET_CC) $(part_gpt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ part_gpt_mod-partmap_gpt.o |
| |
| mod-part_gpt.o: mod-part_gpt.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -c -o $@ $< |
| |
| mod-part_gpt.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'part_gpt' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(part_gpt_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-part_gpt.lst: pre-part_gpt.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 part_gpt/' > $@ |
| else |
| def-part_gpt.lst: pre-part_gpt.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 part_gpt/' > $@ |
| endif |
| endif |
| |
| und-part_gpt.lst: pre-part_gpt.o |
| echo 'part_gpt' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| part_gpt_mod-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) |
| $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -MD -c -o $@ $< |
| -include part_gpt_mod-partmap_gpt.d |
| |
| clean-module-part_gpt_mod-partmap_gpt-extra.1: |
| rm -f cmd-part_gpt_mod-partmap_gpt.lst fs-part_gpt_mod-partmap_gpt.lst partmap-part_gpt_mod-partmap_gpt.lst handler-part_gpt_mod-partmap_gpt.lst parttool-part_gpt_mod-partmap_gpt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-part_gpt_mod-partmap_gpt-extra.1 |
| |
| COMMANDFILES += cmd-part_gpt_mod-partmap_gpt.lst |
| FSFILES += fs-part_gpt_mod-partmap_gpt.lst |
| PARTTOOLFILES += parttool-part_gpt_mod-partmap_gpt.lst |
| PARTMAPFILES += partmap-part_gpt_mod-partmap_gpt.lst |
| HANDLERFILES += handler-part_gpt_mod-partmap_gpt.lst |
| |
| cmd-part_gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh part_gpt > $@ || (rm -f $@; exit 1) |
| |
| fs-part_gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh part_gpt > $@ || (rm -f $@; exit 1) |
| |
| parttool-part_gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh part_gpt > $@ || (rm -f $@; exit 1) |
| |
| partmap-part_gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh part_gpt > $@ || (rm -f $@; exit 1) |
| |
| handler-part_gpt_mod-partmap_gpt.lst: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ipartmap -I$(srcdir)/partmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(part_gpt_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh part_gpt > $@ || (rm -f $@; exit 1) |
| |
| part_gpt_mod_CFLAGS = $(COMMON_CFLAGS) |
| part_gpt_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Special disk structures and generic drivers |
| |
| pkglib_MODULES += raid.mod raid5rec.mod raid6rec.mod mdraid.mod dm_nv.mod \ |
| lvm.mod scsi.mod |
| |
| # For raid.mod |
| raid_mod_SOURCES = disk/raid.c |
| |
| clean-module-raid.mod.1: |
| rm -f raid.mod mod-raid.o mod-raid.c pre-raid.o raid_mod-disk_raid.o und-raid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid.mod.1 |
| |
| ifneq ($(raid_mod_EXPORTS),no) |
| clean-module-raid.mod-symbol.1: |
| rm -f def-raid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid.mod-symbol.1 |
| DEFSYMFILES += def-raid.lst |
| endif |
| mostlyclean-module-raid.mod.1: |
| rm -f raid_mod-disk_raid.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-raid.mod.1 |
| UNDSYMFILES += und-raid.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| raid.mod: pre-raid.o mod-raid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-raid.o mod-raid.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| raid.mod: pre-raid.o mod-raid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-raid.o mod-raid.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-raid.o: $(raid_mod_DEPENDENCIES) raid_mod-disk_raid.o |
| -rm -f $@ |
| $(TARGET_CC) $(raid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid_mod-disk_raid.o |
| |
| mod-raid.o: mod-raid.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -c -o $@ $< |
| |
| mod-raid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'raid' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(raid_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-raid.lst: pre-raid.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid/' > $@ |
| else |
| def-raid.lst: pre-raid.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 raid/' > $@ |
| endif |
| endif |
| |
| und-raid.lst: pre-raid.o |
| echo 'raid' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| raid_mod-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -MD -c -o $@ $< |
| -include raid_mod-disk_raid.d |
| |
| clean-module-raid_mod-disk_raid-extra.1: |
| rm -f cmd-raid_mod-disk_raid.lst fs-raid_mod-disk_raid.lst partmap-raid_mod-disk_raid.lst handler-raid_mod-disk_raid.lst parttool-raid_mod-disk_raid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid_mod-disk_raid-extra.1 |
| |
| COMMANDFILES += cmd-raid_mod-disk_raid.lst |
| FSFILES += fs-raid_mod-disk_raid.lst |
| PARTTOOLFILES += parttool-raid_mod-disk_raid.lst |
| PARTMAPFILES += partmap-raid_mod-disk_raid.lst |
| HANDLERFILES += handler-raid_mod-disk_raid.lst |
| |
| cmd-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh raid > $@ || (rm -f $@; exit 1) |
| |
| partmap-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-raid_mod-disk_raid.lst: disk/raid.c $(disk/raid.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh raid > $@ || (rm -f $@; exit 1) |
| |
| raid_mod_CFLAGS = $(COMMON_CFLAGS) |
| raid_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For raid5rec.mod |
| raid5rec_mod_SOURCES = disk/raid5_recover.c |
| |
| clean-module-raid5rec.mod.1: |
| rm -f raid5rec.mod mod-raid5rec.o mod-raid5rec.c pre-raid5rec.o raid5rec_mod-disk_raid5_recover.o und-raid5rec.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid5rec.mod.1 |
| |
| ifneq ($(raid5rec_mod_EXPORTS),no) |
| clean-module-raid5rec.mod-symbol.1: |
| rm -f def-raid5rec.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid5rec.mod-symbol.1 |
| DEFSYMFILES += def-raid5rec.lst |
| endif |
| mostlyclean-module-raid5rec.mod.1: |
| rm -f raid5rec_mod-disk_raid5_recover.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-raid5rec.mod.1 |
| UNDSYMFILES += und-raid5rec.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| raid5rec.mod: pre-raid5rec.o mod-raid5rec.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(raid5rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-raid5rec.o mod-raid5rec.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| raid5rec.mod: pre-raid5rec.o mod-raid5rec.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(raid5rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-raid5rec.o mod-raid5rec.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-raid5rec.o: $(raid5rec_mod_DEPENDENCIES) raid5rec_mod-disk_raid5_recover.o |
| -rm -f $@ |
| $(TARGET_CC) $(raid5rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid5rec_mod-disk_raid5_recover.o |
| |
| mod-raid5rec.o: mod-raid5rec.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -c -o $@ $< |
| |
| mod-raid5rec.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'raid5rec' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(raid5rec_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-raid5rec.lst: pre-raid5rec.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid5rec/' > $@ |
| else |
| def-raid5rec.lst: pre-raid5rec.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 raid5rec/' > $@ |
| endif |
| endif |
| |
| und-raid5rec.lst: pre-raid5rec.o |
| echo 'raid5rec' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| raid5rec_mod-disk_raid5_recover.o: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -MD -c -o $@ $< |
| -include raid5rec_mod-disk_raid5_recover.d |
| |
| clean-module-raid5rec_mod-disk_raid5_recover-extra.1: |
| rm -f cmd-raid5rec_mod-disk_raid5_recover.lst fs-raid5rec_mod-disk_raid5_recover.lst partmap-raid5rec_mod-disk_raid5_recover.lst handler-raid5rec_mod-disk_raid5_recover.lst parttool-raid5rec_mod-disk_raid5_recover.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid5rec_mod-disk_raid5_recover-extra.1 |
| |
| COMMANDFILES += cmd-raid5rec_mod-disk_raid5_recover.lst |
| FSFILES += fs-raid5rec_mod-disk_raid5_recover.lst |
| PARTTOOLFILES += parttool-raid5rec_mod-disk_raid5_recover.lst |
| PARTMAPFILES += partmap-raid5rec_mod-disk_raid5_recover.lst |
| HANDLERFILES += handler-raid5rec_mod-disk_raid5_recover.lst |
| |
| cmd-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh raid5rec > $@ || (rm -f $@; exit 1) |
| |
| fs-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh raid5rec > $@ || (rm -f $@; exit 1) |
| |
| parttool-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh raid5rec > $@ || (rm -f $@; exit 1) |
| |
| partmap-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh raid5rec > $@ || (rm -f $@; exit 1) |
| |
| handler-raid5rec_mod-disk_raid5_recover.lst: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid5rec_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh raid5rec > $@ || (rm -f $@; exit 1) |
| |
| raid5rec_mod_CFLAGS = $(COMMON_CFLAGS) |
| raid5rec_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For raid6rec.mod |
| raid6rec_mod_SOURCES = disk/raid6_recover.c |
| |
| clean-module-raid6rec.mod.1: |
| rm -f raid6rec.mod mod-raid6rec.o mod-raid6rec.c pre-raid6rec.o raid6rec_mod-disk_raid6_recover.o und-raid6rec.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid6rec.mod.1 |
| |
| ifneq ($(raid6rec_mod_EXPORTS),no) |
| clean-module-raid6rec.mod-symbol.1: |
| rm -f def-raid6rec.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid6rec.mod-symbol.1 |
| DEFSYMFILES += def-raid6rec.lst |
| endif |
| mostlyclean-module-raid6rec.mod.1: |
| rm -f raid6rec_mod-disk_raid6_recover.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-raid6rec.mod.1 |
| UNDSYMFILES += und-raid6rec.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| raid6rec.mod: pre-raid6rec.o mod-raid6rec.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(raid6rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-raid6rec.o mod-raid6rec.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| raid6rec.mod: pre-raid6rec.o mod-raid6rec.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(raid6rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-raid6rec.o mod-raid6rec.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-raid6rec.o: $(raid6rec_mod_DEPENDENCIES) raid6rec_mod-disk_raid6_recover.o |
| -rm -f $@ |
| $(TARGET_CC) $(raid6rec_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ raid6rec_mod-disk_raid6_recover.o |
| |
| mod-raid6rec.o: mod-raid6rec.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -c -o $@ $< |
| |
| mod-raid6rec.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'raid6rec' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(raid6rec_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-raid6rec.lst: pre-raid6rec.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 raid6rec/' > $@ |
| else |
| def-raid6rec.lst: pre-raid6rec.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 raid6rec/' > $@ |
| endif |
| endif |
| |
| und-raid6rec.lst: pre-raid6rec.o |
| echo 'raid6rec' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| raid6rec_mod-disk_raid6_recover.o: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -MD -c -o $@ $< |
| -include raid6rec_mod-disk_raid6_recover.d |
| |
| clean-module-raid6rec_mod-disk_raid6_recover-extra.1: |
| rm -f cmd-raid6rec_mod-disk_raid6_recover.lst fs-raid6rec_mod-disk_raid6_recover.lst partmap-raid6rec_mod-disk_raid6_recover.lst handler-raid6rec_mod-disk_raid6_recover.lst parttool-raid6rec_mod-disk_raid6_recover.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-raid6rec_mod-disk_raid6_recover-extra.1 |
| |
| COMMANDFILES += cmd-raid6rec_mod-disk_raid6_recover.lst |
| FSFILES += fs-raid6rec_mod-disk_raid6_recover.lst |
| PARTTOOLFILES += parttool-raid6rec_mod-disk_raid6_recover.lst |
| PARTMAPFILES += partmap-raid6rec_mod-disk_raid6_recover.lst |
| HANDLERFILES += handler-raid6rec_mod-disk_raid6_recover.lst |
| |
| cmd-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh raid6rec > $@ || (rm -f $@; exit 1) |
| |
| fs-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh raid6rec > $@ || (rm -f $@; exit 1) |
| |
| parttool-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh raid6rec > $@ || (rm -f $@; exit 1) |
| |
| partmap-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh raid6rec > $@ || (rm -f $@; exit 1) |
| |
| handler-raid6rec_mod-disk_raid6_recover.lst: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(raid6rec_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh raid6rec > $@ || (rm -f $@; exit 1) |
| |
| raid6rec_mod_CFLAGS = $(COMMON_CFLAGS) |
| raid6rec_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For mdraid.mod |
| mdraid_mod_SOURCES = disk/mdraid_linux.c |
| |
| clean-module-mdraid.mod.1: |
| rm -f mdraid.mod mod-mdraid.o mod-mdraid.c pre-mdraid.o mdraid_mod-disk_mdraid_linux.o und-mdraid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mdraid.mod.1 |
| |
| ifneq ($(mdraid_mod_EXPORTS),no) |
| clean-module-mdraid.mod-symbol.1: |
| rm -f def-mdraid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mdraid.mod-symbol.1 |
| DEFSYMFILES += def-mdraid.lst |
| endif |
| mostlyclean-module-mdraid.mod.1: |
| rm -f mdraid_mod-disk_mdraid_linux.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-mdraid.mod.1 |
| UNDSYMFILES += und-mdraid.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| mdraid.mod: pre-mdraid.o mod-mdraid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(mdraid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-mdraid.o mod-mdraid.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| mdraid.mod: pre-mdraid.o mod-mdraid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(mdraid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-mdraid.o mod-mdraid.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-mdraid.o: $(mdraid_mod_DEPENDENCIES) mdraid_mod-disk_mdraid_linux.o |
| -rm -f $@ |
| $(TARGET_CC) $(mdraid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ mdraid_mod-disk_mdraid_linux.o |
| |
| mod-mdraid.o: mod-mdraid.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -c -o $@ $< |
| |
| mod-mdraid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'mdraid' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(mdraid_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-mdraid.lst: pre-mdraid.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 mdraid/' > $@ |
| else |
| def-mdraid.lst: pre-mdraid.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 mdraid/' > $@ |
| endif |
| endif |
| |
| und-mdraid.lst: pre-mdraid.o |
| echo 'mdraid' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| mdraid_mod-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -MD -c -o $@ $< |
| -include mdraid_mod-disk_mdraid_linux.d |
| |
| clean-module-mdraid_mod-disk_mdraid_linux-extra.1: |
| rm -f cmd-mdraid_mod-disk_mdraid_linux.lst fs-mdraid_mod-disk_mdraid_linux.lst partmap-mdraid_mod-disk_mdraid_linux.lst handler-mdraid_mod-disk_mdraid_linux.lst parttool-mdraid_mod-disk_mdraid_linux.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mdraid_mod-disk_mdraid_linux-extra.1 |
| |
| COMMANDFILES += cmd-mdraid_mod-disk_mdraid_linux.lst |
| FSFILES += fs-mdraid_mod-disk_mdraid_linux.lst |
| PARTTOOLFILES += parttool-mdraid_mod-disk_mdraid_linux.lst |
| PARTMAPFILES += partmap-mdraid_mod-disk_mdraid_linux.lst |
| HANDLERFILES += handler-mdraid_mod-disk_mdraid_linux.lst |
| |
| cmd-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mdraid > $@ || (rm -f $@; exit 1) |
| |
| fs-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mdraid > $@ || (rm -f $@; exit 1) |
| |
| parttool-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mdraid > $@ || (rm -f $@; exit 1) |
| |
| partmap-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mdraid > $@ || (rm -f $@; exit 1) |
| |
| handler-mdraid_mod-disk_mdraid_linux.lst: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mdraid_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mdraid > $@ || (rm -f $@; exit 1) |
| |
| mdraid_mod_CFLAGS = $(COMMON_CFLAGS) |
| mdraid_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For dm_nv.mod |
| dm_nv_mod_SOURCES = disk/dmraid_nvidia.c |
| |
| clean-module-dm_nv.mod.1: |
| rm -f dm_nv.mod mod-dm_nv.o mod-dm_nv.c pre-dm_nv.o dm_nv_mod-disk_dmraid_nvidia.o und-dm_nv.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-dm_nv.mod.1 |
| |
| ifneq ($(dm_nv_mod_EXPORTS),no) |
| clean-module-dm_nv.mod-symbol.1: |
| rm -f def-dm_nv.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-dm_nv.mod-symbol.1 |
| DEFSYMFILES += def-dm_nv.lst |
| endif |
| mostlyclean-module-dm_nv.mod.1: |
| rm -f dm_nv_mod-disk_dmraid_nvidia.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-dm_nv.mod.1 |
| UNDSYMFILES += und-dm_nv.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| dm_nv.mod: pre-dm_nv.o mod-dm_nv.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(dm_nv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-dm_nv.o mod-dm_nv.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| dm_nv.mod: pre-dm_nv.o mod-dm_nv.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(dm_nv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-dm_nv.o mod-dm_nv.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-dm_nv.o: $(dm_nv_mod_DEPENDENCIES) dm_nv_mod-disk_dmraid_nvidia.o |
| -rm -f $@ |
| $(TARGET_CC) $(dm_nv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ dm_nv_mod-disk_dmraid_nvidia.o |
| |
| mod-dm_nv.o: mod-dm_nv.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -c -o $@ $< |
| |
| mod-dm_nv.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'dm_nv' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(dm_nv_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-dm_nv.lst: pre-dm_nv.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 dm_nv/' > $@ |
| else |
| def-dm_nv.lst: pre-dm_nv.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 dm_nv/' > $@ |
| endif |
| endif |
| |
| und-dm_nv.lst: pre-dm_nv.o |
| echo 'dm_nv' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| dm_nv_mod-disk_dmraid_nvidia.o: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -MD -c -o $@ $< |
| -include dm_nv_mod-disk_dmraid_nvidia.d |
| |
| clean-module-dm_nv_mod-disk_dmraid_nvidia-extra.1: |
| rm -f cmd-dm_nv_mod-disk_dmraid_nvidia.lst fs-dm_nv_mod-disk_dmraid_nvidia.lst partmap-dm_nv_mod-disk_dmraid_nvidia.lst handler-dm_nv_mod-disk_dmraid_nvidia.lst parttool-dm_nv_mod-disk_dmraid_nvidia.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-dm_nv_mod-disk_dmraid_nvidia-extra.1 |
| |
| COMMANDFILES += cmd-dm_nv_mod-disk_dmraid_nvidia.lst |
| FSFILES += fs-dm_nv_mod-disk_dmraid_nvidia.lst |
| PARTTOOLFILES += parttool-dm_nv_mod-disk_dmraid_nvidia.lst |
| PARTMAPFILES += partmap-dm_nv_mod-disk_dmraid_nvidia.lst |
| HANDLERFILES += handler-dm_nv_mod-disk_dmraid_nvidia.lst |
| |
| cmd-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh dm_nv > $@ || (rm -f $@; exit 1) |
| |
| fs-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh dm_nv > $@ || (rm -f $@; exit 1) |
| |
| parttool-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh dm_nv > $@ || (rm -f $@; exit 1) |
| |
| partmap-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh dm_nv > $@ || (rm -f $@; exit 1) |
| |
| handler-dm_nv_mod-disk_dmraid_nvidia.lst: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(dm_nv_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh dm_nv > $@ || (rm -f $@; exit 1) |
| |
| dm_nv_mod_CFLAGS = $(COMMON_CFLAGS) |
| dm_nv_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For lvm.mod |
| lvm_mod_SOURCES = disk/lvm.c |
| |
| clean-module-lvm.mod.1: |
| rm -f lvm.mod mod-lvm.o mod-lvm.c pre-lvm.o lvm_mod-disk_lvm.o und-lvm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lvm.mod.1 |
| |
| ifneq ($(lvm_mod_EXPORTS),no) |
| clean-module-lvm.mod-symbol.1: |
| rm -f def-lvm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lvm.mod-symbol.1 |
| DEFSYMFILES += def-lvm.lst |
| endif |
| mostlyclean-module-lvm.mod.1: |
| rm -f lvm_mod-disk_lvm.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-lvm.mod.1 |
| UNDSYMFILES += und-lvm.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| lvm.mod: pre-lvm.o mod-lvm.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-lvm.o mod-lvm.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| lvm.mod: pre-lvm.o mod-lvm.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-lvm.o mod-lvm.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-lvm.o: $(lvm_mod_DEPENDENCIES) lvm_mod-disk_lvm.o |
| -rm -f $@ |
| $(TARGET_CC) $(lvm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lvm_mod-disk_lvm.o |
| |
| mod-lvm.o: mod-lvm.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -c -o $@ $< |
| |
| mod-lvm.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'lvm' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(lvm_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-lvm.lst: pre-lvm.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lvm/' > $@ |
| else |
| def-lvm.lst: pre-lvm.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 lvm/' > $@ |
| endif |
| endif |
| |
| und-lvm.lst: pre-lvm.o |
| echo 'lvm' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| lvm_mod-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -MD -c -o $@ $< |
| -include lvm_mod-disk_lvm.d |
| |
| clean-module-lvm_mod-disk_lvm-extra.1: |
| rm -f cmd-lvm_mod-disk_lvm.lst fs-lvm_mod-disk_lvm.lst partmap-lvm_mod-disk_lvm.lst handler-lvm_mod-disk_lvm.lst parttool-lvm_mod-disk_lvm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lvm_mod-disk_lvm-extra.1 |
| |
| COMMANDFILES += cmd-lvm_mod-disk_lvm.lst |
| FSFILES += fs-lvm_mod-disk_lvm.lst |
| PARTTOOLFILES += parttool-lvm_mod-disk_lvm.lst |
| PARTMAPFILES += partmap-lvm_mod-disk_lvm.lst |
| HANDLERFILES += handler-lvm_mod-disk_lvm.lst |
| |
| cmd-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh lvm > $@ || (rm -f $@; exit 1) |
| |
| partmap-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-lvm_mod-disk_lvm.lst: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lvm_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh lvm > $@ || (rm -f $@; exit 1) |
| |
| lvm_mod_CFLAGS = $(COMMON_CFLAGS) |
| lvm_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For scsi.mod |
| scsi_mod_SOURCES = disk/scsi.c |
| |
| clean-module-scsi.mod.1: |
| rm -f scsi.mod mod-scsi.o mod-scsi.c pre-scsi.o scsi_mod-disk_scsi.o und-scsi.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-scsi.mod.1 |
| |
| ifneq ($(scsi_mod_EXPORTS),no) |
| clean-module-scsi.mod-symbol.1: |
| rm -f def-scsi.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-scsi.mod-symbol.1 |
| DEFSYMFILES += def-scsi.lst |
| endif |
| mostlyclean-module-scsi.mod.1: |
| rm -f scsi_mod-disk_scsi.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-scsi.mod.1 |
| UNDSYMFILES += und-scsi.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| scsi.mod: pre-scsi.o mod-scsi.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(scsi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-scsi.o mod-scsi.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| scsi.mod: pre-scsi.o mod-scsi.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(scsi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-scsi.o mod-scsi.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-scsi.o: $(scsi_mod_DEPENDENCIES) scsi_mod-disk_scsi.o |
| -rm -f $@ |
| $(TARGET_CC) $(scsi_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ scsi_mod-disk_scsi.o |
| |
| mod-scsi.o: mod-scsi.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -c -o $@ $< |
| |
| mod-scsi.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'scsi' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(scsi_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-scsi.lst: pre-scsi.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 scsi/' > $@ |
| else |
| def-scsi.lst: pre-scsi.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 scsi/' > $@ |
| endif |
| endif |
| |
| und-scsi.lst: pre-scsi.o |
| echo 'scsi' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| scsi_mod-disk_scsi.o: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -MD -c -o $@ $< |
| -include scsi_mod-disk_scsi.d |
| |
| clean-module-scsi_mod-disk_scsi-extra.1: |
| rm -f cmd-scsi_mod-disk_scsi.lst fs-scsi_mod-disk_scsi.lst partmap-scsi_mod-disk_scsi.lst handler-scsi_mod-disk_scsi.lst parttool-scsi_mod-disk_scsi.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-scsi_mod-disk_scsi-extra.1 |
| |
| COMMANDFILES += cmd-scsi_mod-disk_scsi.lst |
| FSFILES += fs-scsi_mod-disk_scsi.lst |
| PARTTOOLFILES += parttool-scsi_mod-disk_scsi.lst |
| PARTMAPFILES += partmap-scsi_mod-disk_scsi.lst |
| HANDLERFILES += handler-scsi_mod-disk_scsi.lst |
| |
| cmd-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh scsi > $@ || (rm -f $@; exit 1) |
| |
| fs-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh scsi > $@ || (rm -f $@; exit 1) |
| |
| parttool-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh scsi > $@ || (rm -f $@; exit 1) |
| |
| partmap-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh scsi > $@ || (rm -f $@; exit 1) |
| |
| handler-scsi_mod-disk_scsi.lst: disk/scsi.c $(disk/scsi.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(scsi_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh scsi > $@ || (rm -f $@; exit 1) |
| |
| scsi_mod_CFLAGS = $(COMMON_CFLAGS) |
| scsi_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Commands. |
| pkglib_MODULES += minicmd.mod extcmd.mod hello.mod handler.mod \ |
| ls.mod cmp.mod cat.mod help.mod search.mod loopback.mod \ |
| fs_file.mod fs_uuid.mod configfile.mod echo.mod \ |
| terminfo.mod test.mod blocklist.mod hexdump.mod \ |
| read.mod sleep.mod loadenv.mod crc.mod parttool.mod \ |
| msdospart.mod memrw.mod normal.mod sh.mod \ |
| gptsync.mod true.mod probe.mod password.mod \ |
| keystatus.mod |
| |
| # For password.mod. |
| password_mod_SOURCES = commands/password.c |
| |
| clean-module-password.mod.1: |
| rm -f password.mod mod-password.o mod-password.c pre-password.o password_mod-commands_password.o und-password.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-password.mod.1 |
| |
| ifneq ($(password_mod_EXPORTS),no) |
| clean-module-password.mod-symbol.1: |
| rm -f def-password.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-password.mod-symbol.1 |
| DEFSYMFILES += def-password.lst |
| endif |
| mostlyclean-module-password.mod.1: |
| rm -f password_mod-commands_password.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-password.mod.1 |
| UNDSYMFILES += und-password.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| password.mod: pre-password.o mod-password.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(password_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-password.o mod-password.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| password.mod: pre-password.o mod-password.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(password_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-password.o mod-password.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-password.o: $(password_mod_DEPENDENCIES) password_mod-commands_password.o |
| -rm -f $@ |
| $(TARGET_CC) $(password_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ password_mod-commands_password.o |
| |
| mod-password.o: mod-password.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -c -o $@ $< |
| |
| mod-password.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'password' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(password_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-password.lst: pre-password.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 password/' > $@ |
| else |
| def-password.lst: pre-password.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 password/' > $@ |
| endif |
| endif |
| |
| und-password.lst: pre-password.o |
| echo 'password' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| password_mod-commands_password.o: commands/password.c $(commands/password.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -MD -c -o $@ $< |
| -include password_mod-commands_password.d |
| |
| clean-module-password_mod-commands_password-extra.1: |
| rm -f cmd-password_mod-commands_password.lst fs-password_mod-commands_password.lst partmap-password_mod-commands_password.lst handler-password_mod-commands_password.lst parttool-password_mod-commands_password.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-password_mod-commands_password-extra.1 |
| |
| COMMANDFILES += cmd-password_mod-commands_password.lst |
| FSFILES += fs-password_mod-commands_password.lst |
| PARTTOOLFILES += parttool-password_mod-commands_password.lst |
| PARTMAPFILES += partmap-password_mod-commands_password.lst |
| HANDLERFILES += handler-password_mod-commands_password.lst |
| |
| cmd-password_mod-commands_password.lst: commands/password.c $(commands/password.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh password > $@ || (rm -f $@; exit 1) |
| |
| fs-password_mod-commands_password.lst: commands/password.c $(commands/password.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh password > $@ || (rm -f $@; exit 1) |
| |
| parttool-password_mod-commands_password.lst: commands/password.c $(commands/password.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh password > $@ || (rm -f $@; exit 1) |
| |
| partmap-password_mod-commands_password.lst: commands/password.c $(commands/password.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh password > $@ || (rm -f $@; exit 1) |
| |
| handler-password_mod-commands_password.lst: commands/password.c $(commands/password.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(password_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh password > $@ || (rm -f $@; exit 1) |
| |
| password_mod_CFLAGS = $(COMMON_CFLAGS) |
| password_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For gptsync.mod. |
| gptsync_mod_SOURCES = commands/gptsync.c |
| |
| clean-module-gptsync.mod.1: |
| rm -f gptsync.mod mod-gptsync.o mod-gptsync.c pre-gptsync.o gptsync_mod-commands_gptsync.o und-gptsync.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gptsync.mod.1 |
| |
| ifneq ($(gptsync_mod_EXPORTS),no) |
| clean-module-gptsync.mod-symbol.1: |
| rm -f def-gptsync.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gptsync.mod-symbol.1 |
| DEFSYMFILES += def-gptsync.lst |
| endif |
| mostlyclean-module-gptsync.mod.1: |
| rm -f gptsync_mod-commands_gptsync.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-gptsync.mod.1 |
| UNDSYMFILES += und-gptsync.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| gptsync.mod: pre-gptsync.o mod-gptsync.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(gptsync_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-gptsync.o mod-gptsync.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| gptsync.mod: pre-gptsync.o mod-gptsync.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(gptsync_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-gptsync.o mod-gptsync.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-gptsync.o: $(gptsync_mod_DEPENDENCIES) gptsync_mod-commands_gptsync.o |
| -rm -f $@ |
| $(TARGET_CC) $(gptsync_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gptsync_mod-commands_gptsync.o |
| |
| mod-gptsync.o: mod-gptsync.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -c -o $@ $< |
| |
| mod-gptsync.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'gptsync' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(gptsync_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-gptsync.lst: pre-gptsync.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gptsync/' > $@ |
| else |
| def-gptsync.lst: pre-gptsync.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 gptsync/' > $@ |
| endif |
| endif |
| |
| und-gptsync.lst: pre-gptsync.o |
| echo 'gptsync' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| gptsync_mod-commands_gptsync.o: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -MD -c -o $@ $< |
| -include gptsync_mod-commands_gptsync.d |
| |
| clean-module-gptsync_mod-commands_gptsync-extra.1: |
| rm -f cmd-gptsync_mod-commands_gptsync.lst fs-gptsync_mod-commands_gptsync.lst partmap-gptsync_mod-commands_gptsync.lst handler-gptsync_mod-commands_gptsync.lst parttool-gptsync_mod-commands_gptsync.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gptsync_mod-commands_gptsync-extra.1 |
| |
| COMMANDFILES += cmd-gptsync_mod-commands_gptsync.lst |
| FSFILES += fs-gptsync_mod-commands_gptsync.lst |
| PARTTOOLFILES += parttool-gptsync_mod-commands_gptsync.lst |
| PARTMAPFILES += partmap-gptsync_mod-commands_gptsync.lst |
| HANDLERFILES += handler-gptsync_mod-commands_gptsync.lst |
| |
| cmd-gptsync_mod-commands_gptsync.lst: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh gptsync > $@ || (rm -f $@; exit 1) |
| |
| fs-gptsync_mod-commands_gptsync.lst: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh gptsync > $@ || (rm -f $@; exit 1) |
| |
| parttool-gptsync_mod-commands_gptsync.lst: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh gptsync > $@ || (rm -f $@; exit 1) |
| |
| partmap-gptsync_mod-commands_gptsync.lst: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh gptsync > $@ || (rm -f $@; exit 1) |
| |
| handler-gptsync_mod-commands_gptsync.lst: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gptsync_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh gptsync > $@ || (rm -f $@; exit 1) |
| |
| gptsync_mod_CFLAGS = $(COMMON_CFLAGS) |
| gptsync_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For minicmd.mod. |
| minicmd_mod_SOURCES = commands/minicmd.c |
| |
| clean-module-minicmd.mod.1: |
| rm -f minicmd.mod mod-minicmd.o mod-minicmd.c pre-minicmd.o minicmd_mod-commands_minicmd.o und-minicmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minicmd.mod.1 |
| |
| ifneq ($(minicmd_mod_EXPORTS),no) |
| clean-module-minicmd.mod-symbol.1: |
| rm -f def-minicmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minicmd.mod-symbol.1 |
| DEFSYMFILES += def-minicmd.lst |
| endif |
| mostlyclean-module-minicmd.mod.1: |
| rm -f minicmd_mod-commands_minicmd.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-minicmd.mod.1 |
| UNDSYMFILES += und-minicmd.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| minicmd.mod: pre-minicmd.o mod-minicmd.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(minicmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-minicmd.o mod-minicmd.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| minicmd.mod: pre-minicmd.o mod-minicmd.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(minicmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-minicmd.o mod-minicmd.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-minicmd.o: $(minicmd_mod_DEPENDENCIES) minicmd_mod-commands_minicmd.o |
| -rm -f $@ |
| $(TARGET_CC) $(minicmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ minicmd_mod-commands_minicmd.o |
| |
| mod-minicmd.o: mod-minicmd.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -c -o $@ $< |
| |
| mod-minicmd.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'minicmd' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(minicmd_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-minicmd.lst: pre-minicmd.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 minicmd/' > $@ |
| else |
| def-minicmd.lst: pre-minicmd.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 minicmd/' > $@ |
| endif |
| endif |
| |
| und-minicmd.lst: pre-minicmd.o |
| echo 'minicmd' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| minicmd_mod-commands_minicmd.o: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -MD -c -o $@ $< |
| -include minicmd_mod-commands_minicmd.d |
| |
| clean-module-minicmd_mod-commands_minicmd-extra.1: |
| rm -f cmd-minicmd_mod-commands_minicmd.lst fs-minicmd_mod-commands_minicmd.lst partmap-minicmd_mod-commands_minicmd.lst handler-minicmd_mod-commands_minicmd.lst parttool-minicmd_mod-commands_minicmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-minicmd_mod-commands_minicmd-extra.1 |
| |
| COMMANDFILES += cmd-minicmd_mod-commands_minicmd.lst |
| FSFILES += fs-minicmd_mod-commands_minicmd.lst |
| PARTTOOLFILES += parttool-minicmd_mod-commands_minicmd.lst |
| PARTMAPFILES += partmap-minicmd_mod-commands_minicmd.lst |
| HANDLERFILES += handler-minicmd_mod-commands_minicmd.lst |
| |
| cmd-minicmd_mod-commands_minicmd.lst: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh minicmd > $@ || (rm -f $@; exit 1) |
| |
| fs-minicmd_mod-commands_minicmd.lst: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh minicmd > $@ || (rm -f $@; exit 1) |
| |
| parttool-minicmd_mod-commands_minicmd.lst: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh minicmd > $@ || (rm -f $@; exit 1) |
| |
| partmap-minicmd_mod-commands_minicmd.lst: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh minicmd > $@ || (rm -f $@; exit 1) |
| |
| handler-minicmd_mod-commands_minicmd.lst: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(minicmd_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh minicmd > $@ || (rm -f $@; exit 1) |
| |
| minicmd_mod_CFLAGS = $(COMMON_CFLAGS) |
| minicmd_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For extcmd.mod. |
| extcmd_mod_SOURCES = commands/extcmd.c lib/arg.c |
| |
| clean-module-extcmd.mod.1: |
| rm -f extcmd.mod mod-extcmd.o mod-extcmd.c pre-extcmd.o extcmd_mod-commands_extcmd.o extcmd_mod-lib_arg.o und-extcmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-extcmd.mod.1 |
| |
| ifneq ($(extcmd_mod_EXPORTS),no) |
| clean-module-extcmd.mod-symbol.1: |
| rm -f def-extcmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-extcmd.mod-symbol.1 |
| DEFSYMFILES += def-extcmd.lst |
| endif |
| mostlyclean-module-extcmd.mod.1: |
| rm -f extcmd_mod-commands_extcmd.d extcmd_mod-lib_arg.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-extcmd.mod.1 |
| UNDSYMFILES += und-extcmd.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| extcmd.mod: pre-extcmd.o mod-extcmd.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(extcmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-extcmd.o mod-extcmd.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| extcmd.mod: pre-extcmd.o mod-extcmd.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(extcmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-extcmd.o mod-extcmd.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-extcmd.o: $(extcmd_mod_DEPENDENCIES) extcmd_mod-commands_extcmd.o extcmd_mod-lib_arg.o |
| -rm -f $@ |
| $(TARGET_CC) $(extcmd_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ extcmd_mod-commands_extcmd.o extcmd_mod-lib_arg.o |
| |
| mod-extcmd.o: mod-extcmd.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -c -o $@ $< |
| |
| mod-extcmd.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'extcmd' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(extcmd_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-extcmd.lst: pre-extcmd.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 extcmd/' > $@ |
| else |
| def-extcmd.lst: pre-extcmd.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 extcmd/' > $@ |
| endif |
| endif |
| |
| und-extcmd.lst: pre-extcmd.o |
| echo 'extcmd' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| extcmd_mod-commands_extcmd.o: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -MD -c -o $@ $< |
| -include extcmd_mod-commands_extcmd.d |
| |
| clean-module-extcmd_mod-commands_extcmd-extra.1: |
| rm -f cmd-extcmd_mod-commands_extcmd.lst fs-extcmd_mod-commands_extcmd.lst partmap-extcmd_mod-commands_extcmd.lst handler-extcmd_mod-commands_extcmd.lst parttool-extcmd_mod-commands_extcmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-extcmd_mod-commands_extcmd-extra.1 |
| |
| COMMANDFILES += cmd-extcmd_mod-commands_extcmd.lst |
| FSFILES += fs-extcmd_mod-commands_extcmd.lst |
| PARTTOOLFILES += parttool-extcmd_mod-commands_extcmd.lst |
| PARTMAPFILES += partmap-extcmd_mod-commands_extcmd.lst |
| HANDLERFILES += handler-extcmd_mod-commands_extcmd.lst |
| |
| cmd-extcmd_mod-commands_extcmd.lst: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| fs-extcmd_mod-commands_extcmd.lst: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| parttool-extcmd_mod-commands_extcmd.lst: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| partmap-extcmd_mod-commands_extcmd.lst: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| handler-extcmd_mod-commands_extcmd.lst: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| extcmd_mod-lib_arg.o: lib/arg.c $(lib/arg.c_DEPENDENCIES) |
| $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -MD -c -o $@ $< |
| -include extcmd_mod-lib_arg.d |
| |
| clean-module-extcmd_mod-lib_arg-extra.1: |
| rm -f cmd-extcmd_mod-lib_arg.lst fs-extcmd_mod-lib_arg.lst partmap-extcmd_mod-lib_arg.lst handler-extcmd_mod-lib_arg.lst parttool-extcmd_mod-lib_arg.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-extcmd_mod-lib_arg-extra.1 |
| |
| COMMANDFILES += cmd-extcmd_mod-lib_arg.lst |
| FSFILES += fs-extcmd_mod-lib_arg.lst |
| PARTTOOLFILES += parttool-extcmd_mod-lib_arg.lst |
| PARTMAPFILES += partmap-extcmd_mod-lib_arg.lst |
| HANDLERFILES += handler-extcmd_mod-lib_arg.lst |
| |
| cmd-extcmd_mod-lib_arg.lst: lib/arg.c $(lib/arg.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| fs-extcmd_mod-lib_arg.lst: lib/arg.c $(lib/arg.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| parttool-extcmd_mod-lib_arg.lst: lib/arg.c $(lib/arg.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| partmap-extcmd_mod-lib_arg.lst: lib/arg.c $(lib/arg.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| handler-extcmd_mod-lib_arg.lst: lib/arg.c $(lib/arg.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(extcmd_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh extcmd > $@ || (rm -f $@; exit 1) |
| |
| extcmd_mod_CFLAGS = $(COMMON_CFLAGS) |
| extcmd_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For hello.mod. |
| hello_mod_SOURCES = hello/hello.c |
| |
| clean-module-hello.mod.1: |
| rm -f hello.mod mod-hello.o mod-hello.c pre-hello.o hello_mod-hello_hello.o und-hello.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hello.mod.1 |
| |
| ifneq ($(hello_mod_EXPORTS),no) |
| clean-module-hello.mod-symbol.1: |
| rm -f def-hello.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hello.mod-symbol.1 |
| DEFSYMFILES += def-hello.lst |
| endif |
| mostlyclean-module-hello.mod.1: |
| rm -f hello_mod-hello_hello.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-hello.mod.1 |
| UNDSYMFILES += und-hello.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| hello.mod: pre-hello.o mod-hello.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-hello.o mod-hello.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| hello.mod: pre-hello.o mod-hello.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-hello.o mod-hello.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-hello.o: $(hello_mod_DEPENDENCIES) hello_mod-hello_hello.o |
| -rm -f $@ |
| $(TARGET_CC) $(hello_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hello_mod-hello_hello.o |
| |
| mod-hello.o: mod-hello.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -c -o $@ $< |
| |
| mod-hello.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'hello' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(hello_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-hello.lst: pre-hello.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hello/' > $@ |
| else |
| def-hello.lst: pre-hello.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 hello/' > $@ |
| endif |
| endif |
| |
| und-hello.lst: pre-hello.o |
| echo 'hello' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| hello_mod-hello_hello.o: hello/hello.c $(hello/hello.c_DEPENDENCIES) |
| $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -MD -c -o $@ $< |
| -include hello_mod-hello_hello.d |
| |
| clean-module-hello_mod-hello_hello-extra.1: |
| rm -f cmd-hello_mod-hello_hello.lst fs-hello_mod-hello_hello.lst partmap-hello_mod-hello_hello.lst handler-hello_mod-hello_hello.lst parttool-hello_mod-hello_hello.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hello_mod-hello_hello-extra.1 |
| |
| COMMANDFILES += cmd-hello_mod-hello_hello.lst |
| FSFILES += fs-hello_mod-hello_hello.lst |
| PARTTOOLFILES += parttool-hello_mod-hello_hello.lst |
| PARTMAPFILES += partmap-hello_mod-hello_hello.lst |
| HANDLERFILES += handler-hello_mod-hello_hello.lst |
| |
| cmd-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh hello > $@ || (rm -f $@; exit 1) |
| |
| partmap-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-hello_mod-hello_hello.lst: hello/hello.c $(hello/hello.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ihello -I$(srcdir)/hello $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hello_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh hello > $@ || (rm -f $@; exit 1) |
| |
| hello_mod_CFLAGS = $(COMMON_CFLAGS) |
| hello_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For parttool.mod. |
| parttool_mod_SOURCES = commands/parttool.c |
| |
| clean-module-parttool.mod.1: |
| rm -f parttool.mod mod-parttool.o mod-parttool.c pre-parttool.o parttool_mod-commands_parttool.o und-parttool.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-parttool.mod.1 |
| |
| ifneq ($(parttool_mod_EXPORTS),no) |
| clean-module-parttool.mod-symbol.1: |
| rm -f def-parttool.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-parttool.mod-symbol.1 |
| DEFSYMFILES += def-parttool.lst |
| endif |
| mostlyclean-module-parttool.mod.1: |
| rm -f parttool_mod-commands_parttool.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-parttool.mod.1 |
| UNDSYMFILES += und-parttool.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| parttool.mod: pre-parttool.o mod-parttool.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(parttool_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-parttool.o mod-parttool.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| parttool.mod: pre-parttool.o mod-parttool.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(parttool_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-parttool.o mod-parttool.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-parttool.o: $(parttool_mod_DEPENDENCIES) parttool_mod-commands_parttool.o |
| -rm -f $@ |
| $(TARGET_CC) $(parttool_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ parttool_mod-commands_parttool.o |
| |
| mod-parttool.o: mod-parttool.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -c -o $@ $< |
| |
| mod-parttool.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'parttool' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(parttool_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-parttool.lst: pre-parttool.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 parttool/' > $@ |
| else |
| def-parttool.lst: pre-parttool.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 parttool/' > $@ |
| endif |
| endif |
| |
| und-parttool.lst: pre-parttool.o |
| echo 'parttool' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| parttool_mod-commands_parttool.o: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -MD -c -o $@ $< |
| -include parttool_mod-commands_parttool.d |
| |
| clean-module-parttool_mod-commands_parttool-extra.1: |
| rm -f cmd-parttool_mod-commands_parttool.lst fs-parttool_mod-commands_parttool.lst partmap-parttool_mod-commands_parttool.lst handler-parttool_mod-commands_parttool.lst parttool-parttool_mod-commands_parttool.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-parttool_mod-commands_parttool-extra.1 |
| |
| COMMANDFILES += cmd-parttool_mod-commands_parttool.lst |
| FSFILES += fs-parttool_mod-commands_parttool.lst |
| PARTTOOLFILES += parttool-parttool_mod-commands_parttool.lst |
| PARTMAPFILES += partmap-parttool_mod-commands_parttool.lst |
| HANDLERFILES += handler-parttool_mod-commands_parttool.lst |
| |
| cmd-parttool_mod-commands_parttool.lst: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh parttool > $@ || (rm -f $@; exit 1) |
| |
| fs-parttool_mod-commands_parttool.lst: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh parttool > $@ || (rm -f $@; exit 1) |
| |
| parttool-parttool_mod-commands_parttool.lst: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh parttool > $@ || (rm -f $@; exit 1) |
| |
| partmap-parttool_mod-commands_parttool.lst: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh parttool > $@ || (rm -f $@; exit 1) |
| |
| handler-parttool_mod-commands_parttool.lst: commands/parttool.c $(commands/parttool.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(parttool_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh parttool > $@ || (rm -f $@; exit 1) |
| |
| parttool_mod_CFLAGS = $(COMMON_CFLAGS) |
| parttool_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For msdospart.mod. |
| msdospart_mod_SOURCES = parttool/msdospart.c |
| |
| clean-module-msdospart.mod.1: |
| rm -f msdospart.mod mod-msdospart.o mod-msdospart.c pre-msdospart.o msdospart_mod-parttool_msdospart.o und-msdospart.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-msdospart.mod.1 |
| |
| ifneq ($(msdospart_mod_EXPORTS),no) |
| clean-module-msdospart.mod-symbol.1: |
| rm -f def-msdospart.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-msdospart.mod-symbol.1 |
| DEFSYMFILES += def-msdospart.lst |
| endif |
| mostlyclean-module-msdospart.mod.1: |
| rm -f msdospart_mod-parttool_msdospart.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-msdospart.mod.1 |
| UNDSYMFILES += und-msdospart.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| msdospart.mod: pre-msdospart.o mod-msdospart.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(msdospart_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-msdospart.o mod-msdospart.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| msdospart.mod: pre-msdospart.o mod-msdospart.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(msdospart_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-msdospart.o mod-msdospart.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-msdospart.o: $(msdospart_mod_DEPENDENCIES) msdospart_mod-parttool_msdospart.o |
| -rm -f $@ |
| $(TARGET_CC) $(msdospart_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ msdospart_mod-parttool_msdospart.o |
| |
| mod-msdospart.o: mod-msdospart.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -c -o $@ $< |
| |
| mod-msdospart.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'msdospart' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(msdospart_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-msdospart.lst: pre-msdospart.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 msdospart/' > $@ |
| else |
| def-msdospart.lst: pre-msdospart.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 msdospart/' > $@ |
| endif |
| endif |
| |
| und-msdospart.lst: pre-msdospart.o |
| echo 'msdospart' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| msdospart_mod-parttool_msdospart.o: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) |
| $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -MD -c -o $@ $< |
| -include msdospart_mod-parttool_msdospart.d |
| |
| clean-module-msdospart_mod-parttool_msdospart-extra.1: |
| rm -f cmd-msdospart_mod-parttool_msdospart.lst fs-msdospart_mod-parttool_msdospart.lst partmap-msdospart_mod-parttool_msdospart.lst handler-msdospart_mod-parttool_msdospart.lst parttool-msdospart_mod-parttool_msdospart.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-msdospart_mod-parttool_msdospart-extra.1 |
| |
| COMMANDFILES += cmd-msdospart_mod-parttool_msdospart.lst |
| FSFILES += fs-msdospart_mod-parttool_msdospart.lst |
| PARTTOOLFILES += parttool-msdospart_mod-parttool_msdospart.lst |
| PARTMAPFILES += partmap-msdospart_mod-parttool_msdospart.lst |
| HANDLERFILES += handler-msdospart_mod-parttool_msdospart.lst |
| |
| cmd-msdospart_mod-parttool_msdospart.lst: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh msdospart > $@ || (rm -f $@; exit 1) |
| |
| fs-msdospart_mod-parttool_msdospart.lst: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh msdospart > $@ || (rm -f $@; exit 1) |
| |
| parttool-msdospart_mod-parttool_msdospart.lst: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh msdospart > $@ || (rm -f $@; exit 1) |
| |
| partmap-msdospart_mod-parttool_msdospart.lst: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh msdospart > $@ || (rm -f $@; exit 1) |
| |
| handler-msdospart_mod-parttool_msdospart.lst: parttool/msdospart.c $(parttool/msdospart.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iparttool -I$(srcdir)/parttool $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(msdospart_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh msdospart > $@ || (rm -f $@; exit 1) |
| |
| msdospart_mod_CFLAGS = $(COMMON_CFLAGS) |
| msdospart_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For handler.mod. |
| handler_mod_SOURCES = commands/handler.c |
| |
| clean-module-handler.mod.1: |
| rm -f handler.mod mod-handler.o mod-handler.c pre-handler.o handler_mod-commands_handler.o und-handler.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-handler.mod.1 |
| |
| ifneq ($(handler_mod_EXPORTS),no) |
| clean-module-handler.mod-symbol.1: |
| rm -f def-handler.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-handler.mod-symbol.1 |
| DEFSYMFILES += def-handler.lst |
| endif |
| mostlyclean-module-handler.mod.1: |
| rm -f handler_mod-commands_handler.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-handler.mod.1 |
| UNDSYMFILES += und-handler.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| handler.mod: pre-handler.o mod-handler.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(handler_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-handler.o mod-handler.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| handler.mod: pre-handler.o mod-handler.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(handler_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-handler.o mod-handler.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-handler.o: $(handler_mod_DEPENDENCIES) handler_mod-commands_handler.o |
| -rm -f $@ |
| $(TARGET_CC) $(handler_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ handler_mod-commands_handler.o |
| |
| mod-handler.o: mod-handler.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -c -o $@ $< |
| |
| mod-handler.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'handler' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(handler_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-handler.lst: pre-handler.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 handler/' > $@ |
| else |
| def-handler.lst: pre-handler.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 handler/' > $@ |
| endif |
| endif |
| |
| und-handler.lst: pre-handler.o |
| echo 'handler' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| handler_mod-commands_handler.o: commands/handler.c $(commands/handler.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -MD -c -o $@ $< |
| -include handler_mod-commands_handler.d |
| |
| clean-module-handler_mod-commands_handler-extra.1: |
| rm -f cmd-handler_mod-commands_handler.lst fs-handler_mod-commands_handler.lst partmap-handler_mod-commands_handler.lst handler-handler_mod-commands_handler.lst parttool-handler_mod-commands_handler.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-handler_mod-commands_handler-extra.1 |
| |
| COMMANDFILES += cmd-handler_mod-commands_handler.lst |
| FSFILES += fs-handler_mod-commands_handler.lst |
| PARTTOOLFILES += parttool-handler_mod-commands_handler.lst |
| PARTMAPFILES += partmap-handler_mod-commands_handler.lst |
| HANDLERFILES += handler-handler_mod-commands_handler.lst |
| |
| cmd-handler_mod-commands_handler.lst: commands/handler.c $(commands/handler.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh handler > $@ || (rm -f $@; exit 1) |
| |
| fs-handler_mod-commands_handler.lst: commands/handler.c $(commands/handler.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh handler > $@ || (rm -f $@; exit 1) |
| |
| parttool-handler_mod-commands_handler.lst: commands/handler.c $(commands/handler.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh handler > $@ || (rm -f $@; exit 1) |
| |
| partmap-handler_mod-commands_handler.lst: commands/handler.c $(commands/handler.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh handler > $@ || (rm -f $@; exit 1) |
| |
| handler-handler_mod-commands_handler.lst: commands/handler.c $(commands/handler.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(handler_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh handler > $@ || (rm -f $@; exit 1) |
| |
| handler_mod_CFLAGS = $(COMMON_CFLAGS) |
| handler_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For ls.mod. |
| ls_mod_SOURCES = commands/ls.c |
| |
| clean-module-ls.mod.1: |
| rm -f ls.mod mod-ls.o mod-ls.c pre-ls.o ls_mod-commands_ls.o und-ls.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ls.mod.1 |
| |
| ifneq ($(ls_mod_EXPORTS),no) |
| clean-module-ls.mod-symbol.1: |
| rm -f def-ls.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ls.mod-symbol.1 |
| DEFSYMFILES += def-ls.lst |
| endif |
| mostlyclean-module-ls.mod.1: |
| rm -f ls_mod-commands_ls.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-ls.mod.1 |
| UNDSYMFILES += und-ls.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| ls.mod: pre-ls.o mod-ls.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-ls.o mod-ls.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| ls.mod: pre-ls.o mod-ls.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-ls.o mod-ls.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-ls.o: $(ls_mod_DEPENDENCIES) ls_mod-commands_ls.o |
| -rm -f $@ |
| $(TARGET_CC) $(ls_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ ls_mod-commands_ls.o |
| |
| mod-ls.o: mod-ls.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -c -o $@ $< |
| |
| mod-ls.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'ls' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(ls_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-ls.lst: pre-ls.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 ls/' > $@ |
| else |
| def-ls.lst: pre-ls.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 ls/' > $@ |
| endif |
| endif |
| |
| und-ls.lst: pre-ls.o |
| echo 'ls' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| ls_mod-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -MD -c -o $@ $< |
| -include ls_mod-commands_ls.d |
| |
| clean-module-ls_mod-commands_ls-extra.1: |
| rm -f cmd-ls_mod-commands_ls.lst fs-ls_mod-commands_ls.lst partmap-ls_mod-commands_ls.lst handler-ls_mod-commands_ls.lst parttool-ls_mod-commands_ls.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-ls_mod-commands_ls-extra.1 |
| |
| COMMANDFILES += cmd-ls_mod-commands_ls.lst |
| FSFILES += fs-ls_mod-commands_ls.lst |
| PARTTOOLFILES += parttool-ls_mod-commands_ls.lst |
| PARTMAPFILES += partmap-ls_mod-commands_ls.lst |
| HANDLERFILES += handler-ls_mod-commands_ls.lst |
| |
| cmd-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh ls > $@ || (rm -f $@; exit 1) |
| |
| partmap-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-ls_mod-commands_ls.lst: commands/ls.c $(commands/ls.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(ls_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh ls > $@ || (rm -f $@; exit 1) |
| |
| ls_mod_CFLAGS = $(COMMON_CFLAGS) |
| ls_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For cmp.mod. |
| cmp_mod_SOURCES = commands/cmp.c |
| |
| clean-module-cmp.mod.1: |
| rm -f cmp.mod mod-cmp.o mod-cmp.c pre-cmp.o cmp_mod-commands_cmp.o und-cmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cmp.mod.1 |
| |
| ifneq ($(cmp_mod_EXPORTS),no) |
| clean-module-cmp.mod-symbol.1: |
| rm -f def-cmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cmp.mod-symbol.1 |
| DEFSYMFILES += def-cmp.lst |
| endif |
| mostlyclean-module-cmp.mod.1: |
| rm -f cmp_mod-commands_cmp.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-cmp.mod.1 |
| UNDSYMFILES += und-cmp.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| cmp.mod: pre-cmp.o mod-cmp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-cmp.o mod-cmp.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| cmp.mod: pre-cmp.o mod-cmp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-cmp.o mod-cmp.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-cmp.o: $(cmp_mod_DEPENDENCIES) cmp_mod-commands_cmp.o |
| -rm -f $@ |
| $(TARGET_CC) $(cmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cmp_mod-commands_cmp.o |
| |
| mod-cmp.o: mod-cmp.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -c -o $@ $< |
| |
| mod-cmp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'cmp' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(cmp_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-cmp.lst: pre-cmp.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cmp/' > $@ |
| else |
| def-cmp.lst: pre-cmp.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 cmp/' > $@ |
| endif |
| endif |
| |
| und-cmp.lst: pre-cmp.o |
| echo 'cmp' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| cmp_mod-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -MD -c -o $@ $< |
| -include cmp_mod-commands_cmp.d |
| |
| clean-module-cmp_mod-commands_cmp-extra.1: |
| rm -f cmd-cmp_mod-commands_cmp.lst fs-cmp_mod-commands_cmp.lst partmap-cmp_mod-commands_cmp.lst handler-cmp_mod-commands_cmp.lst parttool-cmp_mod-commands_cmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cmp_mod-commands_cmp-extra.1 |
| |
| COMMANDFILES += cmd-cmp_mod-commands_cmp.lst |
| FSFILES += fs-cmp_mod-commands_cmp.lst |
| PARTTOOLFILES += parttool-cmp_mod-commands_cmp.lst |
| PARTMAPFILES += partmap-cmp_mod-commands_cmp.lst |
| HANDLERFILES += handler-cmp_mod-commands_cmp.lst |
| |
| cmd-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh cmp > $@ || (rm -f $@; exit 1) |
| |
| partmap-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-cmp_mod-commands_cmp.lst: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cmp_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh cmp > $@ || (rm -f $@; exit 1) |
| |
| cmp_mod_CFLAGS = $(COMMON_CFLAGS) |
| cmp_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For cat.mod. |
| cat_mod_SOURCES = commands/cat.c |
| |
| clean-module-cat.mod.1: |
| rm -f cat.mod mod-cat.o mod-cat.c pre-cat.o cat_mod-commands_cat.o und-cat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cat.mod.1 |
| |
| ifneq ($(cat_mod_EXPORTS),no) |
| clean-module-cat.mod-symbol.1: |
| rm -f def-cat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cat.mod-symbol.1 |
| DEFSYMFILES += def-cat.lst |
| endif |
| mostlyclean-module-cat.mod.1: |
| rm -f cat_mod-commands_cat.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-cat.mod.1 |
| UNDSYMFILES += und-cat.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| cat.mod: pre-cat.o mod-cat.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-cat.o mod-cat.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| cat.mod: pre-cat.o mod-cat.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-cat.o mod-cat.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-cat.o: $(cat_mod_DEPENDENCIES) cat_mod-commands_cat.o |
| -rm -f $@ |
| $(TARGET_CC) $(cat_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ cat_mod-commands_cat.o |
| |
| mod-cat.o: mod-cat.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -c -o $@ $< |
| |
| mod-cat.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'cat' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(cat_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-cat.lst: pre-cat.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 cat/' > $@ |
| else |
| def-cat.lst: pre-cat.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 cat/' > $@ |
| endif |
| endif |
| |
| und-cat.lst: pre-cat.o |
| echo 'cat' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| cat_mod-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -MD -c -o $@ $< |
| -include cat_mod-commands_cat.d |
| |
| clean-module-cat_mod-commands_cat-extra.1: |
| rm -f cmd-cat_mod-commands_cat.lst fs-cat_mod-commands_cat.lst partmap-cat_mod-commands_cat.lst handler-cat_mod-commands_cat.lst parttool-cat_mod-commands_cat.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-cat_mod-commands_cat-extra.1 |
| |
| COMMANDFILES += cmd-cat_mod-commands_cat.lst |
| FSFILES += fs-cat_mod-commands_cat.lst |
| PARTTOOLFILES += parttool-cat_mod-commands_cat.lst |
| PARTMAPFILES += partmap-cat_mod-commands_cat.lst |
| HANDLERFILES += handler-cat_mod-commands_cat.lst |
| |
| cmd-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh cat > $@ || (rm -f $@; exit 1) |
| |
| partmap-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-cat_mod-commands_cat.lst: commands/cat.c $(commands/cat.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(cat_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh cat > $@ || (rm -f $@; exit 1) |
| |
| cat_mod_CFLAGS = $(COMMON_CFLAGS) |
| cat_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For echo.mod |
| echo_mod_SOURCES = commands/echo.c |
| |
| clean-module-echo.mod.1: |
| rm -f echo.mod mod-echo.o mod-echo.c pre-echo.o echo_mod-commands_echo.o und-echo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-echo.mod.1 |
| |
| ifneq ($(echo_mod_EXPORTS),no) |
| clean-module-echo.mod-symbol.1: |
| rm -f def-echo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-echo.mod-symbol.1 |
| DEFSYMFILES += def-echo.lst |
| endif |
| mostlyclean-module-echo.mod.1: |
| rm -f echo_mod-commands_echo.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-echo.mod.1 |
| UNDSYMFILES += und-echo.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| echo.mod: pre-echo.o mod-echo.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-echo.o mod-echo.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| echo.mod: pre-echo.o mod-echo.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-echo.o mod-echo.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-echo.o: $(echo_mod_DEPENDENCIES) echo_mod-commands_echo.o |
| -rm -f $@ |
| $(TARGET_CC) $(echo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ echo_mod-commands_echo.o |
| |
| mod-echo.o: mod-echo.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -c -o $@ $< |
| |
| mod-echo.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'echo' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(echo_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-echo.lst: pre-echo.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 echo/' > $@ |
| else |
| def-echo.lst: pre-echo.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 echo/' > $@ |
| endif |
| endif |
| |
| und-echo.lst: pre-echo.o |
| echo 'echo' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| echo_mod-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -MD -c -o $@ $< |
| -include echo_mod-commands_echo.d |
| |
| clean-module-echo_mod-commands_echo-extra.1: |
| rm -f cmd-echo_mod-commands_echo.lst fs-echo_mod-commands_echo.lst partmap-echo_mod-commands_echo.lst handler-echo_mod-commands_echo.lst parttool-echo_mod-commands_echo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-echo_mod-commands_echo-extra.1 |
| |
| COMMANDFILES += cmd-echo_mod-commands_echo.lst |
| FSFILES += fs-echo_mod-commands_echo.lst |
| PARTTOOLFILES += parttool-echo_mod-commands_echo.lst |
| PARTMAPFILES += partmap-echo_mod-commands_echo.lst |
| HANDLERFILES += handler-echo_mod-commands_echo.lst |
| |
| cmd-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh echo > $@ || (rm -f $@; exit 1) |
| |
| partmap-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-echo_mod-commands_echo.lst: commands/echo.c $(commands/echo.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(echo_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh echo > $@ || (rm -f $@; exit 1) |
| |
| echo_mod_CFLAGS = $(COMMON_CFLAGS) |
| echo_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For help.mod. |
| help_mod_SOURCES = commands/help.c |
| |
| clean-module-help.mod.1: |
| rm -f help.mod mod-help.o mod-help.c pre-help.o help_mod-commands_help.o und-help.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-help.mod.1 |
| |
| ifneq ($(help_mod_EXPORTS),no) |
| clean-module-help.mod-symbol.1: |
| rm -f def-help.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-help.mod-symbol.1 |
| DEFSYMFILES += def-help.lst |
| endif |
| mostlyclean-module-help.mod.1: |
| rm -f help_mod-commands_help.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-help.mod.1 |
| UNDSYMFILES += und-help.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| help.mod: pre-help.o mod-help.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-help.o mod-help.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| help.mod: pre-help.o mod-help.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-help.o mod-help.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-help.o: $(help_mod_DEPENDENCIES) help_mod-commands_help.o |
| -rm -f $@ |
| $(TARGET_CC) $(help_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ help_mod-commands_help.o |
| |
| mod-help.o: mod-help.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -c -o $@ $< |
| |
| mod-help.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'help' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(help_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-help.lst: pre-help.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 help/' > $@ |
| else |
| def-help.lst: pre-help.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 help/' > $@ |
| endif |
| endif |
| |
| und-help.lst: pre-help.o |
| echo 'help' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| help_mod-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -MD -c -o $@ $< |
| -include help_mod-commands_help.d |
| |
| clean-module-help_mod-commands_help-extra.1: |
| rm -f cmd-help_mod-commands_help.lst fs-help_mod-commands_help.lst partmap-help_mod-commands_help.lst handler-help_mod-commands_help.lst parttool-help_mod-commands_help.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-help_mod-commands_help-extra.1 |
| |
| COMMANDFILES += cmd-help_mod-commands_help.lst |
| FSFILES += fs-help_mod-commands_help.lst |
| PARTTOOLFILES += parttool-help_mod-commands_help.lst |
| PARTMAPFILES += partmap-help_mod-commands_help.lst |
| HANDLERFILES += handler-help_mod-commands_help.lst |
| |
| cmd-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh help > $@ || (rm -f $@; exit 1) |
| |
| partmap-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-help_mod-commands_help.lst: commands/help.c $(commands/help.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(help_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh help > $@ || (rm -f $@; exit 1) |
| |
| help_mod_CFLAGS = $(COMMON_CFLAGS) |
| help_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For search.mod. |
| search_mod_SOURCES = commands/search.c |
| |
| clean-module-search.mod.1: |
| rm -f search.mod mod-search.o mod-search.c pre-search.o search_mod-commands_search.o und-search.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-search.mod.1 |
| |
| ifneq ($(search_mod_EXPORTS),no) |
| clean-module-search.mod-symbol.1: |
| rm -f def-search.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-search.mod-symbol.1 |
| DEFSYMFILES += def-search.lst |
| endif |
| mostlyclean-module-search.mod.1: |
| rm -f search_mod-commands_search.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-search.mod.1 |
| UNDSYMFILES += und-search.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| search.mod: pre-search.o mod-search.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-search.o mod-search.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| search.mod: pre-search.o mod-search.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-search.o mod-search.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-search.o: $(search_mod_DEPENDENCIES) search_mod-commands_search.o |
| -rm -f $@ |
| $(TARGET_CC) $(search_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ search_mod-commands_search.o |
| |
| mod-search.o: mod-search.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -c -o $@ $< |
| |
| mod-search.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'search' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(search_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-search.lst: pre-search.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 search/' > $@ |
| else |
| def-search.lst: pre-search.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 search/' > $@ |
| endif |
| endif |
| |
| und-search.lst: pre-search.o |
| echo 'search' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| search_mod-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -MD -c -o $@ $< |
| -include search_mod-commands_search.d |
| |
| clean-module-search_mod-commands_search-extra.1: |
| rm -f cmd-search_mod-commands_search.lst fs-search_mod-commands_search.lst partmap-search_mod-commands_search.lst handler-search_mod-commands_search.lst parttool-search_mod-commands_search.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-search_mod-commands_search-extra.1 |
| |
| COMMANDFILES += cmd-search_mod-commands_search.lst |
| FSFILES += fs-search_mod-commands_search.lst |
| PARTTOOLFILES += parttool-search_mod-commands_search.lst |
| PARTMAPFILES += partmap-search_mod-commands_search.lst |
| HANDLERFILES += handler-search_mod-commands_search.lst |
| |
| cmd-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh search > $@ || (rm -f $@; exit 1) |
| |
| partmap-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-search_mod-commands_search.lst: commands/search.c $(commands/search.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(search_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh search > $@ || (rm -f $@; exit 1) |
| |
| search_mod_CFLAGS = $(COMMON_CFLAGS) |
| search_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For test.mod. |
| test_mod_SOURCES = commands/test.c |
| |
| clean-module-test.mod.1: |
| rm -f test.mod mod-test.o mod-test.c pre-test.o test_mod-commands_test.o und-test.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-test.mod.1 |
| |
| ifneq ($(test_mod_EXPORTS),no) |
| clean-module-test.mod-symbol.1: |
| rm -f def-test.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-test.mod-symbol.1 |
| DEFSYMFILES += def-test.lst |
| endif |
| mostlyclean-module-test.mod.1: |
| rm -f test_mod-commands_test.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-test.mod.1 |
| UNDSYMFILES += und-test.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| test.mod: pre-test.o mod-test.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-test.o mod-test.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| test.mod: pre-test.o mod-test.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-test.o mod-test.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-test.o: $(test_mod_DEPENDENCIES) test_mod-commands_test.o |
| -rm -f $@ |
| $(TARGET_CC) $(test_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ test_mod-commands_test.o |
| |
| mod-test.o: mod-test.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -c -o $@ $< |
| |
| mod-test.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'test' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(test_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-test.lst: pre-test.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 test/' > $@ |
| else |
| def-test.lst: pre-test.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 test/' > $@ |
| endif |
| endif |
| |
| und-test.lst: pre-test.o |
| echo 'test' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| test_mod-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -MD -c -o $@ $< |
| -include test_mod-commands_test.d |
| |
| clean-module-test_mod-commands_test-extra.1: |
| rm -f cmd-test_mod-commands_test.lst fs-test_mod-commands_test.lst partmap-test_mod-commands_test.lst handler-test_mod-commands_test.lst parttool-test_mod-commands_test.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-test_mod-commands_test-extra.1 |
| |
| COMMANDFILES += cmd-test_mod-commands_test.lst |
| FSFILES += fs-test_mod-commands_test.lst |
| PARTTOOLFILES += parttool-test_mod-commands_test.lst |
| PARTMAPFILES += partmap-test_mod-commands_test.lst |
| HANDLERFILES += handler-test_mod-commands_test.lst |
| |
| cmd-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh test > $@ || (rm -f $@; exit 1) |
| |
| partmap-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-test_mod-commands_test.lst: commands/test.c $(commands/test.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(test_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh test > $@ || (rm -f $@; exit 1) |
| |
| test_mod_CFLAGS = $(COMMON_CFLAGS) |
| test_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For loopback.mod |
| loopback_mod_SOURCES = disk/loopback.c |
| |
| clean-module-loopback.mod.1: |
| rm -f loopback.mod mod-loopback.o mod-loopback.c pre-loopback.o loopback_mod-disk_loopback.o und-loopback.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loopback.mod.1 |
| |
| ifneq ($(loopback_mod_EXPORTS),no) |
| clean-module-loopback.mod-symbol.1: |
| rm -f def-loopback.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loopback.mod-symbol.1 |
| DEFSYMFILES += def-loopback.lst |
| endif |
| mostlyclean-module-loopback.mod.1: |
| rm -f loopback_mod-disk_loopback.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-loopback.mod.1 |
| UNDSYMFILES += und-loopback.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| loopback.mod: pre-loopback.o mod-loopback.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-loopback.o mod-loopback.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| loopback.mod: pre-loopback.o mod-loopback.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-loopback.o mod-loopback.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-loopback.o: $(loopback_mod_DEPENDENCIES) loopback_mod-disk_loopback.o |
| -rm -f $@ |
| $(TARGET_CC) $(loopback_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loopback_mod-disk_loopback.o |
| |
| mod-loopback.o: mod-loopback.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -c -o $@ $< |
| |
| mod-loopback.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'loopback' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(loopback_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-loopback.lst: pre-loopback.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loopback/' > $@ |
| else |
| def-loopback.lst: pre-loopback.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 loopback/' > $@ |
| endif |
| endif |
| |
| und-loopback.lst: pre-loopback.o |
| echo 'loopback' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| loopback_mod-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -MD -c -o $@ $< |
| -include loopback_mod-disk_loopback.d |
| |
| clean-module-loopback_mod-disk_loopback-extra.1: |
| rm -f cmd-loopback_mod-disk_loopback.lst fs-loopback_mod-disk_loopback.lst partmap-loopback_mod-disk_loopback.lst handler-loopback_mod-disk_loopback.lst parttool-loopback_mod-disk_loopback.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loopback_mod-disk_loopback-extra.1 |
| |
| COMMANDFILES += cmd-loopback_mod-disk_loopback.lst |
| FSFILES += fs-loopback_mod-disk_loopback.lst |
| PARTTOOLFILES += parttool-loopback_mod-disk_loopback.lst |
| PARTMAPFILES += partmap-loopback_mod-disk_loopback.lst |
| HANDLERFILES += handler-loopback_mod-disk_loopback.lst |
| |
| cmd-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh loopback > $@ || (rm -f $@; exit 1) |
| |
| partmap-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-loopback_mod-disk_loopback.lst: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loopback_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh loopback > $@ || (rm -f $@; exit 1) |
| |
| loopback_mod_CFLAGS = $(COMMON_CFLAGS) |
| loopback_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For fs_file.mod |
| fs_file_mod_SOURCES = disk/fs_file.c |
| |
| clean-module-fs_file.mod.1: |
| rm -f fs_file.mod mod-fs_file.o mod-fs_file.c pre-fs_file.o fs_file_mod-disk_fs_file.o und-fs_file.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_file.mod.1 |
| |
| ifneq ($(fs_file_mod_EXPORTS),no) |
| clean-module-fs_file.mod-symbol.1: |
| rm -f def-fs_file.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_file.mod-symbol.1 |
| DEFSYMFILES += def-fs_file.lst |
| endif |
| mostlyclean-module-fs_file.mod.1: |
| rm -f fs_file_mod-disk_fs_file.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-fs_file.mod.1 |
| UNDSYMFILES += und-fs_file.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| fs_file.mod: pre-fs_file.o mod-fs_file.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(fs_file_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-fs_file.o mod-fs_file.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| fs_file.mod: pre-fs_file.o mod-fs_file.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(fs_file_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-fs_file.o mod-fs_file.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-fs_file.o: $(fs_file_mod_DEPENDENCIES) fs_file_mod-disk_fs_file.o |
| -rm -f $@ |
| $(TARGET_CC) $(fs_file_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fs_file_mod-disk_fs_file.o |
| |
| mod-fs_file.o: mod-fs_file.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -c -o $@ $< |
| |
| mod-fs_file.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'fs_file' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(fs_file_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-fs_file.lst: pre-fs_file.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fs_file/' > $@ |
| else |
| def-fs_file.lst: pre-fs_file.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 fs_file/' > $@ |
| endif |
| endif |
| |
| und-fs_file.lst: pre-fs_file.o |
| echo 'fs_file' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| fs_file_mod-disk_fs_file.o: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -MD -c -o $@ $< |
| -include fs_file_mod-disk_fs_file.d |
| |
| clean-module-fs_file_mod-disk_fs_file-extra.1: |
| rm -f cmd-fs_file_mod-disk_fs_file.lst fs-fs_file_mod-disk_fs_file.lst partmap-fs_file_mod-disk_fs_file.lst handler-fs_file_mod-disk_fs_file.lst parttool-fs_file_mod-disk_fs_file.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_file_mod-disk_fs_file-extra.1 |
| |
| COMMANDFILES += cmd-fs_file_mod-disk_fs_file.lst |
| FSFILES += fs-fs_file_mod-disk_fs_file.lst |
| PARTTOOLFILES += parttool-fs_file_mod-disk_fs_file.lst |
| PARTMAPFILES += partmap-fs_file_mod-disk_fs_file.lst |
| HANDLERFILES += handler-fs_file_mod-disk_fs_file.lst |
| |
| cmd-fs_file_mod-disk_fs_file.lst: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh fs_file > $@ || (rm -f $@; exit 1) |
| |
| fs-fs_file_mod-disk_fs_file.lst: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh fs_file > $@ || (rm -f $@; exit 1) |
| |
| parttool-fs_file_mod-disk_fs_file.lst: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh fs_file > $@ || (rm -f $@; exit 1) |
| |
| partmap-fs_file_mod-disk_fs_file.lst: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh fs_file > $@ || (rm -f $@; exit 1) |
| |
| handler-fs_file_mod-disk_fs_file.lst: disk/fs_file.c $(disk/fs_file.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_file_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh fs_file > $@ || (rm -f $@; exit 1) |
| |
| fs_file_mod_CFLAGS = $(COMMON_CFLAGS) |
| fs_file_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For fs_uuid.mod |
| fs_uuid_mod_SOURCES = disk/fs_uuid.c |
| |
| clean-module-fs_uuid.mod.1: |
| rm -f 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 |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_uuid.mod.1 |
| |
| ifneq ($(fs_uuid_mod_EXPORTS),no) |
| clean-module-fs_uuid.mod-symbol.1: |
| rm -f def-fs_uuid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_uuid.mod-symbol.1 |
| DEFSYMFILES += def-fs_uuid.lst |
| endif |
| mostlyclean-module-fs_uuid.mod.1: |
| rm -f fs_uuid_mod-disk_fs_uuid.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-fs_uuid.mod.1 |
| UNDSYMFILES += und-fs_uuid.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| fs_uuid.mod: pre-fs_uuid.o mod-fs_uuid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-fs_uuid.o mod-fs_uuid.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| fs_uuid.mod: pre-fs_uuid.o mod-fs_uuid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-fs_uuid.o mod-fs_uuid.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-fs_uuid.o: $(fs_uuid_mod_DEPENDENCIES) fs_uuid_mod-disk_fs_uuid.o |
| -rm -f $@ |
| $(TARGET_CC) $(fs_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ fs_uuid_mod-disk_fs_uuid.o |
| |
| mod-fs_uuid.o: mod-fs_uuid.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -c -o $@ $< |
| |
| mod-fs_uuid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'fs_uuid' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(fs_uuid_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-fs_uuid.lst: pre-fs_uuid.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 fs_uuid/' > $@ |
| else |
| def-fs_uuid.lst: pre-fs_uuid.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 fs_uuid/' > $@ |
| endif |
| endif |
| |
| und-fs_uuid.lst: pre-fs_uuid.o |
| echo 'fs_uuid' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| fs_uuid_mod-disk_fs_uuid.o: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -MD -c -o $@ $< |
| -include fs_uuid_mod-disk_fs_uuid.d |
| |
| clean-module-fs_uuid_mod-disk_fs_uuid-extra.1: |
| rm -f cmd-fs_uuid_mod-disk_fs_uuid.lst fs-fs_uuid_mod-disk_fs_uuid.lst partmap-fs_uuid_mod-disk_fs_uuid.lst handler-fs_uuid_mod-disk_fs_uuid.lst parttool-fs_uuid_mod-disk_fs_uuid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-fs_uuid_mod-disk_fs_uuid-extra.1 |
| |
| COMMANDFILES += cmd-fs_uuid_mod-disk_fs_uuid.lst |
| FSFILES += fs-fs_uuid_mod-disk_fs_uuid.lst |
| PARTTOOLFILES += parttool-fs_uuid_mod-disk_fs_uuid.lst |
| PARTMAPFILES += partmap-fs_uuid_mod-disk_fs_uuid.lst |
| HANDLERFILES += handler-fs_uuid_mod-disk_fs_uuid.lst |
| |
| cmd-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh fs_uuid > $@ || (rm -f $@; exit 1) |
| |
| partmap-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-fs_uuid_mod-disk_fs_uuid.lst: disk/fs_uuid.c $(disk/fs_uuid.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(fs_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh fs_uuid > $@ || (rm -f $@; exit 1) |
| |
| fs_uuid_mod_CFLAGS = $(COMMON_CFLAGS) |
| fs_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For configfile.mod |
| configfile_mod_SOURCES = commands/configfile.c |
| |
| clean-module-configfile.mod.1: |
| rm -f configfile.mod mod-configfile.o mod-configfile.c pre-configfile.o configfile_mod-commands_configfile.o und-configfile.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-configfile.mod.1 |
| |
| ifneq ($(configfile_mod_EXPORTS),no) |
| clean-module-configfile.mod-symbol.1: |
| rm -f def-configfile.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-configfile.mod-symbol.1 |
| DEFSYMFILES += def-configfile.lst |
| endif |
| mostlyclean-module-configfile.mod.1: |
| rm -f configfile_mod-commands_configfile.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-configfile.mod.1 |
| UNDSYMFILES += und-configfile.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| configfile.mod: pre-configfile.o mod-configfile.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-configfile.o mod-configfile.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| configfile.mod: pre-configfile.o mod-configfile.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-configfile.o mod-configfile.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-configfile.o: $(configfile_mod_DEPENDENCIES) configfile_mod-commands_configfile.o |
| -rm -f $@ |
| $(TARGET_CC) $(configfile_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ configfile_mod-commands_configfile.o |
| |
| mod-configfile.o: mod-configfile.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -c -o $@ $< |
| |
| mod-configfile.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'configfile' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(configfile_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-configfile.lst: pre-configfile.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 configfile/' > $@ |
| else |
| def-configfile.lst: pre-configfile.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 configfile/' > $@ |
| endif |
| endif |
| |
| und-configfile.lst: pre-configfile.o |
| echo 'configfile' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| configfile_mod-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -MD -c -o $@ $< |
| -include configfile_mod-commands_configfile.d |
| |
| clean-module-configfile_mod-commands_configfile-extra.1: |
| rm -f cmd-configfile_mod-commands_configfile.lst fs-configfile_mod-commands_configfile.lst partmap-configfile_mod-commands_configfile.lst handler-configfile_mod-commands_configfile.lst parttool-configfile_mod-commands_configfile.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-configfile_mod-commands_configfile-extra.1 |
| |
| COMMANDFILES += cmd-configfile_mod-commands_configfile.lst |
| FSFILES += fs-configfile_mod-commands_configfile.lst |
| PARTTOOLFILES += parttool-configfile_mod-commands_configfile.lst |
| PARTMAPFILES += partmap-configfile_mod-commands_configfile.lst |
| HANDLERFILES += handler-configfile_mod-commands_configfile.lst |
| |
| cmd-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh configfile > $@ || (rm -f $@; exit 1) |
| |
| partmap-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-configfile_mod-commands_configfile.lst: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(configfile_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh configfile > $@ || (rm -f $@; exit 1) |
| |
| configfile_mod_CFLAGS = $(COMMON_CFLAGS) |
| configfile_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For terminfo.mod. |
| terminfo_mod_SOURCES = term/terminfo.c term/tparm.c |
| |
| clean-module-terminfo.mod.1: |
| rm -f terminfo.mod mod-terminfo.o mod-terminfo.c pre-terminfo.o terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o und-terminfo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-terminfo.mod.1 |
| |
| ifneq ($(terminfo_mod_EXPORTS),no) |
| clean-module-terminfo.mod-symbol.1: |
| rm -f def-terminfo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-terminfo.mod-symbol.1 |
| DEFSYMFILES += def-terminfo.lst |
| endif |
| mostlyclean-module-terminfo.mod.1: |
| rm -f terminfo_mod-term_terminfo.d terminfo_mod-term_tparm.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-terminfo.mod.1 |
| UNDSYMFILES += und-terminfo.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| terminfo.mod: pre-terminfo.o mod-terminfo.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-terminfo.o mod-terminfo.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| terminfo.mod: pre-terminfo.o mod-terminfo.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-terminfo.o mod-terminfo.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-terminfo.o: $(terminfo_mod_DEPENDENCIES) terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o |
| -rm -f $@ |
| $(TARGET_CC) $(terminfo_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ terminfo_mod-term_terminfo.o terminfo_mod-term_tparm.o |
| |
| mod-terminfo.o: mod-terminfo.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -c -o $@ $< |
| |
| mod-terminfo.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'terminfo' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(terminfo_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-terminfo.lst: pre-terminfo.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 terminfo/' > $@ |
| else |
| def-terminfo.lst: pre-terminfo.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 terminfo/' > $@ |
| endif |
| endif |
| |
| und-terminfo.lst: pre-terminfo.o |
| echo 'terminfo' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| terminfo_mod-term_terminfo.o: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) |
| $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $< |
| -include terminfo_mod-term_terminfo.d |
| |
| clean-module-terminfo_mod-term_terminfo-extra.1: |
| rm -f cmd-terminfo_mod-term_terminfo.lst fs-terminfo_mod-term_terminfo.lst partmap-terminfo_mod-term_terminfo.lst handler-terminfo_mod-term_terminfo.lst parttool-terminfo_mod-term_terminfo.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-terminfo_mod-term_terminfo-extra.1 |
| |
| COMMANDFILES += cmd-terminfo_mod-term_terminfo.lst |
| FSFILES += fs-terminfo_mod-term_terminfo.lst |
| PARTTOOLFILES += parttool-terminfo_mod-term_terminfo.lst |
| PARTMAPFILES += partmap-terminfo_mod-term_terminfo.lst |
| HANDLERFILES += handler-terminfo_mod-term_terminfo.lst |
| |
| cmd-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh terminfo > $@ || (rm -f $@; exit 1) |
| |
| partmap-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-terminfo_mod-term_terminfo.lst: term/terminfo.c $(term/terminfo.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh terminfo > $@ || (rm -f $@; exit 1) |
| |
| terminfo_mod-term_tparm.o: term/tparm.c $(term/tparm.c_DEPENDENCIES) |
| $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -MD -c -o $@ $< |
| -include terminfo_mod-term_tparm.d |
| |
| clean-module-terminfo_mod-term_tparm-extra.1: |
| rm -f cmd-terminfo_mod-term_tparm.lst fs-terminfo_mod-term_tparm.lst partmap-terminfo_mod-term_tparm.lst handler-terminfo_mod-term_tparm.lst parttool-terminfo_mod-term_tparm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-terminfo_mod-term_tparm-extra.1 |
| |
| COMMANDFILES += cmd-terminfo_mod-term_tparm.lst |
| FSFILES += fs-terminfo_mod-term_tparm.lst |
| PARTTOOLFILES += parttool-terminfo_mod-term_tparm.lst |
| PARTMAPFILES += partmap-terminfo_mod-term_tparm.lst |
| HANDLERFILES += handler-terminfo_mod-term_tparm.lst |
| |
| cmd-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh terminfo > $@ || (rm -f $@; exit 1) |
| |
| partmap-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-terminfo_mod-term_tparm.lst: term/tparm.c $(term/tparm.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(terminfo_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh terminfo > $@ || (rm -f $@; exit 1) |
| |
| terminfo_mod_CFLAGS = $(COMMON_CFLAGS) |
| terminfo_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For blocklist.mod. |
| blocklist_mod_SOURCES = commands/blocklist.c |
| |
| clean-module-blocklist.mod.1: |
| rm -f blocklist.mod mod-blocklist.o mod-blocklist.c pre-blocklist.o blocklist_mod-commands_blocklist.o und-blocklist.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-blocklist.mod.1 |
| |
| ifneq ($(blocklist_mod_EXPORTS),no) |
| clean-module-blocklist.mod-symbol.1: |
| rm -f def-blocklist.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-blocklist.mod-symbol.1 |
| DEFSYMFILES += def-blocklist.lst |
| endif |
| mostlyclean-module-blocklist.mod.1: |
| rm -f blocklist_mod-commands_blocklist.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-blocklist.mod.1 |
| UNDSYMFILES += und-blocklist.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| blocklist.mod: pre-blocklist.o mod-blocklist.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-blocklist.o mod-blocklist.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| blocklist.mod: pre-blocklist.o mod-blocklist.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-blocklist.o mod-blocklist.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-blocklist.o: $(blocklist_mod_DEPENDENCIES) blocklist_mod-commands_blocklist.o |
| -rm -f $@ |
| $(TARGET_CC) $(blocklist_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ blocklist_mod-commands_blocklist.o |
| |
| mod-blocklist.o: mod-blocklist.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -c -o $@ $< |
| |
| mod-blocklist.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'blocklist' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(blocklist_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-blocklist.lst: pre-blocklist.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 blocklist/' > $@ |
| else |
| def-blocklist.lst: pre-blocklist.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 blocklist/' > $@ |
| endif |
| endif |
| |
| und-blocklist.lst: pre-blocklist.o |
| echo 'blocklist' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| blocklist_mod-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -MD -c -o $@ $< |
| -include blocklist_mod-commands_blocklist.d |
| |
| clean-module-blocklist_mod-commands_blocklist-extra.1: |
| rm -f cmd-blocklist_mod-commands_blocklist.lst fs-blocklist_mod-commands_blocklist.lst partmap-blocklist_mod-commands_blocklist.lst handler-blocklist_mod-commands_blocklist.lst parttool-blocklist_mod-commands_blocklist.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-blocklist_mod-commands_blocklist-extra.1 |
| |
| COMMANDFILES += cmd-blocklist_mod-commands_blocklist.lst |
| FSFILES += fs-blocklist_mod-commands_blocklist.lst |
| PARTTOOLFILES += parttool-blocklist_mod-commands_blocklist.lst |
| PARTMAPFILES += partmap-blocklist_mod-commands_blocklist.lst |
| HANDLERFILES += handler-blocklist_mod-commands_blocklist.lst |
| |
| cmd-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh blocklist > $@ || (rm -f $@; exit 1) |
| |
| partmap-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-blocklist_mod-commands_blocklist.lst: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(blocklist_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh blocklist > $@ || (rm -f $@; exit 1) |
| |
| blocklist_mod_CFLAGS = $(COMMON_CFLAGS) |
| blocklist_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For hexdump.mod. |
| hexdump_mod_SOURCES = commands/hexdump.c lib/hexdump.c |
| |
| clean-module-hexdump.mod.1: |
| rm -f hexdump.mod mod-hexdump.o mod-hexdump.c pre-hexdump.o hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o und-hexdump.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hexdump.mod.1 |
| |
| ifneq ($(hexdump_mod_EXPORTS),no) |
| clean-module-hexdump.mod-symbol.1: |
| rm -f def-hexdump.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hexdump.mod-symbol.1 |
| DEFSYMFILES += def-hexdump.lst |
| endif |
| mostlyclean-module-hexdump.mod.1: |
| rm -f hexdump_mod-commands_hexdump.d hexdump_mod-lib_hexdump.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-hexdump.mod.1 |
| UNDSYMFILES += und-hexdump.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| hexdump.mod: pre-hexdump.o mod-hexdump.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-hexdump.o mod-hexdump.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| hexdump.mod: pre-hexdump.o mod-hexdump.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-hexdump.o mod-hexdump.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-hexdump.o: $(hexdump_mod_DEPENDENCIES) hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o |
| -rm -f $@ |
| $(TARGET_CC) $(hexdump_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ hexdump_mod-commands_hexdump.o hexdump_mod-lib_hexdump.o |
| |
| mod-hexdump.o: mod-hexdump.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -c -o $@ $< |
| |
| mod-hexdump.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'hexdump' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(hexdump_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-hexdump.lst: pre-hexdump.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 hexdump/' > $@ |
| else |
| def-hexdump.lst: pre-hexdump.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 hexdump/' > $@ |
| endif |
| endif |
| |
| und-hexdump.lst: pre-hexdump.o |
| echo 'hexdump' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| hexdump_mod-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $< |
| -include hexdump_mod-commands_hexdump.d |
| |
| clean-module-hexdump_mod-commands_hexdump-extra.1: |
| rm -f cmd-hexdump_mod-commands_hexdump.lst fs-hexdump_mod-commands_hexdump.lst partmap-hexdump_mod-commands_hexdump.lst handler-hexdump_mod-commands_hexdump.lst parttool-hexdump_mod-commands_hexdump.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hexdump_mod-commands_hexdump-extra.1 |
| |
| COMMANDFILES += cmd-hexdump_mod-commands_hexdump.lst |
| FSFILES += fs-hexdump_mod-commands_hexdump.lst |
| PARTTOOLFILES += parttool-hexdump_mod-commands_hexdump.lst |
| PARTMAPFILES += partmap-hexdump_mod-commands_hexdump.lst |
| HANDLERFILES += handler-hexdump_mod-commands_hexdump.lst |
| |
| cmd-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh hexdump > $@ || (rm -f $@; exit 1) |
| |
| partmap-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-hexdump_mod-commands_hexdump.lst: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh hexdump > $@ || (rm -f $@; exit 1) |
| |
| hexdump_mod-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) |
| $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -MD -c -o $@ $< |
| -include hexdump_mod-lib_hexdump.d |
| |
| clean-module-hexdump_mod-lib_hexdump-extra.1: |
| rm -f cmd-hexdump_mod-lib_hexdump.lst fs-hexdump_mod-lib_hexdump.lst partmap-hexdump_mod-lib_hexdump.lst handler-hexdump_mod-lib_hexdump.lst parttool-hexdump_mod-lib_hexdump.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-hexdump_mod-lib_hexdump-extra.1 |
| |
| COMMANDFILES += cmd-hexdump_mod-lib_hexdump.lst |
| FSFILES += fs-hexdump_mod-lib_hexdump.lst |
| PARTTOOLFILES += parttool-hexdump_mod-lib_hexdump.lst |
| PARTMAPFILES += partmap-hexdump_mod-lib_hexdump.lst |
| HANDLERFILES += handler-hexdump_mod-lib_hexdump.lst |
| |
| cmd-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh hexdump > $@ || (rm -f $@; exit 1) |
| |
| partmap-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-hexdump_mod-lib_hexdump.lst: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(hexdump_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh hexdump > $@ || (rm -f $@; exit 1) |
| |
| hexdump_mod_CFLAGS = $(COMMON_CFLAGS) |
| hexdump_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For read.mod. |
| read_mod_SOURCES = commands/read.c |
| |
| clean-module-read.mod.1: |
| rm -f read.mod mod-read.o mod-read.c pre-read.o read_mod-commands_read.o und-read.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-read.mod.1 |
| |
| ifneq ($(read_mod_EXPORTS),no) |
| clean-module-read.mod-symbol.1: |
| rm -f def-read.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-read.mod-symbol.1 |
| DEFSYMFILES += def-read.lst |
| endif |
| mostlyclean-module-read.mod.1: |
| rm -f read_mod-commands_read.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-read.mod.1 |
| UNDSYMFILES += und-read.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| read.mod: pre-read.o mod-read.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-read.o mod-read.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| read.mod: pre-read.o mod-read.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-read.o mod-read.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-read.o: $(read_mod_DEPENDENCIES) read_mod-commands_read.o |
| -rm -f $@ |
| $(TARGET_CC) $(read_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ read_mod-commands_read.o |
| |
| mod-read.o: mod-read.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -c -o $@ $< |
| |
| mod-read.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'read' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(read_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-read.lst: pre-read.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 read/' > $@ |
| else |
| def-read.lst: pre-read.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 read/' > $@ |
| endif |
| endif |
| |
| und-read.lst: pre-read.o |
| echo 'read' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| read_mod-commands_read.o: commands/read.c $(commands/read.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -MD -c -o $@ $< |
| -include read_mod-commands_read.d |
| |
| clean-module-read_mod-commands_read-extra.1: |
| rm -f cmd-read_mod-commands_read.lst fs-read_mod-commands_read.lst partmap-read_mod-commands_read.lst handler-read_mod-commands_read.lst parttool-read_mod-commands_read.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-read_mod-commands_read-extra.1 |
| |
| COMMANDFILES += cmd-read_mod-commands_read.lst |
| FSFILES += fs-read_mod-commands_read.lst |
| PARTTOOLFILES += parttool-read_mod-commands_read.lst |
| PARTMAPFILES += partmap-read_mod-commands_read.lst |
| HANDLERFILES += handler-read_mod-commands_read.lst |
| |
| cmd-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh read > $@ || (rm -f $@; exit 1) |
| |
| partmap-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-read_mod-commands_read.lst: commands/read.c $(commands/read.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(read_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh read > $@ || (rm -f $@; exit 1) |
| |
| read_mod_CFLAGS = $(COMMON_CFLAGS) |
| read_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For sleep.mod. |
| sleep_mod_SOURCES = commands/sleep.c |
| |
| clean-module-sleep.mod.1: |
| rm -f sleep.mod mod-sleep.o mod-sleep.c pre-sleep.o sleep_mod-commands_sleep.o und-sleep.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sleep.mod.1 |
| |
| ifneq ($(sleep_mod_EXPORTS),no) |
| clean-module-sleep.mod-symbol.1: |
| rm -f def-sleep.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sleep.mod-symbol.1 |
| DEFSYMFILES += def-sleep.lst |
| endif |
| mostlyclean-module-sleep.mod.1: |
| rm -f sleep_mod-commands_sleep.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-sleep.mod.1 |
| UNDSYMFILES += und-sleep.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| sleep.mod: pre-sleep.o mod-sleep.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-sleep.o mod-sleep.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| sleep.mod: pre-sleep.o mod-sleep.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-sleep.o mod-sleep.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-sleep.o: $(sleep_mod_DEPENDENCIES) sleep_mod-commands_sleep.o |
| -rm -f $@ |
| $(TARGET_CC) $(sleep_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sleep_mod-commands_sleep.o |
| |
| mod-sleep.o: mod-sleep.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -c -o $@ $< |
| |
| mod-sleep.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'sleep' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(sleep_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-sleep.lst: pre-sleep.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sleep/' > $@ |
| else |
| def-sleep.lst: pre-sleep.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 sleep/' > $@ |
| endif |
| endif |
| |
| und-sleep.lst: pre-sleep.o |
| echo 'sleep' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| sleep_mod-commands_sleep.o: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -MD -c -o $@ $< |
| -include sleep_mod-commands_sleep.d |
| |
| clean-module-sleep_mod-commands_sleep-extra.1: |
| rm -f cmd-sleep_mod-commands_sleep.lst fs-sleep_mod-commands_sleep.lst partmap-sleep_mod-commands_sleep.lst handler-sleep_mod-commands_sleep.lst parttool-sleep_mod-commands_sleep.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sleep_mod-commands_sleep-extra.1 |
| |
| COMMANDFILES += cmd-sleep_mod-commands_sleep.lst |
| FSFILES += fs-sleep_mod-commands_sleep.lst |
| PARTTOOLFILES += parttool-sleep_mod-commands_sleep.lst |
| PARTMAPFILES += partmap-sleep_mod-commands_sleep.lst |
| HANDLERFILES += handler-sleep_mod-commands_sleep.lst |
| |
| cmd-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sleep > $@ || (rm -f $@; exit 1) |
| |
| partmap-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-sleep_mod-commands_sleep.lst: commands/sleep.c $(commands/sleep.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sleep_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sleep > $@ || (rm -f $@; exit 1) |
| |
| sleep_mod_CFLAGS = $(COMMON_CFLAGS) |
| sleep_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For loadenv.mod. |
| loadenv_mod_SOURCES = commands/loadenv.c lib/envblk.c |
| |
| clean-module-loadenv.mod.1: |
| rm -f loadenv.mod mod-loadenv.o mod-loadenv.c pre-loadenv.o loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o und-loadenv.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loadenv.mod.1 |
| |
| ifneq ($(loadenv_mod_EXPORTS),no) |
| clean-module-loadenv.mod-symbol.1: |
| rm -f def-loadenv.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loadenv.mod-symbol.1 |
| DEFSYMFILES += def-loadenv.lst |
| endif |
| mostlyclean-module-loadenv.mod.1: |
| rm -f loadenv_mod-commands_loadenv.d loadenv_mod-lib_envblk.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-loadenv.mod.1 |
| UNDSYMFILES += und-loadenv.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| loadenv.mod: pre-loadenv.o mod-loadenv.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-loadenv.o mod-loadenv.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| loadenv.mod: pre-loadenv.o mod-loadenv.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-loadenv.o mod-loadenv.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-loadenv.o: $(loadenv_mod_DEPENDENCIES) loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o |
| -rm -f $@ |
| $(TARGET_CC) $(loadenv_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ loadenv_mod-commands_loadenv.o loadenv_mod-lib_envblk.o |
| |
| mod-loadenv.o: mod-loadenv.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -c -o $@ $< |
| |
| mod-loadenv.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'loadenv' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(loadenv_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-loadenv.lst: pre-loadenv.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 loadenv/' > $@ |
| else |
| def-loadenv.lst: pre-loadenv.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 loadenv/' > $@ |
| endif |
| endif |
| |
| und-loadenv.lst: pre-loadenv.o |
| echo 'loadenv' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| loadenv_mod-commands_loadenv.o: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $< |
| -include loadenv_mod-commands_loadenv.d |
| |
| clean-module-loadenv_mod-commands_loadenv-extra.1: |
| rm -f cmd-loadenv_mod-commands_loadenv.lst fs-loadenv_mod-commands_loadenv.lst partmap-loadenv_mod-commands_loadenv.lst handler-loadenv_mod-commands_loadenv.lst parttool-loadenv_mod-commands_loadenv.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loadenv_mod-commands_loadenv-extra.1 |
| |
| COMMANDFILES += cmd-loadenv_mod-commands_loadenv.lst |
| FSFILES += fs-loadenv_mod-commands_loadenv.lst |
| PARTTOOLFILES += parttool-loadenv_mod-commands_loadenv.lst |
| PARTMAPFILES += partmap-loadenv_mod-commands_loadenv.lst |
| HANDLERFILES += handler-loadenv_mod-commands_loadenv.lst |
| |
| cmd-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh loadenv > $@ || (rm -f $@; exit 1) |
| |
| partmap-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-loadenv_mod-commands_loadenv.lst: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh loadenv > $@ || (rm -f $@; exit 1) |
| |
| loadenv_mod-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) |
| $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -MD -c -o $@ $< |
| -include loadenv_mod-lib_envblk.d |
| |
| clean-module-loadenv_mod-lib_envblk-extra.1: |
| rm -f cmd-loadenv_mod-lib_envblk.lst fs-loadenv_mod-lib_envblk.lst partmap-loadenv_mod-lib_envblk.lst handler-loadenv_mod-lib_envblk.lst parttool-loadenv_mod-lib_envblk.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-loadenv_mod-lib_envblk-extra.1 |
| |
| COMMANDFILES += cmd-loadenv_mod-lib_envblk.lst |
| FSFILES += fs-loadenv_mod-lib_envblk.lst |
| PARTTOOLFILES += parttool-loadenv_mod-lib_envblk.lst |
| PARTMAPFILES += partmap-loadenv_mod-lib_envblk.lst |
| HANDLERFILES += handler-loadenv_mod-lib_envblk.lst |
| |
| cmd-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh loadenv > $@ || (rm -f $@; exit 1) |
| |
| partmap-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-loadenv_mod-lib_envblk.lst: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(loadenv_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh loadenv > $@ || (rm -f $@; exit 1) |
| |
| loadenv_mod_CFLAGS = $(COMMON_CFLAGS) |
| loadenv_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For crc.mod. |
| crc_mod_SOURCES = commands/crc.c lib/crc.c |
| |
| clean-module-crc.mod.1: |
| rm -f crc.mod mod-crc.o mod-crc.c pre-crc.o crc_mod-commands_crc.o crc_mod-lib_crc.o und-crc.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-crc.mod.1 |
| |
| ifneq ($(crc_mod_EXPORTS),no) |
| clean-module-crc.mod-symbol.1: |
| rm -f def-crc.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-crc.mod-symbol.1 |
| DEFSYMFILES += def-crc.lst |
| endif |
| mostlyclean-module-crc.mod.1: |
| rm -f crc_mod-commands_crc.d crc_mod-lib_crc.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-crc.mod.1 |
| UNDSYMFILES += und-crc.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| crc.mod: pre-crc.o mod-crc.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-crc.o mod-crc.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| crc.mod: pre-crc.o mod-crc.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-crc.o mod-crc.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-crc.o: $(crc_mod_DEPENDENCIES) crc_mod-commands_crc.o crc_mod-lib_crc.o |
| -rm -f $@ |
| $(TARGET_CC) $(crc_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ crc_mod-commands_crc.o crc_mod-lib_crc.o |
| |
| mod-crc.o: mod-crc.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -c -o $@ $< |
| |
| mod-crc.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'crc' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(crc_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-crc.lst: pre-crc.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 crc/' > $@ |
| else |
| def-crc.lst: pre-crc.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 crc/' > $@ |
| endif |
| endif |
| |
| und-crc.lst: pre-crc.o |
| echo 'crc' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| crc_mod-commands_crc.o: commands/crc.c $(commands/crc.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $< |
| -include crc_mod-commands_crc.d |
| |
| clean-module-crc_mod-commands_crc-extra.1: |
| rm -f cmd-crc_mod-commands_crc.lst fs-crc_mod-commands_crc.lst partmap-crc_mod-commands_crc.lst handler-crc_mod-commands_crc.lst parttool-crc_mod-commands_crc.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-crc_mod-commands_crc-extra.1 |
| |
| COMMANDFILES += cmd-crc_mod-commands_crc.lst |
| FSFILES += fs-crc_mod-commands_crc.lst |
| PARTTOOLFILES += parttool-crc_mod-commands_crc.lst |
| PARTMAPFILES += partmap-crc_mod-commands_crc.lst |
| HANDLERFILES += handler-crc_mod-commands_crc.lst |
| |
| cmd-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh crc > $@ || (rm -f $@; exit 1) |
| |
| partmap-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-crc_mod-commands_crc.lst: commands/crc.c $(commands/crc.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh crc > $@ || (rm -f $@; exit 1) |
| |
| crc_mod-lib_crc.o: lib/crc.c $(lib/crc.c_DEPENDENCIES) |
| $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -MD -c -o $@ $< |
| -include crc_mod-lib_crc.d |
| |
| clean-module-crc_mod-lib_crc-extra.1: |
| rm -f cmd-crc_mod-lib_crc.lst fs-crc_mod-lib_crc.lst partmap-crc_mod-lib_crc.lst handler-crc_mod-lib_crc.lst parttool-crc_mod-lib_crc.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-crc_mod-lib_crc-extra.1 |
| |
| COMMANDFILES += cmd-crc_mod-lib_crc.lst |
| FSFILES += fs-crc_mod-lib_crc.lst |
| PARTTOOLFILES += parttool-crc_mod-lib_crc.lst |
| PARTMAPFILES += partmap-crc_mod-lib_crc.lst |
| HANDLERFILES += handler-crc_mod-lib_crc.lst |
| |
| cmd-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh crc > $@ || (rm -f $@; exit 1) |
| |
| partmap-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-crc_mod-lib_crc.lst: lib/crc.c $(lib/crc.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib -I$(srcdir)/lib $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(crc_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh crc > $@ || (rm -f $@; exit 1) |
| |
| crc_mod_CFLAGS = $(COMMON_CFLAGS) |
| crc_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For memrw.mod. |
| memrw_mod_SOURCES = commands/memrw.c |
| |
| clean-module-memrw.mod.1: |
| rm -f memrw.mod mod-memrw.o mod-memrw.c pre-memrw.o memrw_mod-commands_memrw.o und-memrw.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memrw.mod.1 |
| |
| ifneq ($(memrw_mod_EXPORTS),no) |
| clean-module-memrw.mod-symbol.1: |
| rm -f def-memrw.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memrw.mod-symbol.1 |
| DEFSYMFILES += def-memrw.lst |
| endif |
| mostlyclean-module-memrw.mod.1: |
| rm -f memrw_mod-commands_memrw.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-memrw.mod.1 |
| UNDSYMFILES += und-memrw.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| memrw.mod: pre-memrw.o mod-memrw.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(memrw_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-memrw.o mod-memrw.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| memrw.mod: pre-memrw.o mod-memrw.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(memrw_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-memrw.o mod-memrw.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-memrw.o: $(memrw_mod_DEPENDENCIES) memrw_mod-commands_memrw.o |
| -rm -f $@ |
| $(TARGET_CC) $(memrw_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ memrw_mod-commands_memrw.o |
| |
| mod-memrw.o: mod-memrw.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -c -o $@ $< |
| |
| mod-memrw.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'memrw' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(memrw_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-memrw.lst: pre-memrw.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 memrw/' > $@ |
| else |
| def-memrw.lst: pre-memrw.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 memrw/' > $@ |
| endif |
| endif |
| |
| und-memrw.lst: pre-memrw.o |
| echo 'memrw' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| memrw_mod-commands_memrw.o: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -MD -c -o $@ $< |
| -include memrw_mod-commands_memrw.d |
| |
| clean-module-memrw_mod-commands_memrw-extra.1: |
| rm -f cmd-memrw_mod-commands_memrw.lst fs-memrw_mod-commands_memrw.lst partmap-memrw_mod-commands_memrw.lst handler-memrw_mod-commands_memrw.lst parttool-memrw_mod-commands_memrw.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memrw_mod-commands_memrw-extra.1 |
| |
| COMMANDFILES += cmd-memrw_mod-commands_memrw.lst |
| FSFILES += fs-memrw_mod-commands_memrw.lst |
| PARTTOOLFILES += parttool-memrw_mod-commands_memrw.lst |
| PARTMAPFILES += partmap-memrw_mod-commands_memrw.lst |
| HANDLERFILES += handler-memrw_mod-commands_memrw.lst |
| |
| cmd-memrw_mod-commands_memrw.lst: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh memrw > $@ || (rm -f $@; exit 1) |
| |
| fs-memrw_mod-commands_memrw.lst: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh memrw > $@ || (rm -f $@; exit 1) |
| |
| parttool-memrw_mod-commands_memrw.lst: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh memrw > $@ || (rm -f $@; exit 1) |
| |
| partmap-memrw_mod-commands_memrw.lst: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh memrw > $@ || (rm -f $@; exit 1) |
| |
| handler-memrw_mod-commands_memrw.lst: commands/memrw.c $(commands/memrw.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memrw_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh memrw > $@ || (rm -f $@; exit 1) |
| |
| memrw_mod_CFLAGS = $(COMMON_CFLAGS) |
| memrw_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For true.mod |
| true_mod_SOURCES = commands/true.c |
| |
| clean-module-true.mod.1: |
| rm -f true.mod mod-true.o mod-true.c pre-true.o true_mod-commands_true.o und-true.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-true.mod.1 |
| |
| ifneq ($(true_mod_EXPORTS),no) |
| clean-module-true.mod-symbol.1: |
| rm -f def-true.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-true.mod-symbol.1 |
| DEFSYMFILES += def-true.lst |
| endif |
| mostlyclean-module-true.mod.1: |
| rm -f true_mod-commands_true.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-true.mod.1 |
| UNDSYMFILES += und-true.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| true.mod: pre-true.o mod-true.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(true_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-true.o mod-true.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| true.mod: pre-true.o mod-true.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(true_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-true.o mod-true.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-true.o: $(true_mod_DEPENDENCIES) true_mod-commands_true.o |
| -rm -f $@ |
| $(TARGET_CC) $(true_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ true_mod-commands_true.o |
| |
| mod-true.o: mod-true.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -c -o $@ $< |
| |
| mod-true.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'true' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(true_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-true.lst: pre-true.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 true/' > $@ |
| else |
| def-true.lst: pre-true.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 true/' > $@ |
| endif |
| endif |
| |
| und-true.lst: pre-true.o |
| echo 'true' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| true_mod-commands_true.o: commands/true.c $(commands/true.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -MD -c -o $@ $< |
| -include true_mod-commands_true.d |
| |
| clean-module-true_mod-commands_true-extra.1: |
| rm -f cmd-true_mod-commands_true.lst fs-true_mod-commands_true.lst partmap-true_mod-commands_true.lst handler-true_mod-commands_true.lst parttool-true_mod-commands_true.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-true_mod-commands_true-extra.1 |
| |
| COMMANDFILES += cmd-true_mod-commands_true.lst |
| FSFILES += fs-true_mod-commands_true.lst |
| PARTTOOLFILES += parttool-true_mod-commands_true.lst |
| PARTMAPFILES += partmap-true_mod-commands_true.lst |
| HANDLERFILES += handler-true_mod-commands_true.lst |
| |
| cmd-true_mod-commands_true.lst: commands/true.c $(commands/true.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh true > $@ || (rm -f $@; exit 1) |
| |
| fs-true_mod-commands_true.lst: commands/true.c $(commands/true.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh true > $@ || (rm -f $@; exit 1) |
| |
| parttool-true_mod-commands_true.lst: commands/true.c $(commands/true.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh true > $@ || (rm -f $@; exit 1) |
| |
| partmap-true_mod-commands_true.lst: commands/true.c $(commands/true.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh true > $@ || (rm -f $@; exit 1) |
| |
| handler-true_mod-commands_true.lst: commands/true.c $(commands/true.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(true_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh true > $@ || (rm -f $@; exit 1) |
| |
| true_mod_CFLAGS = $(COMMON_CFLAGS) |
| true_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For probe.mod. |
| probe_mod_SOURCES = commands/probe.c |
| |
| clean-module-probe.mod.1: |
| rm -f probe.mod mod-probe.o mod-probe.c pre-probe.o probe_mod-commands_probe.o und-probe.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-probe.mod.1 |
| |
| ifneq ($(probe_mod_EXPORTS),no) |
| clean-module-probe.mod-symbol.1: |
| rm -f def-probe.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-probe.mod-symbol.1 |
| DEFSYMFILES += def-probe.lst |
| endif |
| mostlyclean-module-probe.mod.1: |
| rm -f probe_mod-commands_probe.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-probe.mod.1 |
| UNDSYMFILES += und-probe.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| probe.mod: pre-probe.o mod-probe.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(probe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-probe.o mod-probe.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| probe.mod: pre-probe.o mod-probe.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(probe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-probe.o mod-probe.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-probe.o: $(probe_mod_DEPENDENCIES) probe_mod-commands_probe.o |
| -rm -f $@ |
| $(TARGET_CC) $(probe_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ probe_mod-commands_probe.o |
| |
| mod-probe.o: mod-probe.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -c -o $@ $< |
| |
| mod-probe.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'probe' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(probe_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-probe.lst: pre-probe.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 probe/' > $@ |
| else |
| def-probe.lst: pre-probe.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 probe/' > $@ |
| endif |
| endif |
| |
| und-probe.lst: pre-probe.o |
| echo 'probe' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| probe_mod-commands_probe.o: commands/probe.c $(commands/probe.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -MD -c -o $@ $< |
| -include probe_mod-commands_probe.d |
| |
| clean-module-probe_mod-commands_probe-extra.1: |
| rm -f cmd-probe_mod-commands_probe.lst fs-probe_mod-commands_probe.lst partmap-probe_mod-commands_probe.lst handler-probe_mod-commands_probe.lst parttool-probe_mod-commands_probe.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-probe_mod-commands_probe-extra.1 |
| |
| COMMANDFILES += cmd-probe_mod-commands_probe.lst |
| FSFILES += fs-probe_mod-commands_probe.lst |
| PARTTOOLFILES += parttool-probe_mod-commands_probe.lst |
| PARTMAPFILES += partmap-probe_mod-commands_probe.lst |
| HANDLERFILES += handler-probe_mod-commands_probe.lst |
| |
| cmd-probe_mod-commands_probe.lst: commands/probe.c $(commands/probe.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh probe > $@ || (rm -f $@; exit 1) |
| |
| fs-probe_mod-commands_probe.lst: commands/probe.c $(commands/probe.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh probe > $@ || (rm -f $@; exit 1) |
| |
| parttool-probe_mod-commands_probe.lst: commands/probe.c $(commands/probe.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh probe > $@ || (rm -f $@; exit 1) |
| |
| partmap-probe_mod-commands_probe.lst: commands/probe.c $(commands/probe.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh probe > $@ || (rm -f $@; exit 1) |
| |
| handler-probe_mod-commands_probe.lst: commands/probe.c $(commands/probe.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(probe_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh probe > $@ || (rm -f $@; exit 1) |
| |
| probe_mod_CFLAGS = $(COMMON_CFLAGS) |
| probe_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For keystatus.mod. |
| keystatus_mod_SOURCES = commands/keystatus.c |
| |
| clean-module-keystatus.mod.1: |
| rm -f keystatus.mod mod-keystatus.o mod-keystatus.c pre-keystatus.o keystatus_mod-commands_keystatus.o und-keystatus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-keystatus.mod.1 |
| |
| ifneq ($(keystatus_mod_EXPORTS),no) |
| clean-module-keystatus.mod-symbol.1: |
| rm -f def-keystatus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-keystatus.mod-symbol.1 |
| DEFSYMFILES += def-keystatus.lst |
| endif |
| mostlyclean-module-keystatus.mod.1: |
| rm -f keystatus_mod-commands_keystatus.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-keystatus.mod.1 |
| UNDSYMFILES += und-keystatus.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| keystatus.mod: pre-keystatus.o mod-keystatus.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(keystatus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-keystatus.o mod-keystatus.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| keystatus.mod: pre-keystatus.o mod-keystatus.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(keystatus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-keystatus.o mod-keystatus.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-keystatus.o: $(keystatus_mod_DEPENDENCIES) keystatus_mod-commands_keystatus.o |
| -rm -f $@ |
| $(TARGET_CC) $(keystatus_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ keystatus_mod-commands_keystatus.o |
| |
| mod-keystatus.o: mod-keystatus.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -c -o $@ $< |
| |
| mod-keystatus.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'keystatus' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(keystatus_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-keystatus.lst: pre-keystatus.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 keystatus/' > $@ |
| else |
| def-keystatus.lst: pre-keystatus.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 keystatus/' > $@ |
| endif |
| endif |
| |
| und-keystatus.lst: pre-keystatus.o |
| echo 'keystatus' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| keystatus_mod-commands_keystatus.o: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -MD -c -o $@ $< |
| -include keystatus_mod-commands_keystatus.d |
| |
| clean-module-keystatus_mod-commands_keystatus-extra.1: |
| rm -f cmd-keystatus_mod-commands_keystatus.lst fs-keystatus_mod-commands_keystatus.lst partmap-keystatus_mod-commands_keystatus.lst handler-keystatus_mod-commands_keystatus.lst parttool-keystatus_mod-commands_keystatus.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-keystatus_mod-commands_keystatus-extra.1 |
| |
| COMMANDFILES += cmd-keystatus_mod-commands_keystatus.lst |
| FSFILES += fs-keystatus_mod-commands_keystatus.lst |
| PARTTOOLFILES += parttool-keystatus_mod-commands_keystatus.lst |
| PARTMAPFILES += partmap-keystatus_mod-commands_keystatus.lst |
| HANDLERFILES += handler-keystatus_mod-commands_keystatus.lst |
| |
| cmd-keystatus_mod-commands_keystatus.lst: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh keystatus > $@ || (rm -f $@; exit 1) |
| |
| fs-keystatus_mod-commands_keystatus.lst: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh keystatus > $@ || (rm -f $@; exit 1) |
| |
| parttool-keystatus_mod-commands_keystatus.lst: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh keystatus > $@ || (rm -f $@; exit 1) |
| |
| partmap-keystatus_mod-commands_keystatus.lst: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh keystatus > $@ || (rm -f $@; exit 1) |
| |
| handler-keystatus_mod-commands_keystatus.lst: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(keystatus_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh keystatus > $@ || (rm -f $@; exit 1) |
| |
| keystatus_mod_CFLAGS = $(COMMON_CFLAGS) |
| keystatus_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For normal.mod. |
| normal_mod_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c \ |
| normal/auth.c normal/autofs.c normal/handler.c \ |
| normal/color.c normal/completion.c normal/datetime.c normal/menu.c \ |
| normal/menu_entry.c normal/menu_text.c normal/menu_viewer.c \ |
| normal/misc.c |
| |
| clean-module-normal.mod.1: |
| rm -f normal.mod mod-normal.o mod-normal.c pre-normal.o normal_mod-normal_main.o normal_mod-normal_cmdline.o normal_mod-normal_dyncmd.o normal_mod-normal_auth.o normal_mod-normal_autofs.o normal_mod-normal_handler.o normal_mod-normal_color.o normal_mod-normal_completion.o normal_mod-normal_datetime.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_menu_text.o normal_mod-normal_menu_viewer.o normal_mod-normal_misc.o und-normal.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal.mod.1 |
| |
| ifneq ($(normal_mod_EXPORTS),no) |
| clean-module-normal.mod-symbol.1: |
| rm -f def-normal.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal.mod-symbol.1 |
| DEFSYMFILES += def-normal.lst |
| endif |
| mostlyclean-module-normal.mod.1: |
| rm -f normal_mod-normal_main.d normal_mod-normal_cmdline.d normal_mod-normal_dyncmd.d normal_mod-normal_auth.d normal_mod-normal_autofs.d normal_mod-normal_handler.d normal_mod-normal_color.d normal_mod-normal_completion.d normal_mod-normal_datetime.d normal_mod-normal_menu.d normal_mod-normal_menu_entry.d normal_mod-normal_menu_text.d normal_mod-normal_menu_viewer.d normal_mod-normal_misc.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-normal.mod.1 |
| UNDSYMFILES += und-normal.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| normal.mod: pre-normal.o mod-normal.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-normal.o mod-normal.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| normal.mod: pre-normal.o mod-normal.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-normal.o mod-normal.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-normal.o: $(normal_mod_DEPENDENCIES) normal_mod-normal_main.o normal_mod-normal_cmdline.o normal_mod-normal_dyncmd.o normal_mod-normal_auth.o normal_mod-normal_autofs.o normal_mod-normal_handler.o normal_mod-normal_color.o normal_mod-normal_completion.o normal_mod-normal_datetime.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_menu_text.o normal_mod-normal_menu_viewer.o normal_mod-normal_misc.o |
| -rm -f $@ |
| $(TARGET_CC) $(normal_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ normal_mod-normal_main.o normal_mod-normal_cmdline.o normal_mod-normal_dyncmd.o normal_mod-normal_auth.o normal_mod-normal_autofs.o normal_mod-normal_handler.o normal_mod-normal_color.o normal_mod-normal_completion.o normal_mod-normal_datetime.o normal_mod-normal_menu.o normal_mod-normal_menu_entry.o normal_mod-normal_menu_text.o normal_mod-normal_menu_viewer.o normal_mod-normal_misc.o |
| |
| mod-normal.o: mod-normal.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -c -o $@ $< |
| |
| mod-normal.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'normal' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(normal_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-normal.lst: pre-normal.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 normal/' > $@ |
| else |
| def-normal.lst: pre-normal.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 normal/' > $@ |
| endif |
| endif |
| |
| und-normal.lst: pre-normal.o |
| echo 'normal' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| normal_mod-normal_main.o: normal/main.c $(normal/main.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_main.d |
| |
| clean-module-normal_mod-normal_main-extra.1: |
| rm -f cmd-normal_mod-normal_main.lst fs-normal_mod-normal_main.lst partmap-normal_mod-normal_main.lst handler-normal_mod-normal_main.lst parttool-normal_mod-normal_main.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_main-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_main.lst |
| FSFILES += fs-normal_mod-normal_main.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_main.lst |
| PARTMAPFILES += partmap-normal_mod-normal_main.lst |
| HANDLERFILES += handler-normal_mod-normal_main.lst |
| |
| cmd-normal_mod-normal_main.lst: normal/main.c $(normal/main.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_main.lst: normal/main.c $(normal/main.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_main.lst: normal/main.c $(normal/main.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_main.lst: normal/main.c $(normal/main.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_main.lst: normal/main.c $(normal/main.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_cmdline.o: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_cmdline.d |
| |
| clean-module-normal_mod-normal_cmdline-extra.1: |
| rm -f cmd-normal_mod-normal_cmdline.lst fs-normal_mod-normal_cmdline.lst partmap-normal_mod-normal_cmdline.lst handler-normal_mod-normal_cmdline.lst parttool-normal_mod-normal_cmdline.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_cmdline-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_cmdline.lst |
| FSFILES += fs-normal_mod-normal_cmdline.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_cmdline.lst |
| PARTMAPFILES += partmap-normal_mod-normal_cmdline.lst |
| HANDLERFILES += handler-normal_mod-normal_cmdline.lst |
| |
| cmd-normal_mod-normal_cmdline.lst: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_cmdline.lst: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_cmdline.lst: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_cmdline.lst: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_cmdline.lst: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_dyncmd.o: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_dyncmd.d |
| |
| clean-module-normal_mod-normal_dyncmd-extra.1: |
| rm -f cmd-normal_mod-normal_dyncmd.lst fs-normal_mod-normal_dyncmd.lst partmap-normal_mod-normal_dyncmd.lst handler-normal_mod-normal_dyncmd.lst parttool-normal_mod-normal_dyncmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_dyncmd-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_dyncmd.lst |
| FSFILES += fs-normal_mod-normal_dyncmd.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_dyncmd.lst |
| PARTMAPFILES += partmap-normal_mod-normal_dyncmd.lst |
| HANDLERFILES += handler-normal_mod-normal_dyncmd.lst |
| |
| cmd-normal_mod-normal_dyncmd.lst: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_dyncmd.lst: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_dyncmd.lst: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_dyncmd.lst: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_dyncmd.lst: normal/dyncmd.c $(normal/dyncmd.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_auth.o: normal/auth.c $(normal/auth.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_auth.d |
| |
| clean-module-normal_mod-normal_auth-extra.1: |
| rm -f cmd-normal_mod-normal_auth.lst fs-normal_mod-normal_auth.lst partmap-normal_mod-normal_auth.lst handler-normal_mod-normal_auth.lst parttool-normal_mod-normal_auth.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_auth-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_auth.lst |
| FSFILES += fs-normal_mod-normal_auth.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_auth.lst |
| PARTMAPFILES += partmap-normal_mod-normal_auth.lst |
| HANDLERFILES += handler-normal_mod-normal_auth.lst |
| |
| cmd-normal_mod-normal_auth.lst: normal/auth.c $(normal/auth.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_auth.lst: normal/auth.c $(normal/auth.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_auth.lst: normal/auth.c $(normal/auth.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_auth.lst: normal/auth.c $(normal/auth.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_auth.lst: normal/auth.c $(normal/auth.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_autofs.o: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_autofs.d |
| |
| clean-module-normal_mod-normal_autofs-extra.1: |
| rm -f cmd-normal_mod-normal_autofs.lst fs-normal_mod-normal_autofs.lst partmap-normal_mod-normal_autofs.lst handler-normal_mod-normal_autofs.lst parttool-normal_mod-normal_autofs.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_autofs-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_autofs.lst |
| FSFILES += fs-normal_mod-normal_autofs.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_autofs.lst |
| PARTMAPFILES += partmap-normal_mod-normal_autofs.lst |
| HANDLERFILES += handler-normal_mod-normal_autofs.lst |
| |
| cmd-normal_mod-normal_autofs.lst: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_autofs.lst: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_autofs.lst: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_autofs.lst: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_autofs.lst: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_handler.o: normal/handler.c $(normal/handler.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_handler.d |
| |
| clean-module-normal_mod-normal_handler-extra.1: |
| rm -f cmd-normal_mod-normal_handler.lst fs-normal_mod-normal_handler.lst partmap-normal_mod-normal_handler.lst handler-normal_mod-normal_handler.lst parttool-normal_mod-normal_handler.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_handler-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_handler.lst |
| FSFILES += fs-normal_mod-normal_handler.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_handler.lst |
| PARTMAPFILES += partmap-normal_mod-normal_handler.lst |
| HANDLERFILES += handler-normal_mod-normal_handler.lst |
| |
| cmd-normal_mod-normal_handler.lst: normal/handler.c $(normal/handler.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_handler.lst: normal/handler.c $(normal/handler.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_handler.lst: normal/handler.c $(normal/handler.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_handler.lst: normal/handler.c $(normal/handler.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_handler.lst: normal/handler.c $(normal/handler.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_color.o: normal/color.c $(normal/color.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_color.d |
| |
| clean-module-normal_mod-normal_color-extra.1: |
| rm -f cmd-normal_mod-normal_color.lst fs-normal_mod-normal_color.lst partmap-normal_mod-normal_color.lst handler-normal_mod-normal_color.lst parttool-normal_mod-normal_color.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_color-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_color.lst |
| FSFILES += fs-normal_mod-normal_color.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_color.lst |
| PARTMAPFILES += partmap-normal_mod-normal_color.lst |
| HANDLERFILES += handler-normal_mod-normal_color.lst |
| |
| cmd-normal_mod-normal_color.lst: normal/color.c $(normal/color.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_color.lst: normal/color.c $(normal/color.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_color.lst: normal/color.c $(normal/color.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_color.lst: normal/color.c $(normal/color.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_color.lst: normal/color.c $(normal/color.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_completion.o: normal/completion.c $(normal/completion.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_completion.d |
| |
| clean-module-normal_mod-normal_completion-extra.1: |
| rm -f cmd-normal_mod-normal_completion.lst fs-normal_mod-normal_completion.lst partmap-normal_mod-normal_completion.lst handler-normal_mod-normal_completion.lst parttool-normal_mod-normal_completion.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_completion-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_completion.lst |
| FSFILES += fs-normal_mod-normal_completion.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_completion.lst |
| PARTMAPFILES += partmap-normal_mod-normal_completion.lst |
| HANDLERFILES += handler-normal_mod-normal_completion.lst |
| |
| cmd-normal_mod-normal_completion.lst: normal/completion.c $(normal/completion.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_completion.lst: normal/completion.c $(normal/completion.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_completion.lst: normal/completion.c $(normal/completion.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_completion.lst: normal/completion.c $(normal/completion.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_completion.lst: normal/completion.c $(normal/completion.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_datetime.o: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_datetime.d |
| |
| clean-module-normal_mod-normal_datetime-extra.1: |
| rm -f cmd-normal_mod-normal_datetime.lst fs-normal_mod-normal_datetime.lst partmap-normal_mod-normal_datetime.lst handler-normal_mod-normal_datetime.lst parttool-normal_mod-normal_datetime.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_datetime-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_datetime.lst |
| FSFILES += fs-normal_mod-normal_datetime.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_datetime.lst |
| PARTMAPFILES += partmap-normal_mod-normal_datetime.lst |
| HANDLERFILES += handler-normal_mod-normal_datetime.lst |
| |
| cmd-normal_mod-normal_datetime.lst: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_datetime.lst: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_datetime.lst: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_datetime.lst: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_datetime.lst: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_menu.o: normal/menu.c $(normal/menu.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_menu.d |
| |
| clean-module-normal_mod-normal_menu-extra.1: |
| rm -f cmd-normal_mod-normal_menu.lst fs-normal_mod-normal_menu.lst partmap-normal_mod-normal_menu.lst handler-normal_mod-normal_menu.lst parttool-normal_mod-normal_menu.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_menu-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_menu.lst |
| FSFILES += fs-normal_mod-normal_menu.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_menu.lst |
| PARTMAPFILES += partmap-normal_mod-normal_menu.lst |
| HANDLERFILES += handler-normal_mod-normal_menu.lst |
| |
| cmd-normal_mod-normal_menu.lst: normal/menu.c $(normal/menu.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_menu.lst: normal/menu.c $(normal/menu.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_menu.lst: normal/menu.c $(normal/menu.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_menu.lst: normal/menu.c $(normal/menu.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_menu.lst: normal/menu.c $(normal/menu.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_menu_entry.o: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_menu_entry.d |
| |
| clean-module-normal_mod-normal_menu_entry-extra.1: |
| rm -f cmd-normal_mod-normal_menu_entry.lst fs-normal_mod-normal_menu_entry.lst partmap-normal_mod-normal_menu_entry.lst handler-normal_mod-normal_menu_entry.lst parttool-normal_mod-normal_menu_entry.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_menu_entry-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_menu_entry.lst |
| FSFILES += fs-normal_mod-normal_menu_entry.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_menu_entry.lst |
| PARTMAPFILES += partmap-normal_mod-normal_menu_entry.lst |
| HANDLERFILES += handler-normal_mod-normal_menu_entry.lst |
| |
| cmd-normal_mod-normal_menu_entry.lst: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_menu_entry.lst: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_menu_entry.lst: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_menu_entry.lst: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_menu_entry.lst: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_menu_text.o: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_menu_text.d |
| |
| clean-module-normal_mod-normal_menu_text-extra.1: |
| rm -f cmd-normal_mod-normal_menu_text.lst fs-normal_mod-normal_menu_text.lst partmap-normal_mod-normal_menu_text.lst handler-normal_mod-normal_menu_text.lst parttool-normal_mod-normal_menu_text.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_menu_text-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_menu_text.lst |
| FSFILES += fs-normal_mod-normal_menu_text.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_menu_text.lst |
| PARTMAPFILES += partmap-normal_mod-normal_menu_text.lst |
| HANDLERFILES += handler-normal_mod-normal_menu_text.lst |
| |
| cmd-normal_mod-normal_menu_text.lst: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_menu_text.lst: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_menu_text.lst: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_menu_text.lst: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_menu_text.lst: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_menu_viewer.o: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_menu_viewer.d |
| |
| clean-module-normal_mod-normal_menu_viewer-extra.1: |
| rm -f cmd-normal_mod-normal_menu_viewer.lst fs-normal_mod-normal_menu_viewer.lst partmap-normal_mod-normal_menu_viewer.lst handler-normal_mod-normal_menu_viewer.lst parttool-normal_mod-normal_menu_viewer.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_menu_viewer-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_menu_viewer.lst |
| FSFILES += fs-normal_mod-normal_menu_viewer.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_menu_viewer.lst |
| PARTMAPFILES += partmap-normal_mod-normal_menu_viewer.lst |
| HANDLERFILES += handler-normal_mod-normal_menu_viewer.lst |
| |
| cmd-normal_mod-normal_menu_viewer.lst: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_menu_viewer.lst: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_menu_viewer.lst: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_menu_viewer.lst: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_menu_viewer.lst: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES) |
| $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -MD -c -o $@ $< |
| -include normal_mod-normal_misc.d |
| |
| clean-module-normal_mod-normal_misc-extra.1: |
| rm -f cmd-normal_mod-normal_misc.lst fs-normal_mod-normal_misc.lst partmap-normal_mod-normal_misc.lst handler-normal_mod-normal_misc.lst parttool-normal_mod-normal_misc.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-normal_mod-normal_misc-extra.1 |
| |
| COMMANDFILES += cmd-normal_mod-normal_misc.lst |
| FSFILES += fs-normal_mod-normal_misc.lst |
| PARTTOOLFILES += parttool-normal_mod-normal_misc.lst |
| PARTMAPFILES += partmap-normal_mod-normal_misc.lst |
| HANDLERFILES += handler-normal_mod-normal_misc.lst |
| |
| cmd-normal_mod-normal_misc.lst: normal/misc.c $(normal/misc.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| fs-normal_mod-normal_misc.lst: normal/misc.c $(normal/misc.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| parttool-normal_mod-normal_misc.lst: normal/misc.c $(normal/misc.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| partmap-normal_mod-normal_misc.lst: normal/misc.c $(normal/misc.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| handler-normal_mod-normal_misc.lst: normal/misc.c $(normal/misc.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Inormal -I$(srcdir)/normal $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(normal_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh normal > $@ || (rm -f $@; exit 1) |
| |
| normal_mod_CFLAGS = $(COMMON_CFLAGS) |
| normal_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For sh.mod. |
| sh_mod_SOURCES = script/sh/main.c script/sh/script.c script/sh/execute.c \ |
| script/sh/function.c script/sh/lexer.c grub_script.tab.c |
| |
| clean-module-sh.mod.1: |
| rm -f sh.mod mod-sh.o mod-sh.c pre-sh.o sh_mod-script_sh_main.o sh_mod-script_sh_script.o sh_mod-script_sh_execute.o sh_mod-script_sh_function.o sh_mod-script_sh_lexer.o sh_mod-grub_script_tab.o und-sh.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh.mod.1 |
| |
| ifneq ($(sh_mod_EXPORTS),no) |
| clean-module-sh.mod-symbol.1: |
| rm -f def-sh.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh.mod-symbol.1 |
| DEFSYMFILES += def-sh.lst |
| endif |
| mostlyclean-module-sh.mod.1: |
| rm -f sh_mod-script_sh_main.d sh_mod-script_sh_script.d sh_mod-script_sh_execute.d sh_mod-script_sh_function.d sh_mod-script_sh_lexer.d sh_mod-grub_script_tab.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-sh.mod.1 |
| UNDSYMFILES += und-sh.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| sh.mod: pre-sh.o mod-sh.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(sh_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-sh.o mod-sh.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| sh.mod: pre-sh.o mod-sh.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(sh_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-sh.o mod-sh.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-sh.o: $(sh_mod_DEPENDENCIES) sh_mod-script_sh_main.o sh_mod-script_sh_script.o sh_mod-script_sh_execute.o sh_mod-script_sh_function.o sh_mod-script_sh_lexer.o sh_mod-grub_script_tab.o |
| -rm -f $@ |
| $(TARGET_CC) $(sh_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ sh_mod-script_sh_main.o sh_mod-script_sh_script.o sh_mod-script_sh_execute.o sh_mod-script_sh_function.o sh_mod-script_sh_lexer.o sh_mod-grub_script_tab.o |
| |
| mod-sh.o: mod-sh.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -c -o $@ $< |
| |
| mod-sh.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'sh' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(sh_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-sh.lst: pre-sh.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 sh/' > $@ |
| else |
| def-sh.lst: pre-sh.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 sh/' > $@ |
| endif |
| endif |
| |
| und-sh.lst: pre-sh.o |
| echo 'sh' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| sh_mod-script_sh_main.o: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) |
| $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-script_sh_main.d |
| |
| clean-module-sh_mod-script_sh_main-extra.1: |
| rm -f cmd-sh_mod-script_sh_main.lst fs-sh_mod-script_sh_main.lst partmap-sh_mod-script_sh_main.lst handler-sh_mod-script_sh_main.lst parttool-sh_mod-script_sh_main.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-script_sh_main-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-script_sh_main.lst |
| FSFILES += fs-sh_mod-script_sh_main.lst |
| PARTTOOLFILES += parttool-sh_mod-script_sh_main.lst |
| PARTMAPFILES += partmap-sh_mod-script_sh_main.lst |
| HANDLERFILES += handler-sh_mod-script_sh_main.lst |
| |
| cmd-sh_mod-script_sh_main.lst: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-script_sh_main.lst: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-script_sh_main.lst: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-script_sh_main.lst: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-script_sh_main.lst: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod-script_sh_script.o: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) |
| $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-script_sh_script.d |
| |
| clean-module-sh_mod-script_sh_script-extra.1: |
| rm -f cmd-sh_mod-script_sh_script.lst fs-sh_mod-script_sh_script.lst partmap-sh_mod-script_sh_script.lst handler-sh_mod-script_sh_script.lst parttool-sh_mod-script_sh_script.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-script_sh_script-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-script_sh_script.lst |
| FSFILES += fs-sh_mod-script_sh_script.lst |
| PARTTOOLFILES += parttool-sh_mod-script_sh_script.lst |
| PARTMAPFILES += partmap-sh_mod-script_sh_script.lst |
| HANDLERFILES += handler-sh_mod-script_sh_script.lst |
| |
| cmd-sh_mod-script_sh_script.lst: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-script_sh_script.lst: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-script_sh_script.lst: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-script_sh_script.lst: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-script_sh_script.lst: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod-script_sh_execute.o: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) |
| $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-script_sh_execute.d |
| |
| clean-module-sh_mod-script_sh_execute-extra.1: |
| rm -f cmd-sh_mod-script_sh_execute.lst fs-sh_mod-script_sh_execute.lst partmap-sh_mod-script_sh_execute.lst handler-sh_mod-script_sh_execute.lst parttool-sh_mod-script_sh_execute.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-script_sh_execute-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-script_sh_execute.lst |
| FSFILES += fs-sh_mod-script_sh_execute.lst |
| PARTTOOLFILES += parttool-sh_mod-script_sh_execute.lst |
| PARTMAPFILES += partmap-sh_mod-script_sh_execute.lst |
| HANDLERFILES += handler-sh_mod-script_sh_execute.lst |
| |
| cmd-sh_mod-script_sh_execute.lst: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-script_sh_execute.lst: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-script_sh_execute.lst: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-script_sh_execute.lst: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-script_sh_execute.lst: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod-script_sh_function.o: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) |
| $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-script_sh_function.d |
| |
| clean-module-sh_mod-script_sh_function-extra.1: |
| rm -f cmd-sh_mod-script_sh_function.lst fs-sh_mod-script_sh_function.lst partmap-sh_mod-script_sh_function.lst handler-sh_mod-script_sh_function.lst parttool-sh_mod-script_sh_function.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-script_sh_function-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-script_sh_function.lst |
| FSFILES += fs-sh_mod-script_sh_function.lst |
| PARTTOOLFILES += parttool-sh_mod-script_sh_function.lst |
| PARTMAPFILES += partmap-sh_mod-script_sh_function.lst |
| HANDLERFILES += handler-sh_mod-script_sh_function.lst |
| |
| cmd-sh_mod-script_sh_function.lst: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-script_sh_function.lst: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-script_sh_function.lst: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-script_sh_function.lst: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-script_sh_function.lst: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod-script_sh_lexer.o: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) |
| $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-script_sh_lexer.d |
| |
| clean-module-sh_mod-script_sh_lexer-extra.1: |
| rm -f cmd-sh_mod-script_sh_lexer.lst fs-sh_mod-script_sh_lexer.lst partmap-sh_mod-script_sh_lexer.lst handler-sh_mod-script_sh_lexer.lst parttool-sh_mod-script_sh_lexer.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-script_sh_lexer-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-script_sh_lexer.lst |
| FSFILES += fs-sh_mod-script_sh_lexer.lst |
| PARTTOOLFILES += parttool-sh_mod-script_sh_lexer.lst |
| PARTMAPFILES += partmap-sh_mod-script_sh_lexer.lst |
| HANDLERFILES += handler-sh_mod-script_sh_lexer.lst |
| |
| cmd-sh_mod-script_sh_lexer.lst: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-script_sh_lexer.lst: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-script_sh_lexer.lst: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-script_sh_lexer.lst: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-script_sh_lexer.lst: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iscript/sh -I$(srcdir)/script/sh $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod-grub_script_tab.o: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) |
| $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -MD -c -o $@ $< |
| -include sh_mod-grub_script_tab.d |
| |
| clean-module-sh_mod-grub_script_tab-extra.1: |
| rm -f cmd-sh_mod-grub_script_tab.lst fs-sh_mod-grub_script_tab.lst partmap-sh_mod-grub_script_tab.lst handler-sh_mod-grub_script_tab.lst parttool-sh_mod-grub_script_tab.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-sh_mod-grub_script_tab-extra.1 |
| |
| COMMANDFILES += cmd-sh_mod-grub_script_tab.lst |
| FSFILES += fs-sh_mod-grub_script_tab.lst |
| PARTTOOLFILES += parttool-sh_mod-grub_script_tab.lst |
| PARTMAPFILES += partmap-sh_mod-grub_script_tab.lst |
| HANDLERFILES += handler-sh_mod-grub_script_tab.lst |
| |
| cmd-sh_mod-grub_script_tab.lst: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| fs-sh_mod-grub_script_tab.lst: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| parttool-sh_mod-grub_script_tab.lst: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| partmap-sh_mod-grub_script_tab.lst: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| handler-sh_mod-grub_script_tab.lst: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(sh_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh sh > $@ || (rm -f $@; exit 1) |
| |
| sh_mod_CFLAGS = $(COMMON_CFLAGS) |
| sh_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Common Video Subsystem specific modules. |
| pkglib_MODULES += video.mod videotest.mod bitmap.mod tga.mod jpeg.mod \ |
| png.mod font.mod gfxterm.mod video_fb.mod |
| |
| # For video.mod. |
| video_mod_SOURCES = video/video.c |
| |
| clean-module-video.mod.1: |
| rm -f video.mod mod-video.o mod-video.c pre-video.o video_mod-video_video.o und-video.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video.mod.1 |
| |
| ifneq ($(video_mod_EXPORTS),no) |
| clean-module-video.mod-symbol.1: |
| rm -f def-video.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video.mod-symbol.1 |
| DEFSYMFILES += def-video.lst |
| endif |
| mostlyclean-module-video.mod.1: |
| rm -f video_mod-video_video.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-video.mod.1 |
| UNDSYMFILES += und-video.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| video.mod: pre-video.o mod-video.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-video.o mod-video.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| video.mod: pre-video.o mod-video.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-video.o mod-video.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-video.o: $(video_mod_DEPENDENCIES) video_mod-video_video.o |
| -rm -f $@ |
| $(TARGET_CC) $(video_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ video_mod-video_video.o |
| |
| mod-video.o: mod-video.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -c -o $@ $< |
| |
| mod-video.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'video' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(video_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-video.lst: pre-video.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 video/' > $@ |
| else |
| def-video.lst: pre-video.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 video/' > $@ |
| endif |
| endif |
| |
| und-video.lst: pre-video.o |
| echo 'video' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| video_mod-video_video.o: video/video.c $(video/video.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -MD -c -o $@ $< |
| -include video_mod-video_video.d |
| |
| clean-module-video_mod-video_video-extra.1: |
| rm -f cmd-video_mod-video_video.lst fs-video_mod-video_video.lst partmap-video_mod-video_video.lst handler-video_mod-video_video.lst parttool-video_mod-video_video.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_mod-video_video-extra.1 |
| |
| COMMANDFILES += cmd-video_mod-video_video.lst |
| FSFILES += fs-video_mod-video_video.lst |
| PARTTOOLFILES += parttool-video_mod-video_video.lst |
| PARTMAPFILES += partmap-video_mod-video_video.lst |
| HANDLERFILES += handler-video_mod-video_video.lst |
| |
| cmd-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video > $@ || (rm -f $@; exit 1) |
| |
| fs-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video > $@ || (rm -f $@; exit 1) |
| |
| parttool-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh video > $@ || (rm -f $@; exit 1) |
| |
| partmap-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh video > $@ || (rm -f $@; exit 1) |
| |
| handler-video_mod-video_video.lst: video/video.c $(video/video.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh video > $@ || (rm -f $@; exit 1) |
| |
| video_mod_CFLAGS = $(COMMON_CFLAGS) |
| video_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| video_fb_mod_SOURCES = video/fb/video_fb.c video/fb/fbblit.c \ |
| video/fb/fbfill.c video/fb/fbutil.c |
| |
| clean-module-video_fb.mod.1: |
| rm -f video_fb.mod mod-video_fb.o mod-video_fb.c pre-video_fb.o video_fb_mod-video_fb_video_fb.o video_fb_mod-video_fb_fbblit.o video_fb_mod-video_fb_fbfill.o video_fb_mod-video_fb_fbutil.o und-video_fb.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb.mod.1 |
| |
| ifneq ($(video_fb_mod_EXPORTS),no) |
| clean-module-video_fb.mod-symbol.1: |
| rm -f def-video_fb.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb.mod-symbol.1 |
| DEFSYMFILES += def-video_fb.lst |
| endif |
| mostlyclean-module-video_fb.mod.1: |
| rm -f video_fb_mod-video_fb_video_fb.d video_fb_mod-video_fb_fbblit.d video_fb_mod-video_fb_fbfill.d video_fb_mod-video_fb_fbutil.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-video_fb.mod.1 |
| UNDSYMFILES += und-video_fb.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| video_fb.mod: pre-video_fb.o mod-video_fb.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(video_fb_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-video_fb.o mod-video_fb.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| video_fb.mod: pre-video_fb.o mod-video_fb.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(video_fb_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-video_fb.o mod-video_fb.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-video_fb.o: $(video_fb_mod_DEPENDENCIES) video_fb_mod-video_fb_video_fb.o video_fb_mod-video_fb_fbblit.o video_fb_mod-video_fb_fbfill.o video_fb_mod-video_fb_fbutil.o |
| -rm -f $@ |
| $(TARGET_CC) $(video_fb_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ video_fb_mod-video_fb_video_fb.o video_fb_mod-video_fb_fbblit.o video_fb_mod-video_fb_fbfill.o video_fb_mod-video_fb_fbutil.o |
| |
| mod-video_fb.o: mod-video_fb.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -c -o $@ $< |
| |
| mod-video_fb.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'video_fb' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(video_fb_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-video_fb.lst: pre-video_fb.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 video_fb/' > $@ |
| else |
| def-video_fb.lst: pre-video_fb.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 video_fb/' > $@ |
| endif |
| endif |
| |
| und-video_fb.lst: pre-video_fb.o |
| echo 'video_fb' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| video_fb_mod-video_fb_video_fb.o: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -MD -c -o $@ $< |
| -include video_fb_mod-video_fb_video_fb.d |
| |
| clean-module-video_fb_mod-video_fb_video_fb-extra.1: |
| rm -f cmd-video_fb_mod-video_fb_video_fb.lst fs-video_fb_mod-video_fb_video_fb.lst partmap-video_fb_mod-video_fb_video_fb.lst handler-video_fb_mod-video_fb_video_fb.lst parttool-video_fb_mod-video_fb_video_fb.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb_mod-video_fb_video_fb-extra.1 |
| |
| COMMANDFILES += cmd-video_fb_mod-video_fb_video_fb.lst |
| FSFILES += fs-video_fb_mod-video_fb_video_fb.lst |
| PARTTOOLFILES += parttool-video_fb_mod-video_fb_video_fb.lst |
| PARTMAPFILES += partmap-video_fb_mod-video_fb_video_fb.lst |
| HANDLERFILES += handler-video_fb_mod-video_fb_video_fb.lst |
| |
| cmd-video_fb_mod-video_fb_video_fb.lst: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| fs-video_fb_mod-video_fb_video_fb.lst: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| parttool-video_fb_mod-video_fb_video_fb.lst: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| partmap-video_fb_mod-video_fb_video_fb.lst: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| handler-video_fb_mod-video_fb_video_fb.lst: video/fb/video_fb.c $(video/fb/video_fb.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| video_fb_mod-video_fb_fbblit.o: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -MD -c -o $@ $< |
| -include video_fb_mod-video_fb_fbblit.d |
| |
| clean-module-video_fb_mod-video_fb_fbblit-extra.1: |
| rm -f cmd-video_fb_mod-video_fb_fbblit.lst fs-video_fb_mod-video_fb_fbblit.lst partmap-video_fb_mod-video_fb_fbblit.lst handler-video_fb_mod-video_fb_fbblit.lst parttool-video_fb_mod-video_fb_fbblit.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb_mod-video_fb_fbblit-extra.1 |
| |
| COMMANDFILES += cmd-video_fb_mod-video_fb_fbblit.lst |
| FSFILES += fs-video_fb_mod-video_fb_fbblit.lst |
| PARTTOOLFILES += parttool-video_fb_mod-video_fb_fbblit.lst |
| PARTMAPFILES += partmap-video_fb_mod-video_fb_fbblit.lst |
| HANDLERFILES += handler-video_fb_mod-video_fb_fbblit.lst |
| |
| cmd-video_fb_mod-video_fb_fbblit.lst: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| fs-video_fb_mod-video_fb_fbblit.lst: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| parttool-video_fb_mod-video_fb_fbblit.lst: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| partmap-video_fb_mod-video_fb_fbblit.lst: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| handler-video_fb_mod-video_fb_fbblit.lst: video/fb/fbblit.c $(video/fb/fbblit.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| video_fb_mod-video_fb_fbfill.o: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -MD -c -o $@ $< |
| -include video_fb_mod-video_fb_fbfill.d |
| |
| clean-module-video_fb_mod-video_fb_fbfill-extra.1: |
| rm -f cmd-video_fb_mod-video_fb_fbfill.lst fs-video_fb_mod-video_fb_fbfill.lst partmap-video_fb_mod-video_fb_fbfill.lst handler-video_fb_mod-video_fb_fbfill.lst parttool-video_fb_mod-video_fb_fbfill.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb_mod-video_fb_fbfill-extra.1 |
| |
| COMMANDFILES += cmd-video_fb_mod-video_fb_fbfill.lst |
| FSFILES += fs-video_fb_mod-video_fb_fbfill.lst |
| PARTTOOLFILES += parttool-video_fb_mod-video_fb_fbfill.lst |
| PARTMAPFILES += partmap-video_fb_mod-video_fb_fbfill.lst |
| HANDLERFILES += handler-video_fb_mod-video_fb_fbfill.lst |
| |
| cmd-video_fb_mod-video_fb_fbfill.lst: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| fs-video_fb_mod-video_fb_fbfill.lst: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| parttool-video_fb_mod-video_fb_fbfill.lst: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| partmap-video_fb_mod-video_fb_fbfill.lst: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| handler-video_fb_mod-video_fb_fbfill.lst: video/fb/fbfill.c $(video/fb/fbfill.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| video_fb_mod-video_fb_fbutil.o: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -MD -c -o $@ $< |
| -include video_fb_mod-video_fb_fbutil.d |
| |
| clean-module-video_fb_mod-video_fb_fbutil-extra.1: |
| rm -f cmd-video_fb_mod-video_fb_fbutil.lst fs-video_fb_mod-video_fb_fbutil.lst partmap-video_fb_mod-video_fb_fbutil.lst handler-video_fb_mod-video_fb_fbutil.lst parttool-video_fb_mod-video_fb_fbutil.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-video_fb_mod-video_fb_fbutil-extra.1 |
| |
| COMMANDFILES += cmd-video_fb_mod-video_fb_fbutil.lst |
| FSFILES += fs-video_fb_mod-video_fb_fbutil.lst |
| PARTTOOLFILES += parttool-video_fb_mod-video_fb_fbutil.lst |
| PARTMAPFILES += partmap-video_fb_mod-video_fb_fbutil.lst |
| HANDLERFILES += handler-video_fb_mod-video_fb_fbutil.lst |
| |
| cmd-video_fb_mod-video_fb_fbutil.lst: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| fs-video_fb_mod-video_fb_fbutil.lst: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| parttool-video_fb_mod-video_fb_fbutil.lst: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| partmap-video_fb_mod-video_fb_fbutil.lst: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| handler-video_fb_mod-video_fb_fbutil.lst: video/fb/fbutil.c $(video/fb/fbutil.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/fb -I$(srcdir)/video/fb $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(video_fb_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh video_fb > $@ || (rm -f $@; exit 1) |
| |
| video_fb_mod_CFLAGS = $(COMMON_CFLAGS) |
| video_fb_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For videotest.mod. |
| videotest_mod_SOURCES = commands/videotest.c |
| |
| clean-module-videotest.mod.1: |
| rm -f videotest.mod mod-videotest.o mod-videotest.c pre-videotest.o videotest_mod-commands_videotest.o und-videotest.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-videotest.mod.1 |
| |
| ifneq ($(videotest_mod_EXPORTS),no) |
| clean-module-videotest.mod-symbol.1: |
| rm -f def-videotest.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-videotest.mod-symbol.1 |
| DEFSYMFILES += def-videotest.lst |
| endif |
| mostlyclean-module-videotest.mod.1: |
| rm -f videotest_mod-commands_videotest.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-videotest.mod.1 |
| UNDSYMFILES += und-videotest.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| videotest.mod: pre-videotest.o mod-videotest.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-videotest.o mod-videotest.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| videotest.mod: pre-videotest.o mod-videotest.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-videotest.o mod-videotest.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-videotest.o: $(videotest_mod_DEPENDENCIES) videotest_mod-commands_videotest.o |
| -rm -f $@ |
| $(TARGET_CC) $(videotest_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ videotest_mod-commands_videotest.o |
| |
| mod-videotest.o: mod-videotest.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -c -o $@ $< |
| |
| mod-videotest.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'videotest' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(videotest_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-videotest.lst: pre-videotest.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 videotest/' > $@ |
| else |
| def-videotest.lst: pre-videotest.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 videotest/' > $@ |
| endif |
| endif |
| |
| und-videotest.lst: pre-videotest.o |
| echo 'videotest' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| videotest_mod-commands_videotest.o: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -MD -c -o $@ $< |
| -include videotest_mod-commands_videotest.d |
| |
| clean-module-videotest_mod-commands_videotest-extra.1: |
| rm -f cmd-videotest_mod-commands_videotest.lst fs-videotest_mod-commands_videotest.lst partmap-videotest_mod-commands_videotest.lst handler-videotest_mod-commands_videotest.lst parttool-videotest_mod-commands_videotest.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-videotest_mod-commands_videotest-extra.1 |
| |
| COMMANDFILES += cmd-videotest_mod-commands_videotest.lst |
| FSFILES += fs-videotest_mod-commands_videotest.lst |
| PARTTOOLFILES += parttool-videotest_mod-commands_videotest.lst |
| PARTMAPFILES += partmap-videotest_mod-commands_videotest.lst |
| HANDLERFILES += handler-videotest_mod-commands_videotest.lst |
| |
| cmd-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh videotest > $@ || (rm -f $@; exit 1) |
| |
| fs-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh videotest > $@ || (rm -f $@; exit 1) |
| |
| parttool-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh videotest > $@ || (rm -f $@; exit 1) |
| |
| partmap-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh videotest > $@ || (rm -f $@; exit 1) |
| |
| handler-videotest_mod-commands_videotest.lst: commands/videotest.c $(commands/videotest.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(videotest_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh videotest > $@ || (rm -f $@; exit 1) |
| |
| videotest_mod_CFLAGS = $(COMMON_CFLAGS) |
| videotest_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For bitmap.mod |
| bitmap_mod_SOURCES = video/bitmap.c |
| |
| clean-module-bitmap.mod.1: |
| rm -f bitmap.mod mod-bitmap.o mod-bitmap.c pre-bitmap.o bitmap_mod-video_bitmap.o und-bitmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bitmap.mod.1 |
| |
| ifneq ($(bitmap_mod_EXPORTS),no) |
| clean-module-bitmap.mod-symbol.1: |
| rm -f def-bitmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bitmap.mod-symbol.1 |
| DEFSYMFILES += def-bitmap.lst |
| endif |
| mostlyclean-module-bitmap.mod.1: |
| rm -f bitmap_mod-video_bitmap.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-bitmap.mod.1 |
| UNDSYMFILES += und-bitmap.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| bitmap.mod: pre-bitmap.o mod-bitmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-bitmap.o mod-bitmap.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| bitmap.mod: pre-bitmap.o mod-bitmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-bitmap.o mod-bitmap.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-bitmap.o: $(bitmap_mod_DEPENDENCIES) bitmap_mod-video_bitmap.o |
| -rm -f $@ |
| $(TARGET_CC) $(bitmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bitmap_mod-video_bitmap.o |
| |
| mod-bitmap.o: mod-bitmap.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -c -o $@ $< |
| |
| mod-bitmap.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'bitmap' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(bitmap_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-bitmap.lst: pre-bitmap.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bitmap/' > $@ |
| else |
| def-bitmap.lst: pre-bitmap.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 bitmap/' > $@ |
| endif |
| endif |
| |
| und-bitmap.lst: pre-bitmap.o |
| echo 'bitmap' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| bitmap_mod-video_bitmap.o: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -MD -c -o $@ $< |
| -include bitmap_mod-video_bitmap.d |
| |
| clean-module-bitmap_mod-video_bitmap-extra.1: |
| rm -f cmd-bitmap_mod-video_bitmap.lst fs-bitmap_mod-video_bitmap.lst partmap-bitmap_mod-video_bitmap.lst handler-bitmap_mod-video_bitmap.lst parttool-bitmap_mod-video_bitmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bitmap_mod-video_bitmap-extra.1 |
| |
| COMMANDFILES += cmd-bitmap_mod-video_bitmap.lst |
| FSFILES += fs-bitmap_mod-video_bitmap.lst |
| PARTTOOLFILES += parttool-bitmap_mod-video_bitmap.lst |
| PARTMAPFILES += partmap-bitmap_mod-video_bitmap.lst |
| HANDLERFILES += handler-bitmap_mod-video_bitmap.lst |
| |
| cmd-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh bitmap > $@ || (rm -f $@; exit 1) |
| |
| fs-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh bitmap > $@ || (rm -f $@; exit 1) |
| |
| parttool-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh bitmap > $@ || (rm -f $@; exit 1) |
| |
| partmap-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh bitmap > $@ || (rm -f $@; exit 1) |
| |
| handler-bitmap_mod-video_bitmap.lst: video/bitmap.c $(video/bitmap.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo -I$(srcdir)/video $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bitmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh bitmap > $@ || (rm -f $@; exit 1) |
| |
| bitmap_mod_CFLAGS = $(COMMON_CFLAGS) |
| bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For tga.mod |
| tga_mod_SOURCES = video/readers/tga.c |
| |
| clean-module-tga.mod.1: |
| rm -f tga.mod mod-tga.o mod-tga.c pre-tga.o tga_mod-video_readers_tga.o und-tga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tga.mod.1 |
| |
| ifneq ($(tga_mod_EXPORTS),no) |
| clean-module-tga.mod-symbol.1: |
| rm -f def-tga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tga.mod-symbol.1 |
| DEFSYMFILES += def-tga.lst |
| endif |
| mostlyclean-module-tga.mod.1: |
| rm -f tga_mod-video_readers_tga.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-tga.mod.1 |
| UNDSYMFILES += und-tga.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| tga.mod: pre-tga.o mod-tga.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-tga.o mod-tga.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| tga.mod: pre-tga.o mod-tga.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-tga.o mod-tga.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-tga.o: $(tga_mod_DEPENDENCIES) tga_mod-video_readers_tga.o |
| -rm -f $@ |
| $(TARGET_CC) $(tga_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ tga_mod-video_readers_tga.o |
| |
| mod-tga.o: mod-tga.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -c -o $@ $< |
| |
| mod-tga.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'tga' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(tga_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-tga.lst: pre-tga.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 tga/' > $@ |
| else |
| def-tga.lst: pre-tga.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 tga/' > $@ |
| endif |
| endif |
| |
| und-tga.lst: pre-tga.o |
| echo 'tga' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| tga_mod-video_readers_tga.o: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -MD -c -o $@ $< |
| -include tga_mod-video_readers_tga.d |
| |
| clean-module-tga_mod-video_readers_tga-extra.1: |
| rm -f cmd-tga_mod-video_readers_tga.lst fs-tga_mod-video_readers_tga.lst partmap-tga_mod-video_readers_tga.lst handler-tga_mod-video_readers_tga.lst parttool-tga_mod-video_readers_tga.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-tga_mod-video_readers_tga-extra.1 |
| |
| COMMANDFILES += cmd-tga_mod-video_readers_tga.lst |
| FSFILES += fs-tga_mod-video_readers_tga.lst |
| PARTTOOLFILES += parttool-tga_mod-video_readers_tga.lst |
| PARTMAPFILES += partmap-tga_mod-video_readers_tga.lst |
| HANDLERFILES += handler-tga_mod-video_readers_tga.lst |
| |
| cmd-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh tga > $@ || (rm -f $@; exit 1) |
| |
| fs-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh tga > $@ || (rm -f $@; exit 1) |
| |
| parttool-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh tga > $@ || (rm -f $@; exit 1) |
| |
| partmap-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh tga > $@ || (rm -f $@; exit 1) |
| |
| handler-tga_mod-video_readers_tga.lst: video/readers/tga.c $(video/readers/tga.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(tga_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh tga > $@ || (rm -f $@; exit 1) |
| |
| tga_mod_CFLAGS = $(COMMON_CFLAGS) |
| tga_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For jpeg.mod. |
| jpeg_mod_SOURCES = video/readers/jpeg.c |
| |
| clean-module-jpeg.mod.1: |
| rm -f jpeg.mod mod-jpeg.o mod-jpeg.c pre-jpeg.o jpeg_mod-video_readers_jpeg.o und-jpeg.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jpeg.mod.1 |
| |
| ifneq ($(jpeg_mod_EXPORTS),no) |
| clean-module-jpeg.mod-symbol.1: |
| rm -f def-jpeg.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jpeg.mod-symbol.1 |
| DEFSYMFILES += def-jpeg.lst |
| endif |
| mostlyclean-module-jpeg.mod.1: |
| rm -f jpeg_mod-video_readers_jpeg.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-jpeg.mod.1 |
| UNDSYMFILES += und-jpeg.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| jpeg.mod: pre-jpeg.o mod-jpeg.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-jpeg.o mod-jpeg.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| jpeg.mod: pre-jpeg.o mod-jpeg.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-jpeg.o mod-jpeg.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-jpeg.o: $(jpeg_mod_DEPENDENCIES) jpeg_mod-video_readers_jpeg.o |
| -rm -f $@ |
| $(TARGET_CC) $(jpeg_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ jpeg_mod-video_readers_jpeg.o |
| |
| mod-jpeg.o: mod-jpeg.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -c -o $@ $< |
| |
| mod-jpeg.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'jpeg' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(jpeg_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-jpeg.lst: pre-jpeg.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 jpeg/' > $@ |
| else |
| def-jpeg.lst: pre-jpeg.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 jpeg/' > $@ |
| endif |
| endif |
| |
| und-jpeg.lst: pre-jpeg.o |
| echo 'jpeg' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| jpeg_mod-video_readers_jpeg.o: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -MD -c -o $@ $< |
| -include jpeg_mod-video_readers_jpeg.d |
| |
| clean-module-jpeg_mod-video_readers_jpeg-extra.1: |
| rm -f cmd-jpeg_mod-video_readers_jpeg.lst fs-jpeg_mod-video_readers_jpeg.lst partmap-jpeg_mod-video_readers_jpeg.lst handler-jpeg_mod-video_readers_jpeg.lst parttool-jpeg_mod-video_readers_jpeg.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-jpeg_mod-video_readers_jpeg-extra.1 |
| |
| COMMANDFILES += cmd-jpeg_mod-video_readers_jpeg.lst |
| FSFILES += fs-jpeg_mod-video_readers_jpeg.lst |
| PARTTOOLFILES += parttool-jpeg_mod-video_readers_jpeg.lst |
| PARTMAPFILES += partmap-jpeg_mod-video_readers_jpeg.lst |
| HANDLERFILES += handler-jpeg_mod-video_readers_jpeg.lst |
| |
| cmd-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh jpeg > $@ || (rm -f $@; exit 1) |
| |
| fs-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh jpeg > $@ || (rm -f $@; exit 1) |
| |
| parttool-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh jpeg > $@ || (rm -f $@; exit 1) |
| |
| partmap-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh jpeg > $@ || (rm -f $@; exit 1) |
| |
| handler-jpeg_mod-video_readers_jpeg.lst: video/readers/jpeg.c $(video/readers/jpeg.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(jpeg_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh jpeg > $@ || (rm -f $@; exit 1) |
| |
| jpeg_mod_CFLAGS = $(COMMON_CFLAGS) |
| jpeg_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For png.mod. |
| png_mod_SOURCES = video/readers/png.c |
| |
| clean-module-png.mod.1: |
| rm -f png.mod mod-png.o mod-png.c pre-png.o png_mod-video_readers_png.o und-png.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-png.mod.1 |
| |
| ifneq ($(png_mod_EXPORTS),no) |
| clean-module-png.mod-symbol.1: |
| rm -f def-png.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-png.mod-symbol.1 |
| DEFSYMFILES += def-png.lst |
| endif |
| mostlyclean-module-png.mod.1: |
| rm -f png_mod-video_readers_png.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-png.mod.1 |
| UNDSYMFILES += und-png.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| png.mod: pre-png.o mod-png.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-png.o mod-png.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| png.mod: pre-png.o mod-png.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-png.o mod-png.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-png.o: $(png_mod_DEPENDENCIES) png_mod-video_readers_png.o |
| -rm -f $@ |
| $(TARGET_CC) $(png_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ png_mod-video_readers_png.o |
| |
| mod-png.o: mod-png.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -c -o $@ $< |
| |
| mod-png.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'png' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(png_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-png.lst: pre-png.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 png/' > $@ |
| else |
| def-png.lst: pre-png.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 png/' > $@ |
| endif |
| endif |
| |
| und-png.lst: pre-png.o |
| echo 'png' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| png_mod-video_readers_png.o: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) |
| $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -MD -c -o $@ $< |
| -include png_mod-video_readers_png.d |
| |
| clean-module-png_mod-video_readers_png-extra.1: |
| rm -f cmd-png_mod-video_readers_png.lst fs-png_mod-video_readers_png.lst partmap-png_mod-video_readers_png.lst handler-png_mod-video_readers_png.lst parttool-png_mod-video_readers_png.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-png_mod-video_readers_png-extra.1 |
| |
| COMMANDFILES += cmd-png_mod-video_readers_png.lst |
| FSFILES += fs-png_mod-video_readers_png.lst |
| PARTTOOLFILES += parttool-png_mod-video_readers_png.lst |
| PARTMAPFILES += partmap-png_mod-video_readers_png.lst |
| HANDLERFILES += handler-png_mod-video_readers_png.lst |
| |
| cmd-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh png > $@ || (rm -f $@; exit 1) |
| |
| fs-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh png > $@ || (rm -f $@; exit 1) |
| |
| parttool-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh png > $@ || (rm -f $@; exit 1) |
| |
| partmap-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh png > $@ || (rm -f $@; exit 1) |
| |
| handler-png_mod-video_readers_png.lst: video/readers/png.c $(video/readers/png.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ivideo/readers -I$(srcdir)/video/readers $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(png_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh png > $@ || (rm -f $@; exit 1) |
| |
| png_mod_CFLAGS = $(COMMON_CFLAGS) |
| png_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For font.mod. |
| font_mod_SOURCES = font/font_cmd.c font/font.c |
| |
| clean-module-font.mod.1: |
| rm -f font.mod mod-font.o mod-font.c pre-font.o font_mod-font_font_cmd.o font_mod-font_font.o und-font.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-font.mod.1 |
| |
| ifneq ($(font_mod_EXPORTS),no) |
| clean-module-font.mod-symbol.1: |
| rm -f def-font.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-font.mod-symbol.1 |
| DEFSYMFILES += def-font.lst |
| endif |
| mostlyclean-module-font.mod.1: |
| rm -f font_mod-font_font_cmd.d font_mod-font_font.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-font.mod.1 |
| UNDSYMFILES += und-font.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| font.mod: pre-font.o mod-font.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-font.o mod-font.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| font.mod: pre-font.o mod-font.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-font.o mod-font.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-font.o: $(font_mod_DEPENDENCIES) font_mod-font_font_cmd.o font_mod-font_font.o |
| -rm -f $@ |
| $(TARGET_CC) $(font_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ font_mod-font_font_cmd.o font_mod-font_font.o |
| |
| mod-font.o: mod-font.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -c -o $@ $< |
| |
| mod-font.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'font' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(font_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-font.lst: pre-font.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 font/' > $@ |
| else |
| def-font.lst: pre-font.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 font/' > $@ |
| endif |
| endif |
| |
| und-font.lst: pre-font.o |
| echo 'font' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| font_mod-font_font_cmd.o: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -MD -c -o $@ $< |
| -include font_mod-font_font_cmd.d |
| |
| clean-module-font_mod-font_font_cmd-extra.1: |
| rm -f cmd-font_mod-font_font_cmd.lst fs-font_mod-font_font_cmd.lst partmap-font_mod-font_font_cmd.lst handler-font_mod-font_font_cmd.lst parttool-font_mod-font_font_cmd.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-font_mod-font_font_cmd-extra.1 |
| |
| COMMANDFILES += cmd-font_mod-font_font_cmd.lst |
| FSFILES += fs-font_mod-font_font_cmd.lst |
| PARTTOOLFILES += parttool-font_mod-font_font_cmd.lst |
| PARTMAPFILES += partmap-font_mod-font_font_cmd.lst |
| HANDLERFILES += handler-font_mod-font_font_cmd.lst |
| |
| cmd-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh font > $@ || (rm -f $@; exit 1) |
| |
| partmap-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-font_mod-font_font_cmd.lst: font/font_cmd.c $(font/font_cmd.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh font > $@ || (rm -f $@; exit 1) |
| |
| font_mod-font_font.o: font/font.c $(font/font.c_DEPENDENCIES) |
| $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -MD -c -o $@ $< |
| -include font_mod-font_font.d |
| |
| clean-module-font_mod-font_font-extra.1: |
| rm -f cmd-font_mod-font_font.lst fs-font_mod-font_font.lst partmap-font_mod-font_font.lst handler-font_mod-font_font.lst parttool-font_mod-font_font.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-font_mod-font_font-extra.1 |
| |
| COMMANDFILES += cmd-font_mod-font_font.lst |
| FSFILES += fs-font_mod-font_font.lst |
| PARTTOOLFILES += parttool-font_mod-font_font.lst |
| PARTMAPFILES += partmap-font_mod-font_font.lst |
| HANDLERFILES += handler-font_mod-font_font.lst |
| |
| cmd-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh font > $@ || (rm -f $@; exit 1) |
| |
| partmap-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-font_mod-font_font.lst: font/font.c $(font/font.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ifont -I$(srcdir)/font $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(font_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh font > $@ || (rm -f $@; exit 1) |
| |
| font_mod_CFLAGS = $(COMMON_CFLAGS) |
| font_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For gfxterm.mod. |
| gfxterm_mod_SOURCES = term/gfxterm.c |
| |
| clean-module-gfxterm.mod.1: |
| rm -f gfxterm.mod mod-gfxterm.o mod-gfxterm.c pre-gfxterm.o gfxterm_mod-term_gfxterm.o und-gfxterm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gfxterm.mod.1 |
| |
| ifneq ($(gfxterm_mod_EXPORTS),no) |
| clean-module-gfxterm.mod-symbol.1: |
| rm -f def-gfxterm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gfxterm.mod-symbol.1 |
| DEFSYMFILES += def-gfxterm.lst |
| endif |
| mostlyclean-module-gfxterm.mod.1: |
| rm -f gfxterm_mod-term_gfxterm.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-gfxterm.mod.1 |
| UNDSYMFILES += und-gfxterm.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| gfxterm.mod: pre-gfxterm.o mod-gfxterm.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-gfxterm.o mod-gfxterm.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| gfxterm.mod: pre-gfxterm.o mod-gfxterm.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-gfxterm.o mod-gfxterm.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-gfxterm.o: $(gfxterm_mod_DEPENDENCIES) gfxterm_mod-term_gfxterm.o |
| -rm -f $@ |
| $(TARGET_CC) $(gfxterm_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gfxterm_mod-term_gfxterm.o |
| |
| mod-gfxterm.o: mod-gfxterm.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -c -o $@ $< |
| |
| mod-gfxterm.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'gfxterm' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(gfxterm_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-gfxterm.lst: pre-gfxterm.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gfxterm/' > $@ |
| else |
| def-gfxterm.lst: pre-gfxterm.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 gfxterm/' > $@ |
| endif |
| endif |
| |
| und-gfxterm.lst: pre-gfxterm.o |
| echo 'gfxterm' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| gfxterm_mod-term_gfxterm.o: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) |
| $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -MD -c -o $@ $< |
| -include gfxterm_mod-term_gfxterm.d |
| |
| clean-module-gfxterm_mod-term_gfxterm-extra.1: |
| rm -f cmd-gfxterm_mod-term_gfxterm.lst fs-gfxterm_mod-term_gfxterm.lst partmap-gfxterm_mod-term_gfxterm.lst handler-gfxterm_mod-term_gfxterm.lst parttool-gfxterm_mod-term_gfxterm.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gfxterm_mod-term_gfxterm-extra.1 |
| |
| COMMANDFILES += cmd-gfxterm_mod-term_gfxterm.lst |
| FSFILES += fs-gfxterm_mod-term_gfxterm.lst |
| PARTTOOLFILES += parttool-gfxterm_mod-term_gfxterm.lst |
| PARTMAPFILES += partmap-gfxterm_mod-term_gfxterm.lst |
| HANDLERFILES += handler-gfxterm_mod-term_gfxterm.lst |
| |
| cmd-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh gfxterm > $@ || (rm -f $@; exit 1) |
| |
| fs-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh gfxterm > $@ || (rm -f $@; exit 1) |
| |
| parttool-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh gfxterm > $@ || (rm -f $@; exit 1) |
| |
| partmap-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh gfxterm > $@ || (rm -f $@; exit 1) |
| |
| handler-gfxterm_mod-term_gfxterm.lst: term/gfxterm.c $(term/gfxterm.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iterm -I$(srcdir)/term $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gfxterm_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh gfxterm > $@ || (rm -f $@; exit 1) |
| |
| gfxterm_mod_CFLAGS = $(COMMON_CFLAGS) |
| gfxterm_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Misc. |
| pkglib_MODULES += gzio.mod bufio.mod elf.mod |
| |
| # For elf.mod. |
| elf_mod_SOURCES = kern/elf.c |
| |
| clean-module-elf.mod.1: |
| rm -f elf.mod mod-elf.o mod-elf.c pre-elf.o elf_mod-kern_elf.o und-elf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-elf.mod.1 |
| |
| ifneq ($(elf_mod_EXPORTS),no) |
| clean-module-elf.mod-symbol.1: |
| rm -f def-elf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-elf.mod-symbol.1 |
| DEFSYMFILES += def-elf.lst |
| endif |
| mostlyclean-module-elf.mod.1: |
| rm -f elf_mod-kern_elf.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-elf.mod.1 |
| UNDSYMFILES += und-elf.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| elf.mod: pre-elf.o mod-elf.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-elf.o mod-elf.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| elf.mod: pre-elf.o mod-elf.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-elf.o mod-elf.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-elf.o: $(elf_mod_DEPENDENCIES) elf_mod-kern_elf.o |
| -rm -f $@ |
| $(TARGET_CC) $(elf_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ elf_mod-kern_elf.o |
| |
| mod-elf.o: mod-elf.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -c -o $@ $< |
| |
| mod-elf.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'elf' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(elf_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-elf.lst: pre-elf.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 elf/' > $@ |
| else |
| def-elf.lst: pre-elf.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 elf/' > $@ |
| endif |
| endif |
| |
| und-elf.lst: pre-elf.o |
| echo 'elf' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| elf_mod-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -MD -c -o $@ $< |
| -include elf_mod-kern_elf.d |
| |
| clean-module-elf_mod-kern_elf-extra.1: |
| rm -f cmd-elf_mod-kern_elf.lst fs-elf_mod-kern_elf.lst partmap-elf_mod-kern_elf.lst handler-elf_mod-kern_elf.lst parttool-elf_mod-kern_elf.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-elf_mod-kern_elf-extra.1 |
| |
| COMMANDFILES += cmd-elf_mod-kern_elf.lst |
| FSFILES += fs-elf_mod-kern_elf.lst |
| PARTTOOLFILES += parttool-elf_mod-kern_elf.lst |
| PARTMAPFILES += partmap-elf_mod-kern_elf.lst |
| HANDLERFILES += handler-elf_mod-kern_elf.lst |
| |
| cmd-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh elf > $@ || (rm -f $@; exit 1) |
| |
| partmap-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-elf_mod-kern_elf.lst: kern/elf.c $(kern/elf.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(elf_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh elf > $@ || (rm -f $@; exit 1) |
| |
| elf_mod_CFLAGS = $(COMMON_CFLAGS) |
| elf_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For gzio.mod. |
| gzio_mod_SOURCES = io/gzio.c |
| |
| clean-module-gzio.mod.1: |
| rm -f gzio.mod mod-gzio.o mod-gzio.c pre-gzio.o gzio_mod-io_gzio.o und-gzio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gzio.mod.1 |
| |
| ifneq ($(gzio_mod_EXPORTS),no) |
| clean-module-gzio.mod-symbol.1: |
| rm -f def-gzio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gzio.mod-symbol.1 |
| DEFSYMFILES += def-gzio.lst |
| endif |
| mostlyclean-module-gzio.mod.1: |
| rm -f gzio_mod-io_gzio.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-gzio.mod.1 |
| UNDSYMFILES += und-gzio.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| gzio.mod: pre-gzio.o mod-gzio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-gzio.o mod-gzio.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| gzio.mod: pre-gzio.o mod-gzio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-gzio.o mod-gzio.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-gzio.o: $(gzio_mod_DEPENDENCIES) gzio_mod-io_gzio.o |
| -rm -f $@ |
| $(TARGET_CC) $(gzio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ gzio_mod-io_gzio.o |
| |
| mod-gzio.o: mod-gzio.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -c -o $@ $< |
| |
| mod-gzio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'gzio' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(gzio_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-gzio.lst: pre-gzio.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 gzio/' > $@ |
| else |
| def-gzio.lst: pre-gzio.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 gzio/' > $@ |
| endif |
| endif |
| |
| und-gzio.lst: pre-gzio.o |
| echo 'gzio' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| gzio_mod-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES) |
| $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -MD -c -o $@ $< |
| -include gzio_mod-io_gzio.d |
| |
| clean-module-gzio_mod-io_gzio-extra.1: |
| rm -f cmd-gzio_mod-io_gzio.lst fs-gzio_mod-io_gzio.lst partmap-gzio_mod-io_gzio.lst handler-gzio_mod-io_gzio.lst parttool-gzio_mod-io_gzio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-gzio_mod-io_gzio-extra.1 |
| |
| COMMANDFILES += cmd-gzio_mod-io_gzio.lst |
| FSFILES += fs-gzio_mod-io_gzio.lst |
| PARTTOOLFILES += parttool-gzio_mod-io_gzio.lst |
| PARTMAPFILES += partmap-gzio_mod-io_gzio.lst |
| HANDLERFILES += handler-gzio_mod-io_gzio.lst |
| |
| cmd-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) gencmdlist.sh |
| 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) |
| |
| fs-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genfslist.sh |
| 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) |
| |
| parttool-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh gzio > $@ || (rm -f $@; exit 1) |
| |
| partmap-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genpartmaplist.sh |
| 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) |
| |
| handler-gzio_mod-io_gzio.lst: io/gzio.c $(io/gzio.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(gzio_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh gzio > $@ || (rm -f $@; exit 1) |
| |
| gzio_mod_CFLAGS = $(COMMON_CFLAGS) |
| gzio_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For bufio.mod. |
| bufio_mod_SOURCES = io/bufio.c |
| |
| clean-module-bufio.mod.1: |
| rm -f bufio.mod mod-bufio.o mod-bufio.c pre-bufio.o bufio_mod-io_bufio.o und-bufio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bufio.mod.1 |
| |
| ifneq ($(bufio_mod_EXPORTS),no) |
| clean-module-bufio.mod-symbol.1: |
| rm -f def-bufio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bufio.mod-symbol.1 |
| DEFSYMFILES += def-bufio.lst |
| endif |
| mostlyclean-module-bufio.mod.1: |
| rm -f bufio_mod-io_bufio.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-bufio.mod.1 |
| UNDSYMFILES += und-bufio.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| bufio.mod: pre-bufio.o mod-bufio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(bufio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-bufio.o mod-bufio.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| bufio.mod: pre-bufio.o mod-bufio.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(bufio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-bufio.o mod-bufio.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-bufio.o: $(bufio_mod_DEPENDENCIES) bufio_mod-io_bufio.o |
| -rm -f $@ |
| $(TARGET_CC) $(bufio_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ bufio_mod-io_bufio.o |
| |
| mod-bufio.o: mod-bufio.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -c -o $@ $< |
| |
| mod-bufio.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'bufio' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(bufio_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-bufio.lst: pre-bufio.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 bufio/' > $@ |
| else |
| def-bufio.lst: pre-bufio.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 bufio/' > $@ |
| endif |
| endif |
| |
| und-bufio.lst: pre-bufio.o |
| echo 'bufio' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| bufio_mod-io_bufio.o: io/bufio.c $(io/bufio.c_DEPENDENCIES) |
| $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -MD -c -o $@ $< |
| -include bufio_mod-io_bufio.d |
| |
| clean-module-bufio_mod-io_bufio-extra.1: |
| rm -f cmd-bufio_mod-io_bufio.lst fs-bufio_mod-io_bufio.lst partmap-bufio_mod-io_bufio.lst handler-bufio_mod-io_bufio.lst parttool-bufio_mod-io_bufio.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-bufio_mod-io_bufio-extra.1 |
| |
| COMMANDFILES += cmd-bufio_mod-io_bufio.lst |
| FSFILES += fs-bufio_mod-io_bufio.lst |
| PARTTOOLFILES += parttool-bufio_mod-io_bufio.lst |
| PARTMAPFILES += partmap-bufio_mod-io_bufio.lst |
| HANDLERFILES += handler-bufio_mod-io_bufio.lst |
| |
| cmd-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh bufio > $@ || (rm -f $@; exit 1) |
| |
| fs-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh bufio > $@ || (rm -f $@; exit 1) |
| |
| parttool-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh bufio > $@ || (rm -f $@; exit 1) |
| |
| partmap-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh bufio > $@ || (rm -f $@; exit 1) |
| |
| handler-bufio_mod-io_bufio.lst: io/bufio.c $(io/bufio.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iio -I$(srcdir)/io $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(bufio_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh bufio > $@ || (rm -f $@; exit 1) |
| |
| bufio_mod_CFLAGS = $(COMMON_CFLAGS) |
| bufio_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # Misc. |
| pkglib_MODULES += xnu_uuid.mod |
| |
| # For elf.mod. |
| xnu_uuid_mod_SOURCES = commands/xnu_uuid.c |
| |
| clean-module-xnu_uuid.mod.1: |
| rm -f xnu_uuid.mod mod-xnu_uuid.o mod-xnu_uuid.c pre-xnu_uuid.o xnu_uuid_mod-commands_xnu_uuid.o und-xnu_uuid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xnu_uuid.mod.1 |
| |
| ifneq ($(xnu_uuid_mod_EXPORTS),no) |
| clean-module-xnu_uuid.mod-symbol.1: |
| rm -f def-xnu_uuid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xnu_uuid.mod-symbol.1 |
| DEFSYMFILES += def-xnu_uuid.lst |
| endif |
| mostlyclean-module-xnu_uuid.mod.1: |
| rm -f xnu_uuid_mod-commands_xnu_uuid.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-xnu_uuid.mod.1 |
| UNDSYMFILES += und-xnu_uuid.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| xnu_uuid.mod: pre-xnu_uuid.o mod-xnu_uuid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(xnu_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-xnu_uuid.o mod-xnu_uuid.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| xnu_uuid.mod: pre-xnu_uuid.o mod-xnu_uuid.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(xnu_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-xnu_uuid.o mod-xnu_uuid.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-xnu_uuid.o: $(xnu_uuid_mod_DEPENDENCIES) xnu_uuid_mod-commands_xnu_uuid.o |
| -rm -f $@ |
| $(TARGET_CC) $(xnu_uuid_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ xnu_uuid_mod-commands_xnu_uuid.o |
| |
| mod-xnu_uuid.o: mod-xnu_uuid.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -c -o $@ $< |
| |
| mod-xnu_uuid.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'xnu_uuid' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(xnu_uuid_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-xnu_uuid.lst: pre-xnu_uuid.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 xnu_uuid/' > $@ |
| else |
| def-xnu_uuid.lst: pre-xnu_uuid.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 xnu_uuid/' > $@ |
| endif |
| endif |
| |
| und-xnu_uuid.lst: pre-xnu_uuid.o |
| echo 'xnu_uuid' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| xnu_uuid_mod-commands_xnu_uuid.o: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -MD -c -o $@ $< |
| -include xnu_uuid_mod-commands_xnu_uuid.d |
| |
| clean-module-xnu_uuid_mod-commands_xnu_uuid-extra.1: |
| rm -f cmd-xnu_uuid_mod-commands_xnu_uuid.lst fs-xnu_uuid_mod-commands_xnu_uuid.lst partmap-xnu_uuid_mod-commands_xnu_uuid.lst handler-xnu_uuid_mod-commands_xnu_uuid.lst parttool-xnu_uuid_mod-commands_xnu_uuid.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-xnu_uuid_mod-commands_xnu_uuid-extra.1 |
| |
| COMMANDFILES += cmd-xnu_uuid_mod-commands_xnu_uuid.lst |
| FSFILES += fs-xnu_uuid_mod-commands_xnu_uuid.lst |
| PARTTOOLFILES += parttool-xnu_uuid_mod-commands_xnu_uuid.lst |
| PARTMAPFILES += partmap-xnu_uuid_mod-commands_xnu_uuid.lst |
| HANDLERFILES += handler-xnu_uuid_mod-commands_xnu_uuid.lst |
| |
| cmd-xnu_uuid_mod-commands_xnu_uuid.lst: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh xnu_uuid > $@ || (rm -f $@; exit 1) |
| |
| fs-xnu_uuid_mod-commands_xnu_uuid.lst: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh xnu_uuid > $@ || (rm -f $@; exit 1) |
| |
| parttool-xnu_uuid_mod-commands_xnu_uuid.lst: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh xnu_uuid > $@ || (rm -f $@; exit 1) |
| |
| partmap-xnu_uuid_mod-commands_xnu_uuid.lst: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh xnu_uuid > $@ || (rm -f $@; exit 1) |
| |
| handler-xnu_uuid_mod-commands_xnu_uuid.lst: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(xnu_uuid_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh xnu_uuid > $@ || (rm -f $@; exit 1) |
| |
| xnu_uuid_mod_CFLAGS = $(COMMON_CFLAGS) |
| xnu_uuid_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| pkglib_MODULES += setjmp.mod |
| setjmp_mod_SOURCES = lib/$(target_cpu)/setjmp.S |
| |
| clean-module-setjmp.mod.1: |
| rm -f setjmp.mod mod-setjmp.o mod-setjmp.c pre-setjmp.o setjmp_mod-lib___target_cpu__setjmp.o und-setjmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-setjmp.mod.1 |
| |
| ifneq ($(setjmp_mod_EXPORTS),no) |
| clean-module-setjmp.mod-symbol.1: |
| rm -f def-setjmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-setjmp.mod-symbol.1 |
| DEFSYMFILES += def-setjmp.lst |
| endif |
| mostlyclean-module-setjmp.mod.1: |
| rm -f setjmp_mod-lib___target_cpu__setjmp.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-setjmp.mod.1 |
| UNDSYMFILES += und-setjmp.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| setjmp.mod: pre-setjmp.o mod-setjmp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(setjmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-setjmp.o mod-setjmp.o |
| if test ! -z "$(TARGET_OBJ2ELF)"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi |
| $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@ |
| else |
| setjmp.mod: pre-setjmp.o mod-setjmp.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(setjmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-setjmp.o mod-setjmp.o |
| $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -wd1106 -nu -nd $@.bin $@ |
| -rm -f $@.bin |
| endif |
| |
| pre-setjmp.o: $(setjmp_mod_DEPENDENCIES) setjmp_mod-lib___target_cpu__setjmp.o |
| -rm -f $@ |
| $(TARGET_CC) $(setjmp_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ setjmp_mod-lib___target_cpu__setjmp.o |
| |
| mod-setjmp.o: mod-setjmp.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(setjmp_mod_CFLAGS) -c -o $@ $< |
| |
| mod-setjmp.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'setjmp' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(setjmp_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-setjmp.lst: pre-setjmp.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 setjmp/' > $@ |
| else |
| def-setjmp.lst: pre-setjmp.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 setjmp/' > $@ |
| endif |
| endif |
| |
| und-setjmp.lst: pre-setjmp.o |
| echo 'setjmp' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| setjmp_mod-lib___target_cpu__setjmp.o: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) |
| $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -MD -c -o $@ $< |
| -include setjmp_mod-lib___target_cpu__setjmp.d |
| |
| clean-module-setjmp_mod-lib___target_cpu__setjmp-extra.1: |
| rm -f cmd-setjmp_mod-lib___target_cpu__setjmp.lst fs-setjmp_mod-lib___target_cpu__setjmp.lst partmap-setjmp_mod-lib___target_cpu__setjmp.lst handler-setjmp_mod-lib___target_cpu__setjmp.lst parttool-setjmp_mod-lib___target_cpu__setjmp.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-setjmp_mod-lib___target_cpu__setjmp-extra.1 |
| |
| COMMANDFILES += cmd-setjmp_mod-lib___target_cpu__setjmp.lst |
| FSFILES += fs-setjmp_mod-lib___target_cpu__setjmp.lst |
| PARTTOOLFILES += parttool-setjmp_mod-lib___target_cpu__setjmp.lst |
| PARTMAPFILES += partmap-setjmp_mod-lib___target_cpu__setjmp.lst |
| HANDLERFILES += handler-setjmp_mod-lib___target_cpu__setjmp.lst |
| |
| cmd-setjmp_mod-lib___target_cpu__setjmp.lst: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh setjmp > $@ || (rm -f $@; exit 1) |
| |
| fs-setjmp_mod-lib___target_cpu__setjmp.lst: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh setjmp > $@ || (rm -f $@; exit 1) |
| |
| parttool-setjmp_mod-lib___target_cpu__setjmp.lst: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh setjmp > $@ || (rm -f $@; exit 1) |
| |
| partmap-setjmp_mod-lib___target_cpu__setjmp.lst: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh setjmp > $@ || (rm -f $@; exit 1) |
| |
| handler-setjmp_mod-lib___target_cpu__setjmp.lst: lib/$(target_cpu)/setjmp.S $(lib/$(target_cpu)/setjmp.S_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib/$(target_cpu) -I$(srcdir)/lib/$(target_cpu) $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(setjmp_mod_ASFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh setjmp > $@ || (rm -f $@; exit 1) |
| |
| setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS) |
| setjmp_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| grub-mkelfimage: $(grub_mkelfimage_DEPENDENCIES) $(grub_mkelfimage_OBJECTS) |
| $(CC) -o $@ $(grub_mkelfimage_OBJECTS) $(LDFLAGS) $(grub_mkelfimage_LDFLAGS) |
| |
| grub-probe: $(grub_probe_DEPENDENCIES) $(grub_probe_OBJECTS) |
| $(CC) -o $@ $(grub_probe_OBJECTS) $(LDFLAGS) $(grub_probe_LDFLAGS) |
| |
| grub-fstest: $(grub_fstest_DEPENDENCIES) $(grub_fstest_OBJECTS) |
| $(CC) -o $@ $(grub_fstest_OBJECTS) $(LDFLAGS) $(grub_fstest_LDFLAGS) |
| |
| grub-mkfont: $(grub_mkfont_DEPENDENCIES) $(grub_mkfont_OBJECTS) |
| $(CC) -o $@ $(grub_mkfont_OBJECTS) $(LDFLAGS) $(grub_mkfont_LDFLAGS) |
| |
| grub-editenv: $(grub_editenv_DEPENDENCIES) $(grub_editenv_OBJECTS) |
| $(CC) -o $@ $(grub_editenv_OBJECTS) $(LDFLAGS) $(grub_editenv_LDFLAGS) |
| |
| grub-macho2img: $(grub_macho2img_DEPENDENCIES) $(grub_macho2img_OBJECTS) |
| $(CC) -o $@ $(grub_macho2img_OBJECTS) $(LDFLAGS) $(grub_macho2img_LDFLAGS) |
| |
| grub-pe2elf: $(grub_pe2elf_DEPENDENCIES) $(grub_pe2elf_OBJECTS) |
| $(CC) -o $@ $(grub_pe2elf_OBJECTS) $(LDFLAGS) $(grub_pe2elf_LDFLAGS) |
| |