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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
|
#
# Copyright (c) 1991 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement: ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#)Config.generic 5.5 (Berkeley) 3/1/91
#
# This is the configuration file for building all of
# telnet/telnetd/libtelnet. If you want to add your
# own local configuration for a specific machine that
# is already listed here, it is best to create a new
# file called "Config.local", and put the definitions
# there. If you are adding definitions for a new system
# type, you can add them here. In this case, please send
# the new definition, and any changes you have to make to
# the code, back to "dab@cray.com" so that your changes
# can be put into the next release.
#
# Each definition must have the form:
#
# <target>:
# make -f Makefile.generic ${WHAT} \
# <definitions>
# DEFINES=
#
# Variables to be defined when actually compiling the source. Defined
# as: DEFINES="-D<var> -D<var2> ... -D<varn>"
#
# TELNET/TELNETD CONFIGURATION
#
# LINEMODE Turns on support in telnetd for the linemode option.
# (Linemode is always on in the client).
#
# KLUDGELINEMODE Define this to get the kludged up version of linemode
# that was in 4.3BSD. This is a good thing to have
# around for talking to older systems. This has no
# effect on telnetd if LINEMODE has not been defined.
#
# DIAGNOSTICS Turns on diagnostic code in telnetd; adds extra
# logic and checks, and debuging output if started
# with the -D option.
#
# NO_URGENT Define this if you don't want telnetd to send
# IAC DM in urgent mode when the pty output queue
# is flushed.
#
# GENERATE_GA Turns on code to allow the generation of Go Ahead(GA)
# if the server is WONT SGA. This code is imprecise,
# it generates the GA when two seconds have elapsed
# and no input or output has occurred.
#
# AUTHENTICATE Enable the AUTHENTICATE option.
#
# ENCRYPT Enable the ENCRYPT option.
#
# KRB4 Enable Kerberos Version 4 Authentication code
# in libtelnet/libtelnet.a
#
# KRB5 Enable Kerberos Version 5 Authentication code
# in libtelnet/libtelnet.a
#
# SIMPLE_AUTH
#
# DES_ENCRYPT Enable DES encryption/decryption, requires
# getting a the initial key from Kerberos. This
# works with both Kerberos Version 4 and 5.
#
# LOCAL SYSYTEM PARAMATERS
#
# TERMCAP Define this if your system is termcap based,
# otherwise a terminfo based system is assumed.
#
# SYSV_TERMIO Use the System V termio structure. (implies USE_TERMIO)
#
# NO_CC_T Define this if your termio.h file does not have
# a typedef for cc_t.
#
# USE_TERMIO Define this if you have the POSIX termios structures.
# This code works under the BSD 4.4 terminal driver.
#
# HAS_GETTOS Define this if you have the setsockopt() option for
# setting the IP Type Of Service bits, (IP_TOS) and
# you have the gettosbyname() function.
#
# NEWINIT Turns on the new init code for UNICOS systems.
#
# STREAMS This system needs <sys/stream.h> for <sys/tty.h>
# (Sun 4.0.3)
#
# FILIO_H This system should use <sys/fileo.h> instead
# of <sys/ioctl.h> (Sun 4.0.3)
#
# HAVE_fd_set This system has a typedef for fd_set, but does
# not have FDSET() defined.
#
# NO_STRING_H If you don't have <string.h>, but have <strings.h>
#
# NO_LOGIN_P If /bin/login doesn't understand the "-p"
# (preserve environment) option.
#
# STREAMS If the system has streams; causes <sys/stream.h>
# to be included instead of <sys/tty.h>
#
# MUST_ALIGN If !KRB & !HAVE_KRB4_DES_LIB and your words
# must be word aligned.
# LIB_OBJ=
# This is a list of object files that are needed but are not in
# the standard C library.
#
# strcasecmp.o If you don't have strncasecmp(3)
# strdup.o If you don't have strdup(3)
# setenv.o If you don't have setenv(3) and unsetenv(3)
# setsid.o If you don't have the POSIX setsid() call
# strerror.o If you don't have strerror(3)
# strftime.o If you don't have strftime(3)
# getopt.o If you don't have getopt(3)
# herror.o If you don't have herror(3)
# gettytab.o If you can get gettytab.c from getty source.
# getent.o If you can't get gettytab.c
# kerberos.o If you have Kerberos Version 4
# kerberos5.o If you have Kerberos Version 5
# mem.o If you don't have mem*(3) routines.
# LIB_SRC=
# This is a list of source modules for specificed in LIB_OBJ.
# This information is used by make for checking dependencies.
# LIBS=
# This is a list of libraries to be included. This will always
# include the telnet library, and will also include either -lcurses
# or -ltermcap, -lutil for 4.4bsd, and -lnet for UNICOS5.0 and earlier.
# Also -lkrb & -ldes if Kerberos.
# LIBPATH=
# This is a list of the paths to all the libraries listed in LIBS.
# This information is used by make for checking dependencies.
# Don't forget libc.a
# VPATH=
# Directory where gettytab.c can be found, if you have it.
# LIBEXEC=
# Directory where the telnetd executable should be installed.
# LCCFLAGS=
# Local flags for ${CC} (like -O)
# AR=
# Name of "ar" program, usually just "ar".
# ARFLAGS
# Flags to pass to ${AR}
# RANLIB
# Name of "ranlib" program, set it to "NONE" if you don't
# have a "ranlib".
all:
@echo "you must specify what type of system you are on,"
@echo "or modify the makefile for your system."
@echo "Known system types are:"
@echo " 4.4bsd 4.3reno 4.3tahoe 4.3bsd"
@echo " unicos5.0 unicos5.1 unicos6.0 unicos6.1 unicos7.0"
@echo " sun3.5 sun4.0 sun4.0.3c sun4.1"
@echo " dynix3.0.12 dynix3.0.17"
@echo " ultrix3.1 ultrix4.0"
@echo " next1.0"
4.4bsd 4.3reno:
make -f Makefile.generic ${WHAT} \
LIBS="-lutil -ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DUSE_TERMIO -DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="gettytab.o" \
LIB_SRC="gettytab.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/libexec/getty \
LIBEXEC=${DESTDIR}/usr/libexec \
CC="${CC}" LCCFLAGS="-O"
4.3tahoe:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="strdup.o setsid.o strftime.o gettytab.o" \
LIB_SRC="strdup.c setsid.c strftime.c gettytab.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/etc/getty \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
4.3bsd:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="strdup.o setsid.o strftime.o \
gettytab.o getopt.o herror.o" \
LIB_SRC="strdup.c setsid.c strftime.c \
gettytab.c getopt.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/etc/getty \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
unicos7.0:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet -lkrb -ldes" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a \
/usr/lib/libkrb.a /usr/lib/libdes.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -Dsignal=bsdsignal \
-DLINEMODE -DKLUDGELINEMODE \
-DSYSV_TERMIO -DHAS_GETTOS \
-DAUTHENTICATE -DENCRYPT -DKRB4 \
-DDIAGNOSTICS" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.." \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="-O"
unicos6.0 unicos6.1:
make -f Makefile.generic ${WHAT} \
LIBS="-lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -Dsignal=bsdsignal \
-DKLUDGELINEMODE -DUSE_TERMIO -DHAS_GETTOS \
-DLINEMODE -DSYSV_TERMIO -DNEWINIT \
-DNO_LOGIN_F -DNO_LOGIN_P \
-DAUTHENTICATE -DENCRYPT \
-DDIAGNOSTICS" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.." \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="-O"
unicos5.1:
make -f Makefile.generic ${WHAT} \
LIBS="-lnet -lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -Dsignal=sigset \
-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \
-DUNICOS5 -DLINEMODE -DSYSV_TERMIO \
-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P \
-DAUTHENTICATE -DENCRYPT \
-DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \
LIB_SRC="getent.c strerror.c setsid.c strftime.c" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
unicos5.0:
make -f Makefile.generic ${WHAT} \
LIBS="-lnet -lcurses -L../libtelnet -ltelnet" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -Dsignal=sigset \
-DKLUDGELINEMODE -DSYSV_TERMIO -DNO_CC_T \
-DUNICOS5 -DUNICOS50 -DLINEMODE -DSYSV_TERMIO \
-DNEWINIT -DNO_LOGIN_F -DNO_LOGIN_P \
-DAUTHENTICATE -DENCRYPT \
-DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o strftime.o" \
LIB_SRC="getent.c strerror.c setsid.c strftime.c" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-O"
sun3.5:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DHAVE_fd_set \
-DDIAGNOSTICS \
-DNO_LOGIN_P" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
setenv.o strftime.o strcasecmp.o herror.o" \
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
setenv.c strftime.c strcasecmp.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sun4.0.3c sun4.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO -DNO_CC_T \
-DKLUDGELINEMODE \
-DSTREAMS -DDIAGNOSTICS \
" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setsid.o setenv.o \
strcasecmp.o strftime.o herror.o" \
LIB_SRC="getent.c strerror.c setsid.c setenv.c \
strcasecmp.c strftime.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
sun4.1:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE -DENCRYPT \
-DDIAGNOSTICS " \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setenv.o herror.o" \
LIB_SRC="getent.c strerror.c setenv.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-O"
dynix3.0.12:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DNO_STRING_H " \
INCLUDES="-I.." \
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
setsid.o setenv.o strcasecmp.o strftime.o getopt.o \
mem.o" \
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
setsid.c setenv.c strcasecmp.c strftime.c getopt.c \
mem.o" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
dynix3.0.17:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a -lseq" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a /usr/lib/libseq.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DNO_STRING_H \
" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strchr.o strrchr.o strdup.o strerror.o \
setsid.o strftime.o mem.o" \
LIB_SRC="getent.c strchr.c strrchr.c strdup.c strerror.c \
setsid.c strftime.c mem.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix3.1:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DUSE_TERMIO \
-YPOSIX" \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setenv.o \
strftime.o herror.o" \
LIB_SRC="getent.c strdup.c strerror.c setenv.c \
strftime.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
ultrix4.0:
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DUSE_TERMIO -DTERMCAP \
-DKLUDGELINEMODE -DDIAGNOSTICS " \
INCLUDES="-I.." \
LIB_OBJ="getent.o strdup.o strerror.o setsid.o \
setenv.o strftime.o" \
LIB_SRC="getent.c strdup.c strerror.c setsid.c \
setenv.c strftime.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="-O"
next1.0:
@echo $@ is untested... it may or may not work..."
make -f Makefile.generic ${WHAT} \
LIBS="../libtelnet/libtelnet.a -ltermcap -lsys_s" \
LIBPATH="/lib/libc.a /lib/libsys_s.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-bsd -DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DNO_STRING_H \
-Dgetenv=getenv_" \
INCLUDES="-I.." \
LIB_OBJ="strdup.o setenv.o setsid.o strftime.o \
strcasecmp.o gettytab.o" \
LIB_SRC=s"trdup.c setenv.c setsid.c strftime.c \
strcasecmp.c gettytab.c" \
CC="${CC}" LCCFLAGS="-O" \
VPATH=../../getty \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc
#
# For the convex, make symbolic links to the tc[sg]getattr.c routines,
# because we are using posix stuff, but not the posix library...
# Pass the stuff to Makefile.generic by passing the object/source names
# in through LIB_OBJ and LIB_SRC
#
convex:
@echo $@ is untested... it may or may not work..."
ln -s ../../rel_usr/src/lib/libc/posix/tcsetattr.c tcsetattr.c
ln -s ../../rel_usr/src/lib/libc/posix/tcgetattr.c tcgetattr.c
make -f Makefile.generic ${WHAT} \
LIBS="-ltermcap ../libtelnet/libtelnet.a" \
LIBPATH="../libtelnet/libtelnet.a" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-g ${OPTLEV} -Dconvex" \
DEFINES="-DUSE_TERMIO -DLINEMODE -DDIAGNOSTICS" \
INCLUDES="-I.." \
LIB_OBJ="getent.o setsid.o strftime.o \
tcsetattr.o tcgetattr.o" \
LIB_SRC="getent.c setsid.c strftime.c \
tcsetattr.c tcgetattr.c"
clean cleandir:
make -f Makefile.generic $@
|