Allow override Makefile CFLAGS by appending and not by overwriting
This commit is contained in:
parent
eb3c2b378a
commit
cbe805d82a
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -18,8 +18,8 @@ endif
|
|||
OBJ := $(SRC:.c=.o)
|
||||
|
||||
# define default flags, and override to append mandatory flags
|
||||
CFLAGS ?= -O3 -Wall -Wextra -Werror -Wshadow
|
||||
override CFLAGS += -std=gnu99 -fPIC -Ilib/src -Ilib/include
|
||||
override CFLAGS := -O3 -std=gnu99 -fPIC -Wall -Wextra -Werror -Wshadow $(CFLAGS)
|
||||
override CFLAGS += -Ilib/src -Ilib/include
|
||||
|
||||
# ABI versioning
|
||||
SONAME_MAJOR := 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue