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