]> git.sur5r.net Git - cc65/blob - test/err/Makefile
Removed redundant attempts to build uncompilable files.
[cc65] / test / err / Makefile
1 # makefile for the tests that MUST NOT compile
2
3 ifneq ($(shell echo),)
4   CMD_EXE := 1
5 endif
6
7 ifdef CMD_EXE
8   NOT := - # Hack
9   DEL = -del /f $(subst /,\,$1)
10 else
11   NOT := !
12   DEL = $(RM) $1
13 endif
14
15 CC65 := $(if $(wildcard ../../bin/cc65*),../../bin/cc65,cc65)
16
17 WORKDIR := ../../testwrk
18
19 .PHONY: all clean
20
21 TESTS := $(patsubst %.c,$(WORKDIR)/%.s,$(wildcard *.c))
22
23 all: $(TESTS)
24
25 $(WORKDIR)/%.s: %.c
26         $(NOT) $(CC65) -o $@ $<
27
28 clean:
29         @$(call DEL,$(TESTS))