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