summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>1998-04-14 05:27:20 +0000
committerhpa <hpa>1998-04-14 05:27:20 +0000
commit06e8eeeb75a44bd6df54c7e120cfa95a2dd6f8a1 (patch)
treeb14294afd5dbb58dec40875e57b48aa9f9a87537 /Makefile
parentec539247246461dc67b7f141b0c17be7b7caa226 (diff)
downloadsyslinux-06e8eeeb75a44bd6df54c7e120cfa95a2dd6f8a1.tar.gz
Patch generator for the -s (stupid) option.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 70c758c6..a955254a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ VERSION = $(shell cat version)
SOURCES = ldlinux.asm syslinux.asm syslinux.c
TARGETS = bootsect.bin ldlinux.sys syslinux.com syslinux
DOCS = COPYING NEWS README TODO syslinux.doc keytab-lilo.doc
-OTHER = Makefile bin2c.pl now.pl keytab-lilo.pl version
+OTHER = Makefile bin2c.pl now.pl genstupid.pl keytab-lilo.pl version
all: $(TARGETS)
ls -l $(TARGETS)
@@ -42,8 +42,9 @@ ifndef DATE
DATE = $(shell perl now.pl)
endif
-ldlinux.bin: ldlinux.asm
+ldlinux.bin: ldlinux.asm genstupid.pl
$(NASM) -f bin -dVERSION="'$(VERSION)'" -dDATE_STR="'$(DATE)'" -l ldlinux.lst -o ldlinux.bin ldlinux.asm
+ perl genstupid.pl < ldlinux.lst
bootsect.bin: ldlinux.bin
dd if=ldlinux.bin of=bootsect.bin bs=512 count=1
@@ -51,7 +52,7 @@ bootsect.bin: ldlinux.bin
ldlinux.sys: ldlinux.bin
dd if=ldlinux.bin of=ldlinux.sys bs=512 skip=1
-syslinux.com: syslinux.asm bootsect.bin ldlinux.sys
+syslinux.com: syslinux.asm bootsect.bin ldlinux.sys stupid.inc
$(NASM) -f bin -l syslinux.lst -o syslinux.com syslinux.asm
bootsect_bin.c: bootsect.bin bin2c.pl
@@ -60,14 +61,20 @@ bootsect_bin.c: bootsect.bin bin2c.pl
ldlinux_bin.c: ldlinux.sys bin2c.pl
perl bin2c.pl ldlinux < ldlinux.sys > ldlinux_bin.c
-syslinux: syslinux.o bootsect_bin.o ldlinux_bin.o
+syslinux: syslinux.o bootsect_bin.o ldlinux_bin.o stupid.o
$(CC) $(LDFLAGS) -o syslinux syslinux.o bootsect_bin.o ldlinux_bin.o
+stupid.o: stupid.c
+
+stupid.c: ldlinux.asm
+
+stupid.inc: ldlinux.asm
+
install: all
install -c syslinux $(BINDIR)
tidy:
- rm -f ldlinux.bin *.lst *.o *_bin.c
+ rm -f ldlinux.bin *.lst *.o *_bin.c stupid.*
clean: tidy
rm -f $(TARGETS)