fix -s vs QUIET in testtarget

This commit is contained in:
mrdudz
2025-06-26 20:15:28 +02:00
parent 7a85575158
commit afe395e970
6 changed files with 80 additions and 2 deletions

View File

@@ -37,6 +37,14 @@ else
LD := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
endif
ifeq ($(SILENT),s)
QUIET = 1
endif
ifdef QUIET
.SILENT:
endif
.PHONY: all clean test
# Size of cartridge to generate.
@@ -71,8 +79,11 @@ else
endif
%.bin: %.c
$(if $(QUIET),echo $@)
$(CL) -t pce $< -Wl -D__CARTSIZE__=${CARTSIZE} -m $*.map -o $@
ifndef QUIET
@echo "use 'make conio.pce' to produce a .pce file using dd"
endif
%.pce: %.bin
dd if=$< bs=8K skip=${COUNT} > $@