tdbc::odbc

Check-in [f1743f7c76]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated copy of Tcl nmake support files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | vc-reform
Files: files | file ages | folders
SHA3-256: f1743f7c76b429fbb5422b0c84c2c67767b945f250e2d36db878e961872f9329
User & Date: apnadkarni 2017-12-11 16:35:49
Context
2017-12-13
10:50
Use nmakehlp -L to locate TDBC directories Closed-Leaf check-in: dbc0d39519 user: apnadkarni tags: vc-reform
2017-12-11
16:35
Updated copy of Tcl nmake support files check-in: f1743f7c76 user: apnadkarni tags: vc-reform
2017-12-10
16:24
TIP 477, builds, pending testing with odbc drivers check-in: 30d9cacca1 user: apnadkarni tags: vc-reform
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to win/makefile.vc.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
..
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
..
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#------------------------------------------------------------------------------

PROJECT = tdbcodbc
# Tcl 8.6 etc. compile with /DUNICODE. TDBC pre-nmake reform compiled
# without -DUNICODE. Keep that behaviour for now. TBD
USE_WIDECHAR_API  = 0

!include "rules-ext.vc"

# nmakehelp -V <file> <tag> will search the file for tag, skips until a
#	number and returns all character until a character not in [0-9.ab]
#	is read.
................................................................................
!include "versions.vc"

PRJ_OBJS = \
	$(TMP_DIR)\tdbcodbc.obj \
	$(TMP_DIR)\odbcStubInit.obj


PRJ_STUBOBJS = \
	$(TMP_DIR)\odbcStubInit.obj

PRJHEADERS = \
	$(GENERICDIR)\fakesql.h \
	$(GENERICDIR)\odbcStubs.h

### tdbc
!ifndef TDBC_DOTVERSION
TDBC_DOTVERSION		= $(DOTVERSION)
!endif
................................................................................

PRJ_INCLUDES	= -I"$(TDBC_GENERIC_DIR)"

!if !$(STATIC_BUILD)
PRJ_LIBS  = $(TDBCSTUBLIB)
!endif

# Disable standard targets because we have custom test target
DISABLE_STANDARD_TARGETS = 1
!include "$(_RULESDIR)\targets.vc"

setup: default-setup
install: default-install default-install-stubs default-install-docs-n
shell: default-shell
clean: default-clean
realclean: hose
hose: default-hose
distclean: realclean default-distclean

$(PRJ_OBJS): $(PRJHEADERS)

# The TIP 477 generation of pkgIndex.tcl from pkgIndex.tcl.in does not include
# all replacements below so define our own it.
pkgindex:   $(OUT_DIR)\pkgIndex.tcl
$(OUT_DIR)\pkgIndex.tcl: $(ROOT)\pkgIndex.tcl.in
	@nmakehlp -s << $** > [email protected]
@[email protected]        $(PROJECT)






|







 







|
|

|







 







|
|


|
|
<
<
<
<
<
<
<







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
..
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
..
68
69
70
71
72
73
74
75
76
77
78
79
80







81
82
83
84
85
86
87
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#------------------------------------------------------------------------------

PROJECT = tdbcodbc
# Tcl 8.6 etc. compile with /DUNICODE. TDBC pre-nmake reform compiled
# without -DUNICODE. Keep that behaviour for now.
USE_WIDECHAR_API  = 0

!include "rules-ext.vc"

# nmakehelp -V <file> <tag> will search the file for tag, skips until a
#	number and returns all character until a character not in [0-9.ab]
#	is read.
................................................................................
!include "versions.vc"

PRJ_OBJS = \
	$(TMP_DIR)\tdbcodbc.obj \
	$(TMP_DIR)\odbcStubInit.obj


# Uncomment the following line if you want to build and install stubs
# PRJ_STUBOBJS = $(TMP_DIR)\odbcStubInit.obj

PRJ_HEADERS = \
	$(GENERICDIR)\fakesql.h \
	$(GENERICDIR)\odbcStubs.h

### tdbc
!ifndef TDBC_DOTVERSION
TDBC_DOTVERSION		= $(DOTVERSION)
!endif
................................................................................

PRJ_INCLUDES	= -I"$(TDBC_GENERIC_DIR)"

!if !$(STATIC_BUILD)
PRJ_LIBS  = $(TDBCSTUBLIB)
!endif

# Disable standard tes target because we have a custom one.
DISABLE_TARGET_test = 1
!include "$(_RULESDIR)\targets.vc"

# Install needs some extra default actions.
install: default-install-docs-n








