Makefile revision 3738
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# CDDL HEADER START
a908d41cb4b0658c958383375c5a8f0bcaaf843dFrancis Dupont#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# The contents of this file are subject to the terms of the
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Common Development and Distribution License (the "License").
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# You may not use this file except in compliance with the License.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# or http://www.opensolaris.org/os/licensing.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# See the License for the specific language governing permissions
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# and limitations under the License.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# CDDL HEADER END
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews#
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/shared-macros.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
dbb012765c735ee0d82dedb116cdc7cf18957814Evan HuntCOMPONENT_NAME = libmicrohttpd
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_VERSION = 0.9.37
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_PROJECT_URL = http://ftp.gnu.org/gnu/libmicrohttpd/
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_ARCHIVE_HASH = \
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews sha256:a78cbcc050fb50f4ef4cf02709a3f8dd498e9230271b445fc3dbec4132b47cdc
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_BUGDB= library/libmicrohttpd
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsTPNO = 18422
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/prep.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/configure.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/ips.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/lint-libraries.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsLINT_FLAGS += -I$(PROTOUSRINCDIR)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCC += $(CC_BITS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCPPFLAGS += $(CPP_LARGEFILES)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCONFIGURE_OPTIONS += --disable-https
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCONFIGURE_OPTIONS += --disable-spdy
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/microhttpd
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf -f);
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsASLR_MODE = $(ASLR_ENABLE)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsbuild: $(BUILD_32_and_64)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinstall: $(INSTALL_32_and_64)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewstest: $(TEST_32_and_64)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsinclude ../../make-rules/depend.mk
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews