1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-01 20:41:32 +00:00

When linking against static lib, the order matters.

This commit is contained in:
Radosław Kujawa 2017-01-16 23:56:10 +01:00
parent a0821195c7
commit 5861d40352

View File

@ -1,8 +1,9 @@
CFLAGS=-Wall -I../src
LDFLAGS=-latf-c ../src/librk65c02.a
LDFLAGS=-latf-c
RK6502LIB=../src/librk65c02.a
test_bus : test_bus.o
$(CC) -o test_bus $(LDFLAGS) $<
$(CC) -o test_bus $(LDFLAGS) $< $(RK6502LIB)
%.o : %.c
$(CC) $(CFLAGS) -c $<