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