Makefile revision 1273
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# CDDL HEADER START
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# The contents of this file are subject to the terms of the
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Common Development and Distribution License (the "License").
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# You may not use this file except in compliance with the License.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# or http://www.opensolaris.org/os/licensing.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# See the License for the specific language governing permissions
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# and limitations under the License.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# When distributing Covered Code, include this CDDL HEADER in each
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# CDDL HEADER END
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff#
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../../make-rules/shared-macros.mk
a55d0a9080c8ef4117d2fc27f63220a56afb2434Andreas Gustafsson
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_NAME= libnet
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_VERSION= 1.1.5
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/libnet-dev/
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_ARCHIVE_HASH= \
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff sha256:75588f8d1232e1df34eccf2dba5e66be197b345a07fae80d8275db994496a20d
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_ARCHIVE_URL= http://cdnetworks-us-2.dl.sourceforge.net/project/libnet-dev/$(COMPONENT_ARCHIVE)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_BUGDB= library/libnet
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../../make-rules/prep.mk
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../../make-rules/configure.mk
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../../make-rules/ips.mk
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPONENT_PRE_CONFIGURE_ACTION = \
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff ($(CLONEY) $(SOURCE_DIR) $(@D))
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffPKG_PROTO_DIRS += $(COMPONENT_SRC)/doc/man/man3
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCOMPILER= gcc
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCFLAGS += -g -fPIC
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffCONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff# common targets
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffbuild: $(BUILD_32_and_64)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinstall: $(INSTALL_32_and_64)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Grafftest: $(NO_TESTS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael GraffBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graffinclude ../../make-rules/depend.mk
5a0ffa97751ef1ff29d1bf9d7f332eeb9f8edc21Michael Graff