2022-08-13 20:45:08 +02:00
|
|
|
|
|
|
|
MACHINE := pet
|
2022-08-20 17:37:42 +02:00
|
|
|
MEMCFG := mem.cfg
|
2022-08-13 20:45:08 +02:00
|
|
|
|
2022-08-19 22:38:18 +02:00
|
|
|
.PHONY: all clean
|
2022-08-13 20:45:08 +02:00
|
|
|
|
2022-08-27 15:54:06 +02:00
|
|
|
all: rs232.prg test.prg
|
2022-08-19 22:38:18 +02:00
|
|
|
|
|
|
|
clean:
|
2022-08-27 15:54:06 +02:00
|
|
|
rm -f *.o *.lst *.map *.prg
|
2022-08-13 20:45:08 +02:00
|
|
|
|
2022-08-22 19:00:42 +02:00
|
|
|
rs232.prg: driver.o
|
2022-08-20 17:37:42 +02:00
|
|
|
cl65 -v -C ${MEMCFG} -m rs232.map -o $@ $^
|
2022-08-19 22:38:18 +02:00
|
|
|
|
2022-08-27 15:54:06 +02:00
|
|
|
test.prg: test.bas
|
|
|
|
petcat -w40 -o $@ -- $^
|
|
|
|
|
2022-08-13 20:45:08 +02:00
|
|
|
%.o: %.a65
|
2022-08-20 17:37:42 +02:00
|
|
|
ca65 -v -l $(patsubst %.o,%.lst,$@) -t ${MACHINE} -o $@ $<
|