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