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