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