Add configure script.
- Deactivate LTO. - Deactivate SIMD.
This commit is contained in:
parent
f8178fae98
commit
4dba86c9f0
3 changed files with 22 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -6,3 +6,5 @@
|
||||||
rotated*.ppm
|
rotated*.ppm
|
||||||
rotated*.pnm
|
rotated*.pnm
|
||||||
*.png
|
*.png
|
||||||
|
|
||||||
|
Makefile.rules
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -1,7 +1,8 @@
|
||||||
CXX = clang++
|
include Makefile.rules
|
||||||
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -g -Werror
|
|
||||||
LFLAGS = -flto
|
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -g $(CXXFLAGS_PLAFORM)
|
||||||
DEFINES = -DSIMD
|
LFLAGS = #-flto
|
||||||
|
DEFINES = #-DSIMD
|
||||||
BUILD_DIR = /tmp
|
BUILD_DIR = /tmp
|
||||||
SRC = rotation.cpp \
|
SRC = rotation.cpp \
|
||||||
image.cpp \
|
image.cpp \
|
||||||
|
|
15
configure
vendored
Executable file
15
configure
vendored
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case `uname -s` in
|
||||||
|
|
||||||
|
Darwin)
|
||||||
|
echo 'CXX = clang++' > Makefile.rules
|
||||||
|
echo 'CXXFLAGS_PLATFORM = ' > Makefile.rules
|
||||||
|
;;
|
||||||
|
|
||||||
|
Linux)
|
||||||
|
echo 'CXX = g++' > Makefile.rules
|
||||||
|
echo 'CXXFLAGS_PLATFORM = ' > Makefile.rules
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
Loading…
Add table
Add a link
Reference in a new issue