2009-01-22 01:27:03 +00:00
|
|
|
CC=cl65
|
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
CFLAGS=-Oirs -t $(TARGET)
|
|
|
|
AFLAGS=
|
|
|
|
|
|
|
|
|
|
|
|
IP65LIB=../ip65/ip65.lib
|
2009-04-13 10:30:49 +00:00
|
|
|
|
2009-06-24 13:52:23 +00:00
|
|
|
IP65TCPLIB=../ip65/ip65_tcp.lib
|
|
|
|
|
2009-04-13 10:30:49 +00:00
|
|
|
C64PROGLIB=../drivers/c64prog.lib
|
|
|
|
C64PNB65LIB=../drivers/c64nb65.lib
|
|
|
|
APPLE2PROGLIB=../drivers/apple2prog.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
INCFILES=\
|
|
|
|
../inc/common.i\
|
|
|
|
../inc/commonprint.i\
|
|
|
|
../inc/net.i\
|
2009-04-16 05:55:32 +00:00
|
|
|
|
|
|
|
all: \
|
|
|
|
ip65test.dsk \
|
|
|
|
testdns.prg \
|
2009-07-04 13:52:04 +00:00
|
|
|
test_gopher.prg \
|
2009-04-16 05:55:32 +00:00
|
|
|
testdns.pg2 \
|
|
|
|
testtftp.prg \
|
|
|
|
testtftp.pg2\
|
|
|
|
test_cart_api.prg\
|
|
|
|
testdottedquad.pg2\
|
|
|
|
testdottedquad.prg\
|
2009-06-24 13:52:23 +00:00
|
|
|
test_tcp.prg \
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
%.o: %.s
|
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
2009-04-18 12:59:10 +00:00
|
|
|
%.prg: %.o $(IP65LIB) $(C64PROGLIB) $(INCFILES) ../cfg/c64prg.cfg
|
2009-04-13 10:30:49 +00:00
|
|
|
$(LD) -m $*.map -vm -C ../cfg/c64prg.cfg -o $*.prg $(AFLAGS) $< $(IP65LIB) $(C64PROGLIB)
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2009-06-24 13:52:23 +00:00
|
|
|
test_tcp.prg: test_tcp.o $(IP65TCPLIB) $(C64PROGLIB) $(INCFILES) ../cfg/c64prg.cfg
|
2009-07-04 04:29:27 +00:00
|
|
|
$(LD) -m test_tcp.map -vm -C ../cfg/c64prg.cfg -o test_tcp.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64PROGLIB)
|
2009-06-24 13:52:23 +00:00
|
|
|
|
2009-07-10 06:32:49 +00:00
|
|
|
test_gopher.prg: test_gopher.o $(IP65TCPLIB) $(C64PROGLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m test_gopher.map -vm -C ../cfg/c64prg.cfg -o test_gopher.prg $(AFLAGS) $< $(IP65TCPLIB) $(C64PROGLIB)
|
|
|
|
|
|
|
|
|
2009-04-18 12:59:10 +00:00
|
|
|
%.pg2: %.o $(IP65LIB) $(APPLE2PROGLIB) $(INCFILES) ../cfg/a2bin.cfg
|
2009-04-13 10:30:49 +00:00
|
|
|
$(LD) -C ../cfg/a2bin.cfg -o $*.pg2 $(AFLAGS) $< $(IP65LIB) $(APPLE2PROGLIB)
|
2009-02-08 05:41:42 +00:00
|
|
|
|
2009-04-16 05:55:32 +00:00
|
|
|
ip65test.dsk: testdns.pg2 testdottedquad.pg2 testtftp.pg2
|
2009-02-08 10:50:10 +00:00
|
|
|
ripxplore.rb --init BeautifulBoot ip65test.dsk -a testdns.pg2 -t AppleBinary
|
2009-04-16 05:55:32 +00:00
|
|
|
ripxplore.rb ip65test.dsk -a testtftp.pg2 -t AppleBinary
|
2009-02-08 10:50:10 +00:00
|
|
|
ripxplore.rb ip65test.dsk -a testdottedquad.pg2 -t AppleBinary
|
2009-04-16 05:55:32 +00:00
|
|
|
ripxplore.rb ip65test.dsk -a testdns.pg2 -t AppleBinary
|
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
clean:
|
2009-04-16 05:55:32 +00:00
|
|
|
rm -f *.o *.pg2 *.prg
|
2009-01-22 01:27:03 +00:00
|
|
|
rm -f ip65test.dsk
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|