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