mirror of
https://github.com/cc65/cc65.git
synced 2026-03-10 17:21:49 +00:00
handle -s correctly when using these makefiles directly
This commit is contained in:
@@ -55,6 +55,9 @@ ifdef QUIET
|
||||
.SILENT:
|
||||
PQ = "QUIET=1"
|
||||
PD = --no-print-directory
|
||||
ifndef CMD_EXE
|
||||
CATERR = 2> $$@.errlog || (cat $$@.errlog && false)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(filter disk testcode.%,$(MAKECMDGOALS)),)
|
||||
@@ -131,12 +134,12 @@ DISK_atarixl = testcode.atr
|
||||
|
||||
.c.o:
|
||||
$(if $(QUIET),echo $(SYS):$*.c)
|
||||
$(CC) $(CFLAGS) -Ors --codesize 500 -T -g -t $(SYS) $<
|
||||
$(AS) $(<:.c=.s)
|
||||
$(CC) $(CFLAGS) -Ors --codesize 500 -T -g -t $(SYS) $< $(CATERR)
|
||||
$(AS) $(<:.c=.s) $(CATERR)
|
||||
|
||||
.s.o:
|
||||
$(if $(QUIET),echo $(SYS):$*.s)
|
||||
$(AS) $(ASFLAGS) -t $(SYS) $<
|
||||
$(AS) $(ASFLAGS) -t $(SYS) $< $(CATERR)
|
||||
|
||||
.PRECIOUS: %.o
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
|
||||
@@ -24,6 +24,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -28,6 +28,10 @@ else
|
||||
NULLDEV = /dev/null
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -26,6 +26,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -20,6 +20,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -22,6 +22,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -22,6 +22,10 @@ else
|
||||
NULLDEV = /dev/null
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -24,6 +24,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -26,6 +26,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -27,6 +27,10 @@ else
|
||||
COPY = cp $1 $2
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -22,6 +22,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -24,6 +24,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -24,6 +24,10 @@ else
|
||||
RMDIR = $(RM) -r $1
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
@@ -24,6 +24,10 @@ else
|
||||
CATRES = > $(WORKDIR)/$$@.out 2> $(WORKDIR)/$$@.out || (cat $(WORKDIR)/$$@.out && false)
|
||||
endif
|
||||
|
||||
ifeq ($(SILENT),s)
|
||||
QUIET = 1
|
||||
endif
|
||||
|
||||
ifdef QUIET
|
||||
.SILENT:
|
||||
NULLOUT = >$(NULLDEV)
|
||||
|
||||
Reference in New Issue
Block a user