use CFLAGS from configuration (not hard coded)
authorMichael Beyl <mb@exept.de>
Wed, 20 Feb 2013 15:14:31 +0100
changeset 2382 1b0f739ed383
parent 2377 0adf7bbcf2c9
child 2390 47358426d752
use CFLAGS from configuration (not hard coded)
support/fdlibm/Makefile
--- a/support/fdlibm/Makefile	Tue Feb 19 23:55:45 2013 +0000
+++ b/support/fdlibm/Makefile	Wed Feb 20 15:14:31 2013 +0100
@@ -45,6 +45,13 @@
 # is double scalb(double, double)
 #
 
+LIB	= libfdm.a
+
+all: $(LIB)
+
+include ../../../configurations/vendorConf
+include ../../../configurations/myConf
+
 prefix	= /usr/local
 
 AR	= ar
@@ -55,7 +62,8 @@
 # Default IEEE libm
 #
 # CFLAGS	= -g -O2 -m32
-CFLAGS	= -g -O2
+#CFLAGS	= -g -O2
+CFLAGS=$(CCCONFOPT)
 
 CHMOD	= chmod
 
@@ -65,8 +73,6 @@
 
 LDFLAGS	= 
 
-LIB	= libfdm.a
-
 LIBS	= 
 
 RANLIB	= ranlib
@@ -119,8 +125,6 @@
 	s_rint.o s_scalbn.o s_signgam.o s_significand.o s_sin.o \
 	s_tan.o s_tanh.o
 
-all: $(LIB)
-
 check:
 	@echo This package does not have a validation suite.