Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A#
228N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A
0N/ATESTPROG = gssdtest
0N/A
0N/AOUTPUT_OPTION = -I.
0N/A
0N/APROG= gssd
0N/A
285N/AMANIFEST= gss.xml
285N/A
0N/AGSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
0N/AGSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
0N/A gssd_handle.o
0N/A
0N/AGD_OBJS = gssd_svc.o
0N/AGC_OBJS = gssd_clnt.o
0N/AG_OBJS = gssd_xdr.o
0N/AGSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
0N/AGSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
0N/A
0N/AGSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
0N/AGSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
0N/A
0N/AROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
0N/AOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
0N/ASRCS = $(OBJS:.o=.c)
0N/ARSRC = $(ROBJS:.o=.c)
0N/ARSRC += gssd.h
0N/A
0N/ACLOBBERFILES += $(TESTPROG)
0N/A
0N/Ainclude ../../Makefile.cmd
0N/A
0N/AROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
0N/A$(ROOTMANIFEST) := FILEMODE= 444
0N/A
331N/ATEXT_DOMAIN = SUNW_OST_NETRPC
331N/APOFILE = $(PROG).po
0N/APOFILES = generic.po
0N/A
0N/A#
0N/A# Override $ROOTLIB
0N/A#
0N/AROOTLIB= $(ROOT)/usr/lib/gss
330N/A
0N/ADIRS= $(ROOTLIB)
0N/A
0N/A$(ROOTLIB)/gssd := OWNER= root
0N/A$(ROOTLIB)/gssd := GROUP= bin
0N/A
0N/ACPPFLAGS += -I$(SRC)/uts/common/gssapi/include
0N/ACOPTFLAG += $(XESS) #-I$(KINCDIR)
0N/A
0N/ALDLIBS += -lgss -lnsl
0N/A
0N/A$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall: $(PROG) $(TESTPROG)
0N/A
0N/A$(ROOTLIB):
0N/A $(INS.dir)
0N/A
0N/A$(ROOTLIB)/%: %
0N/A $(INS.file)
0N/A
0N/Agssd: $(GSSDOBJS)
0N/A $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
0N/A $(POST_PROCESS)
0N/A
0N/Agssdtest: $(GSSCOBJS)
0N/A $(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS)
0N/A $(POST_PROCESS)
0N/A
0N/AGSSDX= $(SRC)/uts/common/gssapi/gssd.x
0N/Agssd.x: $(GSSDX)
0N/A rm -f $@
0N/A cp $(GSSDX) $@
0N/A
0N/A# Rules to generate derived rpcgen files from gssd.x spec file.
0N/A
0N/Agssd.h: gssd.x
0N/A $(RM) $@
0N/A $(RPCGEN) -M -h gssd.x > $@
0N/A
0N/Agssd_clnt.c: gssd.x
0N/A $(RM) $@
0N/A $(RPCGEN) -M -l gssd.x > $@
0N/A
0N/Agssd_svc.c: gssd.x
0N/A $(RM) $@
0N/A $(RPCGEN) -M -m gssd.x > $@
0N/A
0N/Agssd_xdr.c: gssd.x
0N/A $(RM) $@
0N/A $(RPCGEN) -M -c gssd.x > $@
0N/A
45N/A$(OBJS): gssd.h
45N/A
0N/Ainstall: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST)
0N/A
0N/Ainstall_h:
0N/A
0N/Aclean:
0N/A $(RM) $(OBJS) $(RSRC) gssd.x
0N/A
0N/Alint_gssd:
0N/A $(LINT.c) $(GSSD_LINTS)
0N/A
0N/Alint_gssc:
0N/A $(LINT.c) $(GSSC_LINTS)
0N/A
lint: lint_gssd lint_gssc
check: $(CHKMANIFEST)
include ../../Makefile.targ
# EXPORT DELETE START
# Special targets to clean up the source tree for export distribution
# The WS target modifies the SCCS files as well, so a working workspace
# can be shipped.
# Warning: These targets change the source tree, the first only at the
# plain source level, but the second changes the guts!
EXPORT_SRC:
$(RM) Makefile+ gssd_clnt_stubs.c+ gssd_proc.c+ gssdtest.c+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssd_clnt_stubs.c > gssd_clnt_stubs.c+
$(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssd_proc.c > gssd_proc.c+
$(MV) gssd_proc.c+ gssd_proc.c
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssdtest.c > gssdtest.c+
$(MV) gssdtest.c+ gssdtest.c
$(CHMOD) 444 Makefile gssd_clnt_stubs.c gssd_proc.c gssdtest.c
# EXPORT DELETE END
$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
generic.po: FRC
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
FRC: