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