mirror of https://github.com/rusefi/lua.git
details
This commit is contained in:
parent
3cf1729a02
commit
cb09f4fef4
14
makefile
14
makefile
|
@ -18,9 +18,9 @@ CWARNSC=-pedantic -Wextra \
|
||||||
-Wstrict-aliasing \
|
-Wstrict-aliasing \
|
||||||
# the next warnings generate to much noise, so they are disabled
|
# the next warnings generate to much noise, so they are disabled
|
||||||
# -Wlogical-op \
|
# -Wlogical-op \
|
||||||
|
# -Wstrict-overflow=2 \
|
||||||
# -Wformat=2 \
|
# -Wformat=2 \
|
||||||
# -Wstrict-overflow=5 \
|
# -Wcast-qual \
|
||||||
# -Wcast-qual \
|
|
||||||
|
|
||||||
# The next warnings are not valid for C++
|
# The next warnings are not valid for C++
|
||||||
CWARNS= $(CWARNSC) \
|
CWARNS= $(CWARNSC) \
|
||||||
|
@ -35,14 +35,16 @@ CWARNS= $(CWARNSC) \
|
||||||
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
|
# -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"'
|
||||||
# -g -DLUA_USER_H='"ltests.h"'
|
# -g -DLUA_USER_H='"ltests.h"'
|
||||||
# -fomit-frame-pointer #-pg -malign-double
|
# -fomit-frame-pointer #-pg -malign-double
|
||||||
TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0
|
# TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0
|
||||||
|
|
||||||
|
# -mtune=native -fomit-frame-pointer
|
||||||
|
LOCAL = $(TESTS) $(CWARNS) -g
|
||||||
|
|
||||||
LOCAL = $(TESTS) $(CWARNS)
|
|
||||||
|
|
||||||
|
|
||||||
# enable Linux goodies
|
# enable Linux goodies
|
||||||
MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -DLUA_COMPAT_ALL -g
|
MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -DLUA_COMPAT_ALL
|
||||||
MYLDFLAGS= -Wl,-E -g
|
MYLDFLAGS= $(LOCAL) -Wl,-E
|
||||||
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue