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