Makefile revision 3967
577N/A#
577N/A# CDDL HEADER START
577N/A#
577N/A# The contents of this file are subject to the terms of the
615N/A# Common Development and Distribution License (the "License").
577N/A# You may not use this file except in compliance with the License.
577N/A#
577N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
577N/A# or http://www.opensolaris.org/os/licensing.
577N/A# See the License for the specific language governing permissions
577N/A# and limitations under the License.
577N/A#
577N/A# When distributing Covered Code, include this CDDL HEADER in each
577N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
577N/A# If applicable, add the following below this CDDL HEADER, with the
577N/A# fields enclosed by brackets "[]" replaced with your own identifying
577N/A# information: Portions Copyright [yyyy] [name of copyright owner]
577N/A#
577N/A# CDDL HEADER END
577N/A#
577N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
577N/A#
577N/Ainclude ../../make-rules/shared-macros.mk
577N/A
577N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
577N/A
577N/ACOMPONENT_NAME= unixODBC
577N/ACOMPONENT_VERSION= 2.3.0
577N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
577N/ACOMPONENT_PROJECT_URL= http://unixodbc.org/
577N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
577N/ACOMPONENT_ARCHIVE_HASH= \
577N/A sha256:15a7a855a2951a6af7137379bfcdccc15626b869c4804a1d1536cd37e9f3872c
577N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
577N/A
577N/ACOMPONENT_BUGDB= library/unixodbc
577N/A
577N/ATPNO= 9099
577N/A
577N/Ainclude ../../make-rules/prep.mk
606N/Ainclude ../../make-rules/configure.mk
606N/Ainclude ../../make-rules/ips.mk
615N/A
606N/APATCH_LEVEL = 0
607N/A
606N/A# Enable C99 mode + -Xc for its additional warnings.
577N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
577N/A
577N/A# -xinline=%auto -- we like inlining where appropriate
577N/ACFLAGS += -xinline=%auto
577N/A
577N/A# -xbuiltin=%none -- builtins have been known to be buggy
577N/ACFLAGS += -xbuiltin=%none
577N/A
577N/ACFLAGS += $(CPP_LARGEFILES)
577N/ACFLAGS += $(XPG6MODE)
577N/ACFLAGS += $(CPP_POSIX)
577N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
577N/ACFLAGS += $(studio_PIC)
577N/A
577N/AGSED = /usr/gnu/bin/sed
577N/A
577N/AX11LIB.32 = $(CONFIGURE_PREFIX)/lib
615N/AX11LIB.64 = $(CONFIGURE_PREFIX)/lib/$(MACH64)
615N/A
615N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
577N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
577N/A
577N/ALD_OPTIONS += -lsocket -lresolv -lnsl -lgen
577N/A
577N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include/odbc
577N/ACONFIGURE_OPTIONS += --localstatedir=/var
577N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/odbc
577N/ACONFIGURE_OPTIONS += --x-includes="$(CONFIGURE_PREFIX)/include"
577N/ACONFIGURE_OPTIONS += --x-libraries="$(X11LIB.$(BITS))"
577N/ACONFIGURE_OPTIONS += --enable-shared
577N/ACONFIGURE_OPTIONS += --disable-static
577N/ACONFIGURE_OPTIONS += --disable-libtool-lock
577N/ACONFIGURE_OPTIONS += --disable-gui
577N/ACONFIGURE_OPTIONS += --enable-threads
577N/ACONFIGURE_OPTIONS += --disable-gnuthreads
577N/ACONFIGURE_OPTIONS += --enable-readline
577N/ACONFIGURE_OPTIONS += --enable-inicaching
577N/ACONFIGURE_OPTIONS += --enable-drivers=yes
577N/ACONFIGURE_OPTIONS += --enable-driver-conf=yes
577N/ACONFIGURE_OPTIONS += --enable-fdb
577N/ACONFIGURE_OPTIONS += --enable-odbctrace
577N/ACONFIGURE_OPTIONS += --enable-iconv
CONFIGURE_OPTIONS += --enable-stats
CONFIGURE_OPTIONS += --enable-rtldgroup
CONFIGURE_OPTIONS += --disable-ltdllib
CONFIGURE_OPTIONS += --without-pth
CONFIGURE_OPTIONS += --without-pth-test
CONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
CONFIGURE_OPTIONS += --disable-ltdl-install
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_ENV += CC="$(CC)"
CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += INSTALL="$(INSTALL)"
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
PROTOPKGCONFIGDIR32 = $(PROTOUSRLIBDIR)/pkgconfig
PROTOPKGCONFIGDIR64 = $(PROTOUSRLIBDIR64)/pkgconfig
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(MKDIR) $(PROTOPKGCONFIGDIR32)
$(MKDIR) $(PROTOPKGCONFIGDIR64)
$(GSED) -e "s#SED_SIZEOF_LONG#4#g" \
$(COMPONENT_DIR)/Solaris/unixODBC.pc > \
$(PROTOPKGCONFIGDIR32)/unixODBC.pc
$(GSED) -e "s#SED_SIZEOF_LONG#8#g" \
$(COMPONENT_DIR)/Solaris/unixODBC.pc > \
$(COMPONENT_DIR)/unixODBC.pc.1
$(GSED) -e 's#/lib#/lib/$(MACH64)#g' \
$(COMPONENT_DIR)/unixODBC.pc.1 > \
$(PROTOPKGCONFIGDIR64)/unixODBC.pc
$(RM) -f $(COMPONENT_DIR)/unixODBC.pc.1
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk