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