+RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror
+CFLAGS = $(RECOMMENDED_CFLAGS)
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
INSTALL_PROGRAM = $(INSTALL)
batteryviewer: batteryviewer.c
- gcc $(shell pkg-config --cflags gtk4) -o $@ $< $(shell pkg-config --libs gtk4)
+ gcc $(shell pkg-config --cflags gtk4) -o $@ $(CFLAGS) $< $(shell pkg-config --libs gtk4)
all: batteryviewer