summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ed8f22b..7dc8e0f9 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@
NASM = nasm
-all: bootsect.bin ldlinux.sys syslinux.com
+all: bootsect.bin ldlinux.sys syslinux.com syslinux
ldlinux.bin: ldlinux.asm
$(NASM) -f bin -dHEX_TIME="`perl now.pl`" -l ldlinux.lst -o ldlinux.bin ldlinux.asm
@@ -34,6 +34,13 @@ syslinux.com: syslinux.asm bootsect.bin ldlinux.sys
$(NASM) -f bin -l syslinux.lst -o syslinux.com syslinux.asm
ls -l syslinux.com
+syslinux: syslinux.pl.in bootsect.bin ldlinux.sys
+ @if [ ! -x `which perl` ]; then \
+ echo 'ERROR: cannot find perl'; exit 1 ; fi
+ echo '#!' `which perl` > syslinux
+ cat syslinux.pl.in bootsect.bin ldlinux.sys >> syslinux
+ chmod a+x syslinux
+
clean:
rm -f *.bin *.lst *.sys