summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a2e7af07ecd61a68e7968ce8f32e063fada2f2d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CFLAGS = -I . -g
LDLIBS = -lcurses -lreadline -lmpdclient

.PHONY: all tmus clean install uninstall

all: tmus

clean:
	rm tmus

%.o: %.c %.h
	$(CC) -c -o $@ $< $(CFLAGS) $(LDLIBS)

tmus: main.c util.o history.o link.o player.o tag.o track.o
	$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)

install:
	install -m 755 tmus /usr/bin

uninstall:
	rm /usr/bin/tmus