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