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