components/dnsmasq/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 20 Mar 2014 16:14:03 -0700
changeset 1775 221ebe7e8513
parent 1697 418a0b84f905
child 1948 2d1537e7942d
permissions -rw-r--r--
Added tag s12-44.1 for changeset aeb0b066aaf3
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
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
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
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/prep.mk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/justmake.mk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/ips.mk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    44
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    45
# Enable ASLR for this component
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
ASLR_MODE = $(ASLR_ENABLE)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
COMPONENT_BUILD_ENV += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
COMPONENT_BUILD_ARGS += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
COMPONENT_BUILD_ARGS += PREFIX="/usr"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
COMPONENT_BUILD_ARGS += LOCALEDIR="/usr/share/locale"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS) -m64"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
COMPONENT_BUILD_TARGETS = "all-i18n"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
COMPONENT_INSTALL_ARGS += PREFIX="/usr"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
COMPONENT_INSTALL_TARGETS = "install-i18n"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    57
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    58
# common targets
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    59
build:		$(BUILD_64)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    60
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    61
install:	$(INSTALL_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
test:		$(NO_TESTS)
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
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    66
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    67
include ../../make-rules/depend.mk