Update build for Linux.
Add flags for SSE instructions.
This commit is contained in:
parent
da4bdf7702
commit
bcc195c775
4
Makefile
4
Makefile
|
@ -1,6 +1,6 @@
|
||||||
include Makefile.rules
|
include Makefile.rules
|
||||||
|
|
||||||
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -g $(CXXFLAGS_PLAFORM)
|
CXXFLAGS = -std=c++11 -W -Wall -O3 -ffast-math -g $(CXXFLAGS_PLATFORM)
|
||||||
DEFINES = #-DSIMD
|
DEFINES = #-DSIMD
|
||||||
BUILD_DIR = .
|
BUILD_DIR = .
|
||||||
SRC = rotation.cpp \
|
SRC = rotation.cpp \
|
||||||
|
@ -12,7 +12,7 @@ OBJS = $(patsubst %.cpp,%.o,$(SRC))
|
||||||
IMG = img/lena_3000.pgm
|
IMG = img/lena_3000.pgm
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
$(CXX) $(CXXFLAGS) $(DEFINES) $(LFLAGS) $(OBJS) -o $(BUILD_DIR)/rotation
|
$(CXX) $(CXXFLAGS) $(LFLAGS) $(OBJS) -o $(BUILD_DIR)/rotation
|
||||||
|
|
||||||
%.o: %.cpp $(HEADERS)
|
%.o: %.cpp $(HEADERS)
|
||||||
$(CXX) $(CXXFLAGS) $(DEFINES) $< -c -o $@
|
$(CXX) $(CXXFLAGS) $(DEFINES) $< -c -o $@
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -10,7 +10,7 @@ case `uname -s` in
|
||||||
|
|
||||||
Linux)
|
Linux)
|
||||||
echo 'CXX = g++' > Makefile.rules
|
echo 'CXX = g++' > Makefile.rules
|
||||||
echo 'CXXFLAGS_PLATFORM = ' >> Makefile.rules
|
echo 'CXXFLAGS_PLATFORM = -mssse3 -msse4.2' >> Makefile.rules
|
||||||
echo 'LFLAGS = ' >> Makefile.rules
|
echo 'LFLAGS = ' >> Makefile.rules
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue