@@ -14,13 +14,11 @@ FLAGS += -MMD -MP | |||||
# Debugger symbols. These are removed with `strip`. | # Debugger symbols. These are removed with `strip`. | ||||
FLAGS += -g | FLAGS += -g | ||||
# Optimization | # Optimization | ||||
FLAGS += -O3 -march=core2 -funsafe-math-optimizations | |||||
FLAGS += -O3 -march=nehalem -funsafe-math-optimizations | |||||
# Warnings | # Warnings | ||||
FLAGS += -Wall -Wextra -Wno-unused-parameter | FLAGS += -Wall -Wextra -Wno-unused-parameter | ||||
# C++ standard | # C++ standard | ||||
CXXFLAGS += -std=c++11 | CXXFLAGS += -std=c++11 | ||||
# C standard | |||||
CFLAGS += -std=c11 | |||||
# Architecture-independent flags | # Architecture-independent flags | ||||
ifdef ARCH_LIN | ifdef ARCH_LIN | ||||
@@ -5,7 +5,7 @@ DEP_LOCAL ?= dep | |||||
$(shell mkdir -p $(DEP_LOCAL)) | $(shell mkdir -p $(DEP_LOCAL)) | ||||
DEP_PATH := $(abspath $(DEP_LOCAL)) | DEP_PATH := $(abspath $(DEP_LOCAL)) | ||||
DEP_FLAGS += -g -O3 -march=nocona | |||||
DEP_FLAGS += -g -O3 -march=nehalem | |||||
# This is needed for Rack for DAWs. | # This is needed for Rack for DAWs. | ||||
# Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. | # Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. | ||||
DEP_FLAGS += -fPIC | DEP_FLAGS += -fPIC | ||||