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