Makefile revision 3767
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Makefile for JDBC-ODBC Bridge Driver
#
# Note - the native library for the bridge may be linked with the
# shared library for the ODBC driver manager. Or dummy libraries
# may be used to just create libJdbcOdbc.so with a dependency on
# libodbc.so and libodbcinst.so.
#
BUILDDIR = ../..
#
# Files
#
FILES_c = \
FILES_export = \
# Use fake libraries on Solaris and Linux just so the library we create has
# a dependency on these two library names. (which are not part of the jdk)
# In jdk5 and jdk6, and on Solaris 32bit, we would have required that
# these two libraries exist at: $(ALT_ODBCDIR)/ISLIodbc/2.11/lib
# In jdk7, we just fake them out like we did on Linux in jdk5 and jdk6.
#
# If you wanted to use the real odbc libraries, change the value of
# ODBC_LIBRARY_LOCATION, and delete the variable assignments below.
#
# Tell linker to ignore missing externals when building this shared library.
# Define a place to create the fake libraries and their names.
# Make sure they get created early.
INIT += $(ODBC_FAKE_LIBRARIES)
#
# Rules
#
#
# The UNIX define specifies conditional compilation for UNIX
#
else
#
# The native code for the bridge uses conditional compilation to
# support Solaris, Win95 and Mac PPC. This is the path to the shared C files
# (which unfortunately are in the same directory as shared Java files).
#
#
# Rules to generate fake libraries
#
$(TEMPDIR)/dummyodbc.c:
$(ECHO) "void dummyOdbc(void){}" >> $@
clean::
$(RM) -f $(ODBC_FAKE_LIBRARIES)
#
# Files that need to be copied
#
FILES_copy = \
FILES_mkdirs = \
FILES_copydirs = \
$(CLASSBINDIR) \
$(FILES_mkdirs)
$(RM) $(FILES_copy)