summaryrefslogtreecommitdiff
path: root/net/ztelnet/files/patch-ai
blob: b64a95cc4789146f5702d18474072bc583495e21 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
diff -uNr ../ztelnet/telnet/Makefile.generic ./telnet/Makefile.generic
--- ../ztelnet/telnet/Makefile.generic	Wed Sep 20 19:42:39 1995
+++ ./telnet/Makefile.generic	Wed Dec  3 08:58:33 1997
@@ -19,28 +19,22 @@
 #	@(#)Makefile.generic	5.5 (Berkeley) 3/1/91
 #
 
-INCLUDES=	-I..
-
-ifeq (linux,${LINUX})
-ARPA_TELNET=	../arpa/tel-lnx.h
-CFLAGS=	${LCCFLAGS} ${INCLUDES} ${DEFINES}
-else
-ARPA_TELNET=	../arpa/telnet.h
-CFLAGS=	-O ${INCLUDES} ${DEFINES}
-endif
+INCLUDES= -I..
+ARPA_TELNET= ../arpa/telnet.h
 
 SRCS=	commands.c main.c network.c ring.c \
 	sys_bsd.c telnet.c terminal.c \
 	utilities.c ${GETOPT_SRC}
 
+CFLAGS=	-O2 ${INCLUDES} ${DEFINES}
 
 ALLHC=	${SRCS} \
 	defines.h externs.h fdset.h general.h \
 	ring.h types.h
 
 OBJS=	authenc.o commands.o main.o network.o ring.o sys_bsd.o \
-	telnet.o terminal.o utilities.o ${GETOPT_OBJ} \
-	../zmodem/rz.o ../zmodem/sz.o
+	telnet.o terminal.o utilities.o ${GETOPT_OBJ}
+
 MAN=	telnet.0
 
 #
@@ -73,8 +67,8 @@
 	mkdep ${CFLAGS} `make clist`
 
 install: ${MAN} FRC
-	install -s -o bin -g bin -m 755 telnet ${LIBEXEC}
-	install -c -o bin -g bin -m 444 telnet.0 ${DEST}/man/cat1
+	install -s -o bin -g bin -m 755 telnet ${DEST}
+	install -c -o bin -g bin -m 444 telnet.0 ${DESTDIR}/usr/man/cat1
 
 lint: FRC ${SRCS}
 	lint ${CFLAGS} `make clist`