Update makefile
This commit is contained in:
parent
be8ce3a6ad
commit
41ced79ea7
12
Makefile.mk
12
Makefile.mk
|
@ -22,7 +22,10 @@ endif
|
||||||
# Common build and link flags
|
# Common build and link flags
|
||||||
|
|
||||||
BASE_FLAGS = -Wall -Wextra -pipe
|
BASE_FLAGS = -Wall -Wextra -pipe
|
||||||
BASE_OPTS = -O2 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections
|
BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections
|
||||||
|
ifneq ($(NOOPT),true)
|
||||||
|
BASE_OPTS += -mtune=generic -msse -msse2 -mfpmath=sse
|
||||||
|
endif
|
||||||
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--strip-all
|
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,--strip-all
|
||||||
|
|
||||||
ifeq ($(MACOS),true)
|
ifeq ($(MACOS),true)
|
||||||
|
@ -31,8 +34,11 @@ LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(RASPPI),true)
|
ifeq ($(RASPPI),true)
|
||||||
# Raspberry-Pi optimization flags
|
# Raspberry-Pi flags
|
||||||
BASE_OPTS = -O2 -ffast-math -march=armv6 -mfpu=vfp -mfloat-abi=hard
|
BASE_OPTS = -O2 -ffast-math
|
||||||
|
ifneq ($(NOOPT),true)
|
||||||
|
BASE_OPTS += -march=armv6 -mfpu=vfp -mfloat-abi=hard
|
||||||
|
endif
|
||||||
LINK_OPTS = -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
|
LINK_OPTS = -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
2
dpf
2
dpf
|
@ -1 +1 @@
|
||||||
Subproject commit 304054af33b20ddbcdf0e5c87871010e8fc191dc
|
Subproject commit d5b7aa9500945a3ac5ca0d28c2fc502a8cef98ae
|
Loading…
Reference in New Issue