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