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