X-Git-Url: http://git.scottworley.com/batteryviewer/blobdiff_plain/79ac753b684a82d2acddb865d50d941525b5706d..d2485ebc69f6ceef5148ec84731c6bcf4b5407e4:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 20e658b..5a1cc25 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror +CFLAGS = $(RECOMMENDED_CFLAGS) prefix = /usr/local exec_prefix = $(prefix) bindir = $(exec_prefix)/bin @@ -5,7 +7,7 @@ INSTALL = install -D INSTALL_PROGRAM = $(INSTALL) batteryviewer: batteryviewer.c - gcc $(shell pkg-config --cflags gtk4) -o $@ $< $(shell pkg-config --libs gtk4) + gcc $(shell pkg-config --cflags gtk4) -o $@ $(CFLAGS) $< $(shell pkg-config --libs gtk4) all: batteryviewer