14235Smarkfen# 24235Smarkfen# CDDL HEADER START 34235Smarkfen# 44235Smarkfen# The contents of this file are subject to the terms of the 54235Smarkfen# Common Development and Distribution License (the "License"). 64235Smarkfen# You may not use this file except in compliance with the License. 74235Smarkfen# 84235Smarkfen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94235Smarkfen# or http://www.opensolaris.org/os/licensing. 104235Smarkfen# See the License for the specific language governing permissions 114235Smarkfen# and limitations under the License. 124235Smarkfen# 134235Smarkfen# When distributing Covered Code, include this CDDL HEADER in each 144235Smarkfen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154235Smarkfen# If applicable, add the following below this CDDL HEADER, with the 164235Smarkfen# fields enclosed by brackets "[]" replaced with your own identifying 174235Smarkfen# information: Portions Copyright [yyyy] [name of copyright owner] 184235Smarkfen# 194235Smarkfen# CDDL HEADER END 204235Smarkfen# 214235Smarkfen# 228613SRoger.Faulkner@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 234235Smarkfen# Use is subject to license terms. 244235Smarkfen# 254235Smarkfen 264235SmarkfenPROG= ikeadm ipsecalgs ipsecconf ipseckey ikecert 274235SmarkfenSOCKETPROG= ipsecalgs ipsecconf ipseckey 28*10934Ssommerfeld@sun.comTSOLPROG= ipseckey 294235SmarkfenSRCS= ikeadm.c ipsecalgs.c ipsecconf.c ipseckey.c 304235Smarkfen 314235Smarkfeninclude ../../../Makefile.cmd 324235Smarkfen 334235SmarkfenMANIFEST= ipsecalgs.xml policy.xml manual-key.xml 344235Smarkfen 354235SmarkfenROOTMANIFESTDIR= $(ROOTSVCNETWORKIPSEC) 364235Smarkfen$(ROOTMANIFEST) := FILEMODE= 444 374235Smarkfeninclude ../../Makefile.cmd-inet 384235Smarkfen 394235SmarkfenCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c) 404235SmarkfenSRCS+= $(COMMONSRCS) 414235Smarkfen 424235Smarkfen# 434235Smarkfen# Message catalog 444235Smarkfen# 454235SmarkfenPOFILES= ikeadm.po ipsecalgs.po ipsecconf.po ipseckey.po 464235SmarkfenPOFILE= ipsecutils.po 474235Smarkfen 484235Smarkfenall:= TARGET= all 494235Smarkfeninstall:= TARGET= install 504235Smarkfenclean:= TARGET= clean 514235Smarkfenclobber:= TARGET= clobber 524235Smarkfenlint:= TARGET= lint 534235Smarkfen 544235SmarkfenCLOBBERFILES += $(PROG) $(POFILES) 554235SmarkfenCLEANFILES += $(PROG) $(POFILES) 564235Smarkfen 574235SmarkfenCPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I. 584235Smarkfen 594235SmarkfenCFLAGS += $(XSTRCONST) 604235SmarkfenLDLIBS += -lipsecutil -lnsl 61*10934Ssommerfeld@sun.com 62*10934Ssommerfeld@sun.comLAZYLIBS = $(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD) 63*10934Ssommerfeld@sun.comlint := LAZYLIBS = -ltsol 64*10934Ssommerfeld@sun.com 65*10934Ssommerfeld@sun.com$(TSOLPROG) := LDLIBS += $(LAZYLIBS) 664235Smarkfen$(SOCKETPROG) := LDLIBS += -lsocket 674235Smarkfen 684235Smarkfen.KEEP_STATE: 694235Smarkfen 704235Smarkfen.PARALLEL: 714235Smarkfen 728613SRoger.Faulkner@Sun.COM.NO_PARALLEL: $(CHKMANIFEST) 738613SRoger.Faulkner@Sun.COM 744235Smarkfenall: $(PROG) 754235Smarkfen 764235Smarkfen# 774235Smarkfen# message catalog 784235Smarkfen# 794235Smarkfen 804235Smarkfen$(POFILE): $(POFILES) 814235Smarkfen $(RM) $@ 824235Smarkfen cat $(POFILES) >> $@ 834235Smarkfen 844235Smarkfen$(COMMONOBJS): $(COMMONSRCS) 854235Smarkfen $(COMPILE.c) $(COMMONSRCS) 864235Smarkfen 874235Smarkfen$(ROOTUSRSBINLINKS): 884235Smarkfen -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@ 894235Smarkfen 904235Smarkfeninstall: $(PROG) $(ROOTFS_PROG) .WAIT $(ROOTUSRSBINPROG) \ 914235Smarkfen $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST) 924235Smarkfen 934235Smarkfenlint: 944235Smarkfen $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \ 954235Smarkfen -erroff=E_NAME_MULTIPLY_DEF2 $(SRCS) $(LDLIBS) 964235Smarkfen 974235Smarkfencheck: $(CHKMANIFEST) 984235Smarkfen 994235Smarkfenclean: 1004235Smarkfen -$(RM) $(CLEANFILES) 1014235Smarkfen 1024235Smarkfen 1034235Smarkfeninclude ../../../Makefile.targ 1044235Smarkfen 105