Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
64N/A#
64N/A# CDDL HEADER START
64N/A#
64N/A# The contents of this file are subject to the terms of the
64N/A# Common Development and Distribution License (the "License").
64N/A# You may not use this file except in compliance with the License.
64N/A#
64N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
64N/A# or http://www.opensolaris.org/os/licensing.
64N/A# See the License for the specific language governing permissions
64N/A# and limitations under the License.
64N/A#
64N/A# When distributing Covered Code, include this CDDL HEADER in each
64N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
64N/A# If applicable, add the following below this CDDL HEADER, with the
64N/A# fields enclosed by brackets "[]" replaced with your own identifying
64N/A# information: Portions Copyright [yyyy] [name of copyright owner]
64N/A#
64N/A# CDDL HEADER END
64N/A#
75N/A#
75N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3817N/A# Use is subject to license terms.
64N/A#
64N/A
64N/ATESTPROG = gssdtest
64N/A
64N/AOUTPUT_OPTION = -I.
5072N/A
618N/APROG= gssd
64N/A
5072N/AMANIFEST= gss.xml
844N/A
5072N/AGSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
64N/AGSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
1258N/A gssd_handle.o
64N/A
5072N/AGD_OBJS = gssd_svc.o
2899N/AGC_OBJS = gssd_clnt.o
3817N/AG_OBJS = gssd_xdr.o
3817N/AGSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
3817N/AGSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
64N/A
5072N/AGSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
5072N/AGSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
1591N/A
1591N/AROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
64N/AOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
64N/ASRCS = $(OBJS:.o=.c)
64N/ARSRC = $(ROBJS:.o=.c)
5072N/ARSRC += gssd.h
64N/A
3993N/ACLOBBERFILES += $(TESTPROG)
3993N/A
3993N/Ainclude ../../Makefile.cmd
3993N/A
4339N/AROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
4339N/A
4339N/ATEXT_DOMAIN = SUNW_OST_NETRPC
4339N/APOFILE = $(PROG).po
4339N/APOFILES = generic.po
3993N/A
3993N/A#
3993N/A# Override $ROOTLIB
3993N/A#
3993N/AROOTLIB= $(ROOT)/usr/lib/gss
3993N/A
3993N/ADIRS= $(ROOTLIB)
3993N/A
3993N/ACPPFLAGS += -I$(SRC)/uts/common/gssapi/include
3993N/ACOPTFLAG += $(XESS) #-I$(KINCDIR)
4339N/A
4339N/ALDLIBS += -lgss -lnsl
4339N/A
3993N/Agssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
3993N/Agssd := LDFLAGS += $(MAPFILES:%=-M%)
3993N/A
1591N/A$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
64N/A
64N/A.KEEP_STATE:
3477N/A
3477N/Aall: $(PROG) $(TESTPROG)
1591N/A
64N/A$(ROOTLIB):
1591N/A $(INS.dir)
181N/A
1591N/A$(ROOTLIB)/%: %
64N/A $(INS.file)
4339N/A
4339N/Agssd: $(GSSDOBJS) $$(MAPFILES)
4337N/A $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
64N/A $(POST_PROCESS)
3817N/A
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.
# NOTE WELL: There is code in gssd that assumes gssd is NOT
# multi-threaded. Do NOT add -A to the rpcgen argument list in the
# Makefile unless you also remove this assumption.
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: