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