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