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