2009-01-22 01:27:03 +00:00
|
|
|
CC=cl65
|
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
CFLAGS=-Oirs -t $(TARGET)
|
|
|
|
AFLAGS=
|
|
|
|
|
2009-01-25 14:27:24 +00:00
|
|
|
INCFILES=\
|
|
|
|
../inc/common.i\
|
|
|
|
../inc/commonprint.i\
|
|
|
|
../inc/net.i\
|
|
|
|
../inc/menu.i\
|
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
2009-01-25 14:27:24 +00:00
|
|
|
%.o: %.s $(INCFILES)
|
2009-01-22 01:27:03 +00:00
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
|
|
|
IP65LIB=../ip65/ip65.lib
|
|
|
|
|
|
|
|
C64NETLIB=../drivers/c64net.lib
|
|
|
|
APPLE2NETLIB=../drivers/apple2net.lib
|
|
|
|
|
2009-01-25 06:34:13 +00:00
|
|
|
BOOTA2.PG2=../../server/boot/BOOTA2.PG2
|
2009-01-24 10:55:33 +00:00
|
|
|
|
2009-01-25 14:27:24 +00:00
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
all: \
|
|
|
|
rrnetboot.bin \
|
|
|
|
utherboot.dsk \
|
2009-01-25 06:34:13 +00:00
|
|
|
$(BOOTA2.PG2) \
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
rrnetboot.bin: rrnetboot.o $(IP65LIB) $(C64NETLIB) $(INCFILES) ../cfg/rrbin.cfg
|
|
|
|
$(LD) -m rrnetboot.map -C ../cfg/rrbin.cfg -o rrnetboot.bin $(AFLAGS) $< $(IP65LIB) $(C64NETLIB)
|
|
|
|
ruby fix_cart.rb rrnetboot.bin
|
|
|
|
|
2009-01-26 10:42:03 +00:00
|
|
|
utherboot.pg2: utherboot.o $(IP65LIB) $(APPLE2NETLIB) $(INCFILES) ../cfg/a2language_card.cfg
|
|
|
|
$(LD) -m utherboot.map -C ../cfg/a2language_card.cfg -o utherboot.pg2 $(AFLAGS) $< $(IP65LIB) $(APPLE2NETLIB)
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2009-01-26 10:42:03 +00:00
|
|
|
utherboot.dsk: utherboot.pg2
|
2009-02-07 05:19:55 +00:00
|
|
|
ripxplore.rb --init AppleDos utherboot.dsk -a utherboot.pg2 -t AppleBinary
|
|
|
|
ripxplore.rb utherboot.dsk -a hello -t Applesoft
|
2009-01-24 10:55:33 +00:00
|
|
|
|
2009-01-25 06:34:13 +00:00
|
|
|
$(BOOTA2.PG2): bootmenu.o $(IP65LIB) $(APPLE2NETLIB) $(INCFILES) ../cfg/a2language_card.cfg
|
|
|
|
$(LD) -m bootmenu.map -C ../cfg/a2language_card.cfg -o $(BOOTA2.PG2) $(AFLAGS) $< $(IP65LIB) $(APPLE2NETLIB)
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f rrnetboot.bin rrnetboot.map
|
2009-01-26 10:42:03 +00:00
|
|
|
rm -f utherboot.pg2 utherboot.map utherboot.dsk
|
2009-01-25 06:34:13 +00:00
|
|
|
rm -f $(BOOTA2.PG2)
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|