summaryrefslogtreecommitdiff
path: root/Makefile
blob: c622673c950f53d80d470ea56d3a7df95d5d4c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS=-Wall
LDFLAGS=-lacpi -lcpufreq

BINDIR=$(HOME)/bin

all: statusbar

statusbar: statusbar.c
	@echo "CC $@"
	@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
	@echo "strip $@"

install: statusbar
	@echo "installing $< to $(BINDIR)"
	@install -m 700 -D $< $(BINDIR)/$<

clean:
	@echo "cleaning"
	@rm -f statusbar