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