2018-03-28 17:45:53 +02:00
|
|
|
SRC := $(filter-out loadlib.c lua.c luac.c,$(wildcard *.c))
|
2018-03-28 17:45:53 +02:00
|
|
|
|
2018-07-19 14:06:08 +02:00
|
|
|
ifneq (llvm, $(TOOLCHAIN))
|
|
|
|
CFLAGS += -fstack-usage -fconserve-stack
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS += -DLUA_MAXCAPTURES=16 -DL_MAXLENNUM=50
|
|
|
|
|
2018-10-18 11:12:29 +02:00
|
|
|
# Upstream has several of these warnings which will not be fixed: because it
|
|
|
|
# would require a big refactor and because the lua developers do not accept
|
|
|
|
# patches.
|
|
|
|
CFLAGS += -Wno-cast-qual
|
|
|
|
|
2018-03-28 17:45:53 +02:00
|
|
|
# Enable these options to debug stack usage
|
|
|
|
# -Wstack-usage=128 -Wno-error=stack-usage=128
|
2018-03-28 17:45:53 +02:00
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.base
|
2018-06-15 00:56:31 +02:00
|
|
|
ifneq (,$(filter -Wformat-nonliteral -Wformat=2, $(CFLAGS)))
|
|
|
|
CFLAGS += -Wno-format-nonliteral
|
|
|
|
endif
|