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

37 lines
862 B
Makefile
Raw Normal View History

CFLAGS=-Wall -I../src -g
LDFLAGS=-latf-c
RK6502LIB=../src/librk65c02.a
VASM=vasm6502_std
VASMFLAGS=-Fbin -c02
TESTS=test_bus test_emulation
2017-01-20 09:41:56 +00:00
TESTROMS=test_emulation_and_imm.rom \
2017-01-22 12:50:04 +00:00
test_emulation_clc.rom test_emulation_sec.rom \
test_emulation_dex.rom test_emulation_dey.rom \
test_emulation_inx.rom test_emulation_iny.rom \
test_emulation_pha.rom test_emulation_pla.rom \
test_emulation_php.rom test_emulation_plp.rom \
2017-01-20 09:41:56 +00:00
test_emulation_nop.rom \
2017-01-21 20:46:35 +00:00
test_emulation_lda_imm.rom test_emulation_lda_zp.rom \
test_emulation_stz_zp.rom
all : $(TESTS) $(TESTROMS)
2017-01-16 21:54:51 +00:00
test_bus : test_bus.o $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(RK6502LIB)
test_emulation : test_emulation.o $(RK6502LIB)
$(CC) -o $@ $(LDFLAGS) $< $(RK6502LIB)
2017-01-16 21:54:51 +00:00
%.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