1 # Makefile for the tests that MUST NOT compile
11 MKDIR = mkdir $(subst /,\,$1)
12 RMDIR = -rmdir /s /q $(subst /,\,$1)
23 NULLERR = 2>$(NULLDEV)
26 CC65 := $(if $(wildcard ../../bin/cc65*),..$S..$Sbin$Scc65,cc65)
28 WORKDIR = ../../testwrk/err
32 SOURCES := $(wildcard *.c)
33 TESTS = $(patsubst %.c,$(WORKDIR)/%.s,$(SOURCES))
38 $(if $(QUIET),echo err/$*.s)
39 $(NOT) $(CC65) -o $@ $< $(NULLERR)
42 @$(call RMDIR,$(WORKDIR))