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 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868
|
#
# 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".
#==========================================================
# SOCKS specific stuff:
SOCKS=-DSOCKS
# or
#SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect
# NOTE: This file is actually used from the subdirectories BELOW,
# therefore we need an extra ../ in the path:
SOCKS_LIB=../../lib/libsocks.a
# Define RESOLV_LIB if your system (e.g., SunOS before 4.1.1)
# doesn't search resolver library automatically.
# Leave it undefined otherwise.
# If your compiler or loader complains about _res_init being
# an undefined symbol, then you must define RESOLV_LIB.
#RESOLV_LIB= -lresolv
#=============================================================
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 sun5.2 solaris2.2"
@echo " dynix3.0.12 dynix3.0.17"
@echo " ultrix3.1 ultrix4.0"
@echo " next1.0"
@echo " convex"
@echo " irix4 irix5"
@echo " hpux9"
@echo " aix3.2 aix_ps2"
@echo " aix_ps2"
@echo " netbsd0.9"
@echo " freeBSD1.1"
@echo " dgux5.4"
@echo " alphaOSF osf1.3"
@echo " linux"
@echo " UnixWare"
@echo " uts2.1 ust4"
@echo " sco"
@echo " bsdi"
@echo " isc"
@echo " newsos4"
4.4bsd 4.3reno:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lutil -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DUSE_TERMIO $(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
4.3tahoe:
@echo $@ is untested... it may or may not work..."
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
$(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
4.3bsd:
@echo $@ is untested... it may or may not work..."
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
$(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
unicos7.0:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses -L../libtelnet -ltelnet -lkrb -ldes ${RESOLV_LIB}" \
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 \
$(SOCKS) -DDIAGNOSTICS" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
unicos6.0 unicos6.1:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \
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 \
$(SOCKS) -DDIAGNOSTICS" \
AR=bld ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
unicos5.1:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lnet -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \
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 \
$(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
unicos5.0:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lnet -lcurses -L../libtelnet -ltelnet ${RESOLV_LIB}" \
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 \
$(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
sun3.5:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DHAVE_fd_set \
-DDIAGNOSTICS \
$(SOCKS) -DNO_LOGIN_P" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
sun4.0.3c sun4.0:
@echo $@ is untested... it may or may not work..."
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
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 \
$(SOCKS) " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
sun4.1:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DFILIO_H -DTERMCAP -DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
$(SOCKS) -DDIAGNOSTICS " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
newsos4:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DAUTHENTICATE \
$(SOCKS) -DDIAGNOSTICS " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o herror.o" \
LIB_SRC="getent.c herror.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
dynix3.0.12:
@echo $@ is untested... it may or may not work..."
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
$(SOCKS) -DDIAGNOSTICS -DNO_STRING_H " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
dynix3.0.17:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a -lseq ${RESOLV_LIB}" \
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 \
$(SOCKS) " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
ultrix3.1:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DDIAGNOSTICS -DUSE_TERMIO \
$(SOCKS) -YPOSIX" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
ultrix4.0:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DUSE_TERMIO $(SOCKS) -DTERMCAP \
-DKLUDGELINEMODE -DDIAGNOSTICS " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
next1.0:
@echo $@ is untested... it may or may not work..."
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} ../libtelnet/libtelnet.a -ltermcap -lsys_s ${RESOLV_LIB}" \
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 \
$(SOCKS) -Dgetenv=getenv_" \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)" \
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="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a ${RESOLV_LIB}" \
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 $(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o setsid.o strftime.o \
tcsetattr.o tcgetattr.o" \
LIB_SRC="getent.c setsid.c strftime.c \
tcsetattr.c tcgetattr.c"
# >>> Ian Dunkin <imd1707@ggr.co.uk>
irix4:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses ../libtelnet/libtelnet.a -lsun" \
LIBPATH="/usr/lib/libc.a /usr/lib/libcurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -DSYSV_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o strerror.o setenv.o" \
LIB_SRC="getent.c strerror.c setenv.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC} -cckr" LCCFLAGS="$(OPTIMIZE)"
irix5:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses ../libtelnet/libtelnet.a" \
LIBPATH="../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-Dvfork=fork -DSYSV_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.." \
LIB_OBJ="getent.o strerror.o setenv.o" \
LIB_SRC="getent.c strerror.c setenv.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC} -cckr" LCCFLAGS="$(OPTIMIZE)"
# <<< Ian Dunkin <imd1707@ggr.co.uk>
# >>> Ken Shackelford <ken.shackelford@sdrc.com>
#
hpux9:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermlib -L../libtelnet -ltelnet ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermlib.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DKLUDGELINEMODE -DSYSV_TERMIO \
-Dhpux -DLINEMODE -DSTREAMS -DNO_LOGIN_P \
-DAUTHENTICATE $(SOCKS) -DDIAGNOSTICS" \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="strcasecmp.o setenv.o getent.o" \
LIB_SRC="strcasecmp.c setenv.c getent.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
aix3.2:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap -L../libtelnet -ltelnet -lbsd ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DKLUDGELINEMODE -DTERMCAP \
-Dunix -DLINEMODE -DSTREAMS \
-DAUTHENTICATE -DDIAGNOSTICS \
-DAIX -D_BSD -D_NONSTD_TYPES \
$(SOCKS) -D_NO_PROTO" \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="setenv.o getent.o" \
LIB_SRC="setenv.c getent.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
alphaOSF:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermlib ../libtelnet/libtelnet.a ${RESOLV_L IB} -lm" \
LIBPATH="/lib/libc.a /usr/lib/libtermlib.a \
../libtelnet/libtelnet.a" \
DEFINES="-DLINEMODE -DTERMCAP $(SOCKS) \
-DKLUDGELINEMODE -DAUTHENTICATE -DDIAGNOSTICS " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< Ken Shackelford <ken.shackelford@sdrc.com>
# <<< Craig Metz <cmetz@thor.tjhsst.edu>
aix_ps2:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap -L../libtelnet -ltelnet -lbsd ${RESOLV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DKLUDGELINEMODE -DTERMCAP \
-Dunix -DLINEMODE -DSTREAMS \
-DAUTHENTICATE -DDIAGNOSTICS \
-DAIX -D_BSD -D_NONSTD_TYPES \
$(SOCKS) \
-D_NO_PROTO -DAIX_PS2" \
INCLUDES="-I.. -I/usr/local/include" \
LIB_OBJ="setenv.o getent.o strcasecmp.o herror.o strdup.o" \
LIB_SRC="setenv.c getent.c strcasecmp.o herror.o strdup.o" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< Craig Metz <cmetz@thor.tjhsst.edu>
# >>> Alain Mellan <amellan@acri.fr>
osf1.3:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermlib ../libtelnet/libtelnet.a ${RESOLV_L IB} -lm" \
LIBPATH="/lib/libc.a /usr/lib/libtermlib.a \
../libtelnet/libtelnet.a" \
DEFINES="-DLINEMODE -DTERMCAP \
-DKLUDGELINEMODE -DAUTHENTICATE -DDIAGNOSTICS " \
INCLUDES="-I.." \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< Alain Mellan <amellan@acri.fr>
solaris2.2 sun5.2:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -L../libtelnet -ltelnet ${RESOLV_LIB} -ltermlib" \
LIBPATH="/lib/libc.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DKLUDGELINEMODE -DSVR4 -DSYSV -DSYSV_TERMIO \
-DSOLARIS -DSTREAMS -DNO_LOGIN_P -DLINEMODE \
-Dindex=strchr -Drindex=strrchr $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="herror.o setenv.o getent.o" \
LIB_SRC="herror.c setenv.c getent.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="-g"
# >>> curnutt@Stoner.COM (A. Bryan Curnutt)
netbsd0.9:
make -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lutil -ltermcap ../libtelnet/libtelnet.a $(RESOLV_LIB)" \
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DUSE_TERMIO -DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
freebsd1.1:
make -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lutil -ltermcap ../libtelnet/libtelnet.a $(RESOLV_LIB)" \
LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
-DUSE_TERMIO -DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
VPATH=/usr/src/libexec/getty \
LIBEXEC=${DESTDIR}/usr/libexec \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# DG/UX 5.4
dgux5.4:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses -lnsl -lc \
../libtelnet/libtelnet.a" \
LIBPATH="/usr/sde/m88kdgux/usr/lib/libc.a /usr/lib/libcurses.a \
/usr/lib/libnsl.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/bin/telnetd \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< curnutt@Stoner.COM (A. Bryan Curnutt)
# >>> Cornell Kinderknecht <cornell@syl.dl.nec.com>
linux:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} ../libtelnet/libtelnet.a ${RESOLV_LIB} \
-lncurses" \
LIBPATH="/usr/lib/libc.a /usr/lib/libncurses.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DLINUX \
-DUSE_TERMIO $(SOCKS) \
-DDIAGNOSTICS -DKLUDGELINEMODE" \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="getent.o" \
LIB_SRC="getent.c" \
AR=ar ARFLAGS=rc RANLIB=ranlib \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="-g"
# <<< Cornell Kinderknecht <cornell@syl.dl.nec.com>
# >>> Pax@metrolink.com
UnixWare:
make -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -L../libtelnet -ltelnet ${RESOLV_LIB} -ltermlib -lc -L/usr/ucblib -lucb" \
LIBPATH="/usr/ccs/lib/libc.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DSOLARIS -DFILIO_H -DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
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="$(OPTIMIZE)"
# <<< Pax@metrolink.com
# >>> fadden@uts.amdahl.com (Andy McFadden)
# ATM: Amdahl UTS2.1
uts2.1:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses -lsocket -la -lc \
-lbsd ../libtelnet/libtelnet.a" \
LIBPATH="/lib/libc.a /usr/lib/libcurses.a \
/usr/lib/libsocket.a \
/usr/lib/liba.a \
/usr/lib/libbsd.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES=" -DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DSYSV_TERMIO -DUSE_TERMIO -DTERMCAP \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="herror.o" \
LIB_SRC="herror.c" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC} $(EFT)" LCCFLAGS="$(OPTIMIZE)"
# ATM: Amdahl UTS4.x
uts4:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses -lsocket -lnsl -lresolv -lc \
-L/usr/ucblib -lucb ../libtelnet/libtelnet.a" \
LIBPATH="/usr/ccs/lib/libc.a /usr/ccs/lib/libcurses.a \
/usr/lib/libsocket.a \
/usr/lib/libnsl.a \
/usr/lib/libresolv.a \
/usr/ucblib/libucb.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DSYSV_TERMIO \
-DFILIO_H \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
AR=ar ARFLAGS=cq RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< fadden@uts.amdahl.com (Andy McFadden)
# >>> chris.riney@tandy.com
sco:
make -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -L../libtelnet -ltelnet ${RESOLV_LIB} -ltermlib" \
LIBPATH="/lib/libc.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/ucb \
DEFINES="-DSCO -DSVR3 -DTERMCAP -DUSE_TERMIO \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE -DENCRYPT \
-DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="" \
LIB_SRC="" \
AR=ar ARFLAGS=rc RANLIB=echo \
LIBEXEC=${DESTDIR}/usr/etc/in.telnetd \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
bsdi:
${MAKE} -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -ltermcap ../libtelnet/libtelnet.a \
${RESOLV_LV_LIB}" \
LIBPATH="/lib/libc.a /usr/lib/libtermcap.a \
../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/bin \
DEFINES="-DTERMCAP -DKLUDGELINEMODE \
-DUSE_TERMIO -DDIAGNOSTICS $(SOCKS) " \
INCLUDES="-I.. -I../../include" \
AR=ar ARFLAGS=cq RANLIB=ranlib \
LIBEXEC=${DESTDIR}/etc \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< chris.riney@tandy.com
# >>>Larry Jones <larry.jones@sdrc.com>
isc:
$(MAKE) -f Makefile.generic ${WHAT} \
LIBS="${SOCKS_LIB} -lcurses ../libtelnet/libtelnet.a \
${RESOLV_LIB}" \
LIBPATH="../libtelnet/libtelnet.a" \
DEST=${DESTDIR}/usr/local/bin \
DEFINES="-Dvfork=fork -DSYSV_TERMIO \
-DNO_CC_T -DSVR3 -DISC \
-DKLUDGELINEMODE -DSTREAMS \
-DAUTHENTICATE \
-DDIAGNOSTICS ${SOCKS}" \
INCLUDES="-I.. -I../../include" \
LIB_OBJ="" \
LIB_SRC="" \
AR=ar ARFLAGS=rc RANLIB=NONE \
LIBEXEC=${DESTDIR}/usr/local/bin \
CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
# <<< Larry Jones <larry.jones@sdrc.com>
clean cleandir:
make -f Makefile.generic $@
|