1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate 8*7c478bd9Sstevel@tonic-gatePROG = kproplog 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gateOBJS = kproplog.o 11*7c478bd9Sstevel@tonic-gateDERIVED_OBJS = iprop_xdr.o 12*7c478bd9Sstevel@tonic-gate 13*7c478bd9Sstevel@tonic-gateSRCS= $(OBJS:.o=.c) 14*7c478bd9Sstevel@tonic-gateSRCS+= $(DERIVED_OBJS:.o=.c) 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gateRSRC= kproplog.c 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gate# Definitions needed to rpcgen iprop-related files 19*7c478bd9Sstevel@tonic-gateISRC= iprop.h iprop_xdr.c 20*7c478bd9Sstevel@tonic-gateKRB5IPROPDIR= $(SRC)/cmd/krb5/iprop 21*7c478bd9Sstevel@tonic-gateCMD= grep -v "usr/src/cmd/krb5/iprop" > $@ 22*7c478bd9Sstevel@tonic-gate 23*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 24*7c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gateTEXT_DOMAIN = SUNW_OST_OSCMD 27*7c478bd9Sstevel@tonic-gatePOFILE = kproplog.po 28*7c478bd9Sstevel@tonic-gatePOFILES = generic.po 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateLDFLAGS += -R$(KRB5RUNPATH) $(KRUNPATH) 31*7c478bd9Sstevel@tonic-gateLDLIBS += -L$(KRB5LIB) $(KLIB) -lnsl -lkdb -lkadm5clnt 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I. -I$(SRC)/lib/krb5 \ 34*7c478bd9Sstevel@tonic-gate -I$(KRB5IPROPDIR) \ 35*7c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 36*7c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gateall: $(PROG) 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) $(DERIVED_OBJS) 41*7c478bd9Sstevel@tonic-gate $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS) 42*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate# Rules to rpcgen-erate derived files from the iprop.x spec file 45*7c478bd9Sstevel@tonic-gateiprop.h: $(KRB5IPROPDIR)/iprop.x 46*7c478bd9Sstevel@tonic-gate $(RM) $@ 47*7c478bd9Sstevel@tonic-gate $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@ 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gateiprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x 50*7c478bd9Sstevel@tonic-gate $(RM) $@ 51*7c478bd9Sstevel@tonic-gate $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD) 52*7c478bd9Sstevel@tonic-gate 53*7c478bd9Sstevel@tonic-gate# Explicitly state the dependancy on iprop.h 54*7c478bd9Sstevel@tonic-gate$(OBJS): iprop.h 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gateinstall: $(KRB5SBINPROG) 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gatelint: $(ISRC) .WAIT lint_SRCS 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateclean: 61*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(DERIVED_OBJS) $(ISRC) 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 66*7c478bd9Sstevel@tonic-gate $(RM) $@ 67*7c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gategeneric.po: 70*7c478bd9Sstevel@tonic-gate $(RM) messages.po 71*7c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 72*7c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 73*7c478bd9Sstevel@tonic-gate $(RM) messages.po 74