summaryrefslogtreecommitdiff
path: root/mk/erf.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/erf.d')
-rw-r--r--mk/erf.d12
1 files changed, 12 insertions, 0 deletions
diff --git a/mk/erf.d b/mk/erf.d
new file mode 100644
index 00000000..9f7bf31c
--- /dev/null
+++ b/mk/erf.d
@@ -0,0 +1,12 @@
+libm_C.199901: libm.a(erf.o)
+libm_X.4: libm.a(erf.o)
+libm.a(erf.o): $(OBJDIR)/erf.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/erf.o: src/math/erf.c
+$(OBJDIR)/erf.o: src/complex/_tgmath.h
+$(OBJDIR)/src/math/_tgmath.h.o:
+$(OBJDIR)/erf.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/math/erf.c