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