thisconfigdir=. myfulldir=krb524 mydir=. BUILDTOP=$(REL).. # Copyright 1994 by OpenVision Technologies, Inc. # # Permission to use, copy, modify, distribute, and sell this software # and its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appears in all copies and # that both that copyright notice and this permission notice appear in # supporting documentation, and that the name of OpenVision not be used # in advertising or publicity pertaining to distribution of the software # without specific, written prior permission. OpenVision makes no # representations about the suitability of this software for any # purpose. It is provided "as is" without express or implied warranty. # # OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # ##WIN32##!if 0 LIB=krb524 ##WIN32##!endif LIBMAJOR=1 LIBMINOR=0 RELDIR=../krb524 STOBJLISTS=OBJS.ST DEFINES = -DUSE_MASTER PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH) PROG_RPATH=$(KRB5_LIBDIR) KRB524_DEPLIB = libkrb524.a KRB524_LIB = libkrb524.a ##WIN32##!ifdef USE_ALTERNATE_KRB4_INCLUDES ##WIN32##KRB4_INCLUDES=-I$(USE_ALTERNATE_KRB4_INCLUDES) ##WIN32##!endif ##WIN32##!ifdef USE_ALTERNATE_KRB4_LIB ##WIN32##K4LIB=$(USE_ALTERNATE_KRB4_LIB) ##WIN32##!endif K524LIB = $(OUTPRE)krb524.lib K524DEP = $(K524LIB) K524DEF = krb524.def WINLIBS = kernel32.lib ws2_32.lib user32.lib shell32.lib oldnames.lib \ version.lib advapi32.lib gdi32.lib LOCALINCLUDES= $(KRB4_INCLUDES) -I. -I$(srcdir) # Library sources SRCS = \ $(srcdir)/conv_creds.c \ $(srcdir)/conv_princ.c \ $(srcdir)/cnv_tkt_skey.c \ $(srcdir)/encode.c \ $(srcdir)/misc.c \ $(srcdir)/globals.c \ $(srcdir)/sendmsg.c \ $(srcdir)/krb524_err.et \ $(srcdir)/libinit.c EXTRADEPSRCS = \ $(srcdir)/test.c \ $(srcdir)/k524init.c \ $(srcdir)/krb524d.c STLIBOBJS = \ $(OUTPRE)conv_creds.$(OBJEXT) \ $(OUTPRE)conv_princ.$(OBJEXT) \ $(OUTPRE)cnv_tkt_skey.$(OBJEXT) \ $(OUTPRE)encode.$(OBJEXT) \ $(OUTPRE)misc.$(OBJEXT) \ $(OUTPRE)globals.$(OBJEXT) \ $(OUTPRE)sendmsg.$(OBJEXT) \ $(OUTPRE)krb524_err.$(OBJEXT) \ $(OUTPRE)libinit.$(OBJEXT) ##WIN32##!ifdef KRB524_STATIC_HACK ##WIN32##LPREFIX=..\lib ##WIN32##K5_GLUE=$(LPREFIX)\$(OUTPRE)k5_glue.obj ##WIN32##KLIBS = $(LPREFIX)\krb5\$(OUTPRE)krb5.lib \ ##WIN32## $(LPREFIX)\crypto\$(OUTPRE)crypto.lib \ ##WIN32## $(BUILDTOP)\util\profile\$(OUTPRE)profile.lib \ ##WIN32## $(LPREFIX)\des425\$(OUTPRE)des425.lib ##WIN32##KLIB=$(KLIBS) $(DNSLIBS) $(K5_GLUE) $(CLIB) ##WIN32##STLIBOBJS=$(STLIBOBJS:libinit=globals) ##WIN32##K524DEP=$(STLIBOBJS) ##WIN32##!endif GENS = krb524_err.c krb524_err.h KRB524_HDR=$(BUILDTOP)$(S)include$(S)krb524.h KRB524_ERR_HDR=$(BUILDTOP)$(S)include$(S)krb524_err.h all-unix:: $(GENS) all-unix:: all-libs all-unix:: includes all-unix:: krb524d krb524test k524init includes:: $(KRB524_HDR) $(KRB524_ERR_HDR) $(KRB524_HDR): krb524.h ##WIN32## $(CP) $? "$@" ##WIN32##!if 0 $(KRB524_HDR): krb524.h if cmp $(srcdir)/krb524.h \ $(BUILDTOP)/include/krb524.h >/dev/null 2>&1; then :; \ else \ (set -x; $(RM) $(BUILDTOP)/include/krb524.h; \ $(CP) $(srcdir)/krb524.h \ $(BUILDTOP)/include/krb524.h) ; \ fi ##WIN32##!endif $(KRB524_ERR_HDR): krb524_err.h ##WIN32## $(CP) $? "$@" ##WIN32##!if 0 $(KRB524_ERR_HDR): krb524_err.h if cmp krb524_err.h \ $(BUILDTOP)/include/krb524_err.h >/dev/null 2>&1; then :; \ else \ (set -x; $(RM) $(BUILDTOP)/include/krb524_err.h; \ $(CP) krb524_err.h \ $(BUILDTOP)/include/krb524_err.h) ; \ fi ##WIN32##!endif all-windows:: $(KRB524_HDR) $(K524LIB) $(OUTPRE)k524init.exe krb524test: libkrb524.a test.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o krb524test test.o $(KRB524_LIB) $(KRB4COMPAT_LIBS) krb524d: krb524d.o $(KADMSRV_DEPLIBS) $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o krb524d krb524d.o $(KADMSRV_LIBS) $(KRB524_LIB) $(KRB4COMPAT_LIBS) k524init: k524init.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS) $(CC_LINK) -o k524init k524init.o $(KRB524_LIB) $(KRB4COMPAT_LIBS) $(K524LIB): $(STLIBOBJS) $(K4LIB) $(KLIB) link $(DLL_LINKOPTS) -def:$(K524DEF) -out:$*.dll $** $(WINLIBS) $(OUTPRE)k524init.exe: $(OUTPRE)k524init.$(OBJEXT) $(K524DEP) $(KLIB) $(K4LIB) $(CLIB) $(BUILDTOP)\util\windows\$(OUTPRE)getopt.lib link $(EXE_LINKOPTS) -out:$@ $** $(WINLIBS) install-unix:: install-libs $(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d $(INSTALL_PROGRAM) k524init $(DESTDIR)$(CLIENT_BINDIR)/krb524init clean-unix:: clean-libs clean-libobjs $(RM) $(OBJS) $(GENS) core *~ *.bak #* $(RM) krb524test krb524d k524init test.o krb524d.o k524init.o $(RM) $(BUILDTOP)/include/krb524.h $(BUILDTOP)/include/krb524_err.h # +++ Dependency line eater +++ # # Makefile dependencies follow. This must be the last section in # the Makefile.in file # conv_creds.so conv_creds.po $(OUTPRE)conv_creds.$(OBJEXT): conv_creds.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ $(BUILDTOP)/include/profile.h krb524.h krb524_err.h conv_princ.so conv_princ.po $(OUTPRE)conv_princ.$(OBJEXT): conv_princ.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ $(BUILDTOP)/include/profile.h krb524.h krb524_err.h \ $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h cnv_tkt_skey.so cnv_tkt_skey.po $(OUTPRE)cnv_tkt_skey.$(OBJEXT): cnv_tkt_skey.c $(SRCTOP)/include/k5-int.h \ $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \ $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(SRCTOP)/include/port-sockets.h \ $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \ $(BUILDTOP)/include/profile.h $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ krb524.h krb524_err.h encode.so encode.po $(OUTPRE)encode.$(OBJEXT): encode.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ $(BUILDTOP)/include/profile.h krb524.h krb524_err.h \ $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h misc.so misc.po $(OUTPRE)misc.$(OBJEXT): misc.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ $(BUILDTOP)/include/profile.h krb524.h krb524_err.h \ $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h globals.so globals.po $(OUTPRE)globals.$(OBJEXT): globals.c sendmsg.so sendmsg.po $(OUTPRE)sendmsg.$(OBJEXT): sendmsg.c $(SRCTOP)/include/fake-addrinfo.h \ $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/k5-int.h \ $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/krb5/kdb.h $(BUILDTOP)/include/profile.h \ $(SRCTOP)/include/kerberosIV/krb.h $(SRCTOP)/include/kerberosIV/des.h \ $(KRB_ERR_H_DEP) krb524.h krb524_err.h libinit.so libinit.po $(OUTPRE)libinit.$(OBJEXT): libinit.c test.so test.po $(OUTPRE)test.$(OBJEXT): test.c $(SRCTOP)/include/k5-int.h \ $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \ $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(SRCTOP)/include/port-sockets.h \ $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \ $(BUILDTOP)/include/profile.h $(SRCTOP)/include/kerberosIV/des.h \ $(SRCTOP)/include/kerberosIV/krb.h $(KRB_ERR_H_DEP) \ krb524.h krb524_err.h k524init.so k524init.po $(OUTPRE)k524init.$(OBJEXT): k524init.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ $(BUILDTOP)/include/profile.h krb524.h krb524_err.h \ $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \ $(SRCTOP)/include/socket-utils.h krb524d.so krb524d.po $(OUTPRE)krb524d.$(OBJEXT): krb524d.c $(BUILDTOP)/include/krb5.h \ $(COM_ERR_DEPS) $(BUILDTOP)/include/kadm5/admin.h $(BUILDTOP)/include/gssrpc/rpc.h \ $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/xdr.h \ $(BUILDTOP)/include/gssrpc/auth.h $(BUILDTOP)/include/gssrpc/clnt.h \ $(BUILDTOP)/include/gssrpc/rpc_msg.h $(BUILDTOP)/include/gssrpc/auth_unix.h \ $(BUILDTOP)/include/gssrpc/svc_auth.h $(BUILDTOP)/include/gssrpc/svc.h \ $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \ $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/port-sockets.h \ $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \ $(BUILDTOP)/include/profile.h $(BUILDTOP)/include/kadm5/kadm_err.h \ $(BUILDTOP)/include/kadm5/adb_err.h $(BUILDTOP)/include/kadm5/chpass_util_strings.h \ $(SRCTOP)/include/krb5/adm_proto.h $(SRCTOP)/include/kerberosIV/krb.h \ $(SRCTOP)/include/kerberosIV/des.h $(KRB_ERR_H_DEP) \ krb524.h krb524_err.h