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