source: grub-pc/trunk/fuentes/debian/grub-extras/ntldr-img/Makefile.core.common @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 1016 bytes
Line 
1if COND_i386_pc
2# Compatibility symlink.
3g2hdr.bin: g2hdr.img
4        rm -f $@
5        $(LN_S) $< $@
6platform_DATA += g2hdr.bin
7CLEANFILES += g2hdr.bin
8
9g2ldr.mbr: g2ldr.img
10        head -c 8192 $< > $@
11platform_DATA += g2ldr.mbr
12CLEANFILES += g2ldr.mbr
13
14grldr.mbr: grldr.img
15        head -c 8192 $< > $@
16CLEANFILES += grldr.mbr
17
18bin2h: contrib/ntldr-img/bin2h.c
19        $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(BUILD_LDFLAGS) $^ -o $@
20CLEANFILES += bin2h
21
22grub_mbr.h: grldr.mbr bin2h
23        ./bin2h grub_mbr 8192 < $< > $@
24CLEANFILES += grub_mbr.h
25
26grub-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
28bin_PROGRAMS += grub-ntldr-img
29CLEANFILES += grub-ntldr-img
30
31# Compatibility symlink.
32grubinst$(EXEEXT): grub-ntldr-img$(EXEEXT)
33        rm -f $@
34        $(LN_S) $< $@
35noinst_PROGRAMS += grubinst
36CLEANFILES += grubinst
37
38endif
Note: See TracBrowser for help on using the repository browser.