aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3ab7005e8917d0f437d556c1211162580a145059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CC=cc
CFLAGS+=-std=c99 -pedantic -Wall -Wextra -O2 -I/usr/include/freetype2
LDFLAGS+=-lX11 -lXft

TSAR_OUT=tsarbar

HEADERS=src/pipe.h src/bardata.h
SRC=src/tsar.c src/pipe.c src/bardata.c

.PHONY: default run clean

default: $(TSAR_OUT)

# Project should be small enough that we should be able to ignore incremental
# compilation
$(TSAR_OUT): $(SRC)
	$(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS)

%.c:

run: $(TSAR_OUT)
	./$(TSAR_OUT)

clean:
	rm $(TSAR_OUT)

install: $(SRC)
	$(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS)
	cp tsarbar /usr/bin/tsarbar
	cp tsarc /usr/bin/tsarc

uninstall:
	rm /usr/bin/tsarbar
	rm /usr/bin/tsarc