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