2 # makefile for the regression tests that generate output which has to be
3 # compared with reference output
6 SIM65FLAGS = -x 200000000
8 CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
9 SIM65 := $(if $(wildcard ../../bin/sim65*),../../bin/sim65,sim65)
15 TESTS := $(patsubst %.c,%.prg,$(wildcard *.c))
16 TESTS += $(patsubst %.c,%.o.prg,$(wildcard *.c))
17 TESTS += $(patsubst %.c,%.os.prg,$(wildcard *.c))
18 TESTS += $(patsubst %.c,%.osi.prg,$(wildcard *.c))
19 TESTS += $(patsubst %.c,%.osir.prg,$(wildcard *.c))
20 TESTS += $(patsubst %.c,%.oi.prg,$(wildcard *.c))
21 TESTS += $(patsubst %.c,%.oir.prg,$(wildcard *.c))
22 TESTS += $(patsubst %.c,%.or.prg,$(wildcard *.c))
27 $(CL65) $(CC65FLAGS) $< -o $@
28 $(SIM65) $(SIM65FLAGS) $@ > $*.out
31 $(CL65) $(CC65FLAGS) $< -o $@
32 $(SIM65) $(SIM65FLAGS) $@ > $*.out
35 $(CL65) $(CC65FLAGS) $< -o $@
36 $(SIM65) $(SIM65FLAGS) $@ > $*.out
39 $(CL65) $(CC65FLAGS) $< -o $@
40 $(SIM65) $(SIM65FLAGS) $@ > $*.out
43 $(CL65) $(CC65FLAGS) $< -o $@
44 $(SIM65) $(SIM65FLAGS) $@ > $*.out
47 $(CL65) $(CC65FLAGS) $< -o $@
48 $(SIM65) $(SIM65FLAGS) $@ > $*.out
51 $(CL65) $(CC65FLAGS) $< -o $@
52 $(SIM65) $(SIM65FLAGS) $@ > $*.out
55 $(CL65) $(CC65FLAGS) $< -o $@
56 $(SIM65) $(SIM65FLAGS) $@ > $*.out