📄 makefile
字号:
## You must get the source code for cipher first; then edit DESDIR.# ftp.uu.net:/pub/security/des/cipher-3.0.tar.Z## Find the set of lines which corresponds to your configuration, and uncomment# them. If you have a machine not listed here, the most likely configuration# to work is the one for SunOS 4.1.1, or Gnu CC. ## Type "make".## If you get the error "Don't know how to make target `desblock.o'", just type# "make" again; this is a symlink dependency which was resolved by the 1st make.# This shouldn't happen anymore, but I thought I'd mention it just in case.# # You will have to supply a default decryption key if you wish to compile# the server process "deslogind".## If everything compiles, type "make install" to see how to finish # installation and configuration.## Read the man pages for deslogin and deslogind with "nroff -man"## Test your installation. Login via deslogin. Verify the following:# The "who -a" command prints your correct username, tty, login time,# deslogind's pid, and remote host.# The "tty" command prints your correct login pty.# The pty returned by the tty command has correct ownership and permissions.# The "groups" command prints your correct supplementary group id's.# The "id" command prints your correct user/group name and id.# The "last -10" command prints correct login name.# Interrupt and job-control signals (usually Ctl-C, Ctl-Z) work correctly# Reading and writing from /dev/tty work correctly.# Login as a user without a .profile/.login file, and verify that# the environment is initialized the same as the login program.# Examine the deslogind log file for warnings or error messages.# Kill the current shell with signal SIGILL using the command "kill -4 $$"# verify "who -a": id=<last two chars of tty>, term=132, exit=0# verify that the date and time are the time of the process death.# verify that the duration of the login was correct.# Repeat the previous test, but exit with the command "exit 99".# verify "who -a": id=<last two chars of tty>, term=0, exit=99# Verify that "last -10" shows the correct information.## If you must create a new configuration, see the comments below.## Dave Barrett (barrett@asgard.cs.Colorodo.EDU## Makefile RCS: $Revision: 1.10 $ $Date: 95/03/08 02:30:33 $# SHELL=/bin/shCC=@echo "you really must edit the makefile for your machine"; exit 1## For "make install"#MANDIR=/usr/local/man/man1BINDIR=/usr/local/bin## Get cipher-3.0.tar.Z from ftp.uu.net:/pub/security/des# and untar it into $(DESDIR)#DESDIR = ../cipher-3.0## When using a dialup line to a non-slip capable terminal server, there# is a package which allows you to multiplex the serial line. See# sunsite.unc.edu:/pub/Linux/apps/comm/term/term/term117.tar.gz for details.# For term installations - Set these variables to point to the right place# You must have compiled term before making this so that client.a exists## If you don't know what this means, just leave these lines as they are.# # Thanks to Mark (Mookie) mark@netsys.com for adding this feature.#TERMDIR=TERMLIBS=TERMINC=TERMDEFINES=TERMBIN=##Example:#TERMDIR=/work/term114#TERMLIBS=$(TERMDIR)/client.a#TERMINC=$(TERMDIR)#TERMDEFINES=-I$(TERMINC) -DTERM_LINK#TERMBIN=termdeslogin## Configuration options to deslogind. Others in deslogind.c and deslogin.h # should be correct; if not, see note above "LOGINDFLAGS" below.#USER_FILE=\"/usr/local/etc/deslogind.users\"LOG_FILE=\"/usr/adm/deslogind.log\"GW_LOG_FILE=\"/usr/adm/deslogingw.log\"# LOGIN_PROC is only used for the -w option to deslogind; nowhere else.LOGIN_PROG=\"/bin/login\"## Add -D_USE_SYSLOG to NSTCFLAGS if you want to log messages via to syslogd # instead of the logfile. It only affects code in the file log.c. I prefer to# use a logfile instead of syslogd so that I don't have to worry about a hostile# user hijacking the connection to syslogd, or installing a Trojan horse for# for syslogd, or, even worse, having syslogd be on a remote unsecure machine.# This feature may go away when I add encryption to the logging facility.## Add -D_USE_STREAMS if you prefer to use System V style streams for pty# handling. Some machines require this for pty.c to work correctly.##DEBUG=-gDEBUG=-O # -D_USE_SYSLOG## HP-UX Ansi C compiler#CC = cc -Aa#CFLAGS = $(DEBUG)#LDFLAGS = $(DEBUG) -Wl,-a,archive -s#NSTCFLAGS=$(DEBUG) -D_HPUX_SOURCE # make non-posix symbols visable ## HP-UX C++ compiler (won't work because typedef pfv in posignal.h)#CC = CC#CFLAGS = $(DEBUG)#LDFLAGS= $(DEBUG) -Wl,-a,archive # -s #NSTCFLAGS=$(DEBUG) -D_HPUX_SOURCE## DEC MIPS Ultrix 4.3 ANSI C compiler #CC = cc -std -non_shared#CFLAGS = $(DEBUG)#LDFLAGS = $(DEBUG) -non_shared # -s #NSTCFLAGS=$(DEBUG) -DONLCR=0x00000004## DEC MIPS Ultrix 4.2 Non-ANSI C compiler #CC = cc -YPOSIX#CFLAGS = $(DEBUG)#LDFLAGS = $(DEBUG) -YSYSTEM_FIVE # -s #NSTCFLAGS=$(DEBUG) -D__MIPS -DONLCR=0x00000004## DEC Alpha OSF/1 C compiler#CC = cc -std -non_shared#CFLAGS = $(DEBUG)#LDFLAGS = $(DEBUG) -non_shared # -s #NSTCFLAGS=$(DEBUG) -D_XOPEN_SOURCE -D_OSF_SOURCE -D__ALPHA## DEC Alpha OSF/1 C++ compiler (OSF1 V2.0 240 alpha)## don't enable -O: generates incorrect code: progName output as junk#CC = cxx -non_shared#CFLAGS = $(DEBUG)#LDFLAGS =$(DEBUG) -non_shared # -s#NSTCFLAGS=$(DEBUG) -non_shared -D_XOPEN_SOURCE -D_OSF_SOURCE -D__ALPHA## ONLCR, non-posix symbols, controlling terminal## Sun SPARC SunOS 4.1.1 BSD C compiler#### Must add -DWTMP_FILE=\"/var/adm/wtmp\" on installations that## don't have #define WTMP_FILE in /usr/include/utmp.h.###CC = cc#CFLAGS =$(DEBUG) -Bstatic -Dsparc # need -Dsparc if missing atexit#LDFLAGS =$(DEBUG) -Bstatic # -s#NSTCFLAGS=$(DEBUG) -Bstatic -Dsparc -DONLCR=0x00000004## Sun Sun3 SunOS 4.1 BSD C compiler#CC = cc#CFLAGS =$(DEBUG) -Bstatic -Dsun3#LDFLAGS =$(DEBUG) -Bstatic # -s#NSTCFLAGS=$(DEBUG) -Bstatic -Dsun3 -DONLCR=0x00000004## Data General DG/UX 5.4.R2.01 Gnu Compiler #CC = gcc -static#CFLAGS = $(DEBUG) -DDGUX#LDFLAGS = $(DEBUG)#NSTCFLAGS= $(DEBUG) -DDGUX## SGI MIPS IRIX ANSI C Compiler using _getpty#### -D__sgi necessary to compile utmp.c pty.c## -D__EXTENSIONS__ for _getpty declaration in <unistd.h> for pty.c#### SGI in their infinite wisdom has decided not to support non-shared libraries## by default as of IRIX 5.1.1.2. This feature causes serious security ## problems because there are subtle ways to trojan horse library calls.## If at all possible, install /usr/lib/nonshared and compile and link with## the -non_shared option.###CC = cc -ansi -non_shared#CFLAGS = $(DEBUG) -D__sgi -D__EXTENSIONS__#LDFLAGS = $(DEBUG) -non_shared#NSTCFLAGS= $(DEBUG) -D__sgi -D_XOPEN_SOURCE -D__EXTENSIONS__## SGI MIPS IRIX C Compiler using _getpty.#### IRIX 5.1.1.2 will not compile with -ansi because the include file for ## tcp.h won't compile a u_char bitfield. ###CC = cc -non_shared#CFLAGS = $(DEBUG) -D__sgi#LDFLAGS = $(DEBUG) -non_shared#NSTCFLAGS= $(DEBUG) -D__sgi -D_XOPEN_SOURCE## SGI MIPS IRIX ANSI C Compiler ## using AT&T System V Streams Package instead of _getpty.#### (fails to work as of 08-Mar-95 <barrett@asgard.cs.colorado.edu>)###CC = cc -ansi -non_shared#CFLAGS = $(DEBUG) -D__sgi -D_USE_STREAMS#LDFLAGS = $(DEBUG) -non_shared#NSTCFLAGS= $(DEBUG) -D__sgi -D_XOPEN_SOURCE#### Solaris <barrett@asgard.cs.colorado.edu>#### C Compiler (cc) or Gnu C compiler (gcc)#### Dynamic linking is required because NIS (alias yp) routines## require it (as listed under "BUGS" in the man page for getpwent).#### SunOS 5.4 cc## SunOS 5.3 gcc 2.5.8## SunOS 5.4 gcc 2.6.0 requires -D__EXTENSIONS__ for struct timeval## SunOS 5.4 requires -Dtimespec=_timespec to fix problem in sys/types.h## when __EXTENSIONS__ is defined. I don't use timespec anyway.## Tested by <barrett@asgard.cs.colorado.edu> 25-Jan-95#### -DUTMPX if you want utmpx & wtmpx records updated in addition to utmp & wtmp.## Tested by <gertz@tds.com> 04-Mar-95###CC = cc#CC = gcc#CFLAGS = $(DEBUG) -D__SOLARIS__ -D_USE_STREAMS -DUTMPX#LDFLAGS = $(DEBUG)#NSTCFLAGS= $(DEBUG) -D__SOLARIS__ -D_USE_STREAMS -D_XOPEN_SOURCE -D__EXTENSIONS__ -Dtimespec=_timespec#LIBS = -lsocket -lnsl## Cray UNICOS Compiler (untested)#CC = cc#CFLAGS = $(DEBUG) -D__UNICOS__#LDFLAGS = $(DEBUG)#NSTCFLAGS= $(DEBUG) -D__UNICOS__ -D_XOPEN_SOURCE## Sequent Dynix 386 (untested) <skrenta@pbm.com>## -D__DYNIX__ needed for utmp.c txfr.c## _SEQUENT_ and i386 are the normal compiler predifines#CC = cc#CFLAGS = $(DEBUG) -D__DYNIX__#LDFLAGS = $(DEBUG)#NSTCFLAGS= $(DEBUG) -D__DYNIX__ -D_XOPEN_SOURCE#LIBS = -lseq -linet -lnsl -lsocket -linet## BSD/386 1.1 0 i386 gcc - Probably any net/2. #LOG_FILE=\"/var/log/deslogind.log\"#GW_LOG_FILE=\"/var/log/deslogingw.log\"#LOGIN_PROG=\"/usr/bin/login\"#CC =gcc -ansi#CFLAGS =$(DEBUG)#LDFLAGS =$(DEBUG)#NSTCFLAGS=$(DEBUG) -D__bsdi__ -D_USE_SYSLOG## Gnu C compiler#CC = gcc -ansi#CFLAGS = $(DEBUG)#LDFLAGS = $(DEBUG)## Gnu C compiler with lots of warnings (not useful except for debugging)#CC = gcc -ansi -pedantic#CFLAGS = $(DEBUG) -Wall#LDFLAGS = $(DEBUG)#NSTCFLAGS=$(DEBUG) -Wall -D_HPUX_SOURCE#NSTCFLAGS=$(DEBUG) -D_XOPEN_SOURCE -D_OSF_SOURCE -D__ALPHA## Linux GNU C compiler## -D_LINUX_SOURCE is necessary for to compile getkey.c for cipher.## If you already have cipher installed, you don't need the one here.#CC = gcc -ansi#CFLAGS = $(DEBUG) -Dlinux -D_LINUX_SOURCE#LDFLAGS = $(DEBUG)#NSTCFLAGS= $(DEBUG) -Dlinux## AIX 3.2.5 GNU C compiler (not tested) <gl8f@fermi.clas.virginia.edu>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -