Makefile revision 178
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#
146N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
146N/A#
146N/A
146N/Ainclude ../../make-rules/shared-macros.mk
146N/A
146N/ACOMPONENT_NAME= nmap
146N/ACOMPONENT_VERSION= 5.21
146N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
146N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
146N/ACOMPONENT_ARCHIVE_HASH= sha1:ce212ce765f842b16059456cf0c9d9cfbbce25d6
146N/ACOMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE)
146N/A
146N/Ainclude ../../make-rules/prep.mk
146N/Ainclude ../../make-rules/configure.mk
146N/Ainclude ../../make-rules/ips.mk
146N/A
146N/ACOMPILER = gcc
146N/A
146N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
146N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
146N/A
146N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
146N/ACONFIGURE_OPTIONS += CXX="$(CCC)"
146N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CCFLAGS)"
146N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
146N/ACONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
146N/ACONFIGURE_OPTIONS += PYTHON="$(PYTHON.32)"
146N/ACONFIGURE_OPTIONS += --disable-shared
146N/ACONFIGURE_OPTIONS += --enable-static
146N/ACONFIGURE_OPTIONS += --disable-libtool-lock
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
146N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB)
146N/A
146N/Ainclude ../../make-rules/shared-targets.mk
146N/A
146N/A# common targets
146N/Abuild: $(BUILD_32)
146N/A
146N/Ainstall: $(INSTALL_32)
146N/A sed -f oracleman-stability $(COMPONENT_SRC)/docs/nmap.1 \
146N/A > $(PROTOUSRSHAREMAN1DIR)/nmap.1
146N/A sed -f oracleman-stability $(COMPONENT_SRC)/docs/zenmap.1 \
146N/A > $(PROTOUSRSHAREMAN1DIR)/zenmap.1
146N/A sed -f oracleman-stability $(COMPONENT_SRC)/ncat/docs/ncat.1 \
146N/A > $(PROTOUSRSHAREMAN1DIR)/ncat.1
146N/A sed -f oracleman-stability $(COMPONENT_SRC)/ndiff/docs/ndiff.1 \
146N/A > $(PROTOUSRSHAREMAN1DIR)/ndiff.1
146N/A
146N/Atest:
146N/A @echo "no tests available"
146N/A
146N/A
146N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
146N/A
146N/Ainclude ../../make-rules/depend.mk