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