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