X-Git-Url: http://git.scottworley.com/batteryviewer/blobdiff_plain/79ac753b684a82d2acddb865d50d941525b5706d..a9a80e4ebe7952a0210ac835affa0f7e4450b089:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 20e658b..8bc7dbb 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 gtk+-3.0) -o $@ $(CFLAGS) $< $(shell pkg-config --libs gtk+-3.0) all: batteryviewer