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