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