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