2 # makefile for the remaining tests that need special care in one way or another
9 SIM65FLAGS = -x 200000000
11 CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
12 SIM65 := $(if $(wildcard ../../bin/sim65*),../../bin/sim65,sim65)
20 WORKDIR := ./../../testwrk
22 DIFF := $(WORKDIR)/bdiff
26 TESTS := $(patsubst %.c,$(WORKDIR)/%.prg,$(wildcard *.c))
27 TESTS += $(patsubst %.c,$(WORKDIR)/%.o.prg,$(wildcard *.c))
28 TESTS += $(patsubst %.c,$(WORKDIR)/%.os.prg,$(wildcard *.c))
29 TESTS += $(patsubst %.c,$(WORKDIR)/%.osi.prg,$(wildcard *.c))
30 TESTS += $(patsubst %.c,$(WORKDIR)/%.osir.prg,$(wildcard *.c))
31 TESTS += $(patsubst %.c,$(WORKDIR)/%.oi.prg,$(wildcard *.c))
32 TESTS += $(patsubst %.c,$(WORKDIR)/%.oir.prg,$(wildcard *.c))
33 TESTS += $(patsubst %.c,$(WORKDIR)/%.or.prg,$(wildcard *.c))
35 # FIXME: actually use/build differently optimized programs here
39 # should compile, but then hangs in an endless loop
40 $(WORKDIR)/endless%prg: endless.c
41 $(CL65) $(CC65FLAGS) $< -o $@
42 ! $(SIM65) $(SIM65FLAGS) $@
44 # these need reference data that cant be generated by a host compiled program
46 $(WORKDIR)/limits%prg: limits.c
47 $(CL65) $(CC65FLAGS) $< -o $@
48 $(SIM65) $(SIM65FLAGS) $@ > $(WORKDIR)/limits.out
49 $(DIFF) $(WORKDIR)/limits.out limits.ref
51 # the rest are tests that fail currently for one reason or another
52 $(WORKDIR)/fields%prg: fields.c
53 @echo "FIXME: " $@ "will currently fail"
54 $(CL65) $(CC65FLAGS) $< -o $@
55 -$(SIM65) $(SIM65FLAGS) $@
56 $(WORKDIR)/sitest%prg: sitest.c
57 @echo "FIXME: " $@ "will currently fail"
58 -$(CL65) $(CC65FLAGS) $< -o $@
59 -$(SIM65) $(SIM65FLAGS) $@
63 @$(RM) $(patsubst %.c,$(WORKDIR)/%.o,$(wildcard *.c))
64 @$(RM) $(patsubst %.c,$(WORKDIR)/%.out,$(wildcard *.c))