Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use is subject to license terms.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPROG= kdb5_util
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesOBJS = kdb5_util.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes kdb5_create.o kadm5_create.o string_table.o kdb5_stash.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes kdb5_destroy.o ovload.o strtok.o dump.o
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSRCS = $(OBJS:.o=.c)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLOBBERFILES += $(TESTPROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesISRCHDR= iprop.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../../Makefile.cmd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPOFILE = $(PROG).po
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesPOFILES = generic.po
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCPPFLAGS += -I. -I$(SRC)/lib/gss_mechs/mech_krb5/include/kerberosIV \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -I$(SRC)/lib/gss_mechs/mech_krb5/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes -I$(SRC)/lib/krb5 \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -I$(SRC)/uts/common/gssapi/include \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -I$(KRB5IPROPDIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_GETCWD=1 \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -DHAVE_STRSTR=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \
892aaf5c314ef8e7b3ba53b5c5259b729f014bc1bnicholes -DHAVE_KRB_DB_H=1 -DHAVE_KDC_H=1 -DKDB4_DISABLE \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -DUSE_KADM5_API_VERSION=2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOPTFLAG += $(XESS) #-I$(KINCDIR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-parentheses
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-variable
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-unused-function
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCERRWARN += -_gcc=-Wno-implicit-function-declaration
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -lmech_krb5 -lnsl
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesall: $(PROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Rpcgen-erate iprop.h from the iprop.x spec file
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(ISRCHDR): $(KRB5IPROPDIR)/iprop.x
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Explicitly state the dependency on iprop.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(OBJS): $(ISRCHDR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(PROG): $(OBJS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(POST_PROCESS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(KRB5SBINPROG)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(OBJS) $(ISRCHDR)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: lint_SRCS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../../Makefile.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CAT) $(POFILES) > $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesgeneric.po: FRC
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) messages.po
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SED) "/^domain/d" messages.po > $@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) messages.po
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFRC:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes