Makefile revision 844
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# CDDL HEADER START
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
21f450f4fd5fd60f951de44878aae015ed0342e3Adam Moore# The contents of this file are subject to the terms of the
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# Common Development and Distribution License (the "License").
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# You may not use this file except in compliance with the License.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# or http://www.opensolaris.org/os/licensing.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# See the License for the specific language governing permissions
4f2de35716c5df46152747980516af484d0ab208Adam Moore# and limitations under the License.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
02fc09f797e83e80199c96adc4751c230dccc973Adam Moore# When distributing Covered Code, include this CDDL HEADER in each
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# If applicable, add the following below this CDDL HEADER, with the
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# fields enclosed by brackets "[]" replaced with your own identifying
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Moore# information: Portions Copyright [yyyy] [name of copyright owner]
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore#
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore# CDDL HEADER END
c4f19796d319a7ec9a1e76d48adc82c9c5ae2f27Adam Moore#
08e054017132cdd838955bc0af15889f1f2a7b42Adam Moore
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore#
0dca577a07715960da42d47787eecc25b285182fAdam Moore# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
b46f3d670b654847b0ce60afdba1b461c492a5c9Adam Moore#
08e054017132cdd838955bc0af15889f1f2a7b42Adam Moore
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam Mooreinclude ../../make-rules/shared-macros.mk
f647f9c7909e84a0b19f09de42ce82a715e2d52aAdam Moore
0771d781138a507b3e657573703f511291640bf3Adam MooreCOMPONENT_NAME= nmap
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam MooreCOMPONENT_VERSION= 5.51
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam MooreCOMPONENT_PROJECT_URL= http://insecure.org/
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam MooreCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
52671ce4f644d565b2acd71a8ce4f6d20829a67cAdam MooreCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
0771d781138a507b3e657573703f511291640bf3Adam MooreCOMPONENT_ARCHIVE_HASH= \
0dca577a07715960da42d47787eecc25b285182fAdam Moore sha256:d44cd28fc087a98056234ac56fc187b6742daa5c20f56bc4d524548042f4b25e
0dca577a07715960da42d47787eecc25b285182fAdam MooreCOMPONENT_ARCHIVE_URL= http://nmap.org/dist/$(COMPONENT_ARCHIVE)
0771d781138a507b3e657573703f511291640bf3Adam Moore
0771d781138a507b3e657573703f511291640bf3Adam Mooreinclude ../../make-rules/prep.mk
0771d781138a507b3e657573703f511291640bf3Adam Mooreinclude ../../make-rules/configure.mk
0771d781138a507b3e657573703f511291640bf3Adam Mooreinclude ../../make-rules/ips.mk
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore
9c42541e375e7bb70c53012b3012d70f1a380254Adam MooreCOMPILER = gcc
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore
0771d781138a507b3e657573703f511291640bf3Adam MooreCOMPONENT_PRE_CONFIGURE_ACTION = \
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore ($(CLONEY) $(SOURCE_DIR) $(@D))
9c42541e375e7bb70c53012b3012d70f1a380254Adam Moore
02fc09f797e83e80199c96adc4751c230dccc973Adam MooreCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += CXX="$(CXX)"
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam MooreCONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCONFIGURE_OPTIONS += LIBS="-lsocket -lnsl"
8aa0880cd494c951e0f4aa7d82d8bdac7692c7d0Adam MooreCONFIGURE_OPTIONS += PYTHON="$(PYTHON)"
abdfe7cf11d34f89f17b26e4779bf6079d22a910Adam MooreCONFIGURE_OPTIONS += --disable-shared
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --enable-static
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --disable-libtool-lock
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --localstatedir=/var
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --without-localdirs
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --with-zenmap
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --with-openssl
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --with-libpcap
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += --with-libpcre
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam MooreCONFIGURE_OPTIONS += --with-liblua
fb49666327c2cb6ea5a7d2dea5160b649bc07c51Adam MooreCONFIGURE_OPTIONS += --with-ncat
2690c090ce850e485d15cf691f59e8aaeb3b4bb1Adam MooreCONFIGURE_OPTIONS += --with-ndiff
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreCONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_LIB)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
21f450f4fd5fd60f951de44878aae015ed0342e3Adam Moore# common targets
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moorebuild: $(BUILD_32)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinstall: $(INSTALL_32)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooretest: $(NO_TESTS)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam MooreBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore
80d2034f65b9348e5fd36291f03b0819181efb89Adam Mooreinclude ../../make-rules/depend.mk
80d2034f65b9348e5fd36291f03b0819181efb89Adam Moore