tDOM

Hex Artifact Content
Login

Hex Artifact Content

Artifact e788fcfc1e69b11946e18b8f67e0870b3bd38913:


0000: 23 20 54 68 69 73 20 66 69 6c 65 20 73 68 6f 75  # This file shou
0010: 6c 64 20 6f 6e 6c 79 20 62 65 20 69 6e 63 6c 75  ld only be inclu
0020: 64 65 64 20 69 6e 20 6d 61 6b 65 66 69 6c 65 73  ded in makefiles
0030: 20 66 6f 72 20 54 63 6c 20 65 78 74 65 6e 73 69   for Tcl extensi
0040: 6f 6e 73 2c 0d 0a 23 20 4e 4f 54 20 69 6e 20 74  ons,..# NOT in t
0050: 68 65 20 6d 61 6b 65 66 69 6c 65 20 66 6f 72 20  he makefile for 
0060: 54 63 6c 20 69 74 73 65 6c 66 2e 0d 0a 0d 0a 21  Tcl itself.....!
0070: 69 66 6e 64 65 66 20 5f 52 55 4c 45 53 5f 45 58  ifndef _RULES_EX
0080: 54 5f 56 43 0d 0a 0d 0a 23 20 57 65 20 6e 65 65  T_VC....# We nee
0090: 64 20 74 6f 20 72 75 6e 20 66 72 6f 6d 20 74 68  d to run from th
00a0: 65 20 64 69 72 65 63 74 6f 72 79 20 74 68 65 20  e directory the 
00b0: 70 61 72 65 6e 74 20 6d 61 6b 65 66 69 6c 65 20  parent makefile 
00c0: 69 73 20 6c 6f 63 61 74 65 64 20 69 6e 2e 0d 0a  is located in...
00d0: 23 20 6e 6d 61 6b 65 20 64 6f 65 73 20 6e 6f 74  # nmake does not
00e0: 20 74 65 6c 6c 20 75 73 20 77 68 61 74 20 6d 61   tell us what ma
00f0: 6b 65 66 69 6c 65 20 77 61 73 20 75 73 65 64 20  kefile was used 
0100: 74 6f 20 69 6e 76 6f 6b 65 20 69 74 20 73 6f 20  to invoke it so 
0110: 70 61 72 65 6e 74 0d 0a 23 20 6d 61 6b 65 66 69  parent..# makefi
0120: 6c 65 20 68 61 73 20 74 6f 20 73 65 74 20 74 68  le has to set th
0130: 65 20 4d 41 4b 45 46 49 4c 45 56 43 20 6d 61 63  e MAKEFILEVC mac
0140: 72 6f 20 6f 72 20 77 65 20 6a 75 73 74 20 6d 61  ro or we just ma
0150: 6b 65 20 61 20 67 75 65 73 73 20 61 6e 64 0d 0a  ke a guess and..
0160: 23 20 77 61 72 6e 20 69 66 20 77 65 20 74 68 69  # warn if we thi
0170: 6e 6b 20 74 68 61 74 20 69 73 20 6e 6f 74 20 74  nk that is not t
0180: 68 65 20 63 61 73 65 2e 0d 0a 21 69 66 20 22 24  he case...!if "$
0190: 28 4d 41 4b 45 46 49 4c 45 56 43 29 22 20 3d 3d  (MAKEFILEVC)" ==
01a0: 20 22 22 0d 0a 0d 0a 21 69 66 20 65 78 69 73 74   ""....!if exist
01b0: 28 22 24 28 50 52 4f 4a 45 43 54 29 2e 76 63 22  ("$(PROJECT).vc"
01c0: 29 0d 0a 4d 41 4b 45 46 49 4c 45 56 43 20 3d 20  )..MAKEFILEVC = 
01d0: 24 28 50 52 4f 4a 45 43 54 29 2e 76 63 0d 0a 21  $(PROJECT).vc..!
01e0: 65 6c 73 65 69 66 20 65 78 69 73 74 28 22 6d 61  elseif exist("ma
01f0: 6b 65 66 69 6c 65 2e 76 63 22 29 0d 0a 4d 41 4b  kefile.vc")..MAK
0200: 45 46 49 4c 45 56 43 20 3d 20 6d 61 6b 65 66 69  EFILEVC = makefi
0210: 6c 65 2e 76 63 0d 0a 21 65 6e 64 69 66 0d 0a 21  le.vc..!endif..!
0220: 65 6e 64 69 66 20 23 20 22 24 28 4d 41 4b 45 46  endif # "$(MAKEF
0230: 49 4c 45 56 43 29 22 20 3d 3d 20 22 22 0d 0a 0d  ILEVC)" == ""...
0240: 0a 21 69 66 20 21 65 78 69 73 74 28 22 24 28 4d  .!if !exist("$(M
0250: 41 4b 45 46 49 4c 45 56 43 29 22 29 0d 0a 4d 53  AKEFILEVC)")..MS
0260: 47 20 3d 20 5e 0d 0a 59 6f 75 20 6d 75 73 74 20  G = ^..You must 
0270: 72 75 6e 20 6e 6d 61 6b 65 20 66 72 6f 6d 20 74  run nmake from t
0280: 68 65 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e  he directory con
0290: 74 61 69 6e 69 6e 67 20 74 68 65 20 70 72 6f 6a  taining the proj
02a0: 65 63 74 20 6d 61 6b 65 66 69 6c 65 2e 5e 0d 0a  ect makefile.^..
02b0: 49 66 20 79 6f 75 20 61 72 65 20 64 6f 69 6e 67  If you are doing
02c0: 20 74 68 61 74 20 61 6e 64 20 67 65 74 74 69 6e   that and gettin
02d0: 67 20 74 68 69 73 20 6d 65 73 73 61 67 65 2c 20  g this message, 
02e0: 73 65 74 20 74 68 65 20 4d 41 4b 45 46 49 4c 45  set the MAKEFILE
02f0: 56 43 5e 0d 0a 6d 61 63 72 6f 20 74 6f 20 74 68  VC^..macro to th
0300: 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 70 72  e name of the pr
0310: 6f 6a 65 63 74 20 6d 61 6b 65 66 69 6c 65 2e 0d  oject makefile..
0320: 0a 21 6d 65 73 73 61 67 65 20 57 41 52 4e 49 4e  .!message WARNIN
0330: 47 3a 20 24 28 4d 53 47 29 0d 0a 21 65 6e 64 69  G: $(MSG)..!endi
0340: 66 0d 0a 0d 0a 21 69 66 20 22 24 28 50 52 4f 4a  f....!if "$(PROJ
0350: 45 43 54 29 22 20 3d 3d 20 22 74 63 6c 22 0d 0a  ECT)" == "tcl"..
0360: 21 65 72 72 6f 72 20 54 68 65 20 72 75 6c 65 73  !error The rules
0370: 2d 65 78 74 2e 76 63 20 66 69 6c 65 20 69 73 20  -ext.vc file is 
0380: 6e 6f 74 20 69 6e 74 65 6e 64 65 64 20 66 6f 72  not intended for
0390: 20 54 63 6c 20 69 74 73 65 6c 66 2e 0d 0a 21 65   Tcl itself...!e
03a0: 6e 64 69 66 0d 0a 0d 0a 23 20 57 65 20 65 78 74  ndif....# We ext
03b0: 72 61 63 74 20 76 65 72 73 69 6f 6e 20 6e 75 6d  ract version num
03c0: 62 65 72 73 20 75 73 69 6e 67 20 74 68 65 20 6e  bers using the n
03d0: 6d 61 6b 65 68 6c 70 20 70 72 6f 67 72 61 6d 2e  makehlp program.
03e0: 20 46 6f 72 20 6e 6f 77 20 75 73 65 0d 0a 23 20   For now use..# 
03f0: 74 68 65 20 6c 6f 63 61 6c 20 63 6f 70 79 20 6f  the local copy o
0400: 66 20 6e 6d 61 6b 65 68 6c 70 2e 20 4f 6e 63 65  f nmakehlp. Once
0410: 20 77 65 20 6c 6f 63 61 74 65 20 54 63 6c 2c 20   we locate Tcl, 
0420: 77 65 20 77 69 6c 6c 20 75 73 65 20 74 68 61 74  we will use that
0430: 0d 0a 23 20 6f 6e 65 20 69 66 20 69 74 20 69 73  ..# one if it is
0440: 20 6e 65 77 65 72 2e 0d 0a 21 69 66 20 5b 24 28   newer...!if [$(
0450: 43 43 29 20 2d 6e 6f 6c 6f 67 6f 20 22 6e 6d 61  CC) -nologo "nma
0460: 6b 65 68 6c 70 2e 63 22 20 2d 6c 69 6e 6b 20 2d  kehlp.c" -link -
0470: 73 75 62 73 79 73 74 65 6d 3a 63 6f 6e 73 6f 6c  subsystem:consol
0480: 65 20 3e 20 6e 75 6c 5d 0d 0a 21 65 6e 64 69 66  e > nul]..!endif
0490: 0d 0a 0d 0a 23 20 46 69 72 73 74 20 6c 6f 63 61  ....# First loca
04a0: 74 65 20 74 68 65 20 54 63 6c 20 64 69 72 65 63  te the Tcl direc
04b0: 74 6f 72 79 20 74 68 61 74 20 77 65 20 61 72 65  tory that we are
04c0: 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 2e 0d 0a   working with...
04d0: 21 69 66 64 65 66 20 54 43 4c 44 49 52 0d 0a 0d  !ifdef TCLDIR...
04e0: 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 24 28 54  ._RULESDIR = $(T
04f0: 43 4c 44 49 52 3a 2f 3d 5c 29 0d 0a 0d 0a 21 65  CLDIR:/=\)....!e
0500: 6c 73 65 0d 0a 0d 0a 23 20 49 66 20 61 6e 20 69  lse....# If an i
0510: 6e 73 74 61 6c 6c 61 74 69 6f 6e 20 70 61 74 68  nstallation path
0520: 20 69 73 20 73 70 65 63 69 66 69 65 64 2c 20 74   is specified, t
0530: 68 61 74 20 69 73 20 61 6c 73 6f 20 74 68 65 20  hat is also the 
0540: 54 63 6c 20 64 69 72 65 63 74 6f 72 79 2e 0d 0a  Tcl directory...
0550: 23 20 41 6c 73 6f 20 54 6b 20 6e 65 76 65 72 20  # Also Tk never 
0560: 62 75 69 6c 64 73 20 61 67 61 69 6e 73 74 20 61  builds against a
0570: 6e 20 69 6e 73 74 61 6c 6c 65 64 20 54 63 6c 2c  n installed Tcl,
0580: 20 69 74 20 6e 65 65 64 73 20 54 63 6c 20 73 6f   it needs Tcl so
0590: 75 72 63 65 73 0d 0a 21 69 66 20 64 65 66 69 6e  urces..!if defin
05a0: 65 64 28 49 4e 53 54 41 4c 4c 44 49 52 29 20 26  ed(INSTALLDIR) &
05b0: 26 20 22 24 28 50 52 4f 4a 45 43 54 29 22 20 21  & "$(PROJECT)" !
05c0: 3d 20 22 74 6b 22 0d 0a 5f 52 55 4c 45 53 44 49  = "tk".._RULESDI
05d0: 52 3d 24 28 49 4e 53 54 41 4c 4c 44 49 52 3a 2f  R=$(INSTALLDIR:/
05e0: 3d 5c 29 0d 0a 21 65 6c 73 65 0d 0a 23 20 4c 6f  =\)..!else..# Lo
05f0: 63 61 74 65 20 54 63 6c 20 73 6f 75 72 63 65 73  cate Tcl sources
0600: 0d 0a 21 69 66 20 5b 65 63 68 6f 20 5f 52 55 4c  ..!if [echo _RUL
0610: 45 53 44 49 52 20 3d 20 5c 3e 20 6e 6d 61 6b 65  ESDIR = \> nmake
0620: 68 6c 70 2e 6f 75 74 5d 20 5c 0d 0a 20 20 20 7c  hlp.out] \..   |
0630: 7c 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 4c 20 67  | [nmakehlp -L g
0640: 65 6e 65 72 69 63 5c 74 63 6c 2e 68 20 3e 3e 20  eneric\tcl.h >> 
0650: 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 0d 0a 5f  nmakehlp.out].._
0660: 52 55 4c 45 53 44 49 52 20 3d 20 2e 2e 5c 2e 2e  RULESDIR = ..\..
0670: 5c 74 63 6c 0d 0a 21 65 6c 73 65 0d 0a 21 69 6e  \tcl..!else..!in
0680: 63 6c 75 64 65 20 6e 6d 61 6b 65 68 6c 70 2e 6f  clude nmakehlp.o
0690: 75 74 0d 0a 21 65 6e 64 69 66 0d 0a 0d 0a 21 65  ut..!endif....!e
06a0: 6e 64 69 66 20 23 20 64 65 66 69 6e 65 64 28 49  ndif # defined(I
06b0: 4e 53 54 41 4c 4c 44 49 52 29 2e 2e 2e 2e 0d 0a  NSTALLDIR)......
06c0: 0d 0a 21 65 6e 64 69 66 20 23 20 69 66 6e 64 65  ..!endif # ifnde
06d0: 66 20 54 43 4c 44 49 52 0d 0a 0d 0a 23 20 4e 6f  f TCLDIR....# No
06e0: 77 20 6c 6f 6f 6b 20 66 6f 72 20 74 68 65 20 74  w look for the t
06f0: 61 72 67 65 74 73 2e 76 63 20 66 69 6c 65 20 75  argets.vc file u
0700: 6e 64 65 72 20 74 68 65 20 54 63 6c 20 72 6f 6f  nder the Tcl roo
0710: 74 2e 20 4e 6f 74 65 20 77 65 20 63 68 65 63 6b  t. Note we check
0720: 20 74 68 69 73 0d 0a 23 20 66 69 6c 65 20 61 6e   this..# file an
0730: 64 20 6e 6f 74 20 72 75 6c 65 73 2e 76 63 20 62  d not rules.vc b
0740: 65 63 61 75 73 65 20 74 68 65 20 6c 61 74 74 65  ecause the latte
0750: 72 20 61 6c 73 6f 20 65 78 69 73 74 73 20 6f 6e  r also exists on
0760: 20 6f 6c 64 65 72 20 73 79 73 74 65 6d 73 2e 0d   older systems..
0770: 0a 21 69 66 20 65 78 69 73 74 28 22 24 28 5f 52  .!if exist("$(_R
0780: 55 4c 45 53 44 49 52 29 5c 6c 69 62 5c 6e 6d 61  ULESDIR)\lib\nma
0790: 6b 65 5c 74 61 72 67 65 74 73 2e 76 63 22 29 20  ke\targets.vc") 
07a0: 23 20 42 75 69 6c 64 69 6e 67 20 61 67 61 69 6e  # Building again
07b0: 73 74 20 69 6e 73 74 61 6c 6c 65 64 20 54 63 6c  st installed Tcl
07c0: 0d 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 24 28  .._RULESDIR = $(
07d0: 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 5c 6e  _RULESDIR)\lib\n
07e0: 6d 61 6b 65 0d 0a 21 65 6c 73 65 69 66 20 65 78  make..!elseif ex
07f0: 69 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49 52  ist("$(_RULESDIR
0800: 29 5c 77 69 6e 5c 74 61 72 67 65 74 73 2e 76 63  )\win\targets.vc
0810: 22 29 20 20 20 23 20 42 75 69 6c 64 69 6e 67 20  ")   # Building 
0820: 61 67 61 69 6e 73 74 20 54 63 6c 20 73 6f 75 72  against Tcl sour
0830: 63 65 73 0d 0a 5f 52 55 4c 45 53 44 49 52 20 3d  ces.._RULESDIR =
0840: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 77 69   $(_RULESDIR)\wi
0850: 6e 0d 0a 21 65 6c 73 65 0d 0a 23 20 49 66 20 77  n..!else..# If w
0860: 65 20 68 61 76 65 20 6e 6f 74 20 6c 6f 63 61 74  e have not locat
0870: 65 64 20 54 63 6c 27 73 20 74 61 72 67 65 74 73  ed Tcl's targets
0880: 20 66 69 6c 65 2c 20 6d 6f 73 74 20 6c 69 6b 65   file, most like
0890: 6c 79 20 77 65 20 61 72 65 20 63 6f 6d 70 69 6c  ly we are compil
08a0: 69 6e 67 0d 0a 23 20 61 67 61 69 6e 73 74 20 61  ing..# against a
08b0: 6e 20 6f 6c 64 65 72 20 76 65 72 73 69 6f 6e 20  n older version 
08c0: 6f 66 20 54 63 6c 20 61 6e 64 20 73 6f 20 6d 75  of Tcl and so mu
08d0: 73 74 20 75 73 65 20 6f 75 72 20 6f 77 6e 20 73  st use our own s
08e0: 75 70 70 6f 72 74 20 66 69 6c 65 73 2e 0d 0a 5f  upport files..._
08f0: 52 55 4c 45 53 44 49 52 20 3d 20 2e 0d 0a 21 65  RULESDIR = ...!e
0900: 6e 64 69 66 0d 0a 0d 0a 21 69 66 20 22 24 28 5f  ndif....!if "$(_
0910: 52 55 4c 45 53 44 49 52 29 22 20 21 3d 20 22 2e  RULESDIR)" != ".
0920: 22 0d 0a 23 20 50 6f 74 65 6e 74 69 61 6c 6c 79  "..# Potentially
0930: 20 75 73 69 6e 67 20 54 63 6c 27 73 20 73 75 70   using Tcl's sup
0940: 70 6f 72 74 20 66 69 6c 65 73 2e 20 49 66 20 74  port files. If t
0950: 68 69 73 20 65 78 74 65 6e 73 69 6f 6e 20 68 61  his extension ha
0960: 73 20 69 74 73 20 6f 77 6e 0d 0a 23 20 6e 6d 61  s its own..# nma
0970: 6b 65 20 73 75 70 70 6f 72 74 20 66 69 6c 65 73  ke support files
0980: 2c 20 6e 65 65 64 20 74 6f 20 63 6f 6d 70 61 72  , need to compar
0990: 65 20 74 68 65 20 76 65 72 73 69 6f 6e 73 20 61  e the versions a
09a0: 6e 64 20 70 69 63 6b 20 6e 65 77 65 72 2e 0d 0a  nd pick newer...
09b0: 0d 0a 21 69 66 20 65 78 69 73 74 28 22 72 75 6c  ..!if exist("rul
09c0: 65 73 2e 76 63 22 29 20 23 20 54 68 65 20 65 78  es.vc") # The ex
09d0: 74 65 6e 73 69 6f 6e 20 68 61 73 20 69 74 73 20  tension has its 
09e0: 6f 77 6e 20 63 6f 70 79 0d 0a 0d 0a 21 69 66 20  own copy....!if 
09f0: 5b 65 63 68 6f 20 54 43 4c 5f 52 55 4c 45 53 5f  [echo TCL_RULES_
0a00: 4d 41 4a 4f 52 20 3d 20 5c 3e 20 76 65 72 73 69  MAJOR = \> versi
0a10: 6f 6e 73 2e 76 63 5d 20 5c 0d 0a 20 20 20 26 26  ons.vc] \..   &&
0a20: 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 56 20 22 24   [nmakehlp -V "$
0a30: 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65  (_RULESDIR)\rule
0a40: 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53  s.vc" RULES_VERS
0a50: 49 4f 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76 65 72  ION_MAJOR >> ver
0a60: 73 69 6f 6e 73 2e 76 63 5d 0d 0a 21 65 6e 64 69  sions.vc]..!endi
0a70: 66 0d 0a 21 69 66 20 5b 65 63 68 6f 20 54 43 4c  f..!if [echo TCL
0a80: 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c  _RULES_MINOR = \
0a90: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20  >> versions.vc] 
0aa0: 5c 0d 0a 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68  \..   && [nmakeh
0ab0: 6c 70 20 2d 56 20 22 24 28 5f 52 55 4c 45 53 44  lp -V "$(_RULESD
0ac0: 49 52 29 5c 72 75 6c 65 73 2e 76 63 22 20 52 55  IR)\rules.vc" RU
0ad0: 4c 45 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f  LES_VERSION_MINO
0ae0: 52 20 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63  R >> versions.vc
0af0: 5d 0d 0a 21 65 6e 64 69 66 0d 0a 0d 0a 21 69 66  ]..!endif....!if
0b00: 20 5b 65 63 68 6f 20 4f 55 52 5f 52 55 4c 45 53   [echo OUR_RULES
0b10: 5f 4d 41 4a 4f 52 20 3d 20 5c 3e 3e 20 76 65 72  _MAJOR = \>> ver
0b20: 73 69 6f 6e 73 2e 76 63 5d 20 5c 0d 0a 20 20 20  sions.vc] \..   
0b30: 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 56 20  && [nmakehlp -V 
0b40: 22 72 75 6c 65 73 2e 76 63 22 20 52 55 4c 45 53  "rules.vc" RULES
0b50: 5f 56 45 52 53 49 4f 4e 5f 4d 41 4a 4f 52 20 3e  _VERSION_MAJOR >
0b60: 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 0d 0a  > versions.vc]..
0b70: 21 65 6e 64 69 66 0d 0a 21 69 66 20 5b 65 63 68  !endif..!if [ech
0b80: 6f 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e 4f  o OUR_RULES_MINO
0b90: 52 20 3d 20 5c 3e 3e 20 76 65 72 73 69 6f 6e 73  R = \>> versions
0ba0: 2e 76 63 5d 20 5c 0d 0a 20 20 20 26 26 20 5b 6e  .vc] \..   && [n
0bb0: 6d 61 6b 65 68 6c 70 20 2d 56 20 22 72 75 6c 65  makehlp -V "rule
0bc0: 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53  s.vc" RULES_VERS
0bd0: 49 4f 4e 5f 4d 49 4e 4f 52 20 3e 3e 20 76 65 72  ION_MINOR >> ver
0be0: 73 69 6f 6e 73 2e 76 63 5d 0d 0a 21 65 6e 64 69  sions.vc]..!endi
0bf0: 66 0d 0a 21 69 6e 63 6c 75 64 65 20 76 65 72 73  f..!include vers
0c00: 69 6f 6e 73 2e 76 63 0d 0a 23 20 57 65 20 68 61  ions.vc..# We ha
0c10: 76 65 20 61 20 6e 65 77 65 72 20 76 65 72 73 69  ve a newer versi
0c20: 6f 6e 20 6f 66 20 74 68 65 20 73 75 70 70 6f 72  on of the suppor
0c30: 74 20 66 69 6c 65 73 2c 20 75 73 65 20 74 68 65  t files, use the
0c40: 6d 0d 0a 21 69 66 20 28 24 28 54 43 4c 5f 52 55  m..!if ($(TCL_RU
0c50: 4c 45 53 5f 4d 41 4a 4f 52 29 20 21 3d 20 24 28  LES_MAJOR) != $(
0c60: 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 29  OUR_RULES_MAJOR)
0c70: 29 20 7c 7c 20 28 24 28 54 43 4c 5f 52 55 4c 45  ) || ($(TCL_RULE
0c80: 53 5f 4d 49 4e 4f 52 29 20 3c 20 24 28 4f 55 52  S_MINOR) < $(OUR
0c90: 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 29 29 0d 0a  _RULES_MINOR))..
0ca0: 5f 52 55 4c 45 53 44 49 52 20 3d 20 2e 0d 0a 21  _RULESDIR = ...!
0cb0: 65 6e 64 69 66 0d 0a 0d 0a 21 65 6e 64 69 66 20  endif....!endif 
0cc0: 23 20 69 66 20 65 78 69 73 74 28 22 72 75 6c 65  # if exist("rule
0cd0: 73 2e 76 63 22 29 0d 0a 0d 0a 21 65 6e 64 69 66  s.vc")....!endif
0ce0: 20 23 20 69 66 20 24 28 5f 52 55 4c 45 53 44 49   # if $(_RULESDI
0cf0: 52 29 20 21 3d 20 22 2e 22 0d 0a 0d 0a 23 20 4c  R) != "."....# L
0d00: 65 74 20 72 75 6c 65 73 2e 76 63 20 6b 6e 6f 77  et rules.vc know
0d10: 20 77 68 61 74 20 63 6f 70 79 20 6f 66 20 6e 6d   what copy of nm
0d20: 61 6b 65 68 6c 70 2e 63 20 74 6f 20 75 73 65 2e  akehlp.c to use.
0d30: 0d 0a 4e 4d 41 4b 45 48 4c 50 43 20 3d 20 24 28  ..NMAKEHLPC = $(
0d40: 5f 52 55 4c 45 53 44 49 52 29 5c 6e 6d 61 6b 65  _RULESDIR)\nmake
0d50: 68 6c 70 2e 63 0d 0a 0d 0a 23 20 47 65 74 20 72  hlp.c....# Get r
0d60: 69 64 20 6f 66 20 6f 75 72 20 69 6e 74 65 72 6e  id of our intern
0d70: 61 6c 20 64 65 66 69 6e 65 73 20 62 65 66 6f 72  al defines befor
0d80: 65 20 63 61 6c 6c 69 6e 67 20 72 75 6c 65 73 2e  e calling rules.
0d90: 76 63 0d 0a 21 75 6e 64 65 66 20 54 43 4c 5f 52  vc..!undef TCL_R
0da0: 55 4c 45 53 5f 4d 41 4a 4f 52 0d 0a 21 75 6e 64  ULES_MAJOR..!und
0db0: 65 66 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 49 4e  ef TCL_RULES_MIN
0dc0: 4f 52 0d 0a 21 75 6e 64 65 66 20 4f 55 52 5f 52  OR..!undef OUR_R
0dd0: 55 4c 45 53 5f 4d 41 4a 4f 52 0d 0a 21 75 6e 64  ULES_MAJOR..!und
0de0: 65 66 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e  ef OUR_RULES_MIN
0df0: 4f 52 0d 0a 0d 0a 21 69 66 20 65 78 69 73 74 28  OR....!if exist(
0e00: 22 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75  "$(_RULESDIR)\ru
0e10: 6c 65 73 2e 76 63 22 29 0d 0a 21 6d 65 73 73 61  les.vc")..!messa
0e20: 67 65 20 2a 2a 2a 20 55 73 69 6e 67 20 24 28 5f  ge *** Using $(_
0e30: 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 73 2e  RULESDIR)\rules.
0e40: 76 63 0d 0a 21 69 6e 63 6c 75 64 65 20 22 24 28  vc..!include "$(
0e50: 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 73  _RULESDIR)\rules
0e60: 2e 76 63 22 0d 0a 21 65 6c 73 65 0d 0a 21 65 72  .vc"..!else..!er
0e70: 72 6f 72 20 2a 2a 2a 20 43 6f 75 6c 64 20 6e 6f  ror *** Could no
0e80: 74 20 6c 6f 63 61 74 65 20 72 75 6c 65 73 2e 76  t locate rules.v
0e90: 63 20 69 6e 20 24 28 5f 52 55 4c 45 53 44 49 52  c in $(_RULESDIR
0ea0: 29 0d 0a 21 65 6e 64 69 66 0d 0a 0d 0a 21 65 6e  )..!endif....!en
0eb0: 64 69 66 20 23 20 5f 52 55 4c 45 53 5f 45 58 54  dif # _RULES_EXT
0ec0: 5f 56 43                                         _VC