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