Makefile revision 614
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington
9eb24f1f84885d5c2e51a7f675264db398c31af7Tinderbox User# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington#
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
53f0234c3e3a845245042affb1f20a189d8791b9Automatic Updater# or http://www.opensolaris.org/os/licensing.
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# See the License for the specific language governing permissions
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# and limitations under the License.
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews#
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews# CDDL HEADER END
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews#
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington#
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
9c4cba349f52bb8176c3858b2b5b340f13603802Brian Wellington#
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
5b7abbef511cea0b568be0bc8d5b3120a0b9034dEvan Huntinclude ../../make-rules/shared-macros.mk
976f44baa3028118a4175a21536e68049e1d3766David Lawrence
9c4cba349f52bb8176c3858b2b5b340f13603802Brian WellingtonCOMPONENT_NAME= nmap
9c4cba349f52bb8176c3858b2b5b340f13603802Brian WellingtonCOMPONENT_VERSION= 5.51
9c4cba349f52bb8176c3858b2b5b340f13603802Brian WellingtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
dbb012765c735ee0d82dedb116cdc7cf18957814Evan HuntCOMPONENT_ARCHIVE_HASH= sha1:bad24e4d332b293d08d8ce38583fefa176e9198d
dbb012765c735ee0d82dedb116cdc7cf18957814Evan HuntCOMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Huntinclude ../../make-rules/prep.mk
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupontinclude ../../make-rules/configure.mk
22bed621ef87bc8b6c1fea599b02c4b38dd6bf48Mark Andrewsinclude ../../make-rules/ips.mk
76af83c9adb772f7b045c62cf8b411165bfaa5efMark Andrews
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCOMPILER = gcc
76af83c9adb772f7b045c62cf8b411165bfaa5efMark Andrews
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCOMPONENT_PRE_CONFIGURE_ACTION = \
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont ($(CLONEY) $(SOURCE_DIR) $(@D))
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += CXX="$(CXX)"
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --disable-shared
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --enable-static
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --disable-libtool-lock
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --localstatedir=/var
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += --without-localdirs
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += --with-zenmap
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += --with-openssl
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsCONFIGURE_OPTIONS += --with-libpcap
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --with-libpcre
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --with-liblua
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --with-ncat
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += --with-ndiff
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis DupontCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB)
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
76af83c9adb772f7b045c62cf8b411165bfaa5efMark Andrews# common targets
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupontbuild: $(BUILD_32)
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupontinstall: $(INSTALL_32)
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
76af83c9adb772f7b045c62cf8b411165bfaa5efMark Andrewstest: $(NO_TESTS)
76af83c9adb772f7b045c62cf8b411165bfaa5efMark Andrews
76af83c9adb772f7b045c62cf8b411165bfaa5efMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupont
c1d7e0562f6a72ecc07ab5140cf2b88183adbd08Francis Dupontinclude ../../make-rules/depend.mk
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews