2009-01-22 01:27:03 +00:00
|
|
|
CC=cl65
|
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
CFLAGS=-Oirs -t $(TARGET)
|
|
|
|
AFLAGS=
|
|
|
|
|
2010-12-10 13:12:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
IP65LIB=../ip65/ip65.lib
|
|
|
|
IP65TCPLIB=../ip65/ip65_tcp.lib
|
|
|
|
C64RRNETLIB=../drivers/c64rrnet.lib
|
|
|
|
C64WIZNETLIB=../drivers/c64wiznet.lib
|
2010-12-29 09:53:50 +00:00
|
|
|
IP65WIZNETLIB=../ip65/ip65_wiznet.lib
|
2010-12-10 13:12:18 +00:00
|
|
|
APPLE2PROGLIB=../drivers/apple2prog.lib
|
|
|
|
|
|
|
|
INCFILES=\
|
|
|
|
../inc/common.i\
|
|
|
|
../inc/commonprint.i\
|
|
|
|
../inc/net.i\
|
|
|
|
|
|
|
|
all: \
|
2010-12-28 03:59:36 +00:00
|
|
|
ip65 \
|
|
|
|
drivers \
|
2010-12-10 13:12:18 +00:00
|
|
|
test_getc.prg \
|
|
|
|
testdns.prg \
|
2011-01-02 01:14:45 +00:00
|
|
|
test_cifs.prg \
|
2010-12-10 13:12:18 +00:00
|
|
|
test_disk_io.prg \
|
|
|
|
testdns.pg2 \
|
|
|
|
testtftp.prg \
|
|
|
|
testtftp.pg2\
|
|
|
|
test_cart_api.prg\
|
|
|
|
test_vt100.prg\
|
|
|
|
testdottedquad.pg2\
|
|
|
|
testdottedquad.prg\
|
|
|
|
test_tcp.prg \
|
|
|
|
test_xmodem.prg \
|
|
|
|
test_xmodem.d64 \
|
|
|
|
test_httpd.prg \
|
|
|
|
test_parser.prg \
|
|
|
|
test_ping.prg \
|
|
|
|
test_sntp.prg \
|
|
|
|
test_get_url.prg \
|
|
|
|
test_wiznet.prg \
|
|
|
|
test_parse_querystring.prg \
|
|
|
|
# httpd_test.d64 \
|
|
|
|
# ip65test.dsk \
|
|
|
|
# test_disk_io.d64 \
|
|
|
|
|
2009-08-21 13:21:14 +00:00
|
|
|
|
2010-12-28 03:59:36 +00:00
|
|
|
ip65:
|
|
|
|
make -C ../ip65 all
|
|
|
|
|
|
|
|
drivers:
|
|
|
|
make -C ../drivers all
|
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
$(AS) $(AFLAGS) $<
|
2010-12-10 13:12:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
%.prg: %.o $(IP65LIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m $*.map -vm -C ../cfg/c64prg.cfg -o $*.prg $(AFLAGS) $< $(IP65LIB) $(C64RRNETLIB)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test_tcp.prg: test_tcp.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_tcp.map -vm -C ../cfg/c64prg.cfg -o test_tcp.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
|
|
|
|
|
|
test_xmodem.o: test_xmodem.s ../ip65/xmodem.s
|
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test_xmodem.prg: test_xmodem.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_xmodem.map -vm -C ../cfg/c64prg.cfg -o test_xmodem.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
|
|
|
|
|
|
test_parser.prg: test_parser.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_parser.map -vm -C ../cfg/c64prg.cfg -o test_parser.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
|
|
|
|
|
|
|
|
|
|
test_get_url.prg: test_get_url.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_get_url.map -vm -C ../cfg/c64prg.cfg -o test_get_url.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
|
|
|
|
|
|
|
|
|
|
test_ping.prg: test_ping.o $(IP65TCPLIB) $(C64RRNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_ping.map -vm -C ../cfg/c64prg.cfg -o test_ping.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64RRNETLIB)
|
|
|
|
|
2010-12-15 08:08:47 +00:00
|
|
|
test_wiznet.prg: test_wiznet.o $(C64WIZNETLIB) $(IP65WIZNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_wiznet.map -vm -C ../cfg/c64prg.cfg -o test_wiznet.prg $(AFLAGS) $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
2010-12-10 13:12:18 +00:00
|
|
|
cp test_wiznet.prg ../../server/boot/autoexec.prg
|
|
|
|
|
|
|
|
|
|
|
|
%.pg2: %.o $(IP65LIB) $(APPLE2PROGLIB) $(INCFILES) ../cfg/a2bin.cfg
|
|
|
|
$(LD) -C ../cfg/a2bin.cfg -o $*.pg2 $(AFLAGS) $< $(IP65LIB) $(APPLE2PROGLIB)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
httpd_test.d64: test_httpd.prg index.html file1.html
|
|
|
|
cp test_httpd.prg autoexec.prg
|
|
|
|
ripxplore.rb --init CbmDos httpd_test.d64 -a autoexec.prg
|
|
|
|
ripxplore.rb httpd_test.d64 -a index.html -t C64Seq
|
|
|
|
ripxplore.rb httpd_test.d64 -a file1.html -t C64Seq
|
|
|
|
|
|
|
|
|
|
|
|
ip65test.dsk: testdns.pg2 testdottedquad.pg2 testtftp.pg2
|
|
|
|
ripxplore.rb --init BeautifulBoot ip65test.dsk -a testdns.pg2 -t AppleBinary
|
|
|
|
ripxplore.rb ip65test.dsk -a testdns.pg2 -t AppleBinary
|
|
|
|
ripxplore.rb ip65test.dsk -a testtftp.pg2 -t AppleBinary
|
|
|
|
ripxplore.rb ip65test.dsk -a testdottedquad.pg2 -t AppleBinary
|
|
|
|
ripxplore.rb ip65test.dsk -a testdns.pg2 -t AppleBinary
|
|
|
|
|
|
|
|
|
|
|
|
test_disk_io.d64: test_disk_io.prg
|
|
|
|
|
|
|
|
ripxplore.rb --init CbmDos test_disk_io.d64 -a test_disk_io.prg
|
|
|
|
cp screen_prg.bin screen.prg
|
|
|
|
ripxplore.rb test_disk_io.d64 -a screen.prg
|
|
|
|
|
|
|
|
|
|
|
|
test_xmodem.d64: test_xmodem.prg
|
|
|
|
ripxplore.rb --init CbmDos test_xmodem.d64 -a test_xmodem.prg
|
2009-12-06 06:24:18 +00:00
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
clean:
|
2009-04-16 05:55:32 +00:00
|
|
|
rm -f *.o *.pg2 *.prg
|
2010-12-10 13:12:18 +00:00
|
|
|
rm -f ip65test.dsk
|
|
|
|
|
2009-07-30 10:43:37 +00:00
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|