]> git.armaanb.net Git - opendoas.git/blobdiff - GNUmakefile
configure: respect environment and make CFLAGS
[opendoas.git] / GNUmakefile
index 9e524fc23966b9efd7b6ff1ade24c554e7e81249..947020236706742699a4f4a4f58a8313c225784e 100644 (file)
@@ -5,9 +5,7 @@ SRCS=   parse.y doas.c env.c
 
 include config.mk
 
-CFLAGS+= -I. -Ilibopenbsd ${COPTS}
-COPTS+=        -Wall -Wextra -pedantic -O2 -D_FORTIFY_SOURCE=2
-YFLAGS=
+override CFLAGS:=-I. -Ilibopenbsd -O2 -Wall -Wextra ${OS_CFLAGS} ${CFLAGS}
 
 all: ${PROG}