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