Added support for autoconf

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@57 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1995-07-19 23:47:00 +00:00
parent ce14b0db07
commit 518172f226
28 changed files with 111 additions and 35 deletions

View File

@@ -6,21 +6,27 @@ VPATH = @srcdir@
SHELL = /bin/sh
CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
prefix = /usr/local
INSTALL = @INSTALL@
prefix = @prefix@
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
all:
cd libtelnet; make CC="${CC}"
cd telnet; make CC="${CC}"
cd telnetd; make CC="${CC}"
SUBDIRS=libtelnet telnet telnetd
all:
for i in $(SUBDIRS); \
do (cd $$i; $(MAKE) $(MFLAGS) all); done
.PHONY: configure
configure:
$(srcdir)/configure
clean cleandir:
for i in $(SUBDIRS); \
do (cd $$i; $(MAKE) $(MFLAGS) clean); done
.DEFAULT:
cd libtelnet; make $@ WHAT=${WHAT} CC="${CC}"
cd telnet; make $@ WHAT=${WHAT} CC="${CC}"
cd telnetd; make $@ WHAT=${WHAT} CC="${CC}"

View File

@@ -9,22 +9,32 @@ CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
CFLAGS = @CFLAGS@ -I/usr/athena/include -I.. -I$(VPATH)/..
prefix = /usr/local
prefix = @prefix@
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
#
# Everything happens in ../Makefile.config and Makefile.generic
#
SHELL=/bin/sh
LIBOBJS=@LIBOBJS@
all:
$(MAKE) -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH} MAKE="${MAKE}"; \
SOURCES=auth.c encrypt.c genget.c \
misc.c kerberos.c kerberos5.c forward.c spx.c enc_des.c \
rsaencpwd.c krb4encpwd.c read_password.c \
setenv.c getent.c strdup.c strcasecmp.c \
strchr.c strrchr.c strftime.c strerror.c
.DEFAULT:
$(MAKE) -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH} $@ MAKE="${MAKE}"; \
OBJECTS=auth.o encrypt.o genget.o \
misc.o kerberos.o kerberos5.o forward.o spx.o enc_des.o \
rsaencpwd.o krb4encpwd.o read_password.o \
$(LIBOBJS)
all: libtelnet.a
libtelnet.a: $(OBJECTS)
$(AR) cr libtelnet.a $(OBJECTS)
$(RANLIB) libtelnet.a
clean cleandir:
rm -f *.o *.a telnet telnetd core
rm -f *.o *.a \#* *~ core

View File

@@ -55,6 +55,7 @@ static char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#if defined(AUTHENTICATION)
#include <stdio.h>

View File

@@ -39,6 +39,8 @@ static char sccsid[] = "@(#)enc_des.c 8.3 (Berkeley) 5/30/95";
static char orig_sccsid[] = "@(#)enc_des.c 5.1 (Berkeley) 3/22/91";
#endif /* not lint */
#include <config.h>
#if defined(AUTHENTICATION) && defined(ENCRYPTION) && defined(DES_ENCRYPTION)
#include <arpa/telnet.h>
#include <stdio.h>
@@ -114,10 +116,10 @@ struct keyidlist {
void fb64_stream_iv P((Block, struct stinfo *));
void fb64_init P((struct fb *));
int fb64_start P((struct fb *, int, int));
static int fb64_start P((struct fb *, int, int));
int fb64_is P((unsigned char *, int, struct fb *));
int fb64_reply P((unsigned char *, int, struct fb *));
void fb64_session P((Session_Key *, int, struct fb *));
static void fb64_session P((Session_Key *, int, struct fb *));
void fb64_stream_key P((Block, struct stinfo *));
int fb64_keyid P((int, unsigned char *, int *, struct fb *));

View File

@@ -60,6 +60,8 @@ static char orig_sccsid[] = "@(#)encrypt.c 5.2 (Berkeley) 3/22/91";
*/
#include <config.h>
#if defined(ENCRYPTION)
#define ENCRYPT_NAMES

View File

@@ -55,6 +55,8 @@ static char sccsid[] = "@(#)kerberos.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#ifdef KRB4
#include <sys/types.h>
#include <arpa/telnet.h>

View File

@@ -69,6 +69,7 @@ static char sccsid[] = "@(#)kerberos5.c 8.3 (Berkeley) 5/30/95";
* or implied warranty.
*/
#include <config.h>
#ifdef KRB5
#include <arpa/telnet.h>

View File

@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)krb4encpwd.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef KRB4_ENCPWD
/*

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/4/93";
#endif /* not lint */
#include <config.h>
#include "misc.h"
char *RemoteHostName;

