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