Makefile revision 493
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# CDDL HEADER START
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# The contents of this file are subject to the terms of the
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Common Development and Distribution License (the "License").
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# You may not use this file except in compliance with the License.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# or http://www.opensolaris.org/os/licensing.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# See the License for the specific language governing permissions
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# and limitations under the License.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# When distributing Covered Code, include this CDDL HEADER in each
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# If applicable, add the following below this CDDL HEADER, with the
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# fields enclosed by brackets "[]" replaced with your own identifying
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# information: Portions Copyright [yyyy] [name of copyright owner]
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# CDDL HEADER END
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit Boseinclude ../../make-rules/shared-macros.mk
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit BosePATH=/usr/bin:/usr/gnu/bin:/usr/sbin:/usr/perl5/bin
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPONENT_NAME= squid
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPONENT_VERSION= 3.1.8
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPONENT_ARCHIVE_HASH= sha1:1b3e14e653a77462607aefa7931605a5e24829b9
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPONENT_ARCHIVE_URL= http://www.squid-cache.org/Versions/v3/3.1/$(COMPONENT_ARCHIVE)
749cfb5d3270b5daf389d51a0dbd3fd2aec6e05dJakub Hrozek
619bd403265ce0880989ba6f8324b010949851bcSumit Boseinclude ../../make-rules/prep.mk
9aa117a93e315f790a1922d9ac7bd484878b621eJakub Hrozekinclude ../../make-rules/configure.mk
619bd403265ce0880989ba6f8324b010949851bcSumit Boseinclude ../../make-rules/ips.mk
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCOMPILER = gcc
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
a530a96721d8106a6839b6b643b0abc5d7a7b9e0Sumit BoseCFLAGS += -I/usr/include/kerberosv5
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCFLAGS += $(CPP_LARGEFILES)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Squid has own prefix
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_PREFIX = /usr/squid
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --localstatedir=/var/squid
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --sharedstatedir=/var/squid
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --enable-arp-acl
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm'
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL'
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --enable-cache-digests
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-carp
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-coss-aio-ops
749cfb5d3270b5daf389d51a0dbd3fd2aec6e05dJakub HrozekCONFIGURE_OPTIONS += --enable-delay-pools
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-digest-auth-helpers='ldap,password'
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-external-acl-helpers='ip_user,unix_group,ldap_group,wbinfo_group'
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-follow-x-forwarded-for
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-forward-log
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --enable-forw-via-db
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen GallagherCONFIGURE_OPTIONS += --enable-htcp
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-icmp
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-large-cache-files
7d9f54f5ec7c72336c4f69dbf20d55f1f64b88d2Jan ZelenyCONFIGURE_OPTIONS += --enable-multicast-miss
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-negotiate-auth-helpers='squid_kerb_auth'
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-ntlm-auth-helpers='smb_lm,fakeauth,no_check'
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-ntlm-fail-open
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-referer-log
749cfb5d3270b5daf389d51a0dbd3fd2aec6e05dJakub HrozekCONFIGURE_OPTIONS += --enable-removal-policies='heap,lru'
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-snmp
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-ssl
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-storeio='aufs,diskd,ufs'
9aa117a93e315f790a1922d9ac7bd484878b621eJakub HrozekCONFIGURE_OPTIONS += --enable-useragent-log
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --enable-x-accelerator-vary
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --with-aio
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --with-aufs-threads=8
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --with-large-files
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --with-build-environment=POSIX_V6_ILP32_OFFBIG
619bd403265ce0880989ba6f8324b010949851bcSumit BoseCONFIGURE_OPTIONS += --with-pthreads
749cfb5d3270b5daf389d51a0dbd3fd2aec6e05dJakub Hrozek
749cfb5d3270b5daf389d51a0dbd3fd2aec6e05dJakub HrozekCOMPONENT_POST_BUILD_ACTION= \
619bd403265ce0880989ba6f8324b010949851bcSumit Bose (cd $(COMPONENT_DIR) ; \
a530a96721d8106a6839b6b643b0abc5d7a7b9e0Sumit Bose $(CP) squid.conf.default $(@D)/src)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen Gallagher# common targets
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen Gallagherbuild: $(BUILD_32)
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen Gallagher
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen Gallagherinstall: $(INSTALL_32)
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen Gallagher
619bd403265ce0880989ba6f8324b010949851bcSumit Bosetest: $(NO_TESTS)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen GallagherBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose
619bd403265ce0880989ba6f8324b010949851bcSumit Boseinclude ../../make-rules/depend.mk
619bd403265ce0880989ba6f8324b010949851bcSumit Bose