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