diff options
author | Maho Nakata <maho@FreeBSD.org> | 2005-07-04 04:12:12 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2005-07-04 04:12:12 +0000 |
commit | 314c3abb8697d639d49954eade9465f687e9c95e (patch) | |
tree | 66568fbc754fd027dc4c42ae48ba48940808e18c /math/sdpa | |
parent | 4a3aefefc30e1f6e734d69cadab84b65170d5ab3 (diff) |
Notes
Diffstat (limited to 'math/sdpa')
-rw-r--r-- | math/sdpa/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/math/sdpa/Makefile b/math/sdpa/Makefile index 10e5bd42cf06..907fde6c2b02 100644 --- a/math/sdpa/Makefile +++ b/math/sdpa/Makefile @@ -41,13 +41,19 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" #WITH_SMP= yes #WITH_ICC= yes +.include <bsd.port.pre.mk> + .if defined(WITH_OPTIMIZED_FLAGS) +.if ${ARCH} == "amd64" +CFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time +CXXFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time +.else if ${ARCH} == "i386" +CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 +CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 +.else CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar -.if (${ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" ) -CFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 -CXXFLAGS+= -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3 -.endif # i386 +.endif .endif .if defined(WITH_ICC) @@ -97,4 +103,4 @@ do-install: .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |