Makefile revision 5d3b8cb7141cfa596d20cdc5043b8a6df635938d
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A
2N/APROG= ikeadm ipsecalgs ipsecconf ipseckey ikecert
2N/ASOCKETPROG= ipsecalgs ipsecconf ipseckey
2N/ATSOLPROG= ipseckey
2N/ASRCS= ikeadm.c ipsecalgs.c ipsecconf.c ipseckey.c
2N/A
2N/Ainclude ../../../Makefile.cmd
2N/A
2N/AMANIFEST= ipsecalgs.xml policy.xml manual-key.xml
2N/A
2N/AROOTMANIFESTDIR= $(ROOTSVCNETWORKIPSEC)
2N/A$(ROOTMANIFEST) := FILEMODE= 444
2N/Ainclude ../../Makefile.cmd-inet
2N/A
2N/ACOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c)
2N/ASRCS+= $(COMMONSRCS)
2N/A
2N/A#
2N/A# Message catalog
2N/A#
2N/APOFILES= ikeadm.po ipsecalgs.po ipsecconf.po ipseckey.po
2N/APOFILE= ipsecutils.po
2N/A
2N/Aall:= TARGET= all
2N/Ainstall:= TARGET= install
2N/Aclean:= TARGET= clean
2N/Aclobber:= TARGET= clobber
2N/Alint:= TARGET= lint
2N/A
2N/ACLOBBERFILES += $(PROG) $(POFILES)
2N/ACLEANFILES += $(PROG) $(POFILES)
2N/A
2N/ACPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I.
2N/A
2N/ACFLAGS += $(XSTRCONST)
2N/ALDLIBS += -lipsecutil -lnsl
2N/A
2N/ALAZYLIBS = $(ZLAZYLOAD) -ltsol $(ZNOLAZYLOAD)
2N/Alint := LAZYLIBS = -ltsol
2N/A
2N/A$(TSOLPROG) := LDLIBS += $(LAZYLIBS)
2N/A$(SOCKETPROG) := LDLIBS += -lsocket
2N/A
2N/A.KEEP_STATE:
2N/A
2N/A.PARALLEL:
2N/A
2N/A.NO_PARALLEL: $(CHKMANIFEST)
2N/A
2N/Aall: $(PROG)
2N/A
2N/A#
2N/A# message catalog
2N/A#
2N/A
2N/A$(POFILE): $(POFILES)
2N/A $(RM) $@
2N/A cat $(POFILES) >> $@
2N/A
2N/A$(COMMONOBJS): $(COMMONSRCS)
2N/A $(COMPILE.c) $(COMMONSRCS)
$(ROOTUSRSBINLINKS):
-$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
install: $(PROG) $(ROOTFS_PROG) .WAIT $(ROOTUSRSBINPROG) \
$(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST)
lint:
$(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
-erroff=E_NAME_MULTIPLY_DEF2 $(SRCS) $(LDLIBS)
check: $(CHKMANIFEST)
clean:
-$(RM) $(CLEANFILES)
include ../../../Makefile.targ