File: Makefile

package info (click to toggle)
lxmms2 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 120 kB
  • ctags: 57
  • sloc: ansic: 506; makefile: 74
file content (38 lines) | stat: -rw-r--r-- 817 bytes parent folder | download
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
# Makefile for lxmms2

# Installation directory
PREFIX ?= /usr/local

ALLFILES=*.c Makefile README COPYING

CFLAGS += -O2 -Wall -fPIC `pkg-config --cflags xmms2-client`
LIBS=`pkg-config --libs xmms2-client` -llirc_client

CC=gcc

OBJS=lxmms2.o

projname:=lxmms2-$(shell awk '/define VERSION/ { print $$3 }' lxmms2.c )

lxmms2: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o lxmms2 $(LIBS)

dist: $(ALLFILES)
	-rm -rf $(projname)
	mkdir $(projname)
	cp -rl --parents $(ALLFILES) $(projname)
	tar chfz $(projname).tar.gz $(projname)
	-rm -rf $(projname)

clean:
	rm -f *.o core *.bak *~ lxmms2

%.o: %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<

install: lxmms2
	install -D lxmms2 $(DESTDIR)$(PREFIX)/bin/lxmms2
	install -D lxmms2.1 $(DESTDIR)$(PREFIX)/share/man/man1/lxmms2.1

uninstall:
	-rm $(DESTDIR)$(PREFIX)/bin/lxmms2