summaryrefslogtreecommitdiff
path: root/mk/setlocale.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/setlocale.d')
-rw-r--r--mk/setlocale.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/mk/setlocale.d b/mk/setlocale.d
new file mode 100644
index 00000000..15ac1c78
--- /dev/null
+++ b/mk/setlocale.d
@@ -0,0 +1,17 @@
+libc_C.1: libc.a(setlocale.o)
+libc.a(setlocale.o): $(OBJDIR)/setlocale.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/setlocale.o: src/locale/setlocale.c
+$(OBJDIR)/setlocale.o: src/locale/_locale.h
+$(OBJDIR)/setlocale.o: src/locale/LC_ALL_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_COLLATE_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_CTYPE_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_NUMERIC_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_TIME_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_MESSAGES_MASK.c
+$(OBJDIR)/setlocale.o: src/locale/LC_MONETARY_MASK.c
+$(OBJDIR)/setlocale.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/locale/setlocale.c