]> git.scottworley.com Git - batteryviewer/blobdiff - Makefile
License
[batteryviewer] / Makefile
index 20e658b728f67251a008f6970bb3fef7d416eb19..f9d8876942118084b2ef00a023df58b05c8d8af8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
+RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -O
+CFLAGS = $(RECOMMENDED_CFLAGS)
 prefix = /usr/local
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 INSTALL = install -D
 INSTALL_PROGRAM = $(INSTALL)
 
 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
 
 
 all: batteryviewer