Makefile revision 3661
5f5870385cff47efd2f58e7892f251cf13761528Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# CDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# The contents of this file are subject to the terms of the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Common Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You may not use this file except in compliance with the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# or http://www.opensolaris.org/os/licensing.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# See the License for the specific language governing permissions
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# and limitations under the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen#
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# CDDL HEADER END
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen#
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen#
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Siraineninclude ../../../make-rules/shared-macros.mk
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCOMPONENT_NAME= mod_dtrace
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCOMPONENT_VERSION= 0.3.1
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCOMPONENT_SRC= src
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCOMPONENT_PROJECT_URL= http://prefetch.net/projects/apache_modtrace/
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenCOMPONENT_BUGDB= utility/apache
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo Sirainen
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7Timo SirainenTPNO= 8876
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude ../../../make-rules/justmake.mk
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninclude ../../../make-rules/ips.mk
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo SirainenAPACHE_USR_PREFIX=/usr/apache2/2.2
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen$(BUILD_DIR_32)/.built: COMPONENT_BUILD_ARGS += APXS=$(APACHE_USR_PREFIX)/bin/apxs
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$(BUILD_DIR_64)/.built: COMPONENT_BUILD_ARGS += APXS=$(APACHE_USR_PREFIX)/bin/$(MACH64)/apxs
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$(BUILD_DIR_32)/.built: COMPONENT_BUILD_ARGS += DTRACE="/usr/sbin/dtrace -32"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$(BUILD_DIR_64)/.built: COMPONENT_BUILD_ARGS += DTRACE="/usr/sbin/dtrace -64"
84e1634acc701d14e358e27f1beff5ad74f5004aTimo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainendownload:
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen
022412398e56a8f31ef111cfd7271498d64af9a9Timo Sirainenclobber: clean
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen$(SOURCE_DIR)/.prep:
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen $(TOUCH) $@
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenclean::
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen $(RM) $(SOURCE_DIR)/.prep
7a6b45405fb1544ac476e6eb1402a70cc1ddcdcfTimo Sirainen
e05ea8311ae16687295048e88ca205dfe29fbcbfTimo Sirainenbuild: $(BUILD_32_and_64)
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainentest: $(NO_TESTS)
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo SirainenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
f7d43647acc6dc80064c8c4cacf5bf86f754c530Timo Sirainen
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Siraineninclude ../../../make-rules/depend.mk
98c1cf256927e254f0c092acd2ddcd7ea50bd009Timo Sirainen