1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2005 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-gateTESTPROG = kwarndtest 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gatePROG= ktkt_warnd 11*7c478bd9Sstevel@tonic-gateMANIFEST= ktkt_warn.xml 12*7c478bd9Sstevel@tonic-gate 13*7c478bd9Sstevel@tonic-gateKWARNDOBJS = kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o 14*7c478bd9Sstevel@tonic-gateKWARNCOBJS = kwarndtest.o kwarnd_clnt.o \ 15*7c478bd9Sstevel@tonic-gate kwarnd_clnt_stubs.o kwarnd_handle.o 16*7c478bd9Sstevel@tonic-gateG_OBJS = kwarnd_xdr.o 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gateOBJS = $(KWARNDOBJS) $(KWARNCOBJS) $(G_OBJS) 19*7c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 20*7c478bd9Sstevel@tonic-gateRSRC = kwarnd.h kwarnd_clnt.c kwarnd_svc.c kwarnd_xdr.c 21*7c478bd9Sstevel@tonic-gate 22*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(TESTPROG) 23*7c478bd9Sstevel@tonic-gate 24*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 25*7c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY) 28*7c478bd9Sstevel@tonic-gate$(ROOTMANIFEST) := FILEMODE= 444 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 31*7c478bd9Sstevel@tonic-gatePOFILES = generic.po 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gateCOPTFLAG += $(XESS) #-I$(KINCDIR) 34*7c478bd9Sstevel@tonic-gateCPPFLAGS += -D_REENTRANT 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \ 37*7c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5 \ 38*7c478bd9Sstevel@tonic-gate -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 39*7c478bd9Sstevel@tonic-gate -I$(SRC)/uts/common/gssapi/mechs/krb5/include 40*7c478bd9Sstevel@tonic-gateLDFLAGS += $(KRUNPATH) 41*7c478bd9Sstevel@tonic-gateLDLIBS += $(KMECHLIB) -lnsl 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 44*7c478bd9Sstevel@tonic-gate 45*7c478bd9Sstevel@tonic-gateall: $(PROG) $(TESTPROG) 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gate$(PROG): $(G_OBJS) $(KWARNDOBJS) 48*7c478bd9Sstevel@tonic-gate $(LINK.c) $(KWARNDOBJS) $(G_OBJS) -o $@ $(LDLIBS) 49*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate$(TESTPROG): $(G_OBJS) $(KWARNCOBJS) 52*7c478bd9Sstevel@tonic-gate $(LINK.c) $(KWARNCOBJS) $(G_OBJS) -o $@ $(LDLIBS) 53*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gate# Rules to generate derived rpcgen files from kwarnd.x spec file. 56*7c478bd9Sstevel@tonic-gate 57*7c478bd9Sstevel@tonic-gatekwarnd.h: kwarnd.x 58*7c478bd9Sstevel@tonic-gate $(RM) $@ 59*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -h kwarnd.x > $@ 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gatekwarnd_clnt.c: kwarnd.x 62*7c478bd9Sstevel@tonic-gate $(RM) $@ 63*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -l kwarnd.x > $@ 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gatekwarnd_svc.c: kwarnd.x 66*7c478bd9Sstevel@tonic-gate $(RM) $@ 67*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -m kwarnd.x > $@ 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gatekwarnd_xdr.c: kwarnd.x 70*7c478bd9Sstevel@tonic-gate $(RM) $@ 71*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -c kwarnd.x > $@ 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate$(OBJS): kwarnd.h 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gate# note that nightly depends on having all of the derived 76*7c478bd9Sstevel@tonic-gate# .c files built here on 'make install', even though this 77*7c478bd9Sstevel@tonic-gate# module doesn't use all of those files. 78*7c478bd9Sstevel@tonic-gateinstall: $(KRB5LIBPROG) $(RSRC) $(ROOTMANIFEST) 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateclean: 83*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(RSRC) 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gatelint: lint_SRCS 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate#additional dependencies 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate$(LIBRARY) : $(OBJS) 92*7c478bd9Sstevel@tonic-gate$(DYNLIB) : $(PICS) 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gateFRC: 95*7c478bd9Sstevel@tonic-gate 96*7c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 97*7c478bd9Sstevel@tonic-gate $(RM) $@ 98*7c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 99*7c478bd9Sstevel@tonic-gate 100*7c478bd9Sstevel@tonic-gategeneric.po: FRC 101*7c478bd9Sstevel@tonic-gate $(RM) messages.po 102*7c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 103*7c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 104*7c478bd9Sstevel@tonic-gate $(RM) messages.po 105