Add some Makefile extra cflags

This commit is contained in:
bnnm 2018-08-25 12:19:51 +02:00
parent 07ad3250f6
commit db899deb99
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ ifeq ($(TARGET_OS),Windows_NT)
CFLAGS += -DWIN32
endif
CFLAGS += -Wall -O3 -DVAR_ARRAYS -I../ext_includes $(EXTRA_CFLAGS)
CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DVAR_ARRAYS -I../ext_includes $(EXTRA_CFLAGS)
LDFLAGS += -L../src -L../ext_libs -lvgmstream $(EXTRA_LDFLAGS) -lm
TARGET_EXT_LIBS =
@ -26,7 +26,7 @@ LIBAO_INC_PATH = ../../libao/include
LIBAO_LIB_PATH = ../../libao/bin
#ifdef VGM_DEBUG
# CFLAGS += -DVGM_DEBUG_OUTPUT -O0 -Werror=format-security -Wdeclaration-after-statement -Wvla
# CFLAGS += -DVGM_DEBUG_OUTPUT -O0
# CFLAGS += -Wold-style-definition -Woverflow -Wpointer-arith -Wstrict-prototypes -pedantic -std=gnu90 -fstack-protector -Wformat
#endif

View File

@ -11,7 +11,7 @@ endif
### main defs
OUTPUT_WINAMP = in_vgmstream.dll
CFLAGS += -Wall -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS)
CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS)
LDFLAGS += -L../src -L../ext_libs -lm -lvgmstream $(EXTRA_LDFLAGS)
TARGET_EXT_LIBS =

View File

@ -11,7 +11,7 @@ endif
### main defs
OUTPUT_XMPLAY = xmp-vgmstream.dll
CFLAGS += -Wall -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS)
CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS)
LDFLAGS += -L../src -L../ext_libs -lm -lvgmstream $(EXTRA_LDFLAGS)
TARGET_EXT_LIBS =