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