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