Makefile revision 1258
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# CDDL HEADER START
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# The contents of this file are subject to the terms of the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Common Development and Distribution License (the "License").
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# You may not use this file except in compliance with the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# If applicable, add the following below this CDDL HEADER, with the
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# CDDL HEADER END
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/shared-macros.mk
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_NAME= httping
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_VERSION= 1.4.4
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_PROJECT_URL= http://www.vanheusden.com/httping/
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews sha256:f00da30e0744d86ed832f6a49ae455b9447570af3589e1111a1c6210a51cafee
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_ARCHIVE_URL= http://www.vanheusden.com/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_BUGDB= utility/httping
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsinclude ../../make-rules/prep.mk
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsinclude ../../make-rules/justmake.mk
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsinclude ../../make-rules/ips.mk
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS) -Dstrndup=strndup -DVERSION=\\\"$(COMPONENT_VERSION)\\\""
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsCOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS) -lsocket -lnsl -lssl -lcrypto"
a0624cf8d5711cca4e3907859fbc8062a7e460faMark AndrewsCOMPONENT_BUILD_ENV += CC="$(CC)"
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrews# common targets
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrewsbuild: $(BUILD_32)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninstall: $(INSTALL_32)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewstest: $(NO_TESTS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../make-rules/depend.mk
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews