| # -*- makefile -*- |
| # Generated by genmk.rb, please don't edit! |
| |
| COMMON_ASFLAGS = -m32 -nostdinc -fno-builtin |
| COMMON_CFLAGS = -ffreestanding -mrtd -mregparm=3 |
| COMMON_LDFLAGS = -nostdlib |
| |
| # Used by various components. These rules need to precede them. |
| script/sh/lexer.c_DEPENDENCIES = grub_script.tab.h |
| |
| # Images. |
| pkglib_PROGRAMS = kernel.img |
| |
| # For kernel.img. |
| kernel_img_SOURCES = kern/i386/ieee1275/startup.S \ |
| kern/i386/misc.S \ |
| kern/i386/ieee1275/init.c \ |
| kern/ieee1275/init.c \ |
| kern/ieee1275/mmap.c \ |
| kern/ieee1275/cmain.c kern/ieee1275/openfw.c \ |
| kern/main.c kern/device.c \ |
| kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \ |
| kern/misc.c kern/mm.c kern/reader.c kern/term.c \ |
| kern/rescue_parser.c kern/rescue_reader.c \ |
| kern/$(target_cpu)/dl.c kern/parser.c kern/partition.c \ |
| kern/env.c \ |
| kern/time.c kern/list.c kern/handler.c kern/command.c kern/corecmd.c \ |
| kern/generic/millisleep.c \ |
| kern/ieee1275/ieee1275.c \ |
| term/ieee1275/ofconsole.c \ |
| disk/ieee1275/ofdisk.c \ |
| symlist.c |
| CLEANFILES += kernel.img kernel_img-kern_i386_ieee1275_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_ieee1275_init.o kernel_img-kern_ieee1275_init.o kernel_img-kern_ieee1275_mmap.o kernel_img-kern_ieee1275_cmain.o kernel_img-kern_ieee1275_openfw.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_reader.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_generic_millisleep.o kernel_img-kern_ieee1275_ieee1275.o kernel_img-term_ieee1275_ofconsole.o kernel_img-disk_ieee1275_ofdisk.o kernel_img-symlist.o |
| MOSTLYCLEANFILES += kernel_img-kern_i386_ieee1275_startup.d kernel_img-kern_i386_misc.d kernel_img-kern_i386_ieee1275_init.d kernel_img-kern_ieee1275_init.d kernel_img-kern_ieee1275_mmap.d kernel_img-kern_ieee1275_cmain.d kernel_img-kern_ieee1275_openfw.d kernel_img-kern_main.d kernel_img-kern_device.d kernel_img-kern_disk.d kernel_img-kern_dl.d kernel_img-kern_file.d kernel_img-kern_fs.d kernel_img-kern_err.d kernel_img-kern_misc.d kernel_img-kern_mm.d kernel_img-kern_reader.d kernel_img-kern_term.d kernel_img-kern_rescue_parser.d kernel_img-kern_rescue_reader.d kernel_img-kern___target_cpu__dl.d kernel_img-kern_parser.d kernel_img-kern_partition.d kernel_img-kern_env.d kernel_img-kern_time.d kernel_img-kern_list.d kernel_img-kern_handler.d kernel_img-kern_command.d kernel_img-kern_corecmd.d kernel_img-kern_generic_millisleep.d kernel_img-kern_ieee1275_ieee1275.d kernel_img-term_ieee1275_ofconsole.d kernel_img-disk_ieee1275_ofdisk.d kernel_img-symlist.d |
| |
| kernel.img: $(kernel_img_DEPENDENCIES) kernel_img-kern_i386_ieee1275_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_ieee1275_init.o kernel_img-kern_ieee1275_init.o kernel_img-kern_ieee1275_mmap.o kernel_img-kern_ieee1275_cmain.o kernel_img-kern_ieee1275_openfw.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_reader.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_generic_millisleep.o kernel_img-kern_ieee1275_ieee1275.o kernel_img-term_ieee1275_ofconsole.o kernel_img-disk_ieee1275_ofdisk.o kernel_img-symlist.o |
| $(TARGET_CC) -o $@ kernel_img-kern_i386_ieee1275_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_i386_ieee1275_init.o kernel_img-kern_ieee1275_init.o kernel_img-kern_ieee1275_mmap.o kernel_img-kern_ieee1275_cmain.o kernel_img-kern_ieee1275_openfw.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_reader.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_env.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern_generic_millisleep.o kernel_img-kern_ieee1275_ieee1275.o kernel_img-term_ieee1275_ofconsole.o kernel_img-disk_ieee1275_ofdisk.o kernel_img-symlist.o $(TARGET_LDFLAGS) $(kernel_img_LDFLAGS) |
| |
| kernel_img-kern_i386_ieee1275_startup.o: kern/i386/ieee1275/startup.S $(kern/i386/ieee1275/startup.S_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/i386/ieee1275 -I$(srcdir)/kern/i386/ieee1275 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_ASFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_i386_ieee1275_startup.d |
| |
| kernel_img-kern_i386_misc.o: kern/i386/misc.S $(kern/i386/misc.S_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/i386 -I$(srcdir)/kern/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(kernel_img_ASFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_i386_misc.d |
| |
| kernel_img-kern_i386_ieee1275_init.o: kern/i386/ieee1275/init.c $(kern/i386/ieee1275/init.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/i386/ieee1275 -I$(srcdir)/kern/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_i386_ieee1275_init.d |
| |
| kernel_img-kern_ieee1275_init.o: kern/ieee1275/init.c $(kern/ieee1275/init.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_ieee1275_init.d |
| |
| kernel_img-kern_ieee1275_mmap.o: kern/ieee1275/mmap.c $(kern/ieee1275/mmap.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_ieee1275_mmap.d |
| |
| kernel_img-kern_ieee1275_cmain.o: kern/ieee1275/cmain.c $(kern/ieee1275/cmain.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_ieee1275_cmain.d |
| |
| kernel_img-kern_ieee1275_openfw.o: kern/ieee1275/openfw.c $(kern/ieee1275/openfw.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_ieee1275_openfw.d |
| |
| kernel_img-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_main.d |
| |
| kernel_img-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_device.d |
| |
| kernel_img-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_disk.d |
| |
| kernel_img-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_dl.d |
| |
| kernel_img-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_file.d |
| |
| kernel_img-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_fs.d |
| |
| kernel_img-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_err.d |
| |
| kernel_img-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_misc.d |
| |
| kernel_img-kern_mm.o: kern/mm.c $(kern/mm.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_mm.d |
| |
| kernel_img-kern_reader.o: kern/reader.c $(kern/reader.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_reader.d |
| |
| kernel_img-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_term.d |
| |
| kernel_img-kern_rescue_parser.o: kern/rescue_parser.c $(kern/rescue_parser.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_rescue_parser.d |
| |
| kernel_img-kern_rescue_reader.o: kern/rescue_reader.c $(kern/rescue_reader.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_rescue_reader.d |
| |
| kernel_img-kern___target_cpu__dl.o: kern/$(target_cpu)/dl.c $(kern/$(target_cpu)/dl.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/$(target_cpu) -I$(srcdir)/kern/$(target_cpu) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern___target_cpu__dl.d |
| |
| kernel_img-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_parser.d |
| |
| kernel_img-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_partition.d |
| |
| kernel_img-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_env.d |
| |
| kernel_img-kern_time.o: kern/time.c $(kern/time.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_time.d |
| |
| kernel_img-kern_list.o: kern/list.c $(kern/list.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_list.d |
| |
| kernel_img-kern_handler.o: kern/handler.c $(kern/handler.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_handler.d |
| |
| kernel_img-kern_command.o: kern/command.c $(kern/command.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_command.d |
| |
| kernel_img-kern_corecmd.o: kern/corecmd.c $(kern/corecmd.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern -I$(srcdir)/kern $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_corecmd.d |
| |
| kernel_img-kern_generic_millisleep.o: kern/generic/millisleep.c $(kern/generic/millisleep.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/generic -I$(srcdir)/kern/generic $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_generic_millisleep.d |
| |
| kernel_img-kern_ieee1275_ieee1275.o: kern/ieee1275/ieee1275.c $(kern/ieee1275/ieee1275.c_DEPENDENCIES) |
| $(TARGET_CC) -Ikern/ieee1275 -I$(srcdir)/kern/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-kern_ieee1275_ieee1275.d |
| |
| kernel_img-term_ieee1275_ofconsole.o: term/ieee1275/ofconsole.c $(term/ieee1275/ofconsole.c_DEPENDENCIES) |
| $(TARGET_CC) -Iterm/ieee1275 -I$(srcdir)/term/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-term_ieee1275_ofconsole.d |
| |
| kernel_img-disk_ieee1275_ofdisk.o: disk/ieee1275/ofdisk.c $(disk/ieee1275/ofdisk.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-disk_ieee1275_ofdisk.d |
| |
| kernel_img-symlist.o: symlist.c $(symlist.c_DEPENDENCIES) |
| $(TARGET_CC) -I. -I$(srcdir)/. $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(kernel_img_CFLAGS) -MD -c -o $@ $< |
| -include kernel_img-symlist.d |
| |
| kernel_img_HEADERS = cache.h device.h disk.h dl.h elf.h elfload.h \ |
| env.h err.h file.h fs.h kernel.h loader.h misc.h mm.h net.h parser.h \ |
| partition.h msdos_partition.h reader.h symbol.h term.h time.h types.h \ |
| ieee1275/ieee1275.h machine/kernel.h machine/loader.h machine/memory.h \ |
| list.h handler.h command.h |
| kernel_img_CFLAGS = $(COMMON_CFLAGS) |
| kernel_img_ASFLAGS = $(COMMON_ASFLAGS) |
| kernel_img_LDFLAGS = $(COMMON_LDFLAGS) -Wl,-N,-S,-Ttext,0x10000,-Bstatic |
| |
| MOSTLYCLEANFILES += symlist.c kernel_syms.lst |
| DEFSYMFILES += kernel_syms.lst |
| |
| symlist.c: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h gensymlist.sh |
| /bin/sh gensymlist.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) |
| |
| kernel_syms.lst: $(addprefix include/grub/,$(kernel_img_HEADERS)) config.h genkernsyms.sh |
| /bin/sh genkernsyms.sh $(filter %.h,$^) > $@ || (rm -f $@; exit 1) |
| |
| # Utilities. |
| sbin_UTILITIES = grub-mkdevicemap |
| ifeq ($(enable_grub_emu), yes) |
| sbin_UTILITIES += grub-emu |
| endif |
| |
| # For grub-mkdevicemap. |
| grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/deviceiter.c \ |
| util/devicemap.c util/misc.c |
| |
| clean-utility-grub-mkdevicemap.1: |
| rm -f grub-mkdevicemap$(EXEEXT) grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_deviceiter.o grub_mkdevicemap-util_devicemap.o grub_mkdevicemap-util_misc.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-mkdevicemap.1 |
| |
| mostlyclean-utility-grub-mkdevicemap.1: |
| rm -f grub_mkdevicemap-util_grub_mkdevicemap.d grub_mkdevicemap-util_deviceiter.d grub_mkdevicemap-util_devicemap.d grub_mkdevicemap-util_misc.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-mkdevicemap.1 |
| |
| grub_mkdevicemap_OBJECTS += grub_mkdevicemap-util_grub_mkdevicemap.o grub_mkdevicemap-util_deviceiter.o grub_mkdevicemap-util_devicemap.o grub_mkdevicemap-util_misc.o |
| |
| grub_mkdevicemap-util_grub_mkdevicemap.o: util/grub-mkdevicemap.c $(util/grub-mkdevicemap.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkdevicemap-util_grub_mkdevicemap.d |
| |
| grub_mkdevicemap-util_deviceiter.o: util/deviceiter.c $(util/deviceiter.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkdevicemap-util_deviceiter.d |
| |
| grub_mkdevicemap-util_devicemap.o: util/devicemap.c $(util/devicemap.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkdevicemap-util_devicemap.d |
| |
| grub_mkdevicemap-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkdevicemap_CFLAGS) -MD -c -o $@ $< |
| -include grub_mkdevicemap-util_misc.d |
| |
| |
| # For grub-emu. |
| util/grub-emu.c_DEPENDENCIES = grub_emu_init.h |
| grub_emu_SOURCES = commands/minicmd.c commands/cat.c commands/cmp.c \ |
| commands/configfile.c commands/echo.c commands/help.c \ |
| commands/handler.c commands/ls.c commands/test.c \ |
| commands/search.c commands/blocklist.c commands/hexdump.c \ |
| lib/hexdump.c commands/halt.c commands/reboot.c \ |
| lib/envblk.c commands/loadenv.c \ |
| commands/gptsync.c commands/probe.c commands/xnu_uuid.c \ |
| commands/i386/cpuid.c \ |
| commands/password.c commands/keystatus.c \ |
| disk/host.c disk/loopback.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 \ |
| \ |
| fs/fshelp.c \ |
| io/gzio.c \ |
| kern/device.c kern/disk.c kern/dl.c kern/elf.c kern/env.c \ |
| kern/err.c kern/list.c kern/handler.c \ |
| kern/command.c kern/corecmd.c commands/extcmd.c kern/file.c \ |
| kern/fs.c commands/boot.c kern/main.c kern/misc.c kern/parser.c \ |
| kern/partition.c kern/reader.c kern/term.c \ |
| kern/rescue_reader.c kern/rescue_parser.c \ |
| lib/arg.c normal/cmdline.c normal/datetime.c normal/misc.c \ |
| normal/handler.c normal/auth.c normal/autofs.c \ |
| normal/completion.c normal/main.c normal/menu_text.c \ |
| normal/menu.c normal/menu_entry.c normal/menu_viewer.c \ |
| normal/color.c \ |
| script/sh/main.c script/sh/execute.c script/sh/function.c \ |
| script/sh/lexer.c script/sh/script.c grub_script.tab.c \ |
| partmap/amiga.c partmap/apple.c partmap/msdos.c partmap/sun.c \ |
| partmap/acorn.c partmap/gpt.c \ |
| util/console.c util/hostfs.c util/grub-emu.c util/misc.c \ |
| util/hostdisk.c util/getroot.c \ |
| \ |
| disk/raid.c disk/raid5_recover.c disk/raid6_recover.c \ |
| disk/mdraid_linux.c disk/dmraid_nvidia.c disk/lvm.c \ |
| grub_emu_init.c |
| |
| clean-utility-grub-emu.1: |
| rm -f grub-emu$(EXEEXT) grub_emu-commands_minicmd.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_echo.o grub_emu-commands_help.o grub_emu-commands_handler.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-commands_hexdump.o grub_emu-lib_hexdump.o grub_emu-commands_halt.o grub_emu-commands_reboot.o grub_emu-lib_envblk.o grub_emu-commands_loadenv.o grub_emu-commands_gptsync.o grub_emu-commands_probe.o grub_emu-commands_xnu_uuid.o grub_emu-commands_i386_cpuid.o grub_emu-commands_password.o grub_emu-commands_keystatus.o grub_emu-disk_host.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_cpio.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_udf.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_ufs2.o grub_emu-fs_xfs.o grub_emu-fs_afs.o grub_emu-fs_afs_be.o grub_emu-fs_befs.o grub_emu-fs_befs_be.o grub_emu-fs_tar.o grub_emu-fs_fshelp.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_elf.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_list.o grub_emu-kern_handler.o grub_emu-kern_command.o grub_emu-kern_corecmd.o grub_emu-commands_extcmd.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-commands_boot.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_reader.o grub_emu-kern_term.o grub_emu-kern_rescue_reader.o grub_emu-kern_rescue_parser.o grub_emu-lib_arg.o grub_emu-normal_cmdline.o grub_emu-normal_datetime.o grub_emu-normal_misc.o grub_emu-normal_handler.o grub_emu-normal_auth.o grub_emu-normal_autofs.o grub_emu-normal_completion.o grub_emu-normal_main.o grub_emu-normal_menu_text.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_menu_viewer.o grub_emu-normal_color.o grub_emu-script_sh_main.o grub_emu-script_sh_execute.o grub_emu-script_sh_function.o grub_emu-script_sh_lexer.o grub_emu-script_sh_script.o grub_emu-grub_script_tab.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_msdos.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_hostdisk.o grub_emu-util_getroot.o grub_emu-disk_raid.o grub_emu-disk_raid5_recover.o grub_emu-disk_raid6_recover.o grub_emu-disk_mdraid_linux.o grub_emu-disk_dmraid_nvidia.o grub_emu-disk_lvm.o grub_emu-grub_emu_init.o |
| |
| CLEAN_UTILITY_TARGETS += clean-utility-grub-emu.1 |
| |
| mostlyclean-utility-grub-emu.1: |
| rm -f grub_emu-commands_minicmd.d grub_emu-commands_cat.d grub_emu-commands_cmp.d grub_emu-commands_configfile.d grub_emu-commands_echo.d grub_emu-commands_help.d grub_emu-commands_handler.d grub_emu-commands_ls.d grub_emu-commands_test.d grub_emu-commands_search.d grub_emu-commands_blocklist.d grub_emu-commands_hexdump.d grub_emu-lib_hexdump.d grub_emu-commands_halt.d grub_emu-commands_reboot.d grub_emu-lib_envblk.d grub_emu-commands_loadenv.d grub_emu-commands_gptsync.d grub_emu-commands_probe.d grub_emu-commands_xnu_uuid.d grub_emu-commands_i386_cpuid.d grub_emu-commands_password.d grub_emu-commands_keystatus.d grub_emu-disk_host.d grub_emu-disk_loopback.d grub_emu-fs_affs.d grub_emu-fs_cpio.d grub_emu-fs_fat.d grub_emu-fs_ext2.d grub_emu-fs_hfs.d grub_emu-fs_hfsplus.d grub_emu-fs_iso9660.d grub_emu-fs_udf.d grub_emu-fs_jfs.d grub_emu-fs_minix.d grub_emu-fs_ntfs.d grub_emu-fs_ntfscomp.d grub_emu-fs_reiserfs.d grub_emu-fs_sfs.d grub_emu-fs_ufs.d grub_emu-fs_ufs2.d grub_emu-fs_xfs.d grub_emu-fs_afs.d grub_emu-fs_afs_be.d grub_emu-fs_befs.d grub_emu-fs_befs_be.d grub_emu-fs_tar.d grub_emu-fs_fshelp.d grub_emu-io_gzio.d grub_emu-kern_device.d grub_emu-kern_disk.d grub_emu-kern_dl.d grub_emu-kern_elf.d grub_emu-kern_env.d grub_emu-kern_err.d grub_emu-kern_list.d grub_emu-kern_handler.d grub_emu-kern_command.d grub_emu-kern_corecmd.d grub_emu-commands_extcmd.d grub_emu-kern_file.d grub_emu-kern_fs.d grub_emu-commands_boot.d grub_emu-kern_main.d grub_emu-kern_misc.d grub_emu-kern_parser.d grub_emu-kern_partition.d grub_emu-kern_reader.d grub_emu-kern_term.d grub_emu-kern_rescue_reader.d grub_emu-kern_rescue_parser.d grub_emu-lib_arg.d grub_emu-normal_cmdline.d grub_emu-normal_datetime.d grub_emu-normal_misc.d grub_emu-normal_handler.d grub_emu-normal_auth.d grub_emu-normal_autofs.d grub_emu-normal_completion.d grub_emu-normal_main.d grub_emu-normal_menu_text.d grub_emu-normal_menu.d grub_emu-normal_menu_entry.d grub_emu-normal_menu_viewer.d grub_emu-normal_color.d grub_emu-script_sh_main.d grub_emu-script_sh_execute.d grub_emu-script_sh_function.d grub_emu-script_sh_lexer.d grub_emu-script_sh_script.d grub_emu-grub_script_tab.d grub_emu-partmap_amiga.d grub_emu-partmap_apple.d grub_emu-partmap_msdos.d grub_emu-partmap_sun.d grub_emu-partmap_acorn.d grub_emu-partmap_gpt.d grub_emu-util_console.d grub_emu-util_hostfs.d grub_emu-util_grub_emu.d grub_emu-util_misc.d grub_emu-util_hostdisk.d grub_emu-util_getroot.d grub_emu-disk_raid.d grub_emu-disk_raid5_recover.d grub_emu-disk_raid6_recover.d grub_emu-disk_mdraid_linux.d grub_emu-disk_dmraid_nvidia.d grub_emu-disk_lvm.d grub_emu-grub_emu_init.d |
| |
| MOSTLYCLEAN_UTILITY_TARGETS += mostlyclean-utility-grub-emu.1 |
| |
| grub_emu_OBJECTS += grub_emu-commands_minicmd.o grub_emu-commands_cat.o grub_emu-commands_cmp.o grub_emu-commands_configfile.o grub_emu-commands_echo.o grub_emu-commands_help.o grub_emu-commands_handler.o grub_emu-commands_ls.o grub_emu-commands_test.o grub_emu-commands_search.o grub_emu-commands_blocklist.o grub_emu-commands_hexdump.o grub_emu-lib_hexdump.o grub_emu-commands_halt.o grub_emu-commands_reboot.o grub_emu-lib_envblk.o grub_emu-commands_loadenv.o grub_emu-commands_gptsync.o grub_emu-commands_probe.o grub_emu-commands_xnu_uuid.o grub_emu-commands_i386_cpuid.o grub_emu-commands_password.o grub_emu-commands_keystatus.o grub_emu-disk_host.o grub_emu-disk_loopback.o grub_emu-fs_affs.o grub_emu-fs_cpio.o grub_emu-fs_fat.o grub_emu-fs_ext2.o grub_emu-fs_hfs.o grub_emu-fs_hfsplus.o grub_emu-fs_iso9660.o grub_emu-fs_udf.o grub_emu-fs_jfs.o grub_emu-fs_minix.o grub_emu-fs_ntfs.o grub_emu-fs_ntfscomp.o grub_emu-fs_reiserfs.o grub_emu-fs_sfs.o grub_emu-fs_ufs.o grub_emu-fs_ufs2.o grub_emu-fs_xfs.o grub_emu-fs_afs.o grub_emu-fs_afs_be.o grub_emu-fs_befs.o grub_emu-fs_befs_be.o grub_emu-fs_tar.o grub_emu-fs_fshelp.o grub_emu-io_gzio.o grub_emu-kern_device.o grub_emu-kern_disk.o grub_emu-kern_dl.o grub_emu-kern_elf.o grub_emu-kern_env.o grub_emu-kern_err.o grub_emu-kern_list.o grub_emu-kern_handler.o grub_emu-kern_command.o grub_emu-kern_corecmd.o grub_emu-commands_extcmd.o grub_emu-kern_file.o grub_emu-kern_fs.o grub_emu-commands_boot.o grub_emu-kern_main.o grub_emu-kern_misc.o grub_emu-kern_parser.o grub_emu-kern_partition.o grub_emu-kern_reader.o grub_emu-kern_term.o grub_emu-kern_rescue_reader.o grub_emu-kern_rescue_parser.o grub_emu-lib_arg.o grub_emu-normal_cmdline.o grub_emu-normal_datetime.o grub_emu-normal_misc.o grub_emu-normal_handler.o grub_emu-normal_auth.o grub_emu-normal_autofs.o grub_emu-normal_completion.o grub_emu-normal_main.o grub_emu-normal_menu_text.o grub_emu-normal_menu.o grub_emu-normal_menu_entry.o grub_emu-normal_menu_viewer.o grub_emu-normal_color.o grub_emu-script_sh_main.o grub_emu-script_sh_execute.o grub_emu-script_sh_function.o grub_emu-script_sh_lexer.o grub_emu-script_sh_script.o grub_emu-grub_script_tab.o grub_emu-partmap_amiga.o grub_emu-partmap_apple.o grub_emu-partmap_msdos.o grub_emu-partmap_sun.o grub_emu-partmap_acorn.o grub_emu-partmap_gpt.o grub_emu-util_console.o grub_emu-util_hostfs.o grub_emu-util_grub_emu.o grub_emu-util_misc.o grub_emu-util_hostdisk.o grub_emu-util_getroot.o grub_emu-disk_raid.o grub_emu-disk_raid5_recover.o grub_emu-disk_raid6_recover.o grub_emu-disk_mdraid_linux.o grub_emu-disk_dmraid_nvidia.o grub_emu-disk_lvm.o grub_emu-grub_emu_init.o |
| |
| grub_emu-commands_minicmd.o: commands/minicmd.c $(commands/minicmd.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_minicmd.d |
| |
| grub_emu-commands_cat.o: commands/cat.c $(commands/cat.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_cat.d |
| |
| grub_emu-commands_cmp.o: commands/cmp.c $(commands/cmp.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_cmp.d |
| |
| grub_emu-commands_configfile.o: commands/configfile.c $(commands/configfile.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_configfile.d |
| |
| grub_emu-commands_echo.o: commands/echo.c $(commands/echo.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_echo.d |
| |
| grub_emu-commands_help.o: commands/help.c $(commands/help.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_help.d |
| |
| grub_emu-commands_handler.o: commands/handler.c $(commands/handler.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_handler.d |
| |
| grub_emu-commands_ls.o: commands/ls.c $(commands/ls.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_ls.d |
| |
| grub_emu-commands_test.o: commands/test.c $(commands/test.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_test.d |
| |
| grub_emu-commands_search.o: commands/search.c $(commands/search.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_search.d |
| |
| grub_emu-commands_blocklist.o: commands/blocklist.c $(commands/blocklist.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_blocklist.d |
| |
| grub_emu-commands_hexdump.o: commands/hexdump.c $(commands/hexdump.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_hexdump.d |
| |
| grub_emu-lib_hexdump.o: lib/hexdump.c $(lib/hexdump.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-lib_hexdump.d |
| |
| grub_emu-commands_halt.o: commands/halt.c $(commands/halt.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_halt.d |
| |
| grub_emu-commands_reboot.o: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_reboot.d |
| |
| grub_emu-lib_envblk.o: lib/envblk.c $(lib/envblk.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-lib_envblk.d |
| |
| grub_emu-commands_loadenv.o: commands/loadenv.c $(commands/loadenv.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_loadenv.d |
| |
| grub_emu-commands_gptsync.o: commands/gptsync.c $(commands/gptsync.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_gptsync.d |
| |
| grub_emu-commands_probe.o: commands/probe.c $(commands/probe.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_probe.d |
| |
| grub_emu-commands_xnu_uuid.o: commands/xnu_uuid.c $(commands/xnu_uuid.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_xnu_uuid.d |
| |
| grub_emu-commands_i386_cpuid.o: commands/i386/cpuid.c $(commands/i386/cpuid.c_DEPENDENCIES) |
| $(CC) -Icommands/i386 -I$(srcdir)/commands/i386 $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_i386_cpuid.d |
| |
| grub_emu-commands_password.o: commands/password.c $(commands/password.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_password.d |
| |
| grub_emu-commands_keystatus.o: commands/keystatus.c $(commands/keystatus.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_keystatus.d |
| |
| grub_emu-disk_host.o: disk/host.c $(disk/host.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_host.d |
| |
| grub_emu-disk_loopback.o: disk/loopback.c $(disk/loopback.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_loopback.d |
| |
| grub_emu-fs_affs.o: fs/affs.c $(fs/affs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_affs.d |
| |
| grub_emu-fs_cpio.o: fs/cpio.c $(fs/cpio.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_cpio.d |
| |
| grub_emu-fs_fat.o: fs/fat.c $(fs/fat.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_fat.d |
| |
| grub_emu-fs_ext2.o: fs/ext2.c $(fs/ext2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_ext2.d |
| |
| grub_emu-fs_hfs.o: fs/hfs.c $(fs/hfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_hfs.d |
| |
| grub_emu-fs_hfsplus.o: fs/hfsplus.c $(fs/hfsplus.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_hfsplus.d |
| |
| grub_emu-fs_iso9660.o: fs/iso9660.c $(fs/iso9660.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_iso9660.d |
| |
| grub_emu-fs_udf.o: fs/udf.c $(fs/udf.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_udf.d |
| |
| grub_emu-fs_jfs.o: fs/jfs.c $(fs/jfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_jfs.d |
| |
| grub_emu-fs_minix.o: fs/minix.c $(fs/minix.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_minix.d |
| |
| grub_emu-fs_ntfs.o: fs/ntfs.c $(fs/ntfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_ntfs.d |
| |
| grub_emu-fs_ntfscomp.o: fs/ntfscomp.c $(fs/ntfscomp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_ntfscomp.d |
| |
| grub_emu-fs_reiserfs.o: fs/reiserfs.c $(fs/reiserfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_reiserfs.d |
| |
| grub_emu-fs_sfs.o: fs/sfs.c $(fs/sfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_sfs.d |
| |
| grub_emu-fs_ufs.o: fs/ufs.c $(fs/ufs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_ufs.d |
| |
| grub_emu-fs_ufs2.o: fs/ufs2.c $(fs/ufs2.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_ufs2.d |
| |
| grub_emu-fs_xfs.o: fs/xfs.c $(fs/xfs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_xfs.d |
| |
| grub_emu-fs_afs.o: fs/afs.c $(fs/afs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_afs.d |
| |
| grub_emu-fs_afs_be.o: fs/afs_be.c $(fs/afs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_afs_be.d |
| |
| grub_emu-fs_befs.o: fs/befs.c $(fs/befs.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_befs.d |
| |
| grub_emu-fs_befs_be.o: fs/befs_be.c $(fs/befs_be.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_befs_be.d |
| |
| grub_emu-fs_tar.o: fs/tar.c $(fs/tar.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_tar.d |
| |
| grub_emu-fs_fshelp.o: fs/fshelp.c $(fs/fshelp.c_DEPENDENCIES) |
| $(CC) -Ifs -I$(srcdir)/fs $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-fs_fshelp.d |
| |
| grub_emu-io_gzio.o: io/gzio.c $(io/gzio.c_DEPENDENCIES) |
| $(CC) -Iio -I$(srcdir)/io $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-io_gzio.d |
| |
| grub_emu-kern_device.o: kern/device.c $(kern/device.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_device.d |
| |
| grub_emu-kern_disk.o: kern/disk.c $(kern/disk.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_disk.d |
| |
| grub_emu-kern_dl.o: kern/dl.c $(kern/dl.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_dl.d |
| |
| grub_emu-kern_elf.o: kern/elf.c $(kern/elf.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_elf.d |
| |
| grub_emu-kern_env.o: kern/env.c $(kern/env.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_env.d |
| |
| grub_emu-kern_err.o: kern/err.c $(kern/err.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_err.d |
| |
| grub_emu-kern_list.o: kern/list.c $(kern/list.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_list.d |
| |
| grub_emu-kern_handler.o: kern/handler.c $(kern/handler.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_handler.d |
| |
| grub_emu-kern_command.o: kern/command.c $(kern/command.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_command.d |
| |
| grub_emu-kern_corecmd.o: kern/corecmd.c $(kern/corecmd.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_corecmd.d |
| |
| grub_emu-commands_extcmd.o: commands/extcmd.c $(commands/extcmd.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_extcmd.d |
| |
| grub_emu-kern_file.o: kern/file.c $(kern/file.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_file.d |
| |
| grub_emu-kern_fs.o: kern/fs.c $(kern/fs.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_fs.d |
| |
| grub_emu-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES) |
| $(CC) -Icommands -I$(srcdir)/commands $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-commands_boot.d |
| |
| grub_emu-kern_main.o: kern/main.c $(kern/main.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_main.d |
| |
| grub_emu-kern_misc.o: kern/misc.c $(kern/misc.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_misc.d |
| |
| grub_emu-kern_parser.o: kern/parser.c $(kern/parser.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_parser.d |
| |
| grub_emu-kern_partition.o: kern/partition.c $(kern/partition.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_partition.d |
| |
| grub_emu-kern_reader.o: kern/reader.c $(kern/reader.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_reader.d |
| |
| grub_emu-kern_term.o: kern/term.c $(kern/term.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_term.d |
| |
| grub_emu-kern_rescue_reader.o: kern/rescue_reader.c $(kern/rescue_reader.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_rescue_reader.d |
| |
| grub_emu-kern_rescue_parser.o: kern/rescue_parser.c $(kern/rescue_parser.c_DEPENDENCIES) |
| $(CC) -Ikern -I$(srcdir)/kern $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-kern_rescue_parser.d |
| |
| grub_emu-lib_arg.o: lib/arg.c $(lib/arg.c_DEPENDENCIES) |
| $(CC) -Ilib -I$(srcdir)/lib $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-lib_arg.d |
| |
| grub_emu-normal_cmdline.o: normal/cmdline.c $(normal/cmdline.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_cmdline.d |
| |
| grub_emu-normal_datetime.o: normal/datetime.c $(normal/datetime.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_datetime.d |
| |
| grub_emu-normal_misc.o: normal/misc.c $(normal/misc.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_misc.d |
| |
| grub_emu-normal_handler.o: normal/handler.c $(normal/handler.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_handler.d |
| |
| grub_emu-normal_auth.o: normal/auth.c $(normal/auth.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_auth.d |
| |
| grub_emu-normal_autofs.o: normal/autofs.c $(normal/autofs.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_autofs.d |
| |
| grub_emu-normal_completion.o: normal/completion.c $(normal/completion.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_completion.d |
| |
| grub_emu-normal_main.o: normal/main.c $(normal/main.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_main.d |
| |
| grub_emu-normal_menu_text.o: normal/menu_text.c $(normal/menu_text.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_menu_text.d |
| |
| grub_emu-normal_menu.o: normal/menu.c $(normal/menu.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_menu.d |
| |
| grub_emu-normal_menu_entry.o: normal/menu_entry.c $(normal/menu_entry.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_menu_entry.d |
| |
| grub_emu-normal_menu_viewer.o: normal/menu_viewer.c $(normal/menu_viewer.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_menu_viewer.d |
| |
| grub_emu-normal_color.o: normal/color.c $(normal/color.c_DEPENDENCIES) |
| $(CC) -Inormal -I$(srcdir)/normal $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-normal_color.d |
| |
| grub_emu-script_sh_main.o: script/sh/main.c $(script/sh/main.c_DEPENDENCIES) |
| $(CC) -Iscript/sh -I$(srcdir)/script/sh $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-script_sh_main.d |
| |
| grub_emu-script_sh_execute.o: script/sh/execute.c $(script/sh/execute.c_DEPENDENCIES) |
| $(CC) -Iscript/sh -I$(srcdir)/script/sh $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-script_sh_execute.d |
| |
| grub_emu-script_sh_function.o: script/sh/function.c $(script/sh/function.c_DEPENDENCIES) |
| $(CC) -Iscript/sh -I$(srcdir)/script/sh $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-script_sh_function.d |
| |
| grub_emu-script_sh_lexer.o: script/sh/lexer.c $(script/sh/lexer.c_DEPENDENCIES) |
| $(CC) -Iscript/sh -I$(srcdir)/script/sh $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-script_sh_lexer.d |
| |
| grub_emu-script_sh_script.o: script/sh/script.c $(script/sh/script.c_DEPENDENCIES) |
| $(CC) -Iscript/sh -I$(srcdir)/script/sh $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-script_sh_script.d |
| |
| grub_emu-grub_script_tab.o: grub_script.tab.c $(grub_script.tab.c_DEPENDENCIES) |
| $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-grub_script_tab.d |
| |
| grub_emu-partmap_amiga.o: partmap/amiga.c $(partmap/amiga.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_amiga.d |
| |
| grub_emu-partmap_apple.o: partmap/apple.c $(partmap/apple.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_apple.d |
| |
| grub_emu-partmap_msdos.o: partmap/msdos.c $(partmap/msdos.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_msdos.d |
| |
| grub_emu-partmap_sun.o: partmap/sun.c $(partmap/sun.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_sun.d |
| |
| grub_emu-partmap_acorn.o: partmap/acorn.c $(partmap/acorn.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_acorn.d |
| |
| grub_emu-partmap_gpt.o: partmap/gpt.c $(partmap/gpt.c_DEPENDENCIES) |
| $(CC) -Ipartmap -I$(srcdir)/partmap $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-partmap_gpt.d |
| |
| grub_emu-util_console.o: util/console.c $(util/console.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_console.d |
| |
| grub_emu-util_hostfs.o: util/hostfs.c $(util/hostfs.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_hostfs.d |
| |
| grub_emu-util_grub_emu.o: util/grub-emu.c $(util/grub-emu.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_grub_emu.d |
| |
| grub_emu-util_misc.o: util/misc.c $(util/misc.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_misc.d |
| |
| grub_emu-util_hostdisk.o: util/hostdisk.c $(util/hostdisk.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_hostdisk.d |
| |
| grub_emu-util_getroot.o: util/getroot.c $(util/getroot.c_DEPENDENCIES) |
| $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-util_getroot.d |
| |
| grub_emu-disk_raid.o: disk/raid.c $(disk/raid.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_raid.d |
| |
| grub_emu-disk_raid5_recover.o: disk/raid5_recover.c $(disk/raid5_recover.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_raid5_recover.d |
| |
| grub_emu-disk_raid6_recover.o: disk/raid6_recover.c $(disk/raid6_recover.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_raid6_recover.d |
| |
| grub_emu-disk_mdraid_linux.o: disk/mdraid_linux.c $(disk/mdraid_linux.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_mdraid_linux.d |
| |
| grub_emu-disk_dmraid_nvidia.o: disk/dmraid_nvidia.c $(disk/dmraid_nvidia.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_dmraid_nvidia.d |
| |
| grub_emu-disk_lvm.o: disk/lvm.c $(disk/lvm.c_DEPENDENCIES) |
| $(CC) -Idisk -I$(srcdir)/disk $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-disk_lvm.d |
| |
| grub_emu-grub_emu_init.o: grub_emu_init.c $(grub_emu_init.c_DEPENDENCIES) |
| $(CC) -I. -I$(srcdir)/. $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_emu_CFLAGS) -MD -c -o $@ $< |
| -include grub_emu-grub_emu_init.d |
| |
| |
| grub_emu_LDFLAGS = $(LIBCURSES) |
| |
| # Scripts. |
| sbin_SCRIPTS = grub-install |
| |
| # For grub-install. |
| grub_install_SOURCES = util/ieee1275/grub-install.in |
| CLEANFILES += grub-install |
| |
| grub-install: util/ieee1275/grub-install.in $(util/ieee1275/grub-install.in_DEPENDENCIES) config.status |
| ./config.status --file=grub-install:util/ieee1275/grub-install.in |
| chmod +x $@ |
| |
| |
| # Modules. |
| pkglib_MODULES = halt.mod reboot.mod suspend.mod \ |
| multiboot.mod aout.mod serial.mod linux.mod \ |
| nand.mod memdisk.mod pci.mod lspci.mod datetime.mod \ |
| date.mod datehook.mod lsmmap.mod mmap.mod |
| |
| # For boot.mod. |
| pkglib_MODULES += boot.mod |
| boot_mod_SOURCES = commands/boot.c |
| |
| clean-module-boot.mod.1: |
| rm -f boot.mod mod-boot.o mod-boot.c pre-boot.o boot_mod-commands_boot.o und-boot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-boot.mod.1 |
| |
| ifneq ($(boot_mod_EXPORTS),no) |
| clean-module-boot.mod-symbol.1: |
| rm -f def-boot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-boot.mod-symbol.1 |
| DEFSYMFILES += def-boot.lst |
| endif |
| mostlyclean-module-boot.mod.1: |
| rm -f boot_mod-commands_boot.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-boot.mod.1 |
| UNDSYMFILES += und-boot.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-boot.o mod-boot.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 |
| boot.mod: pre-boot.o mod-boot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-boot.o mod-boot.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-boot.o: $(boot_mod_DEPENDENCIES) boot_mod-commands_boot.o |
| -rm -f $@ |
| $(TARGET_CC) $(boot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ boot_mod-commands_boot.o |
| |
| mod-boot.o: mod-boot.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -c -o $@ $< |
| |
| mod-boot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'boot' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(boot_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-boot.lst: pre-boot.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 boot/' > $@ |
| else |
| def-boot.lst: pre-boot.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 boot/' > $@ |
| endif |
| endif |
| |
| und-boot.lst: pre-boot.o |
| echo 'boot' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| boot_mod-commands_boot.o: commands/boot.c $(commands/boot.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -MD -c -o $@ $< |
| -include boot_mod-commands_boot.d |
| |
| clean-module-boot_mod-commands_boot-extra.1: |
| rm -f cmd-boot_mod-commands_boot.lst fs-boot_mod-commands_boot.lst partmap-boot_mod-commands_boot.lst handler-boot_mod-commands_boot.lst parttool-boot_mod-commands_boot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-boot_mod-commands_boot-extra.1 |
| |
| COMMANDFILES += cmd-boot_mod-commands_boot.lst |
| FSFILES += fs-boot_mod-commands_boot.lst |
| PARTTOOLFILES += parttool-boot_mod-commands_boot.lst |
| PARTMAPFILES += partmap-boot_mod-commands_boot.lst |
| HANDLERFILES += handler-boot_mod-commands_boot.lst |
| |
| cmd-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh boot > $@ || (rm -f $@; exit 1) |
| |
| fs-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh boot > $@ || (rm -f $@; exit 1) |
| |
| parttool-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh boot > $@ || (rm -f $@; exit 1) |
| |
| partmap-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh boot > $@ || (rm -f $@; exit 1) |
| |
| handler-boot_mod-commands_boot.lst: commands/boot.c $(commands/boot.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(boot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh boot > $@ || (rm -f $@; exit 1) |
| |
| boot_mod_CFLAGS = $(COMMON_CFLAGS) |
| boot_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For mmap.mod. |
| mmap_mod_SOURCES = mmap/mmap.c mmap/i386/uppermem.c mmap/i386/mmap.c |
| |
| clean-module-mmap.mod.1: |
| rm -f mmap.mod mod-mmap.o mod-mmap.c pre-mmap.o mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o und-mmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mmap.mod.1 |
| |
| ifneq ($(mmap_mod_EXPORTS),no) |
| clean-module-mmap.mod-symbol.1: |
| rm -f def-mmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mmap.mod-symbol.1 |
| DEFSYMFILES += def-mmap.lst |
| endif |
| mostlyclean-module-mmap.mod.1: |
| rm -f mmap_mod-mmap_mmap.d mmap_mod-mmap_i386_uppermem.d mmap_mod-mmap_i386_mmap.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-mmap.mod.1 |
| UNDSYMFILES += und-mmap.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| mmap.mod: pre-mmap.o mod-mmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-mmap.o mod-mmap.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 |
| mmap.mod: pre-mmap.o mod-mmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-mmap.o mod-mmap.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-mmap.o: $(mmap_mod_DEPENDENCIES) mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o |
| -rm -f $@ |
| $(TARGET_CC) $(mmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ mmap_mod-mmap_mmap.o mmap_mod-mmap_i386_uppermem.o mmap_mod-mmap_i386_mmap.o |
| |
| mod-mmap.o: mod-mmap.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -c -o $@ $< |
| |
| mod-mmap.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'mmap' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(mmap_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-mmap.lst: pre-mmap.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 mmap/' > $@ |
| else |
| def-mmap.lst: pre-mmap.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 mmap/' > $@ |
| endif |
| endif |
| |
| und-mmap.lst: pre-mmap.o |
| echo 'mmap' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| mmap_mod-mmap_mmap.o: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) |
| $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $< |
| -include mmap_mod-mmap_mmap.d |
| |
| clean-module-mmap_mod-mmap_mmap-extra.1: |
| rm -f cmd-mmap_mod-mmap_mmap.lst fs-mmap_mod-mmap_mmap.lst partmap-mmap_mod-mmap_mmap.lst handler-mmap_mod-mmap_mmap.lst parttool-mmap_mod-mmap_mmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_mmap-extra.1 |
| |
| COMMANDFILES += cmd-mmap_mod-mmap_mmap.lst |
| FSFILES += fs-mmap_mod-mmap_mmap.lst |
| PARTTOOLFILES += parttool-mmap_mod-mmap_mmap.lst |
| PARTMAPFILES += partmap-mmap_mod-mmap_mmap.lst |
| HANDLERFILES += handler-mmap_mod-mmap_mmap.lst |
| |
| cmd-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| fs-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| parttool-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| partmap-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| handler-mmap_mod-mmap_mmap.lst: mmap/mmap.c $(mmap/mmap.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Immap -I$(srcdir)/mmap $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| mmap_mod-mmap_i386_uppermem.o: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) |
| $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $< |
| -include mmap_mod-mmap_i386_uppermem.d |
| |
| clean-module-mmap_mod-mmap_i386_uppermem-extra.1: |
| rm -f cmd-mmap_mod-mmap_i386_uppermem.lst fs-mmap_mod-mmap_i386_uppermem.lst partmap-mmap_mod-mmap_i386_uppermem.lst handler-mmap_mod-mmap_i386_uppermem.lst parttool-mmap_mod-mmap_i386_uppermem.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_i386_uppermem-extra.1 |
| |
| COMMANDFILES += cmd-mmap_mod-mmap_i386_uppermem.lst |
| FSFILES += fs-mmap_mod-mmap_i386_uppermem.lst |
| PARTTOOLFILES += parttool-mmap_mod-mmap_i386_uppermem.lst |
| PARTMAPFILES += partmap-mmap_mod-mmap_i386_uppermem.lst |
| HANDLERFILES += handler-mmap_mod-mmap_i386_uppermem.lst |
| |
| cmd-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| fs-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| parttool-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| partmap-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| handler-mmap_mod-mmap_i386_uppermem.lst: mmap/i386/uppermem.c $(mmap/i386/uppermem.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| mmap_mod-mmap_i386_mmap.o: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) |
| $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -MD -c -o $@ $< |
| -include mmap_mod-mmap_i386_mmap.d |
| |
| clean-module-mmap_mod-mmap_i386_mmap-extra.1: |
| rm -f cmd-mmap_mod-mmap_i386_mmap.lst fs-mmap_mod-mmap_i386_mmap.lst partmap-mmap_mod-mmap_i386_mmap.lst handler-mmap_mod-mmap_i386_mmap.lst parttool-mmap_mod-mmap_i386_mmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-mmap_mod-mmap_i386_mmap-extra.1 |
| |
| COMMANDFILES += cmd-mmap_mod-mmap_i386_mmap.lst |
| FSFILES += fs-mmap_mod-mmap_i386_mmap.lst |
| PARTTOOLFILES += parttool-mmap_mod-mmap_i386_mmap.lst |
| PARTMAPFILES += partmap-mmap_mod-mmap_i386_mmap.lst |
| HANDLERFILES += handler-mmap_mod-mmap_i386_mmap.lst |
| |
| cmd-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| fs-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| parttool-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| partmap-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| handler-mmap_mod-mmap_i386_mmap.lst: mmap/i386/mmap.c $(mmap/i386/mmap.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Immap/i386 -I$(srcdir)/mmap/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(mmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh mmap > $@ || (rm -f $@; exit 1) |
| |
| mmap_mod_CFLAGS = $(COMMON_CFLAGS) |
| mmap_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| mmap_mod_ASFLAGS = $(COMMON_ASFLAGS) |
| |
| # For multiboot.mod. |
| multiboot_mod_SOURCES = loader/ieee1275/multiboot2.c \ |
| loader/i386/multiboot_helper.S \ |
| loader/multiboot2.c \ |
| loader/multiboot_loader.c |
| |
| clean-module-multiboot.mod.1: |
| rm -f multiboot.mod mod-multiboot.o mod-multiboot.c pre-multiboot.o multiboot_mod-loader_ieee1275_multiboot2.o multiboot_mod-loader_i386_multiboot_helper.o multiboot_mod-loader_multiboot2.o multiboot_mod-loader_multiboot_loader.o und-multiboot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot.mod.1 |
| |
| ifneq ($(multiboot_mod_EXPORTS),no) |
| clean-module-multiboot.mod-symbol.1: |
| rm -f def-multiboot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot.mod-symbol.1 |
| DEFSYMFILES += def-multiboot.lst |
| endif |
| mostlyclean-module-multiboot.mod.1: |
| rm -f multiboot_mod-loader_ieee1275_multiboot2.d multiboot_mod-loader_i386_multiboot_helper.d multiboot_mod-loader_multiboot2.d multiboot_mod-loader_multiboot_loader.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-multiboot.mod.1 |
| UNDSYMFILES += und-multiboot.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| multiboot.mod: pre-multiboot.o mod-multiboot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-multiboot.o mod-multiboot.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 |
| multiboot.mod: pre-multiboot.o mod-multiboot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-multiboot.o mod-multiboot.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-multiboot.o: $(multiboot_mod_DEPENDENCIES) multiboot_mod-loader_ieee1275_multiboot2.o multiboot_mod-loader_i386_multiboot_helper.o multiboot_mod-loader_multiboot2.o multiboot_mod-loader_multiboot_loader.o |
| -rm -f $@ |
| $(TARGET_CC) $(multiboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ multiboot_mod-loader_ieee1275_multiboot2.o multiboot_mod-loader_i386_multiboot_helper.o multiboot_mod-loader_multiboot2.o multiboot_mod-loader_multiboot_loader.o |
| |
| mod-multiboot.o: mod-multiboot.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -c -o $@ $< |
| |
| mod-multiboot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'multiboot' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(multiboot_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-multiboot.lst: pre-multiboot.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 multiboot/' > $@ |
| else |
| def-multiboot.lst: pre-multiboot.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 multiboot/' > $@ |
| endif |
| endif |
| |
| und-multiboot.lst: pre-multiboot.o |
| echo 'multiboot' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| multiboot_mod-loader_ieee1275_multiboot2.o: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) |
| $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $< |
| -include multiboot_mod-loader_ieee1275_multiboot2.d |
| |
| clean-module-multiboot_mod-loader_ieee1275_multiboot2-extra.1: |
| rm -f cmd-multiboot_mod-loader_ieee1275_multiboot2.lst fs-multiboot_mod-loader_ieee1275_multiboot2.lst partmap-multiboot_mod-loader_ieee1275_multiboot2.lst handler-multiboot_mod-loader_ieee1275_multiboot2.lst parttool-multiboot_mod-loader_ieee1275_multiboot2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot_mod-loader_ieee1275_multiboot2-extra.1 |
| |
| COMMANDFILES += cmd-multiboot_mod-loader_ieee1275_multiboot2.lst |
| FSFILES += fs-multiboot_mod-loader_ieee1275_multiboot2.lst |
| PARTTOOLFILES += parttool-multiboot_mod-loader_ieee1275_multiboot2.lst |
| PARTMAPFILES += partmap-multiboot_mod-loader_ieee1275_multiboot2.lst |
| HANDLERFILES += handler-multiboot_mod-loader_ieee1275_multiboot2.lst |
| |
| cmd-multiboot_mod-loader_ieee1275_multiboot2.lst: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| fs-multiboot_mod-loader_ieee1275_multiboot2.lst: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| parttool-multiboot_mod-loader_ieee1275_multiboot2.lst: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| partmap-multiboot_mod-loader_ieee1275_multiboot2.lst: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| handler-multiboot_mod-loader_ieee1275_multiboot2.lst: loader/ieee1275/multiboot2.c $(loader/ieee1275/multiboot2.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader/ieee1275 -I$(srcdir)/loader/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| multiboot_mod-loader_i386_multiboot_helper.o: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) |
| $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -MD -c -o $@ $< |
| -include multiboot_mod-loader_i386_multiboot_helper.d |
| |
| clean-module-multiboot_mod-loader_i386_multiboot_helper-extra.1: |
| rm -f cmd-multiboot_mod-loader_i386_multiboot_helper.lst fs-multiboot_mod-loader_i386_multiboot_helper.lst partmap-multiboot_mod-loader_i386_multiboot_helper.lst handler-multiboot_mod-loader_i386_multiboot_helper.lst parttool-multiboot_mod-loader_i386_multiboot_helper.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot_mod-loader_i386_multiboot_helper-extra.1 |
| |
| COMMANDFILES += cmd-multiboot_mod-loader_i386_multiboot_helper.lst |
| FSFILES += fs-multiboot_mod-loader_i386_multiboot_helper.lst |
| PARTTOOLFILES += parttool-multiboot_mod-loader_i386_multiboot_helper.lst |
| PARTMAPFILES += partmap-multiboot_mod-loader_i386_multiboot_helper.lst |
| HANDLERFILES += handler-multiboot_mod-loader_i386_multiboot_helper.lst |
| |
| cmd-multiboot_mod-loader_i386_multiboot_helper.lst: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| fs-multiboot_mod-loader_i386_multiboot_helper.lst: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| parttool-multiboot_mod-loader_i386_multiboot_helper.lst: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| partmap-multiboot_mod-loader_i386_multiboot_helper.lst: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| handler-multiboot_mod-loader_i386_multiboot_helper.lst: loader/i386/multiboot_helper.S $(loader/i386/multiboot_helper.S_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader/i386 -I$(srcdir)/loader/i386 $(TARGET_CPPFLAGS) -DASM_FILE=1 $(TARGET_ASFLAGS) $(multiboot_mod_ASFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| multiboot_mod-loader_multiboot2.o: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) |
| $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $< |
| -include multiboot_mod-loader_multiboot2.d |
| |
| clean-module-multiboot_mod-loader_multiboot2-extra.1: |
| rm -f cmd-multiboot_mod-loader_multiboot2.lst fs-multiboot_mod-loader_multiboot2.lst partmap-multiboot_mod-loader_multiboot2.lst handler-multiboot_mod-loader_multiboot2.lst parttool-multiboot_mod-loader_multiboot2.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot_mod-loader_multiboot2-extra.1 |
| |
| COMMANDFILES += cmd-multiboot_mod-loader_multiboot2.lst |
| FSFILES += fs-multiboot_mod-loader_multiboot2.lst |
| PARTTOOLFILES += parttool-multiboot_mod-loader_multiboot2.lst |
| PARTMAPFILES += partmap-multiboot_mod-loader_multiboot2.lst |
| HANDLERFILES += handler-multiboot_mod-loader_multiboot2.lst |
| |
| cmd-multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| fs-multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| parttool-multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| partmap-multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| handler-multiboot_mod-loader_multiboot2.lst: loader/multiboot2.c $(loader/multiboot2.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| multiboot_mod-loader_multiboot_loader.o: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) |
| $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -MD -c -o $@ $< |
| -include multiboot_mod-loader_multiboot_loader.d |
| |
| clean-module-multiboot_mod-loader_multiboot_loader-extra.1: |
| rm -f cmd-multiboot_mod-loader_multiboot_loader.lst fs-multiboot_mod-loader_multiboot_loader.lst partmap-multiboot_mod-loader_multiboot_loader.lst handler-multiboot_mod-loader_multiboot_loader.lst parttool-multiboot_mod-loader_multiboot_loader.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-multiboot_mod-loader_multiboot_loader-extra.1 |
| |
| COMMANDFILES += cmd-multiboot_mod-loader_multiboot_loader.lst |
| FSFILES += fs-multiboot_mod-loader_multiboot_loader.lst |
| PARTTOOLFILES += parttool-multiboot_mod-loader_multiboot_loader.lst |
| PARTMAPFILES += partmap-multiboot_mod-loader_multiboot_loader.lst |
| HANDLERFILES += handler-multiboot_mod-loader_multiboot_loader.lst |
| |
| cmd-multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| fs-multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| parttool-multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| partmap-multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| handler-multiboot_mod-loader_multiboot_loader.lst: loader/multiboot_loader.c $(loader/multiboot_loader.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(multiboot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh multiboot > $@ || (rm -f $@; exit 1) |
| |
| multiboot_mod_CFLAGS = $(COMMON_CFLAGS) |
| multiboot_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| multiboot_mod_ASFLAGS = $(COMMON_ASFLAGS) |
| |
| # For aout.mod. |
| aout_mod_SOURCES = loader/aout.c |
| |
| clean-module-aout.mod.1: |
| rm -f aout.mod mod-aout.o mod-aout.c pre-aout.o aout_mod-loader_aout.o und-aout.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-aout.mod.1 |
| |
| ifneq ($(aout_mod_EXPORTS),no) |
| clean-module-aout.mod-symbol.1: |
| rm -f def-aout.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-aout.mod-symbol.1 |
| DEFSYMFILES += def-aout.lst |
| endif |
| mostlyclean-module-aout.mod.1: |
| rm -f aout_mod-loader_aout.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-aout.mod.1 |
| UNDSYMFILES += und-aout.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| aout.mod: pre-aout.o mod-aout.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(aout_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-aout.o mod-aout.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 |
| aout.mod: pre-aout.o mod-aout.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(aout_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-aout.o mod-aout.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-aout.o: $(aout_mod_DEPENDENCIES) aout_mod-loader_aout.o |
| -rm -f $@ |
| $(TARGET_CC) $(aout_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ aout_mod-loader_aout.o |
| |
| mod-aout.o: mod-aout.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -c -o $@ $< |
| |
| mod-aout.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'aout' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(aout_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-aout.lst: pre-aout.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 aout/' > $@ |
| else |
| def-aout.lst: pre-aout.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 aout/' > $@ |
| endif |
| endif |
| |
| und-aout.lst: pre-aout.o |
| echo 'aout' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| aout_mod-loader_aout.o: loader/aout.c $(loader/aout.c_DEPENDENCIES) |
| $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -MD -c -o $@ $< |
| -include aout_mod-loader_aout.d |
| |
| clean-module-aout_mod-loader_aout-extra.1: |
| rm -f cmd-aout_mod-loader_aout.lst fs-aout_mod-loader_aout.lst partmap-aout_mod-loader_aout.lst handler-aout_mod-loader_aout.lst parttool-aout_mod-loader_aout.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-aout_mod-loader_aout-extra.1 |
| |
| COMMANDFILES += cmd-aout_mod-loader_aout.lst |
| FSFILES += fs-aout_mod-loader_aout.lst |
| PARTTOOLFILES += parttool-aout_mod-loader_aout.lst |
| PARTMAPFILES += partmap-aout_mod-loader_aout.lst |
| HANDLERFILES += handler-aout_mod-loader_aout.lst |
| |
| cmd-aout_mod-loader_aout.lst: loader/aout.c $(loader/aout.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh aout > $@ || (rm -f $@; exit 1) |
| |
| fs-aout_mod-loader_aout.lst: loader/aout.c $(loader/aout.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh aout > $@ || (rm -f $@; exit 1) |
| |
| parttool-aout_mod-loader_aout.lst: loader/aout.c $(loader/aout.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh aout > $@ || (rm -f $@; exit 1) |
| |
| partmap-aout_mod-loader_aout.lst: loader/aout.c $(loader/aout.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh aout > $@ || (rm -f $@; exit 1) |
| |
| handler-aout_mod-loader_aout.lst: loader/aout.c $(loader/aout.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader -I$(srcdir)/loader $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(aout_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh aout > $@ || (rm -f $@; exit 1) |
| |
| aout_mod_CFLAGS = $(COMMON_CFLAGS) |
| aout_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For suspend.mod |
| suspend_mod_SOURCES = commands/ieee1275/suspend.c |
| |
| clean-module-suspend.mod.1: |
| rm -f suspend.mod mod-suspend.o mod-suspend.c pre-suspend.o suspend_mod-commands_ieee1275_suspend.o und-suspend.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-suspend.mod.1 |
| |
| ifneq ($(suspend_mod_EXPORTS),no) |
| clean-module-suspend.mod-symbol.1: |
| rm -f def-suspend.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-suspend.mod-symbol.1 |
| DEFSYMFILES += def-suspend.lst |
| endif |
| mostlyclean-module-suspend.mod.1: |
| rm -f suspend_mod-commands_ieee1275_suspend.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-suspend.mod.1 |
| UNDSYMFILES += und-suspend.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| suspend.mod: pre-suspend.o mod-suspend.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-suspend.o mod-suspend.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 |
| suspend.mod: pre-suspend.o mod-suspend.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-suspend.o mod-suspend.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-suspend.o: $(suspend_mod_DEPENDENCIES) suspend_mod-commands_ieee1275_suspend.o |
| -rm -f $@ |
| $(TARGET_CC) $(suspend_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ suspend_mod-commands_ieee1275_suspend.o |
| |
| mod-suspend.o: mod-suspend.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -c -o $@ $< |
| |
| mod-suspend.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'suspend' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(suspend_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-suspend.lst: pre-suspend.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 suspend/' > $@ |
| else |
| def-suspend.lst: pre-suspend.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 suspend/' > $@ |
| endif |
| endif |
| |
| und-suspend.lst: pre-suspend.o |
| echo 'suspend' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| suspend_mod-commands_ieee1275_suspend.o: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -MD -c -o $@ $< |
| -include suspend_mod-commands_ieee1275_suspend.d |
| |
| clean-module-suspend_mod-commands_ieee1275_suspend-extra.1: |
| rm -f cmd-suspend_mod-commands_ieee1275_suspend.lst fs-suspend_mod-commands_ieee1275_suspend.lst partmap-suspend_mod-commands_ieee1275_suspend.lst handler-suspend_mod-commands_ieee1275_suspend.lst parttool-suspend_mod-commands_ieee1275_suspend.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-suspend_mod-commands_ieee1275_suspend-extra.1 |
| |
| COMMANDFILES += cmd-suspend_mod-commands_ieee1275_suspend.lst |
| FSFILES += fs-suspend_mod-commands_ieee1275_suspend.lst |
| PARTTOOLFILES += parttool-suspend_mod-commands_ieee1275_suspend.lst |
| PARTMAPFILES += partmap-suspend_mod-commands_ieee1275_suspend.lst |
| HANDLERFILES += handler-suspend_mod-commands_ieee1275_suspend.lst |
| |
| cmd-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh suspend > $@ || (rm -f $@; exit 1) |
| |
| fs-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh suspend > $@ || (rm -f $@; exit 1) |
| |
| parttool-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh suspend > $@ || (rm -f $@; exit 1) |
| |
| partmap-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh suspend > $@ || (rm -f $@; exit 1) |
| |
| handler-suspend_mod-commands_ieee1275_suspend.lst: commands/ieee1275/suspend.c $(commands/ieee1275/suspend.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands/ieee1275 -I$(srcdir)/commands/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(suspend_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh suspend > $@ || (rm -f $@; exit 1) |
| |
| suspend_mod_CFLAGS = $(COMMON_CFLAGS) |
| suspend_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For reboot.mod |
| reboot_mod_SOURCES = commands/reboot.c |
| |
| clean-module-reboot.mod.1: |
| rm -f reboot.mod mod-reboot.o mod-reboot.c pre-reboot.o reboot_mod-commands_reboot.o und-reboot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reboot.mod.1 |
| |
| ifneq ($(reboot_mod_EXPORTS),no) |
| clean-module-reboot.mod-symbol.1: |
| rm -f def-reboot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reboot.mod-symbol.1 |
| DEFSYMFILES += def-reboot.lst |
| endif |
| mostlyclean-module-reboot.mod.1: |
| rm -f reboot_mod-commands_reboot.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-reboot.mod.1 |
| UNDSYMFILES += und-reboot.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| reboot.mod: pre-reboot.o mod-reboot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-reboot.o mod-reboot.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 |
| reboot.mod: pre-reboot.o mod-reboot.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-reboot.o mod-reboot.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-reboot.o: $(reboot_mod_DEPENDENCIES) reboot_mod-commands_reboot.o |
| -rm -f $@ |
| $(TARGET_CC) $(reboot_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ reboot_mod-commands_reboot.o |
| |
| mod-reboot.o: mod-reboot.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -c -o $@ $< |
| |
| mod-reboot.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'reboot' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(reboot_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-reboot.lst: pre-reboot.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 reboot/' > $@ |
| else |
| def-reboot.lst: pre-reboot.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 reboot/' > $@ |
| endif |
| endif |
| |
| und-reboot.lst: pre-reboot.o |
| echo 'reboot' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| reboot_mod-commands_reboot.o: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -MD -c -o $@ $< |
| -include reboot_mod-commands_reboot.d |
| |
| clean-module-reboot_mod-commands_reboot-extra.1: |
| rm -f cmd-reboot_mod-commands_reboot.lst fs-reboot_mod-commands_reboot.lst partmap-reboot_mod-commands_reboot.lst handler-reboot_mod-commands_reboot.lst parttool-reboot_mod-commands_reboot.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-reboot_mod-commands_reboot-extra.1 |
| |
| COMMANDFILES += cmd-reboot_mod-commands_reboot.lst |
| FSFILES += fs-reboot_mod-commands_reboot.lst |
| PARTTOOLFILES += parttool-reboot_mod-commands_reboot.lst |
| PARTMAPFILES += partmap-reboot_mod-commands_reboot.lst |
| HANDLERFILES += handler-reboot_mod-commands_reboot.lst |
| |
| cmd-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh reboot > $@ || (rm -f $@; exit 1) |
| |
| fs-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh reboot > $@ || (rm -f $@; exit 1) |
| |
| parttool-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh reboot > $@ || (rm -f $@; exit 1) |
| |
| partmap-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh reboot > $@ || (rm -f $@; exit 1) |
| |
| handler-reboot_mod-commands_reboot.lst: commands/reboot.c $(commands/reboot.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(reboot_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh reboot > $@ || (rm -f $@; exit 1) |
| |
| reboot_mod_CFLAGS = $(COMMON_CFLAGS) |
| reboot_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For halt.mod |
| halt_mod_SOURCES = commands/halt.c |
| |
| clean-module-halt.mod.1: |
| rm -f halt.mod mod-halt.o mod-halt.c pre-halt.o halt_mod-commands_halt.o und-halt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-halt.mod.1 |
| |
| ifneq ($(halt_mod_EXPORTS),no) |
| clean-module-halt.mod-symbol.1: |
| rm -f def-halt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-halt.mod-symbol.1 |
| DEFSYMFILES += def-halt.lst |
| endif |
| mostlyclean-module-halt.mod.1: |
| rm -f halt_mod-commands_halt.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-halt.mod.1 |
| UNDSYMFILES += und-halt.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| halt.mod: pre-halt.o mod-halt.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-halt.o mod-halt.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 |
| halt.mod: pre-halt.o mod-halt.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-halt.o mod-halt.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-halt.o: $(halt_mod_DEPENDENCIES) halt_mod-commands_halt.o |
| -rm -f $@ |
| $(TARGET_CC) $(halt_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ halt_mod-commands_halt.o |
| |
| mod-halt.o: mod-halt.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -c -o $@ $< |
| |
| mod-halt.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'halt' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(halt_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-halt.lst: pre-halt.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 halt/' > $@ |
| else |
| def-halt.lst: pre-halt.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 halt/' > $@ |
| endif |
| endif |
| |
| und-halt.lst: pre-halt.o |
| echo 'halt' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| halt_mod-commands_halt.o: commands/halt.c $(commands/halt.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -MD -c -o $@ $< |
| -include halt_mod-commands_halt.d |
| |
| clean-module-halt_mod-commands_halt-extra.1: |
| rm -f cmd-halt_mod-commands_halt.lst fs-halt_mod-commands_halt.lst partmap-halt_mod-commands_halt.lst handler-halt_mod-commands_halt.lst parttool-halt_mod-commands_halt.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-halt_mod-commands_halt-extra.1 |
| |
| COMMANDFILES += cmd-halt_mod-commands_halt.lst |
| FSFILES += fs-halt_mod-commands_halt.lst |
| PARTTOOLFILES += parttool-halt_mod-commands_halt.lst |
| PARTMAPFILES += partmap-halt_mod-commands_halt.lst |
| HANDLERFILES += handler-halt_mod-commands_halt.lst |
| |
| cmd-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh halt > $@ || (rm -f $@; exit 1) |
| |
| fs-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh halt > $@ || (rm -f $@; exit 1) |
| |
| parttool-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh halt > $@ || (rm -f $@; exit 1) |
| |
| partmap-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh halt > $@ || (rm -f $@; exit 1) |
| |
| handler-halt_mod-commands_halt.lst: commands/halt.c $(commands/halt.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(halt_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh halt > $@ || (rm -f $@; exit 1) |
| |
| halt_mod_CFLAGS = $(COMMON_CFLAGS) |
| halt_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For serial.mod. |
| serial_mod_SOURCES = term/i386/pc/serial.c |
| |
| clean-module-serial.mod.1: |
| rm -f serial.mod mod-serial.o mod-serial.c pre-serial.o serial_mod-term_i386_pc_serial.o und-serial.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-serial.mod.1 |
| |
| ifneq ($(serial_mod_EXPORTS),no) |
| clean-module-serial.mod-symbol.1: |
| rm -f def-serial.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-serial.mod-symbol.1 |
| DEFSYMFILES += def-serial.lst |
| endif |
| mostlyclean-module-serial.mod.1: |
| rm -f serial_mod-term_i386_pc_serial.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-serial.mod.1 |
| UNDSYMFILES += und-serial.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| serial.mod: pre-serial.o mod-serial.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-serial.o mod-serial.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 |
| serial.mod: pre-serial.o mod-serial.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-serial.o mod-serial.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-serial.o: $(serial_mod_DEPENDENCIES) serial_mod-term_i386_pc_serial.o |
| -rm -f $@ |
| $(TARGET_CC) $(serial_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ serial_mod-term_i386_pc_serial.o |
| |
| mod-serial.o: mod-serial.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -c -o $@ $< |
| |
| mod-serial.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'serial' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(serial_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-serial.lst: pre-serial.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 serial/' > $@ |
| else |
| def-serial.lst: pre-serial.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 serial/' > $@ |
| endif |
| endif |
| |
| und-serial.lst: pre-serial.o |
| echo 'serial' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| serial_mod-term_i386_pc_serial.o: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) |
| $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -MD -c -o $@ $< |
| -include serial_mod-term_i386_pc_serial.d |
| |
| clean-module-serial_mod-term_i386_pc_serial-extra.1: |
| rm -f cmd-serial_mod-term_i386_pc_serial.lst fs-serial_mod-term_i386_pc_serial.lst partmap-serial_mod-term_i386_pc_serial.lst handler-serial_mod-term_i386_pc_serial.lst parttool-serial_mod-term_i386_pc_serial.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-serial_mod-term_i386_pc_serial-extra.1 |
| |
| COMMANDFILES += cmd-serial_mod-term_i386_pc_serial.lst |
| FSFILES += fs-serial_mod-term_i386_pc_serial.lst |
| PARTTOOLFILES += parttool-serial_mod-term_i386_pc_serial.lst |
| PARTMAPFILES += partmap-serial_mod-term_i386_pc_serial.lst |
| HANDLERFILES += handler-serial_mod-term_i386_pc_serial.lst |
| |
| cmd-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh serial > $@ || (rm -f $@; exit 1) |
| |
| fs-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh serial > $@ || (rm -f $@; exit 1) |
| |
| parttool-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh serial > $@ || (rm -f $@; exit 1) |
| |
| partmap-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh serial > $@ || (rm -f $@; exit 1) |
| |
| handler-serial_mod-term_i386_pc_serial.lst: term/i386/pc/serial.c $(term/i386/pc/serial.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iterm/i386/pc -I$(srcdir)/term/i386/pc $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(serial_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh serial > $@ || (rm -f $@; exit 1) |
| |
| serial_mod_CFLAGS = $(COMMON_CFLAGS) |
| serial_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For linux.mod. |
| linux_mod_SOURCES = loader/i386/ieee1275/linux.c |
| |
| clean-module-linux.mod.1: |
| rm -f linux.mod mod-linux.o mod-linux.c pre-linux.o linux_mod-loader_i386_ieee1275_linux.o und-linux.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-linux.mod.1 |
| |
| ifneq ($(linux_mod_EXPORTS),no) |
| clean-module-linux.mod-symbol.1: |
| rm -f def-linux.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-linux.mod-symbol.1 |
| DEFSYMFILES += def-linux.lst |
| endif |
| mostlyclean-module-linux.mod.1: |
| rm -f linux_mod-loader_i386_ieee1275_linux.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-linux.mod.1 |
| UNDSYMFILES += und-linux.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| linux.mod: pre-linux.o mod-linux.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-linux.o mod-linux.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 |
| linux.mod: pre-linux.o mod-linux.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-linux.o mod-linux.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-linux.o: $(linux_mod_DEPENDENCIES) linux_mod-loader_i386_ieee1275_linux.o |
| -rm -f $@ |
| $(TARGET_CC) $(linux_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ linux_mod-loader_i386_ieee1275_linux.o |
| |
| mod-linux.o: mod-linux.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -c -o $@ $< |
| |
| mod-linux.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'linux' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(linux_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-linux.lst: pre-linux.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 linux/' > $@ |
| else |
| def-linux.lst: pre-linux.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 linux/' > $@ |
| endif |
| endif |
| |
| und-linux.lst: pre-linux.o |
| echo 'linux' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| linux_mod-loader_i386_ieee1275_linux.o: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) |
| $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -MD -c -o $@ $< |
| -include linux_mod-loader_i386_ieee1275_linux.d |
| |
| clean-module-linux_mod-loader_i386_ieee1275_linux-extra.1: |
| rm -f cmd-linux_mod-loader_i386_ieee1275_linux.lst fs-linux_mod-loader_i386_ieee1275_linux.lst partmap-linux_mod-loader_i386_ieee1275_linux.lst handler-linux_mod-loader_i386_ieee1275_linux.lst parttool-linux_mod-loader_i386_ieee1275_linux.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-linux_mod-loader_i386_ieee1275_linux-extra.1 |
| |
| COMMANDFILES += cmd-linux_mod-loader_i386_ieee1275_linux.lst |
| FSFILES += fs-linux_mod-loader_i386_ieee1275_linux.lst |
| PARTTOOLFILES += parttool-linux_mod-loader_i386_ieee1275_linux.lst |
| PARTMAPFILES += partmap-linux_mod-loader_i386_ieee1275_linux.lst |
| HANDLERFILES += handler-linux_mod-loader_i386_ieee1275_linux.lst |
| |
| cmd-linux_mod-loader_i386_ieee1275_linux.lst: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh linux > $@ || (rm -f $@; exit 1) |
| |
| fs-linux_mod-loader_i386_ieee1275_linux.lst: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh linux > $@ || (rm -f $@; exit 1) |
| |
| parttool-linux_mod-loader_i386_ieee1275_linux.lst: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh linux > $@ || (rm -f $@; exit 1) |
| |
| partmap-linux_mod-loader_i386_ieee1275_linux.lst: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh linux > $@ || (rm -f $@; exit 1) |
| |
| handler-linux_mod-loader_i386_ieee1275_linux.lst: loader/i386/ieee1275/linux.c $(loader/i386/ieee1275/linux.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Iloader/i386/ieee1275 -I$(srcdir)/loader/i386/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(linux_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh linux > $@ || (rm -f $@; exit 1) |
| |
| linux_mod_CFLAGS = $(COMMON_CFLAGS) |
| linux_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For nand.mod. |
| nand_mod_SOURCES = disk/ieee1275/nand.c |
| |
| clean-module-nand.mod.1: |
| rm -f nand.mod mod-nand.o mod-nand.c pre-nand.o nand_mod-disk_ieee1275_nand.o und-nand.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-nand.mod.1 |
| |
| ifneq ($(nand_mod_EXPORTS),no) |
| clean-module-nand.mod-symbol.1: |
| rm -f def-nand.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-nand.mod-symbol.1 |
| DEFSYMFILES += def-nand.lst |
| endif |
| mostlyclean-module-nand.mod.1: |
| rm -f nand_mod-disk_ieee1275_nand.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-nand.mod.1 |
| UNDSYMFILES += und-nand.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| nand.mod: pre-nand.o mod-nand.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(nand_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-nand.o mod-nand.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 |
| nand.mod: pre-nand.o mod-nand.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(nand_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-nand.o mod-nand.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-nand.o: $(nand_mod_DEPENDENCIES) nand_mod-disk_ieee1275_nand.o |
| -rm -f $@ |
| $(TARGET_CC) $(nand_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ nand_mod-disk_ieee1275_nand.o |
| |
| mod-nand.o: mod-nand.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -c -o $@ $< |
| |
| mod-nand.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'nand' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(nand_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-nand.lst: pre-nand.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 nand/' > $@ |
| else |
| def-nand.lst: pre-nand.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 nand/' > $@ |
| endif |
| endif |
| |
| und-nand.lst: pre-nand.o |
| echo 'nand' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| nand_mod-disk_ieee1275_nand.o: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -MD -c -o $@ $< |
| -include nand_mod-disk_ieee1275_nand.d |
| |
| clean-module-nand_mod-disk_ieee1275_nand-extra.1: |
| rm -f cmd-nand_mod-disk_ieee1275_nand.lst fs-nand_mod-disk_ieee1275_nand.lst partmap-nand_mod-disk_ieee1275_nand.lst handler-nand_mod-disk_ieee1275_nand.lst parttool-nand_mod-disk_ieee1275_nand.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-nand_mod-disk_ieee1275_nand-extra.1 |
| |
| COMMANDFILES += cmd-nand_mod-disk_ieee1275_nand.lst |
| FSFILES += fs-nand_mod-disk_ieee1275_nand.lst |
| PARTTOOLFILES += parttool-nand_mod-disk_ieee1275_nand.lst |
| PARTMAPFILES += partmap-nand_mod-disk_ieee1275_nand.lst |
| HANDLERFILES += handler-nand_mod-disk_ieee1275_nand.lst |
| |
| cmd-nand_mod-disk_ieee1275_nand.lst: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh nand > $@ || (rm -f $@; exit 1) |
| |
| fs-nand_mod-disk_ieee1275_nand.lst: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh nand > $@ || (rm -f $@; exit 1) |
| |
| parttool-nand_mod-disk_ieee1275_nand.lst: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh nand > $@ || (rm -f $@; exit 1) |
| |
| partmap-nand_mod-disk_ieee1275_nand.lst: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh nand > $@ || (rm -f $@; exit 1) |
| |
| handler-nand_mod-disk_ieee1275_nand.lst: disk/ieee1275/nand.c $(disk/ieee1275/nand.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk/ieee1275 -I$(srcdir)/disk/ieee1275 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(nand_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh nand > $@ || (rm -f $@; exit 1) |
| |
| nand_mod_CFLAGS = $(COMMON_CFLAGS) |
| nand_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For memdisk.mod. |
| memdisk_mod_SOURCES = disk/memdisk.c |
| |
| clean-module-memdisk.mod.1: |
| rm -f memdisk.mod mod-memdisk.o mod-memdisk.c pre-memdisk.o memdisk_mod-disk_memdisk.o und-memdisk.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memdisk.mod.1 |
| |
| ifneq ($(memdisk_mod_EXPORTS),no) |
| clean-module-memdisk.mod-symbol.1: |
| rm -f def-memdisk.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memdisk.mod-symbol.1 |
| DEFSYMFILES += def-memdisk.lst |
| endif |
| mostlyclean-module-memdisk.mod.1: |
| rm -f memdisk_mod-disk_memdisk.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-memdisk.mod.1 |
| UNDSYMFILES += und-memdisk.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| memdisk.mod: pre-memdisk.o mod-memdisk.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-memdisk.o mod-memdisk.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 |
| memdisk.mod: pre-memdisk.o mod-memdisk.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-memdisk.o mod-memdisk.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-memdisk.o: $(memdisk_mod_DEPENDENCIES) memdisk_mod-disk_memdisk.o |
| -rm -f $@ |
| $(TARGET_CC) $(memdisk_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ memdisk_mod-disk_memdisk.o |
| |
| mod-memdisk.o: mod-memdisk.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -c -o $@ $< |
| |
| mod-memdisk.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'memdisk' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(memdisk_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-memdisk.lst: pre-memdisk.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 memdisk/' > $@ |
| else |
| def-memdisk.lst: pre-memdisk.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 memdisk/' > $@ |
| endif |
| endif |
| |
| und-memdisk.lst: pre-memdisk.o |
| echo 'memdisk' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| memdisk_mod-disk_memdisk.o: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) |
| $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -MD -c -o $@ $< |
| -include memdisk_mod-disk_memdisk.d |
| |
| clean-module-memdisk_mod-disk_memdisk-extra.1: |
| rm -f cmd-memdisk_mod-disk_memdisk.lst fs-memdisk_mod-disk_memdisk.lst partmap-memdisk_mod-disk_memdisk.lst handler-memdisk_mod-disk_memdisk.lst parttool-memdisk_mod-disk_memdisk.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-memdisk_mod-disk_memdisk-extra.1 |
| |
| COMMANDFILES += cmd-memdisk_mod-disk_memdisk.lst |
| FSFILES += fs-memdisk_mod-disk_memdisk.lst |
| PARTTOOLFILES += parttool-memdisk_mod-disk_memdisk.lst |
| PARTMAPFILES += partmap-memdisk_mod-disk_memdisk.lst |
| HANDLERFILES += handler-memdisk_mod-disk_memdisk.lst |
| |
| cmd-memdisk_mod-disk_memdisk.lst: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh memdisk > $@ || (rm -f $@; exit 1) |
| |
| fs-memdisk_mod-disk_memdisk.lst: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh memdisk > $@ || (rm -f $@; exit 1) |
| |
| parttool-memdisk_mod-disk_memdisk.lst: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh memdisk > $@ || (rm -f $@; exit 1) |
| |
| partmap-memdisk_mod-disk_memdisk.lst: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh memdisk > $@ || (rm -f $@; exit 1) |
| |
| handler-memdisk_mod-disk_memdisk.lst: disk/memdisk.c $(disk/memdisk.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Idisk -I$(srcdir)/disk $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(memdisk_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh memdisk > $@ || (rm -f $@; exit 1) |
| |
| memdisk_mod_CFLAGS = $(COMMON_CFLAGS) |
| memdisk_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For pci.mod |
| pci_mod_SOURCES = bus/pci.c |
| |
| clean-module-pci.mod.1: |
| rm -f pci.mod mod-pci.o mod-pci.c pre-pci.o pci_mod-bus_pci.o und-pci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-pci.mod.1 |
| |
| ifneq ($(pci_mod_EXPORTS),no) |
| clean-module-pci.mod-symbol.1: |
| rm -f def-pci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-pci.mod-symbol.1 |
| DEFSYMFILES += def-pci.lst |
| endif |
| mostlyclean-module-pci.mod.1: |
| rm -f pci_mod-bus_pci.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-pci.mod.1 |
| UNDSYMFILES += und-pci.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| pci.mod: pre-pci.o mod-pci.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-pci.o mod-pci.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 |
| pci.mod: pre-pci.o mod-pci.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-pci.o mod-pci.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-pci.o: $(pci_mod_DEPENDENCIES) pci_mod-bus_pci.o |
| -rm -f $@ |
| $(TARGET_CC) $(pci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pci_mod-bus_pci.o |
| |
| mod-pci.o: mod-pci.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -c -o $@ $< |
| |
| mod-pci.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'pci' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(pci_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-pci.lst: pre-pci.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 pci/' > $@ |
| else |
| def-pci.lst: pre-pci.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 pci/' > $@ |
| endif |
| endif |
| |
| und-pci.lst: pre-pci.o |
| echo 'pci' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| pci_mod-bus_pci.o: bus/pci.c $(bus/pci.c_DEPENDENCIES) |
| $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -MD -c -o $@ $< |
| -include pci_mod-bus_pci.d |
| |
| clean-module-pci_mod-bus_pci-extra.1: |
| rm -f cmd-pci_mod-bus_pci.lst fs-pci_mod-bus_pci.lst partmap-pci_mod-bus_pci.lst handler-pci_mod-bus_pci.lst parttool-pci_mod-bus_pci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-pci_mod-bus_pci-extra.1 |
| |
| COMMANDFILES += cmd-pci_mod-bus_pci.lst |
| FSFILES += fs-pci_mod-bus_pci.lst |
| PARTTOOLFILES += parttool-pci_mod-bus_pci.lst |
| PARTMAPFILES += partmap-pci_mod-bus_pci.lst |
| HANDLERFILES += handler-pci_mod-bus_pci.lst |
| |
| cmd-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh pci > $@ || (rm -f $@; exit 1) |
| |
| fs-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh pci > $@ || (rm -f $@; exit 1) |
| |
| parttool-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh pci > $@ || (rm -f $@; exit 1) |
| |
| partmap-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh pci > $@ || (rm -f $@; exit 1) |
| |
| handler-pci_mod-bus_pci.lst: bus/pci.c $(bus/pci.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ibus -I$(srcdir)/bus $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(pci_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh pci > $@ || (rm -f $@; exit 1) |
| |
| pci_mod_CFLAGS = $(COMMON_CFLAGS) |
| pci_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For lspci.mod |
| lspci_mod_SOURCES = commands/lspci.c |
| |
| clean-module-lspci.mod.1: |
| rm -f lspci.mod mod-lspci.o mod-lspci.c pre-lspci.o lspci_mod-commands_lspci.o und-lspci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lspci.mod.1 |
| |
| ifneq ($(lspci_mod_EXPORTS),no) |
| clean-module-lspci.mod-symbol.1: |
| rm -f def-lspci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lspci.mod-symbol.1 |
| DEFSYMFILES += def-lspci.lst |
| endif |
| mostlyclean-module-lspci.mod.1: |
| rm -f lspci_mod-commands_lspci.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-lspci.mod.1 |
| UNDSYMFILES += und-lspci.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| lspci.mod: pre-lspci.o mod-lspci.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-lspci.o mod-lspci.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 |
| lspci.mod: pre-lspci.o mod-lspci.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-lspci.o mod-lspci.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-lspci.o: $(lspci_mod_DEPENDENCIES) lspci_mod-commands_lspci.o |
| -rm -f $@ |
| $(TARGET_CC) $(lspci_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lspci_mod-commands_lspci.o |
| |
| mod-lspci.o: mod-lspci.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -c -o $@ $< |
| |
| mod-lspci.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'lspci' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(lspci_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-lspci.lst: pre-lspci.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lspci/' > $@ |
| else |
| def-lspci.lst: pre-lspci.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 lspci/' > $@ |
| endif |
| endif |
| |
| und-lspci.lst: pre-lspci.o |
| echo 'lspci' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| lspci_mod-commands_lspci.o: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -MD -c -o $@ $< |
| -include lspci_mod-commands_lspci.d |
| |
| clean-module-lspci_mod-commands_lspci-extra.1: |
| rm -f cmd-lspci_mod-commands_lspci.lst fs-lspci_mod-commands_lspci.lst partmap-lspci_mod-commands_lspci.lst handler-lspci_mod-commands_lspci.lst parttool-lspci_mod-commands_lspci.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lspci_mod-commands_lspci-extra.1 |
| |
| COMMANDFILES += cmd-lspci_mod-commands_lspci.lst |
| FSFILES += fs-lspci_mod-commands_lspci.lst |
| PARTTOOLFILES += parttool-lspci_mod-commands_lspci.lst |
| PARTMAPFILES += partmap-lspci_mod-commands_lspci.lst |
| HANDLERFILES += handler-lspci_mod-commands_lspci.lst |
| |
| cmd-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh lspci > $@ || (rm -f $@; exit 1) |
| |
| fs-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh lspci > $@ || (rm -f $@; exit 1) |
| |
| parttool-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh lspci > $@ || (rm -f $@; exit 1) |
| |
| partmap-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh lspci > $@ || (rm -f $@; exit 1) |
| |
| handler-lspci_mod-commands_lspci.lst: commands/lspci.c $(commands/lspci.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lspci_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh lspci > $@ || (rm -f $@; exit 1) |
| |
| lspci_mod_CFLAGS = $(COMMON_CFLAGS) |
| lspci_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For datetime.mod |
| datetime_mod_SOURCES = lib/i386/datetime.c |
| |
| clean-module-datetime.mod.1: |
| rm -f datetime.mod mod-datetime.o mod-datetime.c pre-datetime.o datetime_mod-lib_i386_datetime.o und-datetime.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datetime.mod.1 |
| |
| ifneq ($(datetime_mod_EXPORTS),no) |
| clean-module-datetime.mod-symbol.1: |
| rm -f def-datetime.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datetime.mod-symbol.1 |
| DEFSYMFILES += def-datetime.lst |
| endif |
| mostlyclean-module-datetime.mod.1: |
| rm -f datetime_mod-lib_i386_datetime.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-datetime.mod.1 |
| UNDSYMFILES += und-datetime.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| datetime.mod: pre-datetime.o mod-datetime.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-datetime.o mod-datetime.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 |
| datetime.mod: pre-datetime.o mod-datetime.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-datetime.o mod-datetime.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-datetime.o: $(datetime_mod_DEPENDENCIES) datetime_mod-lib_i386_datetime.o |
| -rm -f $@ |
| $(TARGET_CC) $(datetime_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ datetime_mod-lib_i386_datetime.o |
| |
| mod-datetime.o: mod-datetime.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -c -o $@ $< |
| |
| mod-datetime.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'datetime' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(datetime_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-datetime.lst: pre-datetime.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 datetime/' > $@ |
| else |
| def-datetime.lst: pre-datetime.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 datetime/' > $@ |
| endif |
| endif |
| |
| und-datetime.lst: pre-datetime.o |
| echo 'datetime' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| datetime_mod-lib_i386_datetime.o: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) |
| $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -MD -c -o $@ $< |
| -include datetime_mod-lib_i386_datetime.d |
| |
| clean-module-datetime_mod-lib_i386_datetime-extra.1: |
| rm -f cmd-datetime_mod-lib_i386_datetime.lst fs-datetime_mod-lib_i386_datetime.lst partmap-datetime_mod-lib_i386_datetime.lst handler-datetime_mod-lib_i386_datetime.lst parttool-datetime_mod-lib_i386_datetime.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datetime_mod-lib_i386_datetime-extra.1 |
| |
| COMMANDFILES += cmd-datetime_mod-lib_i386_datetime.lst |
| FSFILES += fs-datetime_mod-lib_i386_datetime.lst |
| PARTTOOLFILES += parttool-datetime_mod-lib_i386_datetime.lst |
| PARTMAPFILES += partmap-datetime_mod-lib_i386_datetime.lst |
| HANDLERFILES += handler-datetime_mod-lib_i386_datetime.lst |
| |
| cmd-datetime_mod-lib_i386_datetime.lst: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh datetime > $@ || (rm -f $@; exit 1) |
| |
| fs-datetime_mod-lib_i386_datetime.lst: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh datetime > $@ || (rm -f $@; exit 1) |
| |
| parttool-datetime_mod-lib_i386_datetime.lst: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh datetime > $@ || (rm -f $@; exit 1) |
| |
| partmap-datetime_mod-lib_i386_datetime.lst: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh datetime > $@ || (rm -f $@; exit 1) |
| |
| handler-datetime_mod-lib_i386_datetime.lst: lib/i386/datetime.c $(lib/i386/datetime.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ilib/i386 -I$(srcdir)/lib/i386 $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datetime_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh datetime > $@ || (rm -f $@; exit 1) |
| |
| datetime_mod_CFLAGS = $(COMMON_CFLAGS) |
| datetime_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For date.mod |
| date_mod_SOURCES = commands/date.c |
| |
| clean-module-date.mod.1: |
| rm -f date.mod mod-date.o mod-date.c pre-date.o date_mod-commands_date.o und-date.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-date.mod.1 |
| |
| ifneq ($(date_mod_EXPORTS),no) |
| clean-module-date.mod-symbol.1: |
| rm -f def-date.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-date.mod-symbol.1 |
| DEFSYMFILES += def-date.lst |
| endif |
| mostlyclean-module-date.mod.1: |
| rm -f date_mod-commands_date.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-date.mod.1 |
| UNDSYMFILES += und-date.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| date.mod: pre-date.o mod-date.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-date.o mod-date.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 |
| date.mod: pre-date.o mod-date.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-date.o mod-date.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-date.o: $(date_mod_DEPENDENCIES) date_mod-commands_date.o |
| -rm -f $@ |
| $(TARGET_CC) $(date_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ date_mod-commands_date.o |
| |
| mod-date.o: mod-date.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -c -o $@ $< |
| |
| mod-date.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'date' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(date_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-date.lst: pre-date.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 date/' > $@ |
| else |
| def-date.lst: pre-date.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 date/' > $@ |
| endif |
| endif |
| |
| und-date.lst: pre-date.o |
| echo 'date' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| date_mod-commands_date.o: commands/date.c $(commands/date.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -MD -c -o $@ $< |
| -include date_mod-commands_date.d |
| |
| clean-module-date_mod-commands_date-extra.1: |
| rm -f cmd-date_mod-commands_date.lst fs-date_mod-commands_date.lst partmap-date_mod-commands_date.lst handler-date_mod-commands_date.lst parttool-date_mod-commands_date.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-date_mod-commands_date-extra.1 |
| |
| COMMANDFILES += cmd-date_mod-commands_date.lst |
| FSFILES += fs-date_mod-commands_date.lst |
| PARTTOOLFILES += parttool-date_mod-commands_date.lst |
| PARTMAPFILES += partmap-date_mod-commands_date.lst |
| HANDLERFILES += handler-date_mod-commands_date.lst |
| |
| cmd-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh date > $@ || (rm -f $@; exit 1) |
| |
| fs-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh date > $@ || (rm -f $@; exit 1) |
| |
| parttool-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh date > $@ || (rm -f $@; exit 1) |
| |
| partmap-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh date > $@ || (rm -f $@; exit 1) |
| |
| handler-date_mod-commands_date.lst: commands/date.c $(commands/date.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(date_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh date > $@ || (rm -f $@; exit 1) |
| |
| date_mod_CFLAGS = $(COMMON_CFLAGS) |
| date_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For datehook.mod |
| datehook_mod_SOURCES = hook/datehook.c |
| |
| clean-module-datehook.mod.1: |
| rm -f datehook.mod mod-datehook.o mod-datehook.c pre-datehook.o datehook_mod-hook_datehook.o und-datehook.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datehook.mod.1 |
| |
| ifneq ($(datehook_mod_EXPORTS),no) |
| clean-module-datehook.mod-symbol.1: |
| rm -f def-datehook.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datehook.mod-symbol.1 |
| DEFSYMFILES += def-datehook.lst |
| endif |
| mostlyclean-module-datehook.mod.1: |
| rm -f datehook_mod-hook_datehook.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-datehook.mod.1 |
| UNDSYMFILES += und-datehook.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| datehook.mod: pre-datehook.o mod-datehook.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-datehook.o mod-datehook.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 |
| datehook.mod: pre-datehook.o mod-datehook.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-datehook.o mod-datehook.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-datehook.o: $(datehook_mod_DEPENDENCIES) datehook_mod-hook_datehook.o |
| -rm -f $@ |
| $(TARGET_CC) $(datehook_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ datehook_mod-hook_datehook.o |
| |
| mod-datehook.o: mod-datehook.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -c -o $@ $< |
| |
| mod-datehook.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'datehook' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(datehook_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-datehook.lst: pre-datehook.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 datehook/' > $@ |
| else |
| def-datehook.lst: pre-datehook.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 datehook/' > $@ |
| endif |
| endif |
| |
| und-datehook.lst: pre-datehook.o |
| echo 'datehook' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| datehook_mod-hook_datehook.o: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) |
| $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -MD -c -o $@ $< |
| -include datehook_mod-hook_datehook.d |
| |
| clean-module-datehook_mod-hook_datehook-extra.1: |
| rm -f cmd-datehook_mod-hook_datehook.lst fs-datehook_mod-hook_datehook.lst partmap-datehook_mod-hook_datehook.lst handler-datehook_mod-hook_datehook.lst parttool-datehook_mod-hook_datehook.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-datehook_mod-hook_datehook-extra.1 |
| |
| COMMANDFILES += cmd-datehook_mod-hook_datehook.lst |
| FSFILES += fs-datehook_mod-hook_datehook.lst |
| PARTTOOLFILES += parttool-datehook_mod-hook_datehook.lst |
| PARTMAPFILES += partmap-datehook_mod-hook_datehook.lst |
| HANDLERFILES += handler-datehook_mod-hook_datehook.lst |
| |
| cmd-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh datehook > $@ || (rm -f $@; exit 1) |
| |
| fs-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh datehook > $@ || (rm -f $@; exit 1) |
| |
| parttool-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh datehook > $@ || (rm -f $@; exit 1) |
| |
| partmap-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh datehook > $@ || (rm -f $@; exit 1) |
| |
| handler-datehook_mod-hook_datehook.lst: hook/datehook.c $(hook/datehook.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Ihook -I$(srcdir)/hook $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(datehook_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh datehook > $@ || (rm -f $@; exit 1) |
| |
| datehook_mod_CFLAGS = $(COMMON_CFLAGS) |
| datehook_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| # For lsmmap.mod |
| lsmmap_mod_SOURCES = commands/lsmmap.c |
| |
| clean-module-lsmmap.mod.1: |
| rm -f lsmmap.mod mod-lsmmap.o mod-lsmmap.c pre-lsmmap.o lsmmap_mod-commands_lsmmap.o und-lsmmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lsmmap.mod.1 |
| |
| ifneq ($(lsmmap_mod_EXPORTS),no) |
| clean-module-lsmmap.mod-symbol.1: |
| rm -f def-lsmmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lsmmap.mod-symbol.1 |
| DEFSYMFILES += def-lsmmap.lst |
| endif |
| mostlyclean-module-lsmmap.mod.1: |
| rm -f lsmmap_mod-commands_lsmmap.d |
| |
| MOSTLYCLEAN_MODULE_TARGETS += mostlyclean-module-lsmmap.mod.1 |
| UNDSYMFILES += und-lsmmap.lst |
| |
| ifneq ($(TARGET_APPLE_CC),1) |
| lsmmap.mod: pre-lsmmap.o mod-lsmmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| $(TARGET_CC) $(lsmmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ pre-lsmmap.o mod-lsmmap.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 |
| lsmmap.mod: pre-lsmmap.o mod-lsmmap.o $(TARGET_OBJ2ELF) |
| -rm -f $@ |
| -rm -f $@.bin |
| $(TARGET_CC) $(lsmmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@.bin pre-lsmmap.o mod-lsmmap.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-lsmmap.o: $(lsmmap_mod_DEPENDENCIES) lsmmap_mod-commands_lsmmap.o |
| -rm -f $@ |
| $(TARGET_CC) $(lsmmap_mod_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ lsmmap_mod-commands_lsmmap.o |
| |
| mod-lsmmap.o: mod-lsmmap.c |
| $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -c -o $@ $< |
| |
| mod-lsmmap.c: $(builddir)/moddep.lst $(srcdir)/genmodsrc.sh |
| sh $(srcdir)/genmodsrc.sh 'lsmmap' $< > $@ || (rm -f $@; exit 1) |
| |
| ifneq ($(lsmmap_mod_EXPORTS),no) |
| ifneq ($(TARGET_APPLE_CC),1) |
| def-lsmmap.lst: pre-lsmmap.o |
| $(NM) -g --defined-only -P -p $< | sed 's/^\([^ ]*\).*/\1 lsmmap/' > $@ |
| else |
| def-lsmmap.lst: pre-lsmmap.o |
| $(NM) -g -P -p $< | grep -E '^[a-zA-Z0-9_]* [TDS]' | sed 's/^\([^ ]*\).*/\1 lsmmap/' > $@ |
| endif |
| endif |
| |
| und-lsmmap.lst: pre-lsmmap.o |
| echo 'lsmmap' > $@ |
| $(NM) -u -P -p $< | cut -f1 -d' ' >> $@ |
| |
| lsmmap_mod-commands_lsmmap.o: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) |
| $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -MD -c -o $@ $< |
| -include lsmmap_mod-commands_lsmmap.d |
| |
| clean-module-lsmmap_mod-commands_lsmmap-extra.1: |
| rm -f cmd-lsmmap_mod-commands_lsmmap.lst fs-lsmmap_mod-commands_lsmmap.lst partmap-lsmmap_mod-commands_lsmmap.lst handler-lsmmap_mod-commands_lsmmap.lst parttool-lsmmap_mod-commands_lsmmap.lst |
| |
| CLEAN_MODULE_TARGETS += clean-module-lsmmap_mod-commands_lsmmap-extra.1 |
| |
| COMMANDFILES += cmd-lsmmap_mod-commands_lsmmap.lst |
| FSFILES += fs-lsmmap_mod-commands_lsmmap.lst |
| PARTTOOLFILES += parttool-lsmmap_mod-commands_lsmmap.lst |
| PARTMAPFILES += partmap-lsmmap_mod-commands_lsmmap.lst |
| HANDLERFILES += handler-lsmmap_mod-commands_lsmmap.lst |
| |
| cmd-lsmmap_mod-commands_lsmmap.lst: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) gencmdlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -E $< | sh $(srcdir)/gencmdlist.sh lsmmap > $@ || (rm -f $@; exit 1) |
| |
| fs-lsmmap_mod-commands_lsmmap.lst: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) genfslist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -E $< | sh $(srcdir)/genfslist.sh lsmmap > $@ || (rm -f $@; exit 1) |
| |
| parttool-lsmmap_mod-commands_lsmmap.lst: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) genparttoollist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -E $< | sh $(srcdir)/genparttoollist.sh lsmmap > $@ || (rm -f $@; exit 1) |
| |
| partmap-lsmmap_mod-commands_lsmmap.lst: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) genpartmaplist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -E $< | sh $(srcdir)/genpartmaplist.sh lsmmap > $@ || (rm -f $@; exit 1) |
| |
| handler-lsmmap_mod-commands_lsmmap.lst: commands/lsmmap.c $(commands/lsmmap.c_DEPENDENCIES) genhandlerlist.sh |
| set -e; $(TARGET_CC) -Icommands -I$(srcdir)/commands $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(lsmmap_mod_CFLAGS) -E $< | sh $(srcdir)/genhandlerlist.sh lsmmap > $@ || (rm -f $@; exit 1) |
| |
| lsmmap_mod_CFLAGS = $(COMMON_CFLAGS) |
| lsmmap_mod_LDFLAGS = $(COMMON_LDFLAGS) |
| |
| include $(srcdir)/conf/i386.mk |
| include $(srcdir)/conf/common.mk |
| grub-mkdevicemap: $(grub_mkdevicemap_DEPENDENCIES) $(grub_mkdevicemap_OBJECTS) |
| $(CC) -o $@ $(grub_mkdevicemap_OBJECTS) $(LDFLAGS) $(grub_mkdevicemap_LDFLAGS) |
| |
| grub-emu: $(grub_emu_DEPENDENCIES) $(grub_emu_OBJECTS) |
| $(CC) -o $@ $(grub_emu_OBJECTS) $(LDFLAGS) $(grub_emu_LDFLAGS) |
| |