]> git.scottworley.com Git - batteryviewer/blame_incremental - Makefile
-Wall -Wextra -pedantic -Werror
[batteryviewer] / Makefile
... / ...
CommitLineData
1RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror
2CFLAGS = $(RECOMMENDED_CFLAGS)
3prefix = /usr/local
4exec_prefix = $(prefix)
5bindir = $(exec_prefix)/bin
6INSTALL = install -D
7INSTALL_PROGRAM = $(INSTALL)
8
9batteryviewer: batteryviewer.c
10 gcc $(shell pkg-config --cflags gtk4) -o $@ $(CFLAGS) $< $(shell pkg-config --libs gtk4)
11
12all: batteryviewer
13
14install:
15 $(INSTALL_PROGRAM) batteryviewer $(bindir)/batteryviewer
16
17clean:
18 rm batteryviewer
19
20.PHONY: all clean install