File: Makefile

package info (click to toggle)
compartment 1.1.0-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 116 kB
  • sloc: ansic: 349; makefile: 27
file content (31 lines) | stat: -rw-r--r-- 779 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
CC=gcc
OPTS=-Wall -O2
INSTALL=install -s
PREFIX=/usr
BIN_DIR=${PREFIX}/sbin
BIN_LIST=compartment
DOC_DIR=${PREFIX}/share/doc/packages/compartment
DOC_LIST=README CHANGES TODO
MAN_DIR=${PREFIX}/share/man/man1
MAN_LIST=compartment.1

all:	compartment

compartment: compartment.c
	${CC} -c ${CFLAGS} ${CPPFLAGs} -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} ${DESTDIR}${BIN_DIR}

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