From 58dd28f0536b269c7fe3d03200985e8d05d78c3d Mon Sep 17 00:00:00 2001 From: Sven Michael Klose Date: Sat, 25 Dec 2021 09:40:32 +0100 Subject: [PATCH] Make VICE monitor command lists for Commodore platforms. --- targettest/Makefile | 40 +++++++++++++++++++++++++++++++++++++++- targettest/cbm/Makefile | 2 +- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/targettest/Makefile b/targettest/Makefile index f3694335c..16f25fd3f 100644 --- a/targettest/Makefile +++ b/targettest/Makefile @@ -122,6 +122,44 @@ DISK_atarixl = testcode.atr .PRECIOUS: %.o +LDFLAGS= +ifeq ($(SYS),c64) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),c128) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),c16) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),cbm510) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),cbm510) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),cx16) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),geos-cbm) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),lunix) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),pet) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),pet-overlay) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),plus4) + LDFLAGS+=-Ln $@.lst +endif +ifeq ($(SYS),vic20) + LDFLAGS+=-Ln $@.lst +endif + .o: ifeq ($(SYS),vic20) $(LD) $(LDFLAGS_$(@F)_$(SYS)) $(LDFLAGS) -o $@ -C vic20-32k.cfg -m $@.map $^ $(SYS).lib @@ -386,7 +424,7 @@ testcode.atr: testcode # Clean-up rules mostlyclean: - @$(DEL) *.lbl *.map *.o 2>$(NULLDEV) + @$(DEL) *.lbl *.map *.lst *.o 2>$(NULLDEV) # we cant use .s since we have asm files in the directory that we want to keep @$(DEL) ${patsubst %.c,%.s,$(wildcard *.c)} 2>$(NULLDEV) diff --git a/targettest/cbm/Makefile b/targettest/cbm/Makefile index 147df2c1c..73b51fc76 100644 --- a/targettest/cbm/Makefile +++ b/targettest/cbm/Makefile @@ -43,4 +43,4 @@ cbmdir-test.prg: cbmdir-test.c $(CL) -t $(SYS) -Oris -o $@ $< clean: - @$(DEL) petscii.prg cbmdir-test.prg 2>$(NULLDEV) + @$(DEL) *.lst petscii.prg cbmdir-test.prg 2>$(NULLDEV)