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