Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
500N/A#
500N/A# CDDL HEADER START
500N/A#
500N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License, Version 1.0 only
500N/A# (the "License"). You may not use this file except in compliance
500N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
500N/A#
500N/A# ident "%Z%%M% %I% %E% SMI"
500N/A#
500N/A
500N/ATESTPROG = gssdtest
500N/A
970N/AOUTPUT_OPTION = -I.
970N/A
970N/APROG= gssd
970N/A
970N/AMANIFEST= gss.xml
970N/A
970N/AGSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
1003N/AGSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
1003N/A gssd_handle.o
1003N/A
1003N/AGD_OBJS = gssd_svc.o
500N/AGC_OBJS = gssd_clnt.o
500N/AG_OBJS = gssd_xdr.o
500N/AGSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
500N/AGSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
500N/A
500N/AGSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
500N/AGSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
500N/A
500N/AROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
500N/AOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
500N/ASRCS = $(OBJS:.o=.c)
500N/ARSRC = $(ROBJS:.o=.c)
500N/ARSRC += gssd.h
500N/A
500N/ACLOBBERFILES += $(TESTPROG)
500N/A
500N/Ainclude ../../Makefile.cmd
500N/A
970N/AROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
970N/A$(ROOTMANIFEST) := FILEMODE= 444
970N/A
500N/ATEXT_DOMAIN = SUNW_OST_NETRPC
500N/APOFILE = $(PROG).po
POFILES = generic.po
#
# Override $ROOTLIB
#
ROOTLIB= $(ROOT)/usr/lib/gss
DIRS= $(ROOTLIB)
$(ROOTLIB)/gssd := OWNER= root
$(ROOTLIB)/gssd := GROUP= bin
CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
COPTFLAG += $(XESS) #-I$(KINCDIR)
LDLIBS += -lgss -lnsl
$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
.KEEP_STATE:
all: $(PROG) $(TESTPROG)
$(ROOTLIB):
$(INS.dir)
$(ROOTLIB)/%: %
$(INS.file)
gssd: $(GSSDOBJS)
$(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
gssdtest: $(GSSCOBJS)
$(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
GSSDX= $(SRC)/uts/common/gssapi/gssd.x
gssd.x: $(GSSDX)
rm -f $@
cp $(GSSDX) $@
# Rules to generate derived rpcgen files from gssd.x spec file.
gssd.h: gssd.x
$(RM) $@
$(RPCGEN) -M -h gssd.x > $@
gssd_clnt.c: gssd.x
$(RM) $@
$(RPCGEN) -M -l gssd.x > $@
gssd_svc.c: gssd.x
$(RM) $@
$(RPCGEN) -M -m gssd.x > $@
gssd_xdr.c: gssd.x
$(RM) $@
$(RPCGEN) -M -c gssd.x > $@
$(OBJS): gssd.h
install: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST)
install_h:
clean:
$(RM) $(OBJS) $(RSRC) gssd.x
lint_gssd:
$(LINT.c) $(GSSD_LINTS)
lint_gssc:
$(LINT.c) $(GSSC_LINTS)
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: