Makefile revision 24da5b34f49324ed742a340010ed5bd3d4e06625
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# CDDL HEADER START
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License (the "License").
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# ident "%Z%%M% %I% %E% SMI"
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTESTPROG = kwarndtest
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPROG= ktkt_warnd
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMANIFEST= ktkt_warn.xml
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinKWARNDOBJS = kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinKWARNCOBJS = kwarndtest.o kwarnd_clnt.o \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein kwarnd_clnt_stubs.o kwarnd_handle.o
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinG_OBJS = kwarnd_xdr.o
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews
938440694b33cd752e9e4b71a526368b4811c177Tinderbox UserOBJS = $(KWARNDOBJS) $(KWARNCOBJS) $(G_OBJS)
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox UserSRCS = $(OBJS:.o=.c)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinRSRC = kwarnd.h kwarnd_clnt.c kwarnd_svc.c kwarnd_xdr.c
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCLOBBERFILES += $(TESTPROG)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../Makefile.cmd
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrewsinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPOFILE = $(PROG).po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPOFILES = generic.po
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOPTFLAG += $(XESS) #-I$(KINCDIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -D_REENTRANT
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -I$(SRC)/lib/gss_mechs/mech_krb5 \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -I$(SRC)/lib/gss_mechs/mech_krb5/include \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein -I$(SRC)/uts/common/gssapi/mechs/krb5/include
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonktkt_warnd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinktkt_warnd := LDFLAGS += $(KRUNPATH) $(MAPFILES:%=-M%)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLDFLAGS += $(KRUNPATH)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLDLIBS += $(KMECHLIB) -lnsl
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson.KEEP_STATE:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinall: $(PROG) $(TESTPROG)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(PROG): $(G_OBJS) $(KWARNDOBJS) $$(MAPFILES)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(LINK.c) $(KWARNDOBJS) $(G_OBJS) -o $@ $(LDLIBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(POST_PROCESS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(TESTPROG): $(G_OBJS) $(KWARNCOBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LINK.c) $(KWARNCOBJS) $(G_OBJS) -o $@ $(LDLIBS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(POST_PROCESS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Rules to generate derived rpcgen files from kwarnd.x spec file.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinkwarnd.h: kwarnd.x
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RPCGEN) -M -h kwarnd.x > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinkwarnd_clnt.c: kwarnd.x
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(RPCGEN) -M -l kwarnd.x > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinkwarnd_svc.c: kwarnd.x
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RPCGEN) -M -m kwarnd.x > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinkwarnd_xdr.c: kwarnd.x
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RPCGEN) -M -c kwarnd.x > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(OBJS): kwarnd.h
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# note that nightly depends on having all of the derived
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# .c files built here on 'make install', even though this
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# module doesn't use all of those files.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(KRB5LIBPROG) $(RSRC) $(ROOTMANIFEST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeincheck: $(CHKMANIFEST)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $(OBJS) $(RSRC)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint: lint_SRCS
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../../Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#additional dependencies
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(LIBRARY) : $(OBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(DYNLIB) : $(PICS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinFRC:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(CAT) $(POFILES) > $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeingeneric.po: FRC
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(RM) messages.po
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
86b0285d7e65601645db4090d62ee6cb63abad6cAndreas Gustafsson $(SED) "/^domain/d" messages.po > $@
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(RM) messages.po
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt