Makefile revision 618
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# CDDL HEADER START
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# The contents of this file are subject to the terms of the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# Common Development and Distribution License (the "License").
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# You may not use this file except in compliance with the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# or http://www.opensolaris.org/os/licensing.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# See the License for the specific language governing permissions
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# and limitations under the License.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# When distributing Covered Code, include this CDDL HEADER in each
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# If applicable, add the following below this CDDL HEADER, with the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# fields enclosed by brackets "[]" replaced with your own identifying
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# information: Portions Copyright [yyyy] [name of copyright owner]
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# CDDL HEADER END
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk#
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkinclude ../../make-rules/shared-macros.mk
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkCOMPONENT_NAME= trousers
COMPONENT_VERSION= 0.3.6
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
COMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
COMPONENT_ARCHIVE_HASH= sha1:1bb65fe1a031f9606d871562ead35fa5909ae584
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
include ../../make-rules/lint-libraries.mk
PATCH_LEVEL=0
LIBS=-lnsl -lsocket -lgen
CONFIGURE_OPTIONS += --with-gui=openssl
CONFIGURE_OPTIONS += CC="$(CC)"
CONFIGURE_OPTIONS += LD="$(CC)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += LIBS="$(LIBS)"
COMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
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