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