mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-06 23:30:51 +00:00
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
CC=cl65
|
|
AS=ca65
|
|
LD=ld65
|
|
CFLAGS=-Oirs -t $(TARGET)
|
|
AFLAGS=
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
%.o: %.s ../inc/print.i
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
IP65LIB=../ip65/ip65.lib
|
|
|
|
C64NETLIB=../drivers/c64net.lib
|
|
APPLE2NETLIB=../drivers/apple2net.lib
|
|
|
|
INCFILES=\
|
|
../inc/common.i\
|
|
../inc/commonprint.i\
|
|
../inc/net.i\
|
|
|
|
all: \
|
|
rrnetboot.bin \
|
|
utherboot.dsk \
|
|
|
|
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
|
|
|
|
utherboot.bin: utherboot.o $(IP65LIB) $(APPLE2NETLIB) $(INCFILES) ../cfg/a2bin.cfg
|
|
$(LD) -m utherboot.map -C ../cfg/a2bin.cfg -o utherboot.bin $(AFLAGS) $< $(IP65LIB) $(APPLE2NETLIB)
|
|
|
|
utherboot.dsk: utherboot.bin
|
|
dsktool.rb --init dos33 utherboot.dsk -a utherboot.bin -t B
|
|
dsktool.rb utherboot.dsk -a hello -t A
|
|
|
|
clean:
|
|
rm -f *.o
|
|
rm -f rrnetboot.bin rrnetboot.map
|
|
rm -f utherboot.bin utherboot.map utherboot.dsk
|
|
|
|
distclean: clean
|
|
rm -f *~
|