components/dnsmasq/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 08 Oct 2015 23:00:32 -0700
changeset 4929 29020dc0c404
parent 4339 6501cf9c29f9
child 5682 94c0ca64c022
permissions -rw-r--r--
Added tag s12-85 for changeset 264d4a0eb386
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    20
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    21
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    28
# i18n component requires GNU xgettext
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    29
PATH=/usr/gnu/bin:/usr/bin:/usr/sbin
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    30
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    31
COMPONENT_NAME=		dnsmasq
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    32
COMPONENT_VERSION=	2.68
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://www.thekelleys.org.uk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    34
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH=	\
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    37
    sha256:402019d61f53f1ccc04cc6218719fd3b158ea3fca9a83ab55471f981a2097c2f
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    39
COMPONENT_BUGDB=	service/dnsmasq
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    40
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1697
diff changeset
    41
TPNO=			16307
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1697
diff changeset
    42
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    44
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    45
include $(WS_MAKE_RULES)/ips.mk
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
# Enable ASLR for this component
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
ASLR_MODE = $(ASLR_ENABLE)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
COMPONENT_BUILD_ENV += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
COMPONENT_BUILD_ARGS += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
COMPONENT_BUILD_ARGS += PREFIX="/usr"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
COMPONENT_BUILD_ARGS += LOCALEDIR="/usr/share/locale"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS) -m64"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
COMPONENT_BUILD_TARGETS = "all-i18n"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    57
COMPONENT_INSTALL_ARGS += PREFIX="/usr"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    58
COMPONENT_INSTALL_TARGETS = "install-i18n"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    59
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    60
# common targets
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    61
build:		$(BUILD_64)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    62
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    63
install:	$(INSTALL_64)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    64
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    65
test:		$(NO_TESTS)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    66
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    67
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    68
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    69
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    70
REQUIRED_PACKAGES += library/libidn
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    71
REQUIRED_PACKAGES += system/core-os
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    72
REQUIRED_PACKAGES += system/library