* contrib/rddsql/sddodbc/Makefile
! Applied logic from contrib/hbodbc/Makefile.
* contrib/rddsql/sddodbc/odbcdd.c
! Fixed three warnings (2 casts + 1 uninit var) with MSVC.
; TOFIX: These errors are shown when trying to compiler in UNICODE mode:
../../odbcdd.c(168) : error C2664: 'SQLDriverConnectW' : cannot convert parameter 3 from 'SQLCHAR *' to 'SQLWCHAR *'
../../odbcdd.c(204) : error C2664: 'SQLExecDirectW' : cannot convert parameter 2 from 'SQLCHAR *' to 'SQLWCHAR *'
../../odbcdd.c(239) : error C2664: 'SQLExecDirectW' : cannot convert parameter 2 from 'SQLCHAR *' to 'SQLWCHAR *'
../../odbcdd.c(263) : error C2664: 'SQLDescribeColW' : cannot convert parameter 3 from 'SQLCHAR *' to 'SQLWCHAR *'
51 lines
776 B
Makefile
51 lines
776 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT = ../../../
|
|
|
|
LIBNAME=sddodbc
|
|
|
|
ifeq ($(HB_COMPILER),rsxnt)
|
|
HB_WITHOUT_ODBC=yes
|
|
endif
|
|
ifeq ($(HB_ARCHITECTURE),dos)
|
|
HB_WITHOUT_ODBC=yes
|
|
endif
|
|
ifeq ($(HB_ARCHITECTURE),os2)
|
|
HB_WITHOUT_ODBC=yes
|
|
endif
|
|
|
|
ifneq ($(HB_ARCHITECTURE),win)
|
|
ifneq ($(HB_ARCHITECTURE),wce)
|
|
ifeq ($(HB_WITHOUT_ODBC),)
|
|
|
|
ifeq ($(HB_INC_ODBC),)
|
|
ifeq ($(HB_XBUILD),)
|
|
HB_INC_ODBC = /usr/include /usr/local/include
|
|
endif
|
|
endif
|
|
|
|
HB_INC_ODBC_OK += $(foreach d, $(HB_INC_ODBC), $(if $(wildcard $(d)/sql.h),$(d),))
|
|
|
|
ifneq ($(strip $(HB_INC_ODBC_OK)),)
|
|
HB_USER_CFLAGS += $(foreach d, $(HB_INC_ODBC_OK), -I$(d))
|
|
else
|
|
HB_WITHOUT_ODBC=yes
|
|
endif
|
|
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(HB_WITHOUT_ODBC),yes)
|
|
|
|
C_SOURCES=\
|
|
odbcdd.c \
|
|
|
|
include $(TOP)$(ROOT)config/lib.cf
|
|
|
|
else
|
|
include $(TOP)$(ROOT)config/none.cf
|
|
endif
|