From 190edaeba00d5962dcecfaf1dca3d7edb72687f2 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Mon, 13 Apr 2015 22:42:11 +0200
Subject: [PATCH] Allow to build some rudimentary demo disk.
The HTTPD program seems to be the only one somewhat useful for demo purposes. So I added the option to build a "IP65demo" disk containing it for all supported Ethernet devices - currently for the Apple2 only.
---
test/Makefile | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/test/Makefile b/test/Makefile
index f053d54..672f767 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -80,6 +80,15 @@ drivers:
%.vicprg: %.o ip65 drivers $(INCFILES)
ld65 -o $*.vicprg -C vic20-32k.cfg -m $*.vic.map -vm $< $(IP65LIB) $(VICDRIVERLIB) vic20.lib
+webserver-uther.bin: httpd.o ip65 drivers $(INCFILES)
+ ld65 -o $@ -C apple2.cfg $< ../ip65/ip65_tcp.lib ../drivers/a2uther.lib apple2.lib
+
+webserver-uther2.bin: httpd.o ip65 drivers $(INCFILES)
+ ld65 -o $@ -C apple2.cfg $< ../ip65/ip65_tcp.lib ../drivers/a2uther2.lib apple2.lib
+
+webserver-lancegs.bin: httpd.o ip65 drivers $(INCFILES)
+ ld65 -o $@ -C apple2.cfg $< ../ip65/ip65_tcp.lib ../drivers/a2lancegs.lib apple2.lib
+
ip65.d64: prg
$(C1541) -format ip65,00 d64 $@
$(C1541) -attach $@ -write dns.prg dns,p
@@ -104,8 +113,14 @@ ip65.dsk: bin
java -jar $(AC) -cc65 $@ tcp bin < tcp.bin
java -jar $(AC) -cc65 $@ tftp bin < tftp.bin
+ip65demo.dsk: webserver-uther.bin webserver-uther2.bin webserver-lancegs.bin
+ cp dos33.dsk $@
+ java -jar $(AC) -cc65 $@ webserver-uther B < webserver-uther.bin
+ java -jar $(AC) -cc65 $@ webserver-uther2 B < webserver-uther2.bin
+ java -jar $(AC) -cc65 $@ webserver-lancegs B < webserver-lancegs.bin
+
clean:
make -C ../ip65 clean
make -C ../drivers clean
-rm -f *.prg *.bin *.vicprg *.map
- -rm -f ip65.d64 ip65.dsk
+ -rm -f ip65.d64 ip65.dsk ip65demo.dsk