summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
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 $^