blob: 1d26dd62118f8e42d0da67c3a1b7f77abb09e27b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|
######################################################################
# rules.vc --
#
# Simple set of standard rules for the VC++ makefiles.
#
######################################################################
# $Id$
######################################################################
######################################################################
# a bug fix needed for VC++ 6.0's nmake tool.
#
# Reset the version *string* back to the integer it's supposed to be.
# More entries will have to be made here for all subsiquent nmake
# versions until Microsoft fixes it.
#
_NMAKE_VER = $(_NMAKE_VER:6.00.8168.0=600)
######################################################################
######################################################################
# Commandline checks and over-rides
######################################################################
!ifndef HAVE_RULES
HAVE_RULES = 1
# Set DEBUG to 1 to compile with symbols.
#
!ifndef DEBUG
DEBUG = 0
!endif
# Set STATIC_BUILD to 1 to make a static library rather
# than a dll.
#
!ifndef STATIC_BUILD
STATIC_BUILD = 0
!endif
# Set USE_TCL_STUBS to 0 to disable Stubs support. Stubs
# will work fine even with static libraries, but you may
# disable it if you want to.
#
!ifndef USE_TCL_STUBS
!if $(STATIC_BUILD) == 0
USE_TCL_STUBS = 1
!else
USE_TCL_STUBS = 0
!endif
!endif
# Set NOMSVCRT to 1 to use libcmt(d).lib instead of the
# dynamic run-time.
#
!ifndef NOMSVCRT
!if $(STATIC_BUILD)
NOMSVCRT = 1
!else
NOMSVCRT = 0
!endif
!endif
!if $(STATIC_BUILD) == 0 && $(NOMSVCRT) == 1
!error "The static runtime in a loadable (dll) extension is a useless configuration that will cause abnormal and unnecessary code bloat."
!endif
!endif #!ifndef HAVE_RULES
|