Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Use is subject to license terms.
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# ident "%Z%%M% %I% %E% SMI"
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith#
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithPROG= kadmind
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithMANIFEST= kadmin.xml
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithROOTMETHOD= $(ROOTLIBSVCMETHOD)/svc-kdc.master
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithOBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith ipropd_svc.o
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithDERIVED_OBJS= iprop_xdr.o
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithSRCS= $(OBJS:.o=.c)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithSRCS+= $(DERIVED_OBJS:.o=.c)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Definitions needed to rpcgen iprop-related files
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithISRC= iprop.h iprop_xdr.c
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCMD= grep -v "usr/src/cmd/krb5/iprop" > $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCLOBBERFILES += $(TESTPROG)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude ../../../Makefile.cmd
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithPOFILE = $(PROG).po
eb4caa8f4cdc2955b58dcd2de06fe770533414c8Jon A. CruzPOFILES = generic.po
eb4caa8f4cdc2955b58dcd2de06fe770533414c8Jon A. Cruz
3fad3df12ae2d320c12871d471eb0faf5f187cbdAlex ValavanisROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithDEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 -DKRB5_KRB4_COMPAT
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCPPFLAGS += -I. -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(SRC)/lib/krb5 \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(SRC)/lib/krb5/kadm5 \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(SRC)/lib/krb5/kadm5/srv \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(SRC)/lib/gss_mechs/mech_krb5/include \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(KRB5IPROPDIR) \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -I$(SRC)/uts/common/gssapi/include/ $(DEFS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithCOPTFLAG += $(XESS) #-I$(KINCDIR)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithLDFLAGS += $(KRUNPATH)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithLDLIBS += -lgss -L$(KRB5LIB) \
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith -lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith.KEEP_STATE:
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithall: $(PROG)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith$(PROG): $(OBJS) $(DERIVED_OBJS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(POST_PROCESS)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Rules to rpcgen-erate derived files from the iprop.x spec file
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithiprop.h: $(KRB5IPROPDIR)/iprop.x
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithiprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith# Explicitly state the dependancy on iprop.h
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith$(OBJS): iprop.h
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith$(KRB5LIBPROG):= FILEMODE = 0500
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith$(ROOTMANIFEST):= FILEMODE = 0444
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinstall: $(KRB5LIBPROG) $(ROOTMETHOD) $(ROOTMANIFEST)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithcheck: $(CHKMANIFEST)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithclean:
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) $(OBJS) $(DERIVED_OBJS) $(ISRC)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithlint: lint_SRCS
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithinclude ../../../Makefile.targ
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(CAT) $(POFILES) > $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smithgeneric.po: FRC
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) messages.po
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(SED) "/^domain/d" messages.po > $@
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith $(RM) messages.po
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn SmithFRC:
2f5f997e354e7f4a02b6818bdc68fbece5cb237dJohn Smith