/* 
 * Imakefile for Athenized Kerberized telnet
 *
 * $Author: ghudson $
 * $Id: Imakefile,v 1.4 1994/12/07 16:45:49 ghudson Exp $
 *
 * Copyright 1994 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file
 * "mit-copyright.h".
 *
 */

#define ISUBDIRS tmac

#ifdef ultrix
PLATFORM=athena_ultrix.auth
#endif

#ifdef _AIX
PLATFORM=athena_aix.auth
#endif

#ifdef SOLARIS
PLATFORM=athena_solaris.auth
#endif

#ifdef hpux
PLATFORM=athena_hpux.auth
#endif

#ifdef linux
PLATFORM=athena_linux.auth
#endif

#ifdef __NetBSD__
PLATFORM=athena_netbsd.auth
#endif

all:: Config.local

Config.local: Config.local.sed
	sed 's|ATHENA_LCCFLAGS|${CFLAGS}|g' < Config.local.sed > Config.local

all::
	cd libtelnet; make ${PLATFORM} CC="${CC}"
	cd telnet; make ${PLATFORM} CC="${CC}"
	cd telnetd; make ${PLATFORM} CC="${CC}"

install_program(telnetd/telnetd,,${ATHRETCDIR})

install_program(telnet/telnet,,${ATHBINDIR})

install_man(telnetd/telnetd.8,telnetd.8)

install_man(telnet/telnet.1,telnet.1)
