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