Make build with conditional compilation easier.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 14 Apr 2023 10:16:29 +0000 (06:16 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 14 Apr 2023 10:16:29 +0000 (06:16 -0400)
Makefile

index 5d306b08354799ce7965ad966195b941635c3bac..8a09496aaed5cab87135cb7c246f6549afc92d87 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ VERS=$(shell sed -n <NEWS.adoc '/^[0-9]/s/:.*//p' | head -1)
 .PHONY: check coverage
 
 CC?=gcc
-CCFLAGS+=-std=c99 -D_DEFAULT_SOURCE -DVERSION=\"$(VERS)\" -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all $(CFLAGS) -g
+CCFLAGS+=-std=c99 -D_DEFAULT_SOURCE -DVERSION=\"$(VERS)\" -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all $(CFLAGS) -g $(EXTRA)
 LIBS=$(shell pkg-config --libs libedit)
 INC+=$(shell pkg-config --cflags libedit)