From d24ee5f20483aee9acbec9deb0dcc833d78cae49 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Mon, 27 Nov 2023 21:15:03 +1100 Subject: actually fixed build this time --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index fcb1c3a..710df5a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,7 +8,7 @@ TARGET_VIDEO = video/ncurses.o # Executable Targets -default: $(MAIN_COMPONENTS) +default: cpu.a apple.a gcc -o ../build/apple-c main.c $^ interpreter: cpu.a apple.a @@ -24,8 +24,8 @@ cpu.a: $(TARGET_CPU) video.a: $(TARGET_VIDEO) ar cr $@ $^ -apple.a: - ar cr $@ $^ +apple.a: apple.o $(TARGET_CPU) $(TARGET_VIDEO) + ar -rcs $@ $^ *.o: *.c gcc -c $^ -- cgit v1.2.3