NetBSD/crypto/dist/krb4/appl/telnet/telnetd/Makefile.in

80 lines
1.7 KiB
Makefile

# $Id: Makefile.in,v 1.1.1.2 2000/12/29 01:42:40 assar Exp $
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
top_builddir = ../../..
SHELL = /bin/sh
CC = @CC@
LINK = @LINK@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@ -DBINDIR='"$(bindir)"'
CFLAGS = @CFLAGS@ $(WFLAGS)
WFLAGS = @WFLAGS@
LD_FLAGS = @LD_FLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
libexecdir = @libexecdir@
transform=@program_transform_name@
EXECSUFFIX=@EXECSUFFIX@
PROGS = telnetd$(EXECSUFFIX)
SOURCES=telnetd.c state.c termstat.c slc.c sys_term.c \
utility.c global.c authenc.c
OBJECTS=telnetd.o state.o termstat.o slc.o sys_term.o \
utility.o global.o authenc.o
libtop = @libtop@
LIBKRB = -L../../../lib/krb -lkrb
LIBDES = -L../../../lib/des -ldes
LIBKAFS = @KRB_KAFS_LIB@
LIBROKEN = -L../../../lib/roken -lroken
KLIB=$(LIBKAFS) $(LIBKRB) $(LIBDES)
all: $(PROGS)
.c.o:
$(CC) -c $(DEFS) -I../../../include -I.. -I$(srcdir)/.. -I. -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $<
telnetd$(EXECSUFFIX): $(OBJECTS)
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS) -L../libtelnet -ltelnet $(KLIB) $(LIBROKEN) $(LIBS) @LIB_tgetent@ $(LIBROKEN)
install: all
$(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
for x in $(PROGS); do \
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
done
uninstall:
for x in $(PROGS); do \
rm -f $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
done
TAGS: $(SOURCES)
etags $(SOURCES)
clean cleandir:
rm -f *.o *.a telnetd$(EXECSUFFIX) \#* *~ core
distclean: clean
rm -f Makefile *~
.PHONY: all install uninstall clean cleandir distclean