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