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