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