grub-extras/lua: add fs label to grub.enum_device
[grub-extras.git] / ntldr-img / Makefile.core.common
blobf5c0c60444db68579f9893771598145b676ea93d
1 if COND_i386_pc
2 # Compatibility symlink.
3 g2hdr.bin: g2hdr.img
4         rm -f $@
5         $(LN_S) $< $@
6 platform_DATA += g2hdr.bin
7 CLEANFILES += g2hdr.bin
9 g2ldr.mbr: g2ldr.img
10         head -c 8192 $< > $@
11 platform_DATA += g2ldr.mbr
12 CLEANFILES += g2ldr.mbr
14 grldr.mbr: grldr.img
15         head -c 8192 $< > $@
16 CLEANFILES += grldr.mbr
18 bin2h: contrib/ntldr-img/bin2h.c
19         $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) $^ -o $@
20 CLEANFILES += bin2h
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)
33         rm -f $@
34         $(LN_S) $< $@
35 noinst_PROGRAMS += grubinst
36 CLEANFILES += grubinst
38 endif