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#
58N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/Ainclude ../../make-rules/shared-macros.mk
32N/A
32N/APATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin
313N/A
313N/ACOMPONENT_NAME= unixODBC
313N/ACOMPONENT_VERSION= 2.3.0
313N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
313N/ACOMPONENT_PROJECT_URL= http://unixodbc.org/
313N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
313N/ACOMPONENT_ARCHIVE_HASH= sha1:b2839b5210906e3ee286a4b621f177db9c7be7a8
313N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
313N/A
313N/Ainclude ../../make-rules/prep.mk
313N/Ainclude ../../make-rules/configure.mk
313N/Ainclude ../../make-rules/ips.mk
313N/A
313N/APATCH_LEVEL = 0
313N/A
313N/A# Enable C99 mode + -Xc for its additional warnings.
127N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
127N/A
127N/A# -xinline=%auto -- we like inlining where appropriate
127N/ACFLAGS += -xinline=%auto
327N/A
327N/A# -xbuiltin=%none -- builtins have been known to be buggy
327N/ACFLAGS += -xbuiltin=%none
327N/A
327N/ACFLAGS += $(CPP_LARGEFILES)
327N/ACFLAGS += $(XPG6MODE)
327N/ACFLAGS += $(CPP_POSIX)
327N/ACFLAGS += $(CPP_C99_EXTENDED_MATH)
327N/ACFLAGS += $(studio_PIC)
327N/A
327N/AGSED = /usr/gnu/bin/sed
327N/A
177N/AX11LIB.32 = $(CONFIGURE_PREFIX)/lib
177N/AX11LIB.64 = $(CONFIGURE_PREFIX)/lib/$(MACH64)
2N/A
145N/APKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
26N/APKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
38N/A
38N/ALD_OPTIONS += -lsocket -lresolv -lnsl -lgen
29N/A
93N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include/odbc
29N/ACONFIGURE_OPTIONS += --localstatedir=/var
29N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/odbc
26N/ACONFIGURE_OPTIONS += --x-includes="$(CONFIGURE_PREFIX)/include"
26N/ACONFIGURE_OPTIONS += --x-libraries="$(X11LIB.$(BITS))"
29N/ACONFIGURE_OPTIONS += --enable-shared
26N/ACONFIGURE_OPTIONS += --disable-static
2N/ACONFIGURE_OPTIONS += --disable-libtool-lock
38N/ACONFIGURE_OPTIONS += --disable-gui
2N/ACONFIGURE_OPTIONS += --enable-threads
6N/ACONFIGURE_OPTIONS += --disable-gnuthreads
2N/ACONFIGURE_OPTIONS += --enable-readline
58N/ACONFIGURE_OPTIONS += --enable-inicaching
2N/ACONFIGURE_OPTIONS += --enable-drivers=yes
145N/ACONFIGURE_OPTIONS += --enable-driver-conf=yes
145N/ACONFIGURE_OPTIONS += --enable-fdb
34N/ACONFIGURE_OPTIONS += --enable-odbctrace
34N/ACONFIGURE_OPTIONS += --enable-iconv
34N/ACONFIGURE_OPTIONS += --enable-stats
49N/ACONFIGURE_OPTIONS += --enable-rtldgroup
145N/ACONFIGURE_OPTIONS += --disable-ltdllib
2N/ACONFIGURE_OPTIONS += --without-pth
34N/ACONFIGURE_OPTIONS += --without-pth-test
34N/ACONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
94N/ACONFIGURE_OPTIONS += --disable-ltdl-install
94N/ACONFIGURE_OPTIONS += --with-pic
156N/A
156N/ACONFIGURE_ENV += CC="$(CC)"
34N/ACONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
59N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
186N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
186N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
186N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
186N/A
72N/APROTOPKGCONFIGDIR32 = $(PROTOUSRLIBDIR)/pkgconfig
72N/APROTOPKGCONFIGDIR64 = $(PROTOUSRLIBDIR64)/pkgconfig
72N/A
59N/Abuild: $(BUILD_32_and_64)
2N/A
85N/Ainstall: $(INSTALL_32_and_64)
61N/A $(MKDIR) $(PROTOPKGCONFIGDIR32)
61N/A $(MKDIR) $(PROTOPKGCONFIGDIR64)
220N/A $(GSED) -e "s#SED_SIZEOF_LONG#4#g" \
61N/A $(COMPONENT_DIR)/Solaris/unixODBC.pc > \
61N/A $(PROTOPKGCONFIGDIR32)/unixODBC.pc
172N/A $(GSED) -e "s#SED_SIZEOF_LONG#8#g" \
61N/A $(COMPONENT_DIR)/Solaris/unixODBC.pc > \
61N/A $(COMPONENT_DIR)/unixODBC.pc.1
220N/A $(GSED) -e 's#/lib#/lib/$(MACH64)#g' \
220N/A $(COMPONENT_DIR)/unixODBC.pc.1 > \
61N/A $(PROTOPKGCONFIGDIR64)/unixODBC.pc
172N/A $(RM) -f $(COMPONENT_DIR)/unixODBC.pc.1
454N/A
61N/Atest: $(TEST_32_and_64)
172N/A
61N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
152N/A
74N/Ainclude ../../make-rules/depend.mk
61N/A
220N/A