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