]>
Commit | Line | Data |
---|---|---|
d2485ebc SW |
1 | RECOMMENDED_CFLAGS = -Wall -Wextra -pedantic -Werror |
2 | CFLAGS = $(RECOMMENDED_CFLAGS) | |
79ac753b SW |
3 | prefix = /usr/local |
4 | exec_prefix = $(prefix) | |
5 | bindir = $(exec_prefix)/bin | |
6 | INSTALL = install -D | |
7 | INSTALL_PROGRAM = $(INSTALL) | |
8 | ||
9 | batteryviewer: batteryviewer.c | |
a9a80e4e | 10 | gcc $(shell pkg-config --cflags gtk+-3.0) -o $@ $(CFLAGS) $< $(shell pkg-config --libs gtk+-3.0) |
79ac753b SW |
11 | |
12 | all: batteryviewer | |
13 | ||
14 | install: | |
15 | $(INSTALL_PROGRAM) batteryviewer $(bindir)/batteryviewer | |
16 | ||
17 | clean: | |
18 | rm batteryviewer | |
19 | ||
20 | .PHONY: all clean install |