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
|
||||
|
||||
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 $@
|
||||
|
|
Loading…
Reference in a new issue