2 # Compatibility symlink.
6 platform_DATA += g2hdr.bin
7 CLEANFILES += g2hdr.bin
11 platform_DATA += g2ldr.mbr
12 CLEANFILES += g2ldr.mbr
16 CLEANFILES += grldr.mbr
18 bin2h: contrib/ntldr-img/bin2h.c
19 $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) $^ -o $@
22 grub_mbr.h: grldr.mbr bin2h
23 ./bin2h grub_mbr 8192 < $< > $@
24 CLEANFILES += grub_mbr.h
26 grub-ntldr-img$(EXEEXT): contrib/ntldr-img/grubinst.c contrib/ntldr-img/utils.c grub_mbr.h
27 $(HOST_CC) $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(HOST_LDFLAGS) -DGRUB_UTIL=1 -I. -I$(srcdir)/contrib/ntldr-img -DLINUX -o $@ $(srcdir)/contrib/ntldr-img/grubinst.c $(srcdir)/contrib/ntldr-img/utils.c
28 bin_PROGRAMS += grub-ntldr-img
29 CLEANFILES += grub-ntldr-img
31 # Compatibility symlink.
32 grubinst$(EXEEXT): grub-ntldr-img$(EXEEXT)
35 noinst_PROGRAMS += grubinst
36 CLEANFILES += grubinst