File: Makefile

package info (click to toggle)
oggfwd 0.2-6
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 132 kB
  • ctags: 50
  • sloc: ansic: 376; makefile: 75
file content (31 lines) | stat: -rw-r--r-- 662 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
PROG =		oggfwd
SRC =		oggfwd.c
MAN =		oggfwd.1

PREFIX ?=	/usr/local
BINDIR ?=	${PREFIX}/bin
MAN1DIR ?=	${PREFIX}/man/man1

CC ?=		gcc
CFLAGS ?=	-O2 -pipe
CFLAGS +=	-Wall -ffast-math -fsigned-char

INSTALL =	install

PTHREADFLAGS ?=	-pthread
INCLUDEFLAGS ?=	-I${PREFIX}/include
LINKFLAGS ?=	-L${PREFIX}/lib
LINKFLAGS +=    -lshout

all: ${PROG}

${PROG}: ${SRC}
	${CC} ${CFLAGS} ${PTHREADFLAGS} ${INCLUDEFLAGS} -o ${PROG} $< ${LINKFLAGS}

install: ${PROG}
	${INSTALL} -c -m 555 -o root -g bin ${PROG} ${BINDIR}
	test -d ${MAN1DIR} || ${INSTALL} -d -o root ${MAN1DIR}
	${INSTALL} -c -m 444 -o root -g bin ${MAN} ${MAN1DIR}

clean:
	-@rm -f ${PROG} *~ core *.core