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