File: Makefile

package info (click to toggle)
id3v2 0.1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 296 kB
  • ctags: 76
  • sloc: cpp: 2,212; makefile: 123
file content (29 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
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
all: id3v2

VERSION=0.1.11

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

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

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

install: all
	install -c -s 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=CVS --exclude-from .cvsignore \
		--exclude=id3v2-${VERSION}/id3v2-${VERSION} \
		id3v2-${VERSION}
	rm id3v2-${VERSION}