forked from ryanflannery/vitunes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.linux
49 lines (35 loc) · 1001 Bytes
/
Makefile.linux
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for linux
# install locations
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man/man1
# non-base dependency build info
CDEPS=`taglib-config --cflags`
LDEPS=`taglib-config --libs` -ltag_c
# build info
CC?=/usr/bin/cc
CFLAGS+=-c -std=gnu99 -D_GNU_SOURCE -Wall -Wextra -Wno-unused-value $(CDEPS) $(CDEBUG)
LDFLAGS+=-lm -lncurses -lutil $(LDEPS)
OBJS=commands.o compat.o e_commands.o \
keybindings.o medialib.o meta_info.o \
paint.o player.o playlist.o \
str2argv.o uinterface.o vitunes.o \
mplayer.o socket.o player_utils.o
VPATH = players
# main targets
.PHONY: debug clean install uninstall publish-repos man-debug
vitunes: $(OBJS)
$(CC) -o $@ $(LDFLAGS) $(OBJS)
.c.o:
$(CC) $(CFLAGS) $<
debug:
make CDEBUG="-DDEBUG -g"
clean:
rm -f *.o
rm -f vitunes vitunes.core vitunes-debug.log
install: vitunes
/bin/install -c -m 0555 vitunes $(BINDIR)
/bin/install -c -m 0444 vitunes.1 $(MANDIR)
uninstall:
rm -f $(BINDIR)/vitunes
rm -f $(MANDIR)/vitunes.1