1mydir=telnet/telnetd 2BUILDTOP=$(REL)..$(S).. 3# derived from the original Makefile.generic 4# 5# Copyright (c) 1991 The Regents of the University of California. 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms are permitted provided 9# that: (1) source distributions retain this entire copyright notice and 10# comment, and (2) distributions including binaries display the following 11# acknowledgement: ``This product includes software developed by the 12# University of California, Berkeley and its contributors'' in the 13# documentation or other materials provided with the distribution and in 14# all advertising materials mentioning features or use of this software. 15# Neither the name of the University nor the names of its contributors may 16# be used to endorse or promote products derived from this software without 17# specific prior written permission. 18# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 19# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 20# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21# 22# @(#)Makefile.generic 5.5 (Berkeley) 3/1/91 23# 24 25AUTH_DEF=-DAUTHENTICATION -DENCRYPTION -DKRB5 -DFORWARD -UNO_LOGIN_F -ULOGIN_CAP_F -DLOGIN_PROGRAM=\"/usr/bin/login\" 26OTHERDEFS=-DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON 27LOCALINCLUDES=-I.. -I$(srcdir)/.. 28DEFINES = -DTELNET_BUFSIZE=65535 $(AUTH_DEF) $(OTHERDEFS) 29ARPA_TELNET= $(srcdir)/../arpa/telnet.h 30 31PROG_LIBPATH=-L$(TOPLIBD) 32PROG_RPATH=$(KRB5_LIBDIR) 33 34LIBS= @TELNETD_LIBS@ 35 36SRCS= $(srcdir)/telnetd.c \ 37 $(srcdir)/termio-tn.c \ 38 $(srcdir)/termios-tn.c \ 39 $(srcdir)/state.c \ 40 $(srcdir)/termstat.c \ 41 $(srcdir)/slc.c \ 42 $(srcdir)/sys_term.c \ 43 $(srcdir)/utility.c \ 44 $(srcdir)/global.c \ 45 $(srcdir)/authenc.c 46OBJS= telnetd.o \ 47 termio-tn.o \ 48 termios-tn.o \ 49 state.o \ 50 termstat.o \ 51 slc.o \ 52 sys_term.o \ 53 utility.o \ 54 global.o \ 55 authenc.o 56 57all:: telnetd 58 59telnetd: $(OBJS) $(PTY_DEPLIB) ../libtelnet/libtelnet.a $(MISSING_DEPLIB) 60 $(CC_LINK) -o $@ $(OBJS) ../libtelnet/libtelnet.a $(PTY_LIB) $(UTIL_LIB) $(MISSING_LIB) $(KRB5_BASE_LIBS) $(LIBS) 61 62clean:: 63 $(RM) telnetd 64 65install:: 66 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(SERVER_BINDIR) 67 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(SERVER_MANDIR) 68 for f in telnetd; do \ 69 $(INSTALL_PROGRAM) $$f \ 70 $(DESTDIR)$(SERVER_BINDIR)/`echo $$f|sed '$(transform)'`; \ 71 $(INSTALL_DATA) $(srcdir)/$$f.8 \ 72 ${DESTDIR}$(SERVER_MANDIR)/`echo $$f|sed '$(transform)'`.8; \ 73 done 74 75authenc.o: telnetd.h 76global.o: defs.h ext.h $(ARPA_TELNET) 77slc.o: telnetd.h defs.h ext.h $(ARPA_TELNET) 78state.o: telnetd.h defs.h ext.h $(ARPA_TELNET) 79sys_term.o: telnetd.h pathnames.h defs.h ext.h $(ARPA_TELNET) 80telnetd.o: telnetd.h defs.h ext.h $(ARPA_TELNET) 81termstat.o: telnetd.h defs.h ext.h $(ARPA_TELNET) 82utility.o: telnetd.h defs.h ext.h $(ARPA_TELNET) 83