summaryrefslogtreecommitdiff
path: root/mk/__stdin.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/__stdin.d')
-rw-r--r--mk/__stdin.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/__stdin.d b/mk/__stdin.d
new file mode 100644
index 00000000..bc20dab9
--- /dev/null
+++ b/mk/__stdin.d
@@ -0,0 +1,9 @@
+libc_C.0: libc.a(__stdin.o)
+libc.a(__stdin.o): $(OBJDIR)/__stdin.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/__stdin.o: src/stdio/__stdin.c
+$(OBJDIR)/__stdin.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/stdio/__stdin.c