components/libdnet/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Fri, 22 May 2015 06:02:19 -0700
changeset 4342 ede611c77414
parent 4339 6501cf9c29f9
child 4762 4d5e4d2893b8
permissions -rw-r--r--
21105889 build python dnet module
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    21
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    25
PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    26
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		libdnet
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	1.12
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_PROJECT_URL=	http://code.google.com/p/libdnet/
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
    sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://libdnet.googlecode.com/files/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1043
diff changeset
    35
COMPONENT_BUGDB=	library/libdnet 
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1191
diff changeset
    37
TPNO=			9402
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1191
diff changeset
    38
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    39
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    40
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/ips.mk
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
# Needed to generate libraries with a .so extension.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
COMPONENT_PREP_ACTION = \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
	(cd $(@D) ; libtoolize --automake --copy ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
		aclocal -I config ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
		autoheader ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
		automake --add-missing --copy ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
		autoconf)
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
# Set -m32 or -m64 correctly for 32 and 64 bit versions.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
CC +=	$(CC_BITS)
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    53
LDFLAGS += $(CC_BITS)
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
# Remove Linux specific functionality.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    58
CONFIGURE_OPTIONS +=	--with-check=/usr
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    59
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    60
# Currently only support for Python 2.7.
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    61
CONFIGURE_OPTIONS +=	--with-python
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    62
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    63
COMPONENT_BUILD_ARGS +=	CC="$(CC)"
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    64
COMPONENT_BUILD_ARGS +=	LDFLAGS="$(LDFLAGS)"
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    65
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    66
PKG_MACROS +=		MACHINE=$(shell uname -m)
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    67
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    68
# Needed for "gmake test" to work successfully.
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    69
# If SHELLOPTS is exported (as it is by the userland makefiles),
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    70
# then all shell options get exported to child invocations of bash,
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    71
# which results in test failures due to nounset and xtrace being
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    72
# set unexpectedly, and errors such as "$1: unbound variable" and
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    73
# diffs failing due to script tracing in output files.
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    74
unexport SHELLOPTS
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    75
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    76
COMPONENT_TEST_DIR =	$(@D)/test/check
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    77
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    78
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    80
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    81
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    82
configure:	$(CONFIGURE_32_and_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    83
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
build:		$(BUILD_32_and_64)
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
install:	$(INSTALL_32_and_64)
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    88
test:		$(TEST_32_and_64)
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4291
diff changeset
    90
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4291
diff changeset
    91
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    92
REQUIRED_PACKAGES += developer/test/check
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    93
REQUIRED_PACKAGES += runtime/python-27
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    94
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    95
REQUIRED_PACKAGES += system/library