1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-12 10:30:23 +00:00
rk65c02/test/Makefile

45 lines
1.2 KiB
Makefile
Raw Normal View History

CFLAGS=-Wall -I../src -ggdb -Og
LDFLAGS=-latf-c -lgc
RK6502LIB=../src/librk65c02.a
VASM=vasm6502_std
VASMFLAGS=-Fbin -c02
UTILS=utils.o
TESTS=test_bus test_emulation test_stepping test_assemble test_interrupt test_debug test_device_serial
TESTROMS:=$(addsuffix .rom,$(basename $(wildcard *.s)))
all : $(TESTS) $(TESTROMS)
2017-01-16 21:54:51 +00:00
2017-01-26 22:28:04 +00:00
test_stepping : test_stepping.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
2017-01-26 22:22:40 +00:00
test_bus : test_bus.o $(UTILS) $(RK6502LIB)
2017-01-26 20:37:54 +00:00
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_emulation : test_emulation.o $(UTILS) $(RK6502LIB)
2017-01-26 20:37:54 +00:00
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
2017-01-16 21:54:51 +00:00
test_assemble : test_assemble.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
2017-02-07 20:23:31 +00:00
test_interrupt: test_interrupt.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_debug: test_debug.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
test_device_serial: test_device_serial.o $(UTILS) $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(UTILS) $(RK6502LIB)
%.rom : %.s
$(VASM) $(VASMFLAGS) -o $@ $<
2017-01-16 21:54:51 +00:00
%.o : %.c
$(CC) $(CFLAGS) -c $<
clean :
rm -f *.o
rm -f $(TESTS)
rm -f $(TESTROMS)
2017-01-16 21:54:51 +00:00