Makefile revision 371
824N/A
824N/A# CDDL HEADER START
824N/A#
824N/A# The contents of this file are subject to the terms of the
943N/A# Common Development and Distribution License (the "License").
824N/A# You may not use this file except in compliance with the License.
824N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
919N/A#
824N/A
824N/Ainclude ../../make-rules/shared-macros.mk
824N/A
824N/ACOMPONENT_NAME= nmap
824N/ACOMPONENT_VERSION= 5.21
824N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
824N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
824N/ACOMPONENT_ARCHIVE_HASH= sha1:ce212ce765f842b16059456cf0c9d9cfbbce25d6
824N/ACOMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE)
824N/A
824N/Ainclude ../../make-rules/prep.mk
824N/Ainclude ../../make-rules/configure.mk
824N/Ainclude ../../make-rules/ips.mk
824N/A
824N/ACOMPILER = gcc
824N/A
824N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
824N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
824N/A
824N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
824N/ACONFIGURE_OPTIONS += CXX="$(CXX)"
824N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
824N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
824N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
824N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
824N/ACONFIGURE_OPTIONS += --disable-shared
824N/ACONFIGURE_OPTIONS += --enable-static
824N/ACONFIGURE_OPTIONS += --disable-libtool-lock
824N/ACONFIGURE_OPTIONS += --localstatedir=/var
851N/ACONFIGURE_OPTIONS += --without-localdirs
851N/ACONFIGURE_OPTIONS += --with-zenmap
833N/ACONFIGURE_OPTIONS += --with-openssl
824N/ACONFIGURE_OPTIONS += --with-libpcap
824N/ACONFIGURE_OPTIONS += --with-libpcre
CONFIGURE_OPTIONS += --with-liblua
CONFIGURE_OPTIONS += --with-ncat
CONFIGURE_OPTIONS += --with-ndiff
CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk