File: Makefile

package info (click to toggle)
compartment 1.1.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 104 kB
  • ctags: 45
  • sloc: ansic: 349; makefile: 60
file content (30 lines) | stat: -rw-r--r-- 691 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
30
CC=gcc
OPTS=-Wall -O2
PREFIX=/usr
BIN_DIR=${PREFIX}/sbin
BIN_LIST=compartment
DOC_DIR=${PREFIX}/doc/packages/compartment
DOC_LIST=README LICENCE CHANGES TODO
MAN_DIR=${PREFIX}/share/man/man1
MAN_LIST=compartment.1

all:	compartment

compartment: compartment.c
	${CC} ${OPTS} -o ${BIN_LIST} compartment.c
	strip ${BIN_LIST}

clean:
	rm -f ${BIN_LIST} core *~

install:	install-doc install-bin 

install-bin: compartment
	install -o root -g root -m 751 ${BIN_LIST} ${BIN_DIR}

install-doc:
	install -d -o root -g root -m 755 ${DOC_DIR}
	install -o root -g root -m 644 ${DOC_LIST} ${DOC_DIR}
	install -d -o root -g root -m 755 ${MAN_DIR}
	install -o root -g root -m 644 ${MAN_LIST} ${MAN_DIR}