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