Fix CFLAGS
This commit is contained in:
parent
f276753dc9
commit
1a3764a5d0
10
c/config.mk
10
c/config.mk
|
@ -1,10 +1,10 @@
|
|||
# Defaults
|
||||
CXX = clang
|
||||
CC = clang
|
||||
DEBUG = 1
|
||||
STATIC = 0
|
||||
|
||||
LDFLAGS =
|
||||
CXXFLAGS =\
|
||||
CFLAGS =\
|
||||
-std=c99\
|
||||
-Weverything\
|
||||
-Wno-padded\
|
||||
|
@ -29,13 +29,13 @@ LDFLAGS +=\
|
|||
$(addprefix -L,${LIBDIR})\
|
||||
$(addprefix -l,${LIB})
|
||||
|
||||
CXXFLAGS +=\
|
||||
CFLAGS +=\
|
||||
$(addprefix -I,${INCDIR})
|
||||
|
||||
ifeq (${DEBUG},1)
|
||||
CXXFLAGS += -g
|
||||
CFLAGS += -g
|
||||
else
|
||||
CXXFLAGS += -O2 -Werror
|
||||
CFLAGS += -O2 -Werror
|
||||
endif
|
||||
|
||||
ifeq (${STATIC},1)
|
||||
|
|
Loading…
Reference in New Issue