Makefile
资源名称:likoxglc.taz [点击查看]
上传用户:canger333
上传日期:2013-01-31
资源大小:454k
文件大小:3k
源码类别:
Oracle数据库
开发平台:
Unix_Linux
- #
- # Makefile
- #
- # $Id: Makefile,v 1.2 1997/09/02 20:29:29 cg Exp $
- #
- # Makefile for the ODBC test program
- #
- # (C)Copyright 1997 OpenLink Software.
- # All Rights Reserved.
- #
- # The copyright above and this notice must be preserved in all
- # copies of this source code. The copyright above does not
- # evidence any actual or intended publication of this source code.
- #
- # This is unpublished proprietary trade secret of OpenLink Software.
- # This source code may not be copied, disclosed, distributed, demonstrated
- # or licensed except as authorized by OpenLink Software.
- #
- ######################################################################
- #
- # Uncomment the CFLAGS line which matches the c compiler used
- #
- ######################################################################
- ## Generic ######################################################
- CFLAGS = -O -I../include
- ## HP/UX ######################################################
- #CFLAGS = -O -Aa +ESlit -I../include
- ######################################################################
- #
- # Uncomment the LIBS line which matches the c compilers needs
- #
- ######################################################################
- #
- # NOTE:
- #
- # To use shared libraries on your system, you may need to install the
- # libiodbc.so* files (or libiodbc.sl* when using HP/UX) in such a way
- # that the shared loader can find the library at runtime. There are
- # a couple of possibilities to do this, so please consult your UNIX
- # SYSADM manuals to see which method is approved on your system. Due
- # to the different versions of UNIX it is very difficult to come up with
- # a specific description here, however option 1 works for most systems
- # OpenLink runs on.
- #
- # Here are a couple of possibilities:
- #
- #
- # 1. On most systems the environment variable LD_LIBRARY_PATH
- # can be set to point to the correct lib directory. You could then
- # add this environment variable to your .profile like such:
- #
- # LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/home/openlink/lib
- # export LD_LIBRARY_PATH
- #
- # or on HP/UX:
- #
- # SHLIB_PATH=$(SHLIB_PATH):/home/openlink/lib
- # export SHLIB_PATH
- #
- # or on AIX:
- #
- # LIBPATH=$(LIBPATH):/home/openlink/lib
- # export LIBPATH
- #
- #
- # 2. On a number of systems the shared library loader uses a configuration
- # file in which all the directories that contain shared libraries are
- # specified. In this case you could add the openlink/lib and/or the
- # openlink/odbcsdk/lib directory to this file and reinitialize the
- # shared library loader cache. (Check for commands like ldconfig and
- # ld.so)
- #
- #
- # 3. On a number of systems it is always possible to move the libiodbc.s*
- # libraries to one of the system directories like /usr/lib. In this
- # case you need to be extremely careful and do this every time an
- # update to the shared library is downloaded as otherwise the wrong
- # shared library is used.
- #
- ## Shared ######################################################
- LIBS = -L../lib -liodbc
- odbctest: odbctest.c
- cc $(CFLAGS) -o odbctest -I../include odbctest.c $(LIBS)
- clean:
- $(RM) odbctest odbctest.o
- realclean: clean