2011-05-28 11:11:07 +00:00
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
CFLAGS=-Oirs -t $(TARGET)
|
|
|
|
AFLAGS=
|
2010-12-29 09:53:50 +00:00
|
|
|
|
2011-05-28 11:11:07 +00:00
|
|
|
INCFILES=\
|
|
|
|
../inc/common.i\
|
|
|
|
../inc/commonprint.i\
|
|
|
|
../inc/net.i\
|
|
|
|
../inc/menu.i\
|
|
|
|
../inc/kipper_constants.i\
|
|
|
|
../inc/version.i\
|
2010-12-29 09:53:50 +00:00
|
|
|
|
2011-05-28 11:11:07 +00:00
|
|
|
IP65LIB=../ip65/ip65.lib
|
|
|
|
IP65TCPLIB=../ip65/ip65_tcp.lib
|
|
|
|
C64RRNETLIB=../drivers/c64rrnet.lib
|
|
|
|
C64WIZNETLIB=../drivers/c64wiznet.lib
|
|
|
|
IP65WIZNETLIB=../ip65/ip65_wiznet.lib
|
|
|
|
|
|
|
|
|
|
|
|
all: ip65 drivers\
|
|
|
|
wizboot.bin \
|
|
|
|
wizboot2.prg \
|
|
|
|
cartheader.prg \
|
2011-05-29 06:10:13 +00:00
|
|
|
wiztest.prg \
|
2011-05-28 11:11:07 +00:00
|
|
|
wizboot.prg \
|
2011-06-10 00:01:26 +00:00
|
|
|
telnetd.bin \
|
|
|
|
telnetd.prg \
|
2011-06-10 12:11:05 +00:00
|
|
|
wizbobcart.prg \
|
|
|
|
kt2wiz.d64 \
|
2011-07-04 18:51:51 +00:00
|
|
|
wiztest.d64 \
|
2011-05-29 06:10:13 +00:00
|
|
|
bootc64.prg \
|
2011-05-28 11:11:07 +00:00
|
|
|
|
2011-06-10 00:01:26 +00:00
|
|
|
%.o: %.s $(INCFILES) timestamp.rb
|
|
|
|
ruby timestamp.rb > timestamp.i
|
2011-05-28 11:11:07 +00:00
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
|
|
|
|
|
|
|
%.prg: %.o $(IP65WIZNETLIB) $(C64WIZNETLIB) $(INCFILES) ../cfg/c64prg.cfg
|
|
|
|
$(LD) -m $*.map -vm -C ../cfg/c64prg.cfg -o $*.prg $(AFLAGS) $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
2010-12-29 09:53:50 +00:00
|
|
|
|
|
|
|
|
2011-05-28 11:11:07 +00:00
|
|
|
wizboot.bin: wizboot.o $(IP65WIZNETLIB) $(C64WIZNETLIB) $(INCFILES) ../cfg/c64_8kcart.cfg
|
|
|
|
$(LD) -m wizboot.map -vm -C ../cfg/c64_8kcart.cfg -o $@ $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
|
|
|
ruby ../carts/fix_cart.rb $@ 8192
|
|
|
|
|
|
|
|
wizboot.prg: wizboot.bin cartheader.prg
|
2011-06-10 00:01:26 +00:00
|
|
|
cat cartheader.prg wizboot.bin > $@
|
|
|
|
|
2011-07-04 18:51:51 +00:00
|
|
|
telnetd.o: ../carts/telnetd.s $(INCFILES) timestamp.rb
|
|
|
|
$(AS) $(AFLAGS) ../carts/telnetd.s -o telnetd.o
|
|
|
|
|
2011-06-10 00:01:26 +00:00
|
|
|
telnetd.bin: telnetd.o $(IP65WIZNETLIB) $(C64WIZNETLIB) $(INCFILES) ../cfg/c64_8kcart.cfg
|
|
|
|
$(LD) -m telnetd.map -vm -C ../cfg/c64_8kcart.cfg -o $@ $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
|
|
|
ruby ../carts/fix_cart.rb $@ 8192
|
2011-05-28 11:11:07 +00:00
|
|
|
|
2011-06-10 00:01:26 +00:00
|
|
|
telnetd.prg: telnetd.bin cartheader.prg
|
|
|
|
cat cartheader.prg telnetd.bin > $@
|
2011-06-10 12:11:05 +00:00
|
|
|
|
2011-06-21 11:46:33 +00:00
|
|
|
wizbobcart.bin: wizbobcart.o $(IP65WIZNETLIB) $(C64WIZNETLIB) $(INCFILES) wizbobcart.cfg
|
|
|
|
$(LD) -m wizbobcart.map -vm -C wizbobcart.cfg -o $@ $< $(IP65WIZNETLIB) $(C64WIZNETLIB)
|
2011-06-10 12:11:05 +00:00
|
|
|
ruby ../carts/fix_cart.rb $@ 8192
|
|
|
|
|
|
|
|
wizbobcart.prg: wizbobcart.bin cartheader.prg
|
|
|
|
cat cartheader.prg wizbobcart.bin > $@
|
2011-06-10 00:01:26 +00:00
|
|
|
|
2011-07-04 18:51:51 +00:00
|
|
|
wiztest.d64: wiztest.prg
|
|
|
|
ripxplore.rb -I CbmDos -a wiztest.prg $@
|
|
|
|
|
2011-05-28 11:11:07 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o *.bin *.map *.prg *.pg2 *.dsk *.d64
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
ip65:
|
|
|
|
make -C ../ip65 all
|
|
|
|
|
|
|
|
drivers:
|
|
|
|
make -C ../drivers all
|
|
|
|
|
2011-06-10 12:11:05 +00:00
|
|
|
kt2wiz.d64:
|
|
|
|
make -C ../kipperterm2 kt2wiz.d64
|
|
|
|
|
|
|
|
|
2011-05-28 11:11:07 +00:00
|
|
|
bootc64.prg:
|
2011-07-04 18:51:51 +00:00
|
|
|
# cp wizbobcart.prg ../../server/boot/bootc64.prg
|
2011-06-10 12:11:05 +00:00
|
|
|
# cp telnetd.prg ../../server/boot/bootc64.prg
|
2011-06-10 00:01:26 +00:00
|
|
|
# cp wizboot2.prg ../../server/boot/bootc64.prg
|
2011-07-04 18:51:51 +00:00
|
|
|
cp wiztest.prg ../../server/boot/bootc64.prg
|