Makefile revision 2899
366N/A
366N/A# CDDL HEADER START
366N/A#
366N/A# The contents of this file are subject to the terms of the
851N/A# Common Development and Distribution License (the "License").
851N/A# You may not use this file except in compliance with the License.
366N/A#
366N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
366N/A# or http://www.opensolaris.org/os/licensing.
366N/A# See the License for the specific language governing permissions
366N/A# and limitations under the License.
366N/A#
366N/A# When distributing Covered Code, include this CDDL HEADER in each
366N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
366N/A# If applicable, add the following below this CDDL HEADER, with the
366N/A# fields enclosed by brackets "[]" replaced with your own identifying
366N/A# information: Portions Copyright [yyyy] [name of copyright owner]
366N/A#
366N/A# CDDL HEADER END
366N/A#
366N/A
366N/A#
366N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
366N/A#
366N/A
366N/Ainclude ../../make-rules/shared-macros.mk
366N/A
366N/ACOMPONENT_NAME= nmap
366N/ACOMPONENT_VERSION= 6.25
366N/ACOMPONENT_PROJECT_URL= http://nmap.org/
366N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
366N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
851N/ACOMPONENT_ARCHIVE_HASH= \
366N/A sha256:42c54fd5cc5f05e5df909757d62307102a8ff1dfaf5c2626b1cb5f2ecd009e57
366N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
366N/ACOMPONENT_BUGDB= utility/nmap
493N/A
366N/ATPNO= 9217
366N/A
851N/Ainclude ../../make-rules/prep.mk
366N/Ainclude ../../make-rules/configure.mk
366N/Ainclude ../../make-rules/ips.mk
366N/A
851N/A# Can't use the Studio compilers as they don't support the GNU
851N/A# __attribute__ extension
366N/ACOMPILER = gcc
366N/A
366N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
366N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
366N/A
366N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
366N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
366N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
366N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
493N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -m64"
366N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
366N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
366N/ACONFIGURE_OPTIONS += --srcdir=$(BUILD_DIR_64)
366N/ACONFIGURE_OPTIONS += --localstatedir=/var
366N/ACONFIGURE_OPTIONS += --without-localdirs
366N/ACONFIGURE_OPTIONS += --with-zenmap
493N/ACONFIGURE_OPTIONS += --with-openssl
366N/ACONFIGURE_OPTIONS += --with-libpcap
366N/ACONFIGURE_OPTIONS += --with-libpcre
366N/ACONFIGURE_OPTIONS += --with-liblua
493N/ACONFIGURE_OPTIONS += --with-ncat
366N/ACONFIGURE_OPTIONS += --with-ndiff
366N/A
493N/A# pkgdepend doesn't like the first line of a Python script to be:
493N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
493N/ACOMPONENT_POST_INSTALL_ACTION += \
493N/A $(GSED) -i -e 's?env python?python2.6?' \
366N/A $(PROTOUSRBINDIR)/uninstall_zenmap
851N/A
366N/AASLR_MODE = $(ASLR_ENABLE)
366N/A
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk