1 RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror -O
2 CFLAGS = $(RECOMMENDED_CFLAGS)
4 exec_prefix = $(prefix)
5 bindir = $(exec_prefix)/bin
7 INSTALL_PROGRAM = $(INSTALL)
9 batteryviewer: batteryviewer.c chart.c
10 gcc $(shell pkg-config --cflags gtk+-3.0) -o $@ $(CFLAGS) $^ $(shell pkg-config --libs gtk+-3.0)
15 $(INSTALL_PROGRAM) batteryviewer $(bindir)/batteryviewer
20 .PHONY: all clean install