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