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