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