Merge branch 'pathbased' of ssh://terminus.zytor.com/pub/git/syslinux/syslinux into...
[profile/ivi/syslinux.git] / libinstaller / Makefile
1 # _bin.c files required by both BTARGET and ITARGET installers
2 BINFILES = bootsect_bin.c ldlinux_bin.c \
3            extlinux_bss_bin.c extlinux_sys_bin.c \
4            mbr_bin.c gptmbr_bin.c
5
6 PERL     = perl
7
8 all: $(BINFILES)
9
10 bootsect_bin.c: ../core/ldlinux.bss bin2c.pl
11         $(PERL) bin2c.pl syslinux_bootsect < $< > $@
12
13 ldlinux_bin.c: ../core/ldlinux.sys bin2c.pl
14         $(PERL) bin2c.pl syslinux_ldlinux 512 < $< > $@
15
16 extlinux_bss_bin.c: ../core/extlinux.bss bin2c.pl
17         $(PERL) bin2c.pl extlinux_bootsect < $< > $@
18
19 extlinux_sys_bin.c: ../core/extlinux.sys bin2c.pl
20         $(PERL) bin2c.pl extlinux_image 512 < $< > $@
21
22 mbr_bin.c: ../mbr/mbr.bin bin2c.pl
23         $(PERL) bin2c.pl syslinux_mbr < $< > $@
24
25 gptmbr_bin.c: ../mbr/gptmbr.bin bin2c.pl
26         $(PERL) bin2c.pl syslinux_gptmbr < $< > $@
27
28 tidy:
29         rm -f $(BINFILES)
30
31 clean: tidy
32
33 dist: tidy
34
35 spotless: clean