NetBSD/crypto/dist/krb4/appl/kx/Makefile.in

123 lines
3.2 KiB
Makefile
Raw Normal View History

# $Id: Makefile.in,v 1.1.1.1 2000/06/16 18:46:32 thorpej Exp $
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
XINCS = @X_CFLAGS@
XLIBS = @X_LIBS@ @LIB_XauReadAuth@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
CC = @CC@
LINK = @LINK@
AR = ar
DEFS = @DEFS@
CFLAGS = @CFLAGS@ $(WFLAGS)
WFLAGS = @WFLAGS@ @WFLAGS_NOIMPLICITINT@
CPPFLAGS= $(XINCS)
LD_FLAGS = @LD_FLAGS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LN_S = @LN_S@
LIBS = $(XLIBS) @LIBS@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
VERSION = @VERSION@
PACKAGE = @PACKAGE@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
libexecdir = @libexecdir@
bindir = @bindir@
transform=@program_transform_name@
EXECSUFFIX=@EXECSUFFIX@
X_PROGS_BIN = kx$(EXECSUFFIX) rxterm rxtelnet tenletxr
X_PROGS_LIBEXEC = kxd$(EXECSUFFIX)
PROG_BIN = @MAKE_X_PROGS_BIN@
PROG_LIBEXEC = @MAKE_X_PROGS_LIBEXEC@
PROGS = $(PROG_BIN) $(PROG_LIBEXEC)
WRITEAUTH = @NEED_WRITEAUTH_TRUE@ writeauth.o
SOURCES_KX = kx.c writeauth.c
SOURCES_KXD = kxd.c writeauth.c
SOURCES_COMMON = common.c krb4.c krb5.c context.c
OBJECTS_KX = kx.o common.o krb4.o krb5.o context.o $(WRITEAUTH)
OBJECTS_KXD = kxd.o common.o krb4.o krb5.o context.o $(WRITEAUTH)
OBJECTS = $(OBJECTS_KX) $(OBJECTS_KXD)
SOURCES = $(SOURCES_KX) $(SOURCES_KXD) $(SOURCES_COMMON)
all: $(PROGS)
Wall:
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
.c.o:
$(CC) -c $(DEFS) -I../../include -I$(srcdir) -I$(srcdir)/../kauth $(CFLAGS) $(CPPFLAGS) $<
install: all
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(libexecdir)
PROG_BIN='$(PROG_BIN)'; for x in $$PROG_BIN; do \
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/`echo $$x | sed '$(transform)'`; \
done
PROG_LIBEXEC='$(PROG_LIBEXEC)'; for x in $$PROG_LIBEXEC; do \
$(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
done
uninstall:
PROG_BIN='$(PROG_BIN)'; for x in $$PROG_BIN; do \
rm -f $(DESTDIR)$(bindir)/`echo $$x | sed '$(transform)'`; \
done
PROG_LIBEXEC='$(PROG_LIBEXEC)'; for x in $$PROG_LIBEXEC; do \
rm -f $(DESTDIR)$(libexecdir)/`echo $$x | sed '$(transform)'`; \
done
TAGS: $(SOURCES)
etags $(SOURCES)
check:
clean:
rm -f *.a *.o $(PROGS) encdata.c
mostlyclean: clean
distclean: clean
rm -f Makefile *.tab.c *~
realclean: distclean
rm -f TAGS
KLIB= -L../../lib/krb -lkrb -L../../lib/des -ldes
LIBROKEN=-L../../lib/roken -lroken
encdata.c:
$(LN_S) $(srcdir)/../kauth/encdata.c .
kx$(EXECSUFFIX): $(OBJECTS_KX)
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KX) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
kxd$(EXECSUFFIX): $(OBJECTS_KXD)
$(LINK) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OBJECTS_KXD) $(KLIB) $(LIBROKEN) $(LIBS) $(LIBROKEN)
rxterm: rxterm.in
sed -e "s!%bindir%!$(bindir)!" -e "s!%VERSION%!$(VERSION)!" -e "s!%PACKAGE%!$(PACKAGE)!" $(srcdir)/rxterm.in > $@
chmod +x $@
rxtelnet: rxtelnet.in
sed -e "s!%bindir%!$(bindir)!" -e "s!%VERSION%!$(VERSION)!" -e "s!%PACKAGE%!$(PACKAGE)!" $(srcdir)/rxtelnet.in > $@
chmod +x $@
tenletxr: tenletxr.in
sed -e "s!%bindir%!$(bindir)!" -e "s!%VERSION%!$(VERSION)!" -e "s!%PACKAGE%!$(PACKAGE)!" $(srcdir)/tenletxr.in > $@
chmod +x $@
$(OBJECTS): ../../include/config.h
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean