mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-12 10:30:23 +00:00
52ce9bff8c
Some refactoring while here.
21 lines
348 B
Makefile
21 lines
348 B
Makefile
CFLAGS=-Wall -I../src -g
|
|
LDFLAGS=-latf-c
|
|
RK6502LIB=../src/librk65c02.a
|
|
TESTS=test_bus test_emulation
|
|
|
|
all : $(TESTS)
|
|
|
|
test_bus : test_bus.o
|
|
$(CC) -o test_bus $(LDFLAGS) $< $(RK6502LIB)
|
|
|
|
test_emulation : test_emulation.o
|
|
$(CC) -o test_emulation $(LDFLAGS) $< $(RK6502LIB)
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean :
|
|
rm -f *.o
|
|
rm -f $(TESTS)
|
|
|