summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-11-27 21:15:03 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-11-27 21:15:03 +1100
commitd24ee5f20483aee9acbec9deb0dcc833d78cae49 (patch)
tree04ed06b7c0f4e475b9f5f5f1e3da2c044d6b5849 /src/Makefile
parentc6da616d018ecfc5a26686e88ab520b54b7fa6ed (diff)
actually fixed build this time
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 3 insertions, 3 deletions
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 $^