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