1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gateTESTPROG = gssdtest 30*7c478bd9Sstevel@tonic-gate 31*7c478bd9Sstevel@tonic-gateOUTPUT_OPTION = -I. 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gatePROG= gssd 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gateMANIFEST= gss.xml 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gateGSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o 38*7c478bd9Sstevel@tonic-gateGSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \ 39*7c478bd9Sstevel@tonic-gate gssd_handle.o 40*7c478bd9Sstevel@tonic-gate 41*7c478bd9Sstevel@tonic-gateGD_OBJS = gssd_svc.o 42*7c478bd9Sstevel@tonic-gateGC_OBJS = gssd_clnt.o 43*7c478bd9Sstevel@tonic-gateG_OBJS = gssd_xdr.o 44*7c478bd9Sstevel@tonic-gateGSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS) 45*7c478bd9Sstevel@tonic-gateGSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS) 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gateGSSD_LINTS = $(GSSD_BASEOBJS:.o=.c) 48*7c478bd9Sstevel@tonic-gateGSSC_LINTS = $(GSSC_BASEOBJS:.o=.c) 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gateROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS) 51*7c478bd9Sstevel@tonic-gateOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS) 52*7c478bd9Sstevel@tonic-gateSRCS = $(OBJS:.o=.c) 53*7c478bd9Sstevel@tonic-gateRSRC = $(ROBJS:.o=.c) 54*7c478bd9Sstevel@tonic-gateRSRC += gssd.h 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gateCLOBBERFILES += $(TESTPROG) 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC) 61*7c478bd9Sstevel@tonic-gate$(ROOTMANIFEST) := FILEMODE= 444 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gateTEXT_DOMAIN = SUNW_OST_NETRPC 64*7c478bd9Sstevel@tonic-gatePOFILE = $(PROG).po 65*7c478bd9Sstevel@tonic-gatePOFILES = generic.po 66*7c478bd9Sstevel@tonic-gate 67*7c478bd9Sstevel@tonic-gate# 68*7c478bd9Sstevel@tonic-gate# Override $ROOTLIB 69*7c478bd9Sstevel@tonic-gate# 70*7c478bd9Sstevel@tonic-gateROOTLIB= $(ROOT)/usr/lib/gss 71*7c478bd9Sstevel@tonic-gate 72*7c478bd9Sstevel@tonic-gateDIRS= $(ROOTLIB) 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/gssd := OWNER= root 75*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/gssd := GROUP= bin 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gateCPPFLAGS += -I$(SRC)/uts/common/gssapi/include 78*7c478bd9Sstevel@tonic-gateCOPTFLAG += $(XESS) #-I$(KINCDIR) 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gateLDLIBS += -lgss -lnsl 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gate$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gateall: $(PROG) $(TESTPROG) 87*7c478bd9Sstevel@tonic-gate 88*7c478bd9Sstevel@tonic-gate$(ROOTLIB): 89*7c478bd9Sstevel@tonic-gate $(INS.dir) 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: % 92*7c478bd9Sstevel@tonic-gate $(INS.file) 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gategssd: $(GSSDOBJS) 95*7c478bd9Sstevel@tonic-gate $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS) 96*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 97*7c478bd9Sstevel@tonic-gate 98*7c478bd9Sstevel@tonic-gategssdtest: $(GSSCOBJS) 99*7c478bd9Sstevel@tonic-gate $(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS) 100*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 101*7c478bd9Sstevel@tonic-gate 102*7c478bd9Sstevel@tonic-gateGSSDX= $(SRC)/uts/common/gssapi/gssd.x 103*7c478bd9Sstevel@tonic-gategssd.x: $(GSSDX) 104*7c478bd9Sstevel@tonic-gate rm -f $@ 105*7c478bd9Sstevel@tonic-gate cp $(GSSDX) $@ 106*7c478bd9Sstevel@tonic-gate 107*7c478bd9Sstevel@tonic-gate# Rules to generate derived rpcgen files from gssd.x spec file. 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gategssd.h: gssd.x 110*7c478bd9Sstevel@tonic-gate $(RM) $@ 111*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -h gssd.x > $@ 112*7c478bd9Sstevel@tonic-gate 113*7c478bd9Sstevel@tonic-gategssd_clnt.c: gssd.x 114*7c478bd9Sstevel@tonic-gate $(RM) $@ 115*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -l gssd.x > $@ 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gategssd_svc.c: gssd.x 118*7c478bd9Sstevel@tonic-gate $(RM) $@ 119*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -m gssd.x > $@ 120*7c478bd9Sstevel@tonic-gate 121*7c478bd9Sstevel@tonic-gategssd_xdr.c: gssd.x 122*7c478bd9Sstevel@tonic-gate $(RM) $@ 123*7c478bd9Sstevel@tonic-gate $(RPCGEN) -M -c gssd.x > $@ 124*7c478bd9Sstevel@tonic-gate 125*7c478bd9Sstevel@tonic-gate$(OBJS): gssd.h 126*7c478bd9Sstevel@tonic-gate 127*7c478bd9Sstevel@tonic-gateinstall: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST) 128*7c478bd9Sstevel@tonic-gate 129*7c478bd9Sstevel@tonic-gateinstall_h: 130*7c478bd9Sstevel@tonic-gate 131*7c478bd9Sstevel@tonic-gateclean: 132*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(RSRC) gssd.x 133*7c478bd9Sstevel@tonic-gate 134*7c478bd9Sstevel@tonic-gatelint_gssd: 135*7c478bd9Sstevel@tonic-gate $(LINT.c) $(GSSD_LINTS) 136*7c478bd9Sstevel@tonic-gate 137*7c478bd9Sstevel@tonic-gatelint_gssc: 138*7c478bd9Sstevel@tonic-gate $(LINT.c) $(GSSC_LINTS) 139*7c478bd9Sstevel@tonic-gate 140*7c478bd9Sstevel@tonic-gatelint: lint_gssd lint_gssc 141*7c478bd9Sstevel@tonic-gate 142*7c478bd9Sstevel@tonic-gatecheck: $(CHKMANIFEST) 143*7c478bd9Sstevel@tonic-gate 144*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 145*7c478bd9Sstevel@tonic-gate 146*7c478bd9Sstevel@tonic-gate# EXPORT DELETE START 147*7c478bd9Sstevel@tonic-gate# Special targets to clean up the source tree for export distribution 148*7c478bd9Sstevel@tonic-gate# The WS target modifies the SCCS files as well, so a working workspace 149*7c478bd9Sstevel@tonic-gate# can be shipped. 150*7c478bd9Sstevel@tonic-gate# Warning: These targets change the source tree, the first only at the 151*7c478bd9Sstevel@tonic-gate# plain source level, but the second changes the guts! 152*7c478bd9Sstevel@tonic-gateEXPORT_SRC: 153*7c478bd9Sstevel@tonic-gate $(RM) Makefile+ gssd_clnt_stubs.c+ gssd_proc.c+ gssdtest.c+ 154*7c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 155*7c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 156*7c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 157*7c478bd9Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 158*7c478bd9Sstevel@tonic-gate < gssd_clnt_stubs.c > gssd_clnt_stubs.c+ 159*7c478bd9Sstevel@tonic-gate $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c 160*7c478bd9Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 161*7c478bd9Sstevel@tonic-gate < gssd_proc.c > gssd_proc.c+ 162*7c478bd9Sstevel@tonic-gate $(MV) gssd_proc.c+ gssd_proc.c 163*7c478bd9Sstevel@tonic-gate sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 164*7c478bd9Sstevel@tonic-gate < gssdtest.c > gssdtest.c+ 165*7c478bd9Sstevel@tonic-gate $(MV) gssdtest.c+ gssdtest.c 166*7c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile gssd_clnt_stubs.c gssd_proc.c gssdtest.c 167*7c478bd9Sstevel@tonic-gate 168*7c478bd9Sstevel@tonic-gate# EXPORT DELETE END 169*7c478bd9Sstevel@tonic-gate 170*7c478bd9Sstevel@tonic-gate$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 171*7c478bd9Sstevel@tonic-gate $(RM) $@ 172*7c478bd9Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 173*7c478bd9Sstevel@tonic-gate 174*7c478bd9Sstevel@tonic-gategeneric.po: FRC 175*7c478bd9Sstevel@tonic-gate $(RM) messages.po 176*7c478bd9Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 177*7c478bd9Sstevel@tonic-gate $(SED) "/^domain/d" messages.po > $@ 178*7c478bd9Sstevel@tonic-gate $(RM) messages.po 179*7c478bd9Sstevel@tonic-gate 180*7c478bd9Sstevel@tonic-gateFRC: 181*7c478bd9Sstevel@tonic-gate 182