Update build for Linux.

Add flags for SSE instructions.
This commit is contained in:
Fabien Freling 2014-07-28 19:47:51 +02:00
parent da4bdf7702
commit bcc195c775
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
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
BUILD_DIR = .
SRC = rotation.cpp \
@ -12,7 +12,7 @@ OBJS = $(patsubst %.cpp,%.o,$(SRC))
IMG = img/lena_3000.pgm
all: $(OBJS)
$(CXX) $(CXXFLAGS) $(DEFINES) $(LFLAGS) $(OBJS) -o $(BUILD_DIR)/rotation
$(CXX) $(CXXFLAGS) $(LFLAGS) $(OBJS) -o $(BUILD_DIR)/rotation
%.o: %.cpp $(HEADERS)
$(CXX) $(CXXFLAGS) $(DEFINES) $< -c -o $@