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