]> git.sur5r.net Git - cc65/blob - test/err/Makefile
fixed up the rest of the tests, added rudimentary makefile(s)
[cc65] / test / err / Makefile
1
2 # makefile for the tests that MUST NOT compile
3
4 CC65FLAGS = -t sim6502
5
6 CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
7 SIM65 := $(if $(wildcard ../../bin/sim65*),../../bin/sim65,sim65)
8
9 RM := rm -f
10
11 .PHONY: all
12
13 TESTS := $(patsubst %.c,%.prg,$(wildcard *.c))
14 TESTS += $(patsubst %.c,%.o.prg,$(wildcard *.c))
15 TESTS += $(patsubst %.c,%.os.prg,$(wildcard *.c))
16 TESTS += $(patsubst %.c,%.osi.prg,$(wildcard *.c))
17 TESTS += $(patsubst %.c,%.osir.prg,$(wildcard *.c))
18 TESTS += $(patsubst %.c,%.oi.prg,$(wildcard *.c))
19 TESTS += $(patsubst %.c,%.oir.prg,$(wildcard *.c))
20 TESTS += $(patsubst %.c,%.or.prg,$(wildcard *.c))
21
22 all: $(TESTS)
23
24 %.prg: %.c
25         ! $(CL65) $(CC65FLAGS) $< -o $@
26 %.o.prg: %.c
27         ! $(CL65) $(CC65FLAGS) $< -o $@
28 %.os.prg: %.c
29         ! $(CL65) $(CC65FLAGS) $< -o $@
30 %.osi.prg: %.c
31         ! $(CL65) $(CC65FLAGS) $< -o $@
32 %.osir.prg: %.c
33         ! $(CL65) $(CC65FLAGS) $< -o $@
34 %.oi.prg: %.c
35         ! $(CL65) $(CC65FLAGS) $< -o $@
36 %.oir.prg: %.c
37         ! $(CL65) $(CC65FLAGS) $< -o $@
38 %.or.prg: %.c
39         ! $(CL65) $(CC65FLAGS) $< -o $@
40 clean:
41         @$(RM) *.o
42         @$(RM) *.prg