# The TIP 477 generation of pkgIndex.tcl from pkgIndex.tcl.in does not include
# all replacements below so define our own it.
pkgindex:   $(OUT_DIR)\pkgIndex.tcl
$(OUT_DIR)\pkgIndex.tcl: $(ROOT)\pkgIndex.tcl.in
	@nmakehlp -s << $** > [email protected]
@[email protected]        $(PROJECT)

Changes to win/rules.vc.

1677
1678
1679
1680
1681
1682
1683

1684
1685
1686
1687
1688
1689
#----------------------------------------------------------
# Display stats being used.
#----------------------------------------------------------

!message *** Intermediate directory will be '$(TMP_DIR)'
!message *** Output directory will be '$(OUT_DIR)'

!message *** Suffix for binaries will be '$(SUFX)'
!message *** Optional defines are '$(OPTDEFINES)'
!message *** Compiler version $(VCVER). Target machine is $(MACHINE)
!message *** Host architecture is $(NATIVE_ARCH)

!endif # ifdef _RULES_VC






>

<




1677
1678
1679
1680
1681
1682
1683
1684
1685

1686
1687
1688
1689
#----------------------------------------------------------
# Display stats being used.
#----------------------------------------------------------

!message *** Intermediate directory will be '$(TMP_DIR)'
!message *** Output directory will be '$(OUT_DIR)'
!message *** Installation, if selected, will be in '$(_INSTALLDIR)'
!message *** Suffix for binaries will be '$(SUFX)'

!message *** Compiler version $(VCVER). Target machine is $(MACHINE)
!message *** Host architecture is $(NATIVE_ARCH)

!endif # ifdef _RULES_VC

Changes to win/targets.vc.

32
33
34
35
36
37
38




















39
40
41
42
















43

44


45


46
47
48
49


50


51
52

!else
       $(DLLCMD) $**
       $(_VC_MANIFEST_EMBED_DLL)
!endif
       [email protected] $*.exp
!endif





















!ifndef DISABLE_STANDARD_TARGETS
DISABLE_STANDARD_TARGETS = 0
!endif

















!if !$(DISABLE_STANDARD_TARGETS)

setup: default-setup


install: default-install


clean: default-clean
realclean: hose
hose: default-hose
distclean: realclean default-distclean


test: default-test


shell: default-shell
!endif







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

>

>
>

>
>




>
>

>
>


>
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
!else
       $(DLLCMD) $**
       $(_VC_MANIFEST_EMBED_DLL)
!endif
       [email protected] $*.exp
!endif

!if "$(PRJ_HEADERS)" != "" && "$(PRJ_OBJS)" != ""
$(PRJ_OBJS): $(PRJ_HEADERS)
!endif

# If parent makefile has defined stub objects, add their installation
# to the default install
!if "$(PRJ_STUBOBJS)" != ""
default-install: default-install-stubs
!endif

# Unlike the other default targets, these cannot be in rules.vc because
# the executed command depends on existence of macro PRJ_HEADERS_PUBLIC
# that the parent makefile will not define until after including rules-ext.vc
!if "$(PRJ_HEADERS_PUBLIC)" != ""
default-install: default-install-headers
default-install-headers:
	@echo Installing headers to '$(INCLUDE_INSTALL_DIR)'
	@for %f in ($(PRJ_HEADERS_PUBLIC)) do @$(COPY) %f "$(INCLUDE_INSTALL_DIR)"
!endif

!if "$(DISABLE_STANDARD_TARGETS)" == ""
DISABLE_STANDARD_TARGETS = 0
!endif

!if "$(DISABLE_TARGET_setup)" == ""
DISABLE_TARGET_setup = 0
!endif
!if "$(DISABLE_TARGET_install)" == ""
DISABLE_TARGET_install = 0
!endif
!if "$(DISABLE_TARGET_clean)" == ""
DISABLE_TARGET_clean = 0
!endif
!if "$(DISABLE_TARGET_test)" == ""
DISABLE_TARGET_test = 0
!endif
!if "$(DISABLE_TARGET_shell)" == ""
DISABLE_TARGET_shell = 0
!endif

!if !$(DISABLE_STANDARD_TARGETS)
!if !$(DISABLE_TARGET_setup)
setup: default-setup
!endif
!if !$(DISABLE_TARGET_install)
install: default-install
!endif
!if !$(DISABLE_TARGET_clean)
clean: default-clean
realclean: hose
hose: default-hose
distclean: realclean default-distclean
!endif
!if !$(DISABLE_TARGET_test)
test: default-test
!endif
!if !$(DISABLE_TARGET_shell)
shell: default-shell
!endif
!endif # DISABLE_STANDARD_TARGETS