components/libdnet/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 4762 4d5e4d2893b8
child 6552 402379bc1b60
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    21
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    23
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    25
BUILD_BITS= 64_and_32
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    28
PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    29
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_NAME=		libdnet
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_VERSION=	1.12
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
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
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
    sha256:83b33039787cf99990e977cef7f18a5d5e7aaffc4505548a83d31bd3515eb026
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
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
    37
COMPONENT_BUGDB=	library/libdnet 
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1191
diff changeset
    39
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
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    41
TEST_TARGET= install $(TEST_32_and_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    42
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    43
include $(WS_MAKE_RULES)/common.mk
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    44
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    45
# Fix 64-bit linking done via compiler.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    46
LDFLAGS += $(CC_BITS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4762
diff changeset
    47
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
1043
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# Needed to generate libraries with a .so extension.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
COMPONENT_PREP_ACTION = \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
	(cd $(@D) ; libtoolize --automake --copy ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
		aclocal -I config ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
		autoheader ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
		automake --add-missing --copy ; \
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
		autoconf)
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
# Remove Linux specific functionality.
585b09419d1c PSARC 2012/202 libdnet 1.12
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
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
    59
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    60
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
    61
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    62
# Currently only support for Python 2.7.
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    63
CONFIGURE_OPTIONS +=	--with-python
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    64
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    65
PKG_MACROS +=		MACHINE=$(shell uname -m)
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    66
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    67
# 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
    68
# 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
    69
# 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
    70
# 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
    71
# 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
    72
# 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
    73
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
    74
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    75
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
    76
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
    77
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
    78
4762
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    79
COMPONENT_TEST_TRANSFORMS += \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    80
	'-n ' \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    81
	'-e "/TOTAL/p" ' \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    82
	'-e "/SKIP/p" ' \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    83
	'-e "/PASS/p" ' \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    84
	'-e "/FAIL/p" ' \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    85
	'-e "/ERROR/p" '
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    86
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    87
# Needed to build the test programs.
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    88
COMPONENT_PRE_SYSTEM_TEST_ACTION += \
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    89
	(cd $(@D)/src ; $(GMAKE) libdnet.la )
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    90
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    91
COMPONENT_SYSTEM_TEST_DIR =	$(@D)/test/check
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    92
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    93
# Get correct libdnet.so.1 from the proto area.
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    94
TEST_LIBPATH.32 =	$(PROTOUSRLIBDIR)
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    95
TEST_LIBPATH.64 =	$(PROTOUSRLIBDIR64)
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    96
COMPONENT_TEST_ENV +=	LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
4d5e4d2893b8 21606619 Yet even more Userland components should hook up their system tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4342
diff changeset
    97
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    98
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
    99
4291
402cc6853ea3 19866378 Can enable gmake check in libdnet when check is checked in
Rich Burridge <rich.burridge@oracle.com>
parents: 3817
diff changeset
   100
REQUIRED_PACKAGES += developer/test/check
4342
ede611c77414 21105889 build python dnet module
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   101
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
   102
REQUIRED_PACKAGES += shell/ksh93