Makefile revision 2669
224N/A#
224N/A# CDDL HEADER START
224N/A#
224N/A# The contents of this file are subject to the terms of the
224N/A# Common Development and Distribution License (the "License").
224N/A# You may not use this file except in compliance with the License.
224N/A#
224N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
224N/A# or http://www.opensolaris.org/os/licensing.
224N/A# See the License for the specific language governing permissions
224N/A# and limitations under the License.
224N/A#
224N/A# When distributing Covered Code, include this CDDL HEADER in each
224N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
224N/A# If applicable, add the following below this CDDL HEADER, with the
224N/A# fields enclosed by brackets "[]" replaced with your own identifying
224N/A# information: Portions Copyright [yyyy] [name of copyright owner]
224N/A#
224N/A# CDDL HEADER END
224N/A#
844N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
224N/A#
224N/A
224N/Ainclude ../../make-rules/shared-macros.mk
224N/A
1163N/ACOMPONENT_NAME= trousers
1163N/ACOMPONENT_VERSION= 0.3.6
224N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
224N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
618N/ACOMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
224N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:91025f60248af44df192e8df16fa6b0c0f1e48c54f6dc51626567ed95758b0d6
844N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1163N/ACOMPONENT_BUGDB= utility/tss
224N/A
224N/Ainclude ../../make-rules/prep.mk
1273N/Ainclude ../../make-rules/configure.mk
224N/Ainclude ../../make-rules/ips.mk
224N/Ainclude ../../make-rules/lint-libraries.mk
224N/A
224N/APATCH_LEVEL=0
224N/A
224N/ALIBS=-lnsl -lsocket -lgen
224N/A
224N/ACFLAGS += "-D_POSIX_PTHREAD_SEMANTICS"
224N/A
224N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib
224N/ACONFIGURE_OPTIONS += --with-gui=openssl
224N/ACONFIGURE_OPTIONS += CC="$(CC)"
224N/ACONFIGURE_OPTIONS += LD="$(CC)"
224N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
224N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -lpthread -lbsm -lscf -lresolv"
224N/ACONFIGURE_OPTIONS += LIBS="$(LIBS)"
224N/A
224N/A# Enable ASLR for this component
224N/AASLR_MODE = $(ASLR_ENABLE)
224N/A
224N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
224N/A for f in `ls src/include/tss/*.h` ; do \
224N/A /usr/bin/dos2unix $$f $$f; \
224N/A done; \
224N/A for f in `ls src/include/trousers/*.h` ; do \
224N/A /usr/bin/dos2unix $$f $$f; \
224N/A done; \
224N/A for f in `ls src/include/*.h` ; do \
224N/A /usr/bin/dos2unix $$f $$f; \
224N/A done; \
224N/A /usr/bin/libtoolize -f; \
224N/A $(ACLOCAL); \
224N/A $(AUTOMAKE) src/tspi/Makefile; \
224N/A $(AUTOCONF))
224N/A
224N/A#
224N/A# We had to use cc as the linker (see CONFIGURE_OPTIONS above) so the
224N/A# .init and .fini sections get set correctly. Because we use cc, we
224N/A# must pass the -m64 flag through cc to the linker when building 64 bit
224N/A# libraries. We can't just add it to LDFLAGS because then it gets used
224N/A# when creating executables and static libs and generates lots of noise
224N/A# in the build logs. LDARCHFLAG is only recognized by the Makefile in
224N/A# the src/tspi directory.
224N/A#
224N/ACOMPONENT_BUILD_ENV.64 += LDARCHFLAG="-Wl,$(CC_BITS)"
224N/A
224N/ACOMPONENT_TEST_TARGETS =
224N/A
224N/ACOMPONENT_BUILD_TARGETS = all
224N/A
224N/A# common targets
224N/Abuild: $(BUILD_32_and_64)
224N/A
224N/Ainstall: $(INSTALL_32_and_64)
224N/A
224N/Atest: $(NO_TESTS)
224N/A
224N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
224N/A
224N/Ainclude ../../make-rules/depend.mk
224N/A