Makefile revision 1233
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# CDDL HEADER START
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# The contents of this file are subject to the terms of the
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# Common Development and Distribution License (the "License").
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# You may not use this file except in compliance with the License.
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# See the License for the specific language governing permissions
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# and limitations under the License.
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# CDDL HEADER END
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech Republic#
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond NorbyeCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye sha256:1f5be3edecff9e31072ef738ea1d8019594c4f0c2e3ab427e6eef153491db6a2
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond NorbyeCOMPONENT_ARCHIVE_URL= http://ftp.unixodbc.org/pub/unixODBC/$(COMPONENT_ARCHIVE)
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# Enable C99 mode + -Xc for its additional warnings.
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech Republic# -xinline=%auto -- we like inlining where appropriate
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += -xinline=%auto
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond Norbye# -xbuiltin=%none -- builtins have been known to be buggy
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += $(CPP_LARGEFILES)
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += $(XPG6MODE)
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += $(CPP_POSIX)
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += $(CPP_C99_EXTENDED_MATH)
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCFLAGS += $(studio_PIC)
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicX11LIB.32 = $(CONFIGURE_PREFIX)/lib
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicPKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicLD_OPTIONS += -lsocket -lresolv -lnsl -lgen
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include/odbc
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --localstatedir=/var
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond NorbyeCONFIGURE_OPTIONS += --x-includes="$(CONFIGURE_PREFIX)/include"
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --x-libraries="$(X11LIB.$(BITS))"
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --enable-threads
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --enable-driver-conf=yes
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --enable-iconv
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --enable-stats
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --enable-rtldgroup
d3f4f9ed01f6a0b171d0a81c630f5708e47adb7avitezslav batrla - Sun Microsystems - Prague Czech RepublicCONFIGURE_OPTIONS += --disable-ltdllib
d20db9dd18673cf482111b9cd3ecc6823d0e45a3Trond NorbyeCONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
test: $(TEST_32_and_64)