File: Makefile

package info (click to toggle)
id3v2 0.1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 592 kB
  • ctags: 72
  • sloc: cpp: 3,046; sh: 242; makefile: 42
file content (28 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (3)
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
all: id3v2

VERSION=0.1.12

PREFIX=	${DESTDIR}/usr
CXXFLAGS+=	-Wall -I${PREFIX}/include/ -DVERSION="\"${VERSION}\"" #-DSORT_RUNTIME
LDFLAGS+=	-L${PREFIX}/lib/ 

id3v2:	convert.o list.o id3v2.o genre.o
	${CXX} ${LDFLAGS} -pedantic -Wall -g -o $@ $^ -lz -lid3

create_map: create_map.o
	${CXX} -Wall -g -o $@ $^

install: all
	install id3v2 ${PREFIX}/bin/id3v2
	nroff -man id3v2.1 > ${PREFIX}/share/man/man1/id3v2.1

clean:
	rm -f id3v2 create_map core *.o

tarball:
	ln -s . id3v2-${VERSION}
	tar zhcf id3v2-${VERSION}.tar.gz  \
		--exclude=id3v2-${VERSION}/id3v2-${VERSION} \
		id3v2-${VERSION}
	rm id3v2-${VERSION}