-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 920 Bytes
/
Makefile
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
32
33
#
# main Makefile
DESTDIR ?= /
PREFIX ?= /usr
NROFF ?= nroff
#
# XXXrcd: enable these flags when developing using gcc. I turn them
# off by default for portability.
# CFLAGS+= -Wall
# CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
# CFLAGS+= -Wno-sign-compare -Wno-traditional -Wreturn-type
# CFLAGS+= -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
# CFLAGS+= -Wno-unused-parameter -Wsign-compare
# CFLAGS+= -Werror
all: prefork prefork.0
clean:
rm -f prefork prefork.o prefork.0
install:
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/libexec
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/man8
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/cat8
install -c -m755 prefork $(DESTDIR)/$(PREFIX)/libexec
install -c -m644 prefork.8 $(DESTDIR)/$(PREFIX)/man/man8/
install -c -m644 prefork.0 $(DESTDIR)/$(PREFIX)/man/cat8/
prefork.0: prefork.8
$(NROFF) -mandoc prefork.8 > $@