Add test case for #1209

Change err/ tests to use cl65 and .prg instead of cc65 and .s
since this test only fails at the link stage.
This commit is contained in:
Jesse Rosenstock
2020-08-22 10:48:25 +02:00
committed by Oliver Schmidt
parent 0486d28abc
commit 23621f3299
2 changed files with 57 additions and 4 deletions

View File

@@ -23,23 +23,23 @@ ifdef QUIET
NULLERR = 2>$(NULLDEV)
endif
CC65 := $(if $(wildcard ../../bin/cc65*),..$S..$Sbin$Scc65,cc65)
CL65 := $(if $(wildcard ../../bin/cl65*),..$S..$Sbin$Scl65,cl65)
WORKDIR = ../../testwrk/err
.PHONY: all clean
SOURCES := $(wildcard *.c)
TESTS = $(patsubst %.c,$(WORKDIR)/%.s,$(SOURCES))
TESTS = $(patsubst %.c,$(WORKDIR)/%.prg,$(SOURCES))
all: $(TESTS)
$(WORKDIR):
$(call MKDIR,$(WORKDIR))
$(WORKDIR)/%.s: %.c | $(WORKDIR)
$(WORKDIR)/%.prg: %.c | $(WORKDIR)
$(if $(QUIET),echo err/$*.s)
$(NOT) $(CC65) -o $@ $< $(NULLERR)
$(NOT) $(CL65) -o $@ $< $(NULLERR)
clean:
@$(call RMDIR,$(WORKDIR))