Files
mercury/extras/odbc/Mmakefile
Fergus Henderson 249417ef48 Add `--no-ansi' to MGNUCFLAGS, to allow recognition of
Estimated hours taken: 0.25

extras/odbc/Mmakefile:
	Add `--no-ansi' to MGNUCFLAGS, to allow recognition of
	C++-style "//" comments with gcc >= 2.7.1.
1997-10-07 12:09:07 +00:00

55 lines
1.9 KiB
Plaintext

#-----------------------------------------------------------------------------#
# Copyright (C) 1997 University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
# extras/odbc/Mmakefile - Mmake file for building the ODBC interface.
#-----------------------------------------------------------------------------#
# Configuration
# The driver manager.
# Legal values for MODBC_DRIVER are MODBC_IODBC and MODBC_MS.
# Feel free to add more (and handle them in odbc.m).
MODBC_DRIVER=MODBC_IODBC
#MODBC_DRIVER=MODBC_MS
# The database.
# Legal values for MODBC_DB are MODBC_MYSQL and MODBC_SQL_SERVER.
# Feel free to add more (and handle them in odbc.m).
MODBC_DB = MODBC_MYSQL
#MODBC_DB=MODBC_SQL_SERVER
# Pathname for iODBC (only for MODBC_IODBC)
IODBC_DIR=/home/mercury1/stayl/iodbc/iODBC-2.12
# Pathname for the ODBC SDK (only for MODBC_MS)
ODBC_SDK_DIR=/odbcsdk
#-----------------------------------------------------------------------------#
ifeq ($(MODBC_DRIVER),MODBC_MS)
ODBC_INCL_DIR=$(ODBC_SDK_DIR)/include
MLLIBS=-lodbc32
else
ODBC_LIB_DIR=$(IODBC_DIR)/lib
ODBC_INCL_DIR=$(IODBC_DIR)
# note: on a DEC Alpha using OSF1 remove the -ldl.
MLLIBS=-L$(ODBC_LIB_DIR) -liodbc -ldl
endif
MAIN_TARGET=odbc_test
depend: odbc_test.depend
#-----------------------------------------------------------------------------#
# `--no-ansi' is needed because the ODBC header files include C++-style
# "//" comments. `--no-ansi' allows recognition of C++-style "//" comments,
# presuming you have gcc version 2.7.1 or greater.
MGNUCFLAGS=--no-ansi -D$(MODBC_DRIVER) -D$(MODBC_DB) -I$(ODBC_INCL_DIR)
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#