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