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:
committed by
Oliver Schmidt
parent
0486d28abc
commit
23621f3299
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user