blob: 3440d0cc42140f1e946743e772b3b79c37a15ac7 (
plain)
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
34
35
36
|
--- Makefile.orig Wed Apr 20 15:30:18 2005
+++ Makefile Fri Apr 22 16:12:43 2005
@@ -4,10 +4,8 @@
PROG = ifdepd
RM = rm -f
INSTALL = install
-CFLAGS += -O2 -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
-.if ${OSTYPE}!="OpenBSD"
+CFLAGS += -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
CFLAGS += -Wredundant-decls
-.endif
MAN8 = ifdepd.8
OBJ = ifdepd.o
@@ -22,18 +20,14 @@
${RM} *.o ${PROJ} *.core core ${PROG} tags *.err
install: ${PROG}
- ${INSTALL} -o root -g wheel -s -m 711 ${PROG} ${PREFIX}/bin
-.if ${OSTYPE}!="OpenBSD"
- ${INSTALL} -o root -g wheel -m 755 ${PROG}.sh ${PREFIX}/etc/rc.d
-.endif
- ${INSTALL} -o root -g wheel -m 644 ${MAN8} ${PREFIX}/man/man8
+ ${BSD_INSTALL_PROGRAM} ${PROG} ${PREFIX}/bin
+ ${BSD_INSTALL_SCRIPT} ${PROG}.sh ${PREFIX}/etc/rc.d
+ ${BSD_INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8
deinstall:
${RM} ${PREFIX}/bin/${PROG}
${RM} ${PREFIX}/man/man8/${PROG}.8
-.if ${OSTYPE}!="OpenBSD"
${RM} ${PREFIX}/etc/rc.d/${PROG}.sh
-.endif
${PROG}: ${OBJ}
${CC} ${CFLAGS} -o ${PROG} ${OBJ} ${LIBS}
|