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