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-22 19:00:42 +02:00
|
|
|
all: rs232.prg
|
2022-08-19 22:38:18 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f rs232.bin *.o *.lst *.map
|
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-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 $@ $<
|