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