2022-08-19 22:38:18 +02:00
|
|
|
.PHONY: all clean
|
2022-08-13 20:45:08 +02:00
|
|
|
|
2022-09-04 10:02:06 +02:00
|
|
|
all: driver.prg driver.rom test.prg driver2.prg driver2.rom
|
2022-08-19 22:38:18 +02:00
|
|
|
|
|
|
|
clean:
|
2022-09-04 10:02:06 +02:00
|
|
|
rm -f *.o *.lst *.map *.prg *.rom
|
2022-08-19 22:38:18 +02:00
|
|
|
|
2022-09-04 10:02:06 +02:00
|
|
|
%.prg: %.bas
|
2022-08-27 15:54:06 +02:00
|
|
|
petcat -w40 -o $@ -- $^
|
|
|
|
|
2022-09-04 10:02:06 +02:00
|
|
|
%.prg: %.o
|
|
|
|
cl65 -v -C mem.cfg -m $@.map -o $@ $^
|
|
|
|
|
|
|
|
%.rom: %.o
|
|
|
|
cl65 -v -C rom.cfg -m $@.map -o $@ $^
|
|
|
|
|
2022-08-13 20:45:08 +02:00
|
|
|
%.o: %.a65
|
2022-09-04 10:02:06 +02:00
|
|
|
ca65 -v -l $(patsubst %.o,%.lst,$@) -t pet -o $@ $<
|