aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d59135..857cc0a 100644
--- a/Makefile
+++ b/Makefile
@@ -19,9 +19,12 @@ $(BUILD)/%.o: src/%.asm | $(BUILD)
# C programs: compiled with SDCC into ROM-bank blobs and INCBIN'd by programs.asm
CBLOBS := c/chello.bin c/echo.bin c/true.bin c/false.bin c/uname.bin \
- c/pid.bin c/cat.bin
+ c/pid.bin c/cat.bin c/wc.bin c/head.bin c/args.bin
$(BUILD)/programs.o: $(CBLOBS)
+# C programs also depend on the shared libc sources
+$(CBLOBS): c/libc.c c/gbos.h
+
c/%.bin: c/%.c c/crt0.s c/libc.s c/build.sh
sh c/build.sh $< $@