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