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