1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-09-27 13:55:23 +00:00
rk65c02/test/Makefile
Radosław Kujawa 442c8dc3df Add instruction stepping test.
That was written some time ago but forgot to plug it into test suite.
2017-02-06 22:05:16 +01:00

39 lines
934 B
Makefile

CFLAGS=-Wall -I../src -g
LDFLAGS=-latf-c
RK6502LIB=../src/librk65c02.a
VASM=vasm6502_std
VASMFLAGS=-Fbin -c02
UTILS=utils.o
TESTS=test_bus test_emulation test_stepping test_assemble test_interrupt
TESTROMS:=$(addsuffix .rom,$(basename $(wildcard *.s)))
all : $(TESTS) $(TESTROMS)
test_stepping : test_stepping.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_bus : test_bus.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_emulation : test_emulation.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_assemble : test_assemble.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
#test_interrupt: test_interrupt.o $(UTILS) $(RK6502LIB)
# $(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
%.rom : %.s
$(VASM) $(VASMFLAGS) -o $@ $<
%.o : %.c
$(CC) $(CFLAGS) -c $<
clean :
rm -f *.o
rm -f $(TESTS)
rm -f $(TESTROMS)