# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.86 93/10/11 12:12:36 rws Exp $

SHELL=/bin/sh
MAKESHELL=/bin/sh

TOP = ../../.
CWD = ./ctelnet/libtelnet
CONFIGSRC = ${TOP}/config
DESTDIR=

IRULESRC = $(CONFIGSRC)

UTILDIR=$(TOP)/util/bin/
IMAKE= imake
IFLAGS= -I$(IRULESRC)
XTOP=$(TOP)/third/common/X11R4
XIFLAGS= -I$(XTOP)/config -DTOPDIR=$(XTOP) -DCURDIR=$(CWD)

ICONFIGFILE = ${IRULESRC}/Imake.tmpl ${IRULESRC}/Imake.rules \
	${IRULESRC}/site.def Imakefile
MKDIRHIER= sh $(IRULESRC)/mkdirhier.sh

ATHVERS = ${IRULESRC}/update.conf

ATHBASEDIR=/usr/athena

ATHLIBDIR=$(ATHBASEDIR)/lib
ATHBINDIR=$(ATHBASEDIR)/bin
ATHINCDIR=$(ATHBASEDIR)/include
ATHETCDIR=$(ATHBASEDIR)/etc
ATHCONFDIR=/etc/athena
ATHMANDIR=$(ATHBASEDIR)/man
ATHRBINDIR=/bin/athena
ATHRETCDIR=/etc/athena

ATHNEWDIR=$(ATHBINDIR)

ATHXAPPDIR=/usr/athena/lib/X11/app-defaults
ATHXBITDIR=/usr/athena/lib/X11/bitmaps
ATHXINCDIR=/usr/athena/include
ATHXLIBDIR=/usr/athena/lib

AFSDIR=$(TOP)/third/common/afs/@sys/dest

LINTCFLAG=-C
LINTFLAGS=$(DEFINES) -I/usr/athena/include

INSTALL=$(UTILDIR)install -c
RANLIB=ranlib
CC=cc
LD=cc
AS=as
RM=rm -f
CDEBUG=-O2

SERVER=-DSERVER

CFLAGS=$(CDEBUG)  $(SERVER) $(DEFINES) -I/usr/athena/include $(LINUXI)
LDFLAGS= $(LDDEFS) $(LINUXL)
LDPATH=-L$(ATHLIBDIR)
LDLIBS=

all::
install:: install_dirs
install_dirs::
install::
install.man::

clean::
depend::

FRC::

###########################################################################
# Project inclusion
###########################################################################

###########################################################################
# start of Imakefile
###########################################################################

ODEFS=-DKRB4 -DAUTHENTICATION -DENCRYPTION -DDES_ENCRYPTION

DEFINES=-I.. ${ODEFS}
LIB_OBJ=herror.o getent.o kerberos.o setenv.o strerror.o
LIB_SRC=herror.c getent.c kerberos.c setenv.c strerror.c

#
# 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.
#
#	@(#)Makefile.generic	5.5 (Berkeley) 3/1/91
#

SRCS=   auth.c encrypt.c genget.c \
	misc.c enc_des.c \
	setenv.c getent.c strdup.c strcasecmp.c \
	strchr.c strrchr.c strftime.c strerror.c \
	${LIB_SRC}

OBJS=   auth.o encrypt.o genget.o \
	misc.o enc_des.o \
	${LIB_OBJ}

all:: libtelnet.a
libtelnet.a:: ${OBJS}
	ar cru libtelnet.a ${OBJS}
	$(RANLIB) libtelnet.a
all-prof:: libtelnet_p.a
libtelnet_p.a: ${OBJS}
	cd profiled; ar cru ../libtelnet_p.a ${OBJS}
	$(RANLIB) libtelnet_p.a

Makefile:: $(ICONFIGFILE)
	-@if [ -f Makefile ]; then \
	echo "  $(RM) Makefile.bak; mv Makefile Makefile.bak"; \
	$(RM) Makefile.bak; mv Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE) $(IFLAGS) $(IPROJ) -DNEWTOP=$(TOP) -DNEWCWD=$(CWD)

XMakefile::
	-@if [ -f Makefile ]; then \
	echo "  $(RM) Makefile.bak; mv Makefile Makefile.bak"; \
	$(RM) Makefile.bak; mv Makefile Makefile.bak; \
	else exit 0; fi
	$(IMAKE) $(XIFLAGS)

clean::
	rm -f *~ *.o *.a core a.out

Makefiles::

###########################################################################
# dependencies generated by makedepend