View File

@@ -50,6 +50,8 @@ static char sccsid[] = "@(#)read_password.c 8.3 (Berkeley) 5/30/95";
* echoing.
*/
#include <config.h>
#if defined(RSA_ENCPWD) || defined(KRB4_ENCPWD)
#include <stdio.h>

View File

@@ -35,6 +35,7 @@
static char sccsid[] = "@(#)rsaencpwd.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef RSA_ENCPWD
/*

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)spx.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#ifdef SPX
/*
* COPYRIGHT (C) 1990 DIGITAL EQUIPMENT CORPORATION

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)authenc.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */
#include <config.h>
#if defined(AUTHENTICATION) || defined(ENCRYPTION)
#include <sys/types.h>
#include <arpa/telnet.h>

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#if defined(unix)
#include <sys/param.h>
#if defined(CRAY) || defined(sysV88)
@@ -56,6 +58,7 @@ static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#include <pwd.h>
#include <varargs.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/telnet.h>
@@ -2009,7 +2012,8 @@ extern int
EncryptStop P((char *)),
EncryptStopInput P((void)),
EncryptStopOutput P((void)),
EncryptStatus P((void)),
EncryptStatus P((void));
static int
EncryptHelp P((void));
struct encryptlist EncryptList[] = {

View File

@@ -41,6 +41,8 @@ static char copyright[] =
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include <sys/types.h>
#include "ring.h"

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93";
#endif /* not lint */
#include <config.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)ring.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
/*
* This defines a structure for a ring buffer.
*

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)sys_bsd.c 8.4 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
/*
* The following routines try to encapsulate what is system dependent
* (at least between 4.x and dos) which is used in telnet.c.

View File

@@ -35,7 +35,10 @@
static char sccsid[] = "@(#)telnet.c 8.4 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include <sys/types.h>
#include <stdlib.h>
#if defined(unix)
#include <signal.h>

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)terminal.c 8.2 (Berkeley) 2/16/95";
#endif /* not lint */
#include <config.h>
#include <arpa/telnet.h>
#include <sys/types.h>

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#define TELOPTS
#define TELCMDS
#define SLC_NAMES

View File

@@ -9,22 +9,33 @@ CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
CFLAGS = @CFLAGS@ -I/usr/athena/include -I.. -I$(VPATH)/..
LIBS = @LIBS@
prefix = /usr/local
prefix = @prefix@
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
#
# Everything happens in ../Makefile.config and Makefile.generic
#
SHELL=/bin/sh
SOURCES=telnetd.c state.c termstat.c slc.c sys_term.c \
utility.c global.c authenc.c
all:
make -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH}; \
.DEFAULT:
make -f $(VPATH)/../Config.local WHAT=${WHAT} CC="${CC}" VPATH=${VPATH} $@; \
OBJECTS=telnetd.o state.o termstat.o slc.o sys_term.o \
utility.o global.o authenc.o
libtop=/usr/athena/lib
KLIB=$(libtop)/kafs/libkafs.a $(libtop)/krb/libkrb.a $(libtop)/des/libdes.a
all: telnetd
telnetd: $(OBJECTS)
$(CC) -o telnetd $(OBJECTS) $(LIBS) ../libtelnet/libtelnet.a $(KLIB)
clean cleandir:
rm -f *.o *.a telnet telnetd core
rm -f *.o *.a telnetd \#* *~ core

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)authenc.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#if defined(AUTHENTICATION) || defined(ENCRYPTION)
#include "telnetd.h"
#include <libtelnet/misc.h>

View File

@@ -43,6 +43,8 @@ static char sccsid[] = "@(#)global.c 8.1 (Berkeley) 6/4/93";
* we will actually allocate the space.
*/
#include <config.h>
#include "defs.h"
#define extern
#include "ext.h"

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)slc.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include "telnetd.h"
#ifdef LINEMODE

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)state.c 8.5 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include "telnetd.h"
#if defined(AUTHENTICATION)
#include <libtelnet/auth.h>

View File

@@ -41,6 +41,8 @@ static char copyright[] =
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include "telnetd.h"
#include "pathnames.h"

View File

@@ -35,6 +35,8 @@
static char sccsid[] = "@(#)termstat.c 8.2 (Berkeley) 5/30/95";
#endif /* not lint */
#include <config.h>
#include "telnetd.h"
/*