1*e3320f40Smarkfen# 2*e3320f40Smarkfen# CDDL HEADER START 3*e3320f40Smarkfen# 4*e3320f40Smarkfen# The contents of this file are subject to the terms of the 5*e3320f40Smarkfen# Common Development and Distribution License (the "License"). 6*e3320f40Smarkfen# You may not use this file except in compliance with the License. 7*e3320f40Smarkfen# 8*e3320f40Smarkfen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*e3320f40Smarkfen# or http://www.opensolaris.org/os/licensing. 10*e3320f40Smarkfen# See the License for the specific language governing permissions 11*e3320f40Smarkfen# and limitations under the License. 12*e3320f40Smarkfen# 13*e3320f40Smarkfen# When distributing Covered Code, include this CDDL HEADER in each 14*e3320f40Smarkfen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*e3320f40Smarkfen# If applicable, add the following below this CDDL HEADER, with the 16*e3320f40Smarkfen# fields enclosed by brackets "[]" replaced with your own identifying 17*e3320f40Smarkfen# information: Portions Copyright [yyyy] [name of copyright owner] 18*e3320f40Smarkfen# 19*e3320f40Smarkfen# CDDL HEADER END 20*e3320f40Smarkfen 21*e3320f40Smarkfen 22*e3320f40Smarkfen# 23*e3320f40Smarkfen# 24*e3320f40Smarkfen# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25*e3320f40Smarkfen# Use is subject to license terms. 26*e3320f40Smarkfen# 27*e3320f40Smarkfen# ident "%Z%%M% %I% %E% SMI" 28*e3320f40Smarkfen# 29*e3320f40Smarkfen 30*e3320f40SmarkfenPROG= ikeadm ipsecalgs ipsecconf ipseckey ikecert 31*e3320f40SmarkfenSOCKETPROG= ipsecalgs ipsecconf ipseckey 32*e3320f40SmarkfenSRCS= ikeadm.c ipsecalgs.c ipsecconf.c ipseckey.c 33*e3320f40Smarkfen 34*e3320f40Smarkfeninclude ../../../Makefile.cmd 35*e3320f40Smarkfen 36*e3320f40SmarkfenMANIFEST= ipsecalgs.xml policy.xml manual-key.xml 37*e3320f40Smarkfen 38*e3320f40SmarkfenROOTMANIFESTDIR= $(ROOTSVCNETWORKIPSEC) 39*e3320f40Smarkfen$(ROOTMANIFEST) := FILEMODE= 444 40*e3320f40Smarkfeninclude ../../Makefile.cmd-inet 41*e3320f40Smarkfen 42*e3320f40SmarkfenCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c) 43*e3320f40SmarkfenSRCS+= $(COMMONSRCS) 44*e3320f40Smarkfen 45*e3320f40Smarkfen# 46*e3320f40Smarkfen# Message catalog 47*e3320f40Smarkfen# 48*e3320f40SmarkfenPOFILES= ikeadm.po ipsecalgs.po ipsecconf.po ipseckey.po 49*e3320f40SmarkfenPOFILE= ipsecutils.po 50*e3320f40Smarkfen 51*e3320f40Smarkfenall:= TARGET= all 52*e3320f40Smarkfeninstall:= TARGET= install 53*e3320f40Smarkfenclean:= TARGET= clean 54*e3320f40Smarkfenclobber:= TARGET= clobber 55*e3320f40Smarkfenlint:= TARGET= lint 56*e3320f40Smarkfen 57*e3320f40SmarkfenCLOBBERFILES += $(PROG) $(POFILES) 58*e3320f40SmarkfenCLEANFILES += $(PROG) $(POFILES) 59*e3320f40Smarkfen 60*e3320f40SmarkfenCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I. 61*e3320f40Smarkfen 62*e3320f40SmarkfenCFLAGS += $(XSTRCONST) 63*e3320f40SmarkfenLDLIBS += -lipsecutil -lnsl 64*e3320f40Smarkfen$(SOCKETPROG) := LDLIBS += -lsocket 65*e3320f40Smarkfen 66*e3320f40Smarkfen.KEEP_STATE: 67*e3320f40Smarkfen 68*e3320f40Smarkfen.PARALLEL: 69*e3320f40Smarkfen 70*e3320f40Smarkfenall: $(PROG) 71*e3320f40Smarkfen 72*e3320f40Smarkfen# 73*e3320f40Smarkfen# message catalog 74*e3320f40Smarkfen# 75*e3320f40Smarkfen 76*e3320f40Smarkfen$(POFILE): $(POFILES) 77*e3320f40Smarkfen $(RM) $@ 78*e3320f40Smarkfen cat $(POFILES) >> $@ 79*e3320f40Smarkfen 80*e3320f40Smarkfen$(COMMONOBJS): $(COMMONSRCS) 81*e3320f40Smarkfen $(COMPILE.c) $(COMMONSRCS) 82*e3320f40Smarkfen 83*e3320f40Smarkfen$(ROOTUSRSBINLINKS): 84*e3320f40Smarkfen -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@ 85*e3320f40Smarkfen 86*e3320f40Smarkfeninstall: $(PROG) $(ROOTFS_PROG) .WAIT $(ROOTUSRSBINPROG) \ 87*e3320f40Smarkfen $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST) 88*e3320f40Smarkfen 89*e3320f40Smarkfenlint: 90*e3320f40Smarkfen $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \ 91*e3320f40Smarkfen -erroff=E_NAME_MULTIPLY_DEF2 $(SRCS) $(LDLIBS) 92*e3320f40Smarkfen 93*e3320f40Smarkfencheck: $(CHKMANIFEST) 94*e3320f40Smarkfen 95*e3320f40Smarkfenclean: 96*e3320f40Smarkfen -$(RM) $(CLEANFILES) 97*e3320f40Smarkfen 98*e3320f40Smarkfen 99*e3320f40Smarkfeninclude ../../../Makefile.targ 100*e3320f40Smarkfen 101