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