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