OSDN Git Service

2007-06-01 Steve Ellcey <sje@cup.hp.com>
[pf3gnuchains/pf3gnuchains4x.git] / itcl / rules.vc
1 ######################################################################\r
2 #  rules.vc --\r
3 #\r
4 #       Simple set of standard rules for the VC++ makefiles.\r
5 #\r
6 ######################################################################\r
7 # $Id$\r
8 ######################################################################\r
9 \r
10 ######################################################################\r
11 # a bug fix needed for VC++ 6.0's nmake tool.\r
12 #\r
13 # Reset the version *string* back to the integer it's supposed to be.\r
14 # More entries will have to be made here for all subsiquent nmake\r
15 # versions until Microsoft fixes it.\r
16 #\r
17 _NMAKE_VER  = $(_NMAKE_VER:6.00.8168.0=600)\r
18 ######################################################################\r
19 \r
20 \r
21 ######################################################################\r
22 # Commandline checks and over-rides\r
23 ######################################################################\r
24 \r
25 !ifndef HAVE_RULES\r
26 HAVE_RULES      = 1\r
27 \r
28 # Set DEBUG to 1 to compile with symbols.\r
29 #\r
30 !ifndef DEBUG\r
31 DEBUG           = 0\r
32 !endif\r
33 \r
34 # Set STATIC_BUILD to 1 to make a static library rather\r
35 # than a dll.\r
36 #\r
37 !ifndef STATIC_BUILD\r
38 STATIC_BUILD    = 0\r
39 !endif\r
40 \r
41 # Set USE_TCL_STUBS to 0 to disable Stubs support.  Stubs\r
42 # will work fine even with static libraries, but you may\r
43 # disable it if you want to.\r
44 #\r
45 !ifndef USE_TCL_STUBS\r
46 !if $(STATIC_BUILD) == 0\r
47 USE_TCL_STUBS   = 1\r
48 !else\r
49 USE_TCL_STUBS   = 0\r
50 !endif\r
51 !endif\r
52 \r
53 # Set NOMSVCRT to 1 to use libcmt(d).lib instead of the\r
54 # dynamic run-time.\r
55 #\r
56 !ifndef NOMSVCRT\r
57 !if $(STATIC_BUILD)\r
58 NOMSVCRT        = 1\r
59 !else\r
60 NOMSVCRT        = 0\r
61 !endif\r
62 !endif\r
63 \r
64 !if $(STATIC_BUILD) == 0 && $(NOMSVCRT) == 1\r
65 !error "The static runtime in a loadable (dll) extension is a useless configuration that will cause abnormal and unnecessary code bloat."\r
66 !endif\r
67 \r
68 !endif   #!ifndef HAVE_RULES\r