X-Git-Url: http://git.scottworley.com/batteryviewer/blobdiff_plain/d2485ebc69f6ceef5148ec84731c6bcf4b5407e4..refs/heads/master:/Makefile?ds=inline

diff --git a/Makefile b/Makefile
index 5a1cc25..f9d8876 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror
+RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -O
 CFLAGS = $(RECOMMENDED_CFLAGS)
 prefix = /usr/local
 exec_prefix = $(prefix)
@@ -6,8 +6,8 @@ bindir = $(exec_prefix)/bin
 INSTALL = install -D
 INSTALL_PROGRAM = $(INSTALL)
 
-batteryviewer: batteryviewer.c
-	gcc $(shell pkg-config --cflags gtk4) -o $@ $(CFLAGS) $< $(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