Makefile revision 5220
3515994554d167522343ce57417648b39370ccabcilix# CDDL HEADER START
3515994554d167522343ce57417648b39370ccabcilix# The contents of this file are subject to the terms of the
3515994554d167522343ce57417648b39370ccabcilix# Common Development and Distribution License (the "License").
3515994554d167522343ce57417648b39370ccabcilix# You may not use this file except in compliance with the License.
3515994554d167522343ce57417648b39370ccabcilix# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3515994554d167522343ce57417648b39370ccabcilix# See the License for the specific language governing permissions
3515994554d167522343ce57417648b39370ccabcilix# and limitations under the License.
3515994554d167522343ce57417648b39370ccabcilix# When distributing Covered Code, include this CDDL HEADER in each
3515994554d167522343ce57417648b39370ccabcilix# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3515994554d167522343ce57417648b39370ccabcilix# If applicable, add the following below this CDDL HEADER, with the
3515994554d167522343ce57417648b39370ccabcilix# fields enclosed by brackets "[]" replaced with your own identifying
3515994554d167522343ce57417648b39370ccabcilix# information: Portions Copyright [yyyy] [name of copyright owner]
3515994554d167522343ce57417648b39370ccabcilix# CDDL HEADER END
3515994554d167522343ce57417648b39370ccabcilix# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3515994554d167522343ce57417648b39370ccabcilix# Samba does not work properly on i386 when built by studio with -xO3+.
3515994554d167522343ce57417648b39370ccabcilix# standard options
3515994554d167522343ce57417648b39370ccabcilix# Both SPRO_VROOT and studio_OPT vars must use the override keyword otherwise
3515994554d167522343ce57417648b39370ccabcilix# Userland will ignore it and use its default value.
3515994554d167522343ce57417648b39370ccabcilix# To use the older 12.3 compiler instead of the default 12.4 compiler uncomment
0b2d8abc1011ad865fce3b883ccb2587cb15cc90Johan B. C. Engelen# the following line.
3515994554d167522343ce57417648b39370ccabcilix#override SPRO_VROOT = $(SPRO_ROOT)/solarisstudio12.3
3515994554d167522343ce57417648b39370ccabcilix# parfait seems to spin on us
3515994554d167522343ce57417648b39370ccabcilixCOMPONENT_ARCHIVE_HASH= sha256:7aeb5d09e9c84bbeeb4b98d33404e9dbc4d99c54e64a447cc9c4d57e9255cb1d
3515994554d167522343ce57417648b39370ccabcilixCOMPONENT_ARCHIVE_URL= http://us1.samba.org/samba/ftp/stable/$(COMPONENT_ARCHIVE)
3515994554d167522343ce57417648b39370ccabcilixWAF_PATH = PATH=$(BUILD_DIR)/samba/buildtools/bin:$(PROTO_DIR)/usr/bin:$$PATH
3515994554d167522343ce57417648b39370ccabcilix# Verbosed waf produces unreadable output if parallelized.
3515994554d167522343ce57417648b39370ccabcilix# Uncomment to enable verbose build.
3515994554d167522343ce57417648b39370ccabcilix#override WAFOPT1 = -v -j1
3515994554d167522343ce57417648b39370ccabcilix# Set build dirs for Samba + Winbind / Winbind (without Samba).
# directory to search for "include" in samba.p5m
# Oracle HSM is not supported on 12.0 yet but the libsam.so target should rather be commented out than removed
# $(CC.studio.64) -m64 -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
# library libgssapi_krb5.so. Once MIT Kerberos is updated in Solaris 12 to
--with-shared-modules=vfs_worm,vfs_zfsacl,vfs_prealloc,vfs_cacheprime,vfs_commit,idmap_ldap,idmap_tdb2,idmap_rid,idmap_ad,idmap_hash,idmap_adex,vfs_solarisacl
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I$(PROTO_DIR)/usr/include -I$(COMPONENT_DIR)/Solaris/include"
# Propagation of smb.conf with default settings.
# (motivation) Samba started to use WAF (build system from Google) from the 3.x
$(TOUCH) $@
$(BUILD_DIR_SMB)/.configured: $(BUILD_DIR_SMB)/.BDprep $(PROTO_DIR)/usr/lib/samba/$(MACH64)/libgssapi_krb5.so
$(TOUCH) $@
$(TOUCH) $@
(cd $(@D) ; $(ENV) $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf install $(WAFOPT1) --destdir=$(PROTO_DIR) )
$(TOUCH) $@
$(TOUCH) $@
$(BUILD_DIR_WINB)/.configured: $(BUILD_DIR_WINB)/.BDprep $(PROTO_DIR)/usr/lib/samba/libgssapi_krb5.so
$(TOUCH) $@
$(TOUCH) $@
$(TOUCH) $@
test: $(NO_TESTS)
clean::