Makefile revision 1273
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#
58N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A
32N/Ainclude ../../make-rules/shared-macros.mk
32N/A
127N/ACOMPONENT_NAME= trousers
127N/ACOMPONENT_VERSION= 0.3.6
131N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
127N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
127N/ACOMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
127N/ACOMPONENT_ARCHIVE_HASH= \
127N/A sha256:91025f60248af44df192e8df16fa6b0c0f1e48c54f6dc51626567ed95758b0d6
2N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2N/ACOMPONENT_BUGDB= utility/tss
26N/A
38N/Ainclude ../../make-rules/prep.mk
38N/Ainclude ../../make-rules/configure.mk
38N/Ainclude ../../make-rules/ips.mk
29N/Ainclude ../../make-rules/lint-libraries.mk
93N/A
29N/APATCH_LEVEL=0
29N/A
26N/ALIBS=-lnsl -lsocket -lgen
26N/A
29N/ACONFIGURE_OPTIONS += --with-gui=openssl
26N/ACONFIGURE_OPTIONS += CC="$(CC)"
2N/ACONFIGURE_OPTIONS += LD="$(CC)"
38N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
6N/ACONFIGURE_OPTIONS += LIBS="$(LIBS)"
2N/A
58N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
2N/A for f in `ls src/include/tss/*.h` ; do \
2N/A /usr/bin/dos2unix $$f $$f; \
34N/A done; \
34N/A for f in `ls src/include/trousers/*.h` ; do \
34N/A /usr/bin/dos2unix $$f $$f; \
34N/A done; \
49N/A for f in `ls src/include/*.h` ; do \
70N/A /usr/bin/dos2unix $$f $$f; \
2N/A done; \
34N/A /usr/bin/libtoolize -f; \
34N/A $(ACLOCAL); \
94N/A $(AUTOMAKE) src/tspi/Makefile; \
94N/A $(AUTOCONF))
34N/A
59N/A#
72N/A# We had to use cc as the linker (see CONFIGURE_OPTIONS above) so the
72N/A# .init and .fini sections get set correctly. Because we use cc, we
72N/A# must pass the -m64 flag through cc to the linker when building 64 bit
59N/A# libraries. We can't just add it to LDFLAGS because then it gets used
2N/A# when creating executables and static libs and generates lots of noise
85N/A# in the build logs. LDARCHFLAG is only recognized by the Makefile in
61N/A# the src/tspi directory.
61N/A#
61N/ACOMPONENT_BUILD_ENV.64 += LDARCHFLAG="-Wl,$(CC_BITS)"
61N/A
61N/ACOMPONENT_TEST_TARGETS =
61N/A
61N/ACOMPONENT_BUILD_TARGETS = all
61N/A
61N/A# common targets
74N/Abuild: $(BUILD_32_and_64)
61N/A
85N/Ainstall: $(INSTALL_32_and_64)
61N/A
61N/Atest: $(NO_TESTS)
61N/A
61N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
61N/A
61N/Ainclude ../../make-rules/depend.mk
61N/A