e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# CDDL HEADER START
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# The contents of this file are subject to the terms of the
e3320f40ba20e6851e73a3237eedf089700bf001markfen# Common Development and Distribution License (the "License").
e3320f40ba20e6851e73a3237eedf089700bf001markfen# You may not use this file except in compliance with the License.
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e3320f40ba20e6851e73a3237eedf089700bf001markfen# or http://www.opensolaris.org/os/licensing.
e3320f40ba20e6851e73a3237eedf089700bf001markfen# See the License for the specific language governing permissions
e3320f40ba20e6851e73a3237eedf089700bf001markfen# and limitations under the License.
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# When distributing Covered Code, include this CDDL HEADER in each
e3320f40ba20e6851e73a3237eedf089700bf001markfen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e3320f40ba20e6851e73a3237eedf089700bf001markfen# If applicable, add the following below this CDDL HEADER, with the
e3320f40ba20e6851e73a3237eedf089700bf001markfen# fields enclosed by brackets "[]" replaced with your own identifying
e3320f40ba20e6851e73a3237eedf089700bf001markfen# information: Portions Copyright [yyyy] [name of copyright owner]
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# CDDL HEADER END
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
3afe87ebb25691cb6d158edaa34a6fb9b703a691Roger A. Faulkner# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
e3320f40ba20e6851e73a3237eedf089700bf001markfen# Use is subject to license terms.
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenPROG= ikeadm ipsecalgs ipsecconf ipseckey ikecert
e3320f40ba20e6851e73a3237eedf089700bf001markfenSOCKETPROG= ipsecalgs ipsecconf ipseckey
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill SommerfeldTSOLPROG= ipseckey
e3320f40ba20e6851e73a3237eedf089700bf001markfenSRCS= ikeadm.c ipsecalgs.c ipsecconf.c ipseckey.c
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfeninclude ../../../Makefile.cmd
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenMANIFEST= ipsecalgs.xml policy.xml manual-key.xml
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenROOTMANIFESTDIR= $(ROOTSVCNETWORKIPSEC)
e3320f40ba20e6851e73a3237eedf089700bf001markfen$(ROOTMANIFEST) := FILEMODE= 444
e3320f40ba20e6851e73a3237eedf089700bf001markfeninclude ../../Makefile.cmd-inet
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c)
e3320f40ba20e6851e73a3237eedf089700bf001markfenSRCS+= $(COMMONSRCS)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# Message catalog
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfenPOFILES= ikeadm.po ipsecalgs.po ipsecconf.po ipseckey.po
e3320f40ba20e6851e73a3237eedf089700bf001markfenPOFILE= ipsecutils.po
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenall:= TARGET= all
e3320f40ba20e6851e73a3237eedf089700bf001markfeninstall:= TARGET= install
e3320f40ba20e6851e73a3237eedf089700bf001markfenclean:= TARGET= clean
e3320f40ba20e6851e73a3237eedf089700bf001markfenclobber:= TARGET= clobber
e3320f40ba20e6851e73a3237eedf089700bf001markfenlint:= TARGET= lint
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenCLOBBERFILES += $(PROG) $(POFILES)
e3320f40ba20e6851e73a3237eedf089700bf001markfenCLEANFILES += $(PROG) $(POFILES)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I.
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenCFLAGS += $(XSTRCONST)
e3320f40ba20e6851e73a3237eedf089700bf001markfenLDLIBS += -lipsecutil -lnsl
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill Sommerfeld
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill SommerfeldLAZYLIBS = $(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill Sommerfeldlint := LAZYLIBS = -ltsol
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill Sommerfeld
5d3b8cb7141cfa596d20cdc5043b8a6df635938dBill Sommerfeld$(TSOLPROG) := LDLIBS += $(LAZYLIBS)
e3320f40ba20e6851e73a3237eedf089700bf001markfen$(SOCKETPROG) := LDLIBS += -lsocket
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen.KEEP_STATE:
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen.PARALLEL:
e3320f40ba20e6851e73a3237eedf089700bf001markfen
3afe87ebb25691cb6d158edaa34a6fb9b703a691Roger A. Faulkner.NO_PARALLEL: $(CHKMANIFEST)
3afe87ebb25691cb6d158edaa34a6fb9b703a691Roger A. Faulkner
e3320f40ba20e6851e73a3237eedf089700bf001markfenall: $(PROG)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen# message catalog
e3320f40ba20e6851e73a3237eedf089700bf001markfen#
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen$(POFILE): $(POFILES)
e3320f40ba20e6851e73a3237eedf089700bf001markfen $(RM) $@
e3320f40ba20e6851e73a3237eedf089700bf001markfen cat $(POFILES) >> $@
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen$(COMMONOBJS): $(COMMONSRCS)
e3320f40ba20e6851e73a3237eedf089700bf001markfen $(COMPILE.c) $(COMMONSRCS)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen$(ROOTUSRSBINLINKS):
e3320f40ba20e6851e73a3237eedf089700bf001markfen -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfeninstall: $(PROG) $(ROOTFS_PROG) .WAIT $(ROOTUSRSBINPROG) \
e3320f40ba20e6851e73a3237eedf089700bf001markfen $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenlint:
e3320f40ba20e6851e73a3237eedf089700bf001markfen $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
e3320f40ba20e6851e73a3237eedf089700bf001markfen -erroff=E_NAME_MULTIPLY_DEF2 $(SRCS) $(LDLIBS)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfencheck: $(CHKMANIFEST)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfenclean:
e3320f40ba20e6851e73a3237eedf089700bf001markfen -$(RM) $(CLEANFILES)
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfen
e3320f40ba20e6851e73a3237eedf089700bf001markfeninclude ../../../Makefile.targ
e3320f40ba20e6851e73a3237eedf089700bf001markfen