-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 887 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: lnetd lnetd.0
clean:
rm -f lnetd lnetd.o lnetd.0
install:
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/sbin
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/man8
umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/cat8
install -c -m755 lnetd $(DESTDIR)/$(PREFIX)/sbin
install -c -m644 lnetd.8 $(DESTDIR)/$(PREFIX)/man/man8/
install -c -m644 lnetd.0 $(DESTDIR)/$(PREFIX)/man/cat8/
lnetd.0: lnetd.8
$(NROFF) -mandoc lnetd.8 > $@