Hex Artifact Content

Artifact 566230fdd999a957c27007ebfa8022aa523bdb64243d8efcdad1c9c8fc3cdae7:


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 0a 23 20 4e 4f 54 20 69 6e 20 74 68  ons,.# NOT in th
0050: 65 20 6d 61 6b 65 66 69 6c 65 20 66 6f 72 20 54  e makefile for T
0060: 63 6c 20 69 74 73 65 6c 66 2e 0a 0a 21 69 66 6e  cl itself...!ifn
0070: 64 65 66 20 5f 52 55 4c 45 53 5f 45 58 54 5f 56  def _RULES_EXT_V
0080: 43 0a 0a 23 20 57 65 20 6e 65 65 64 20 74 6f 20  C..# We need to 
0090: 72 75 6e 20 66 72 6f 6d 20 74 68 65 20 64 69 72  run from the dir
00a0: 65 63 74 6f 72 79 20 74 68 65 20 70 61 72 65 6e  ectory the paren
00b0: 74 20 6d 61 6b 65 66 69 6c 65 20 69 73 20 6c 6f  t makefile is lo
00c0: 63 61 74 65 64 20 69 6e 2e 0a 23 20 6e 6d 61 6b  cated in..# nmak
00d0: 65 20 64 6f 65 73 20 6e 6f 74 20 74 65 6c 6c 20  e does not tell 
00e0: 75 73 20 77 68 61 74 20 6d 61 6b 65 66 69 6c 65  us what makefile
00f0: 20 77 61 73 20 75 73 65 64 20 74 6f 20 69 6e 76   was used to inv
0100: 6f 6b 65 20 69 74 20 73 6f 20 70 61 72 65 6e 74  oke it so parent
0110: 0a 23 20 6d 61 6b 65 66 69 6c 65 20 68 61 73 20  .# makefile has 
0120: 74 6f 20 73 65 74 20 74 68 65 20 4d 41 4b 45 46  to set the MAKEF
0130: 49 4c 45 56 43 20 6d 61 63 72 6f 20 6f 72 20 77  ILEVC macro or w
0140: 65 20 6a 75 73 74 20 6d 61 6b 65 20 61 20 67 75  e just make a gu
0150: 65 73 73 20 61 6e 64 0a 23 20 77 61 72 6e 20 69  ess and.# warn i
0160: 66 20 77 65 20 74 68 69 6e 6b 20 74 68 61 74 20  f we think that 
0170: 69 73 20 6e 6f 74 20 74 68 65 20 63 61 73 65 2e  is not the case.
0180: 0a 21 69 66 20 22 24 28 4d 41 4b 45 46 49 4c 45  .!if "$(MAKEFILE
0190: 56 43 29 22 20 3d 3d 20 22 22 0a 0a 21 69 66 20  VC)" == ""..!if 
01a0: 65 78 69 73 74 28 22 24 28 50 52 4f 4a 45 43 54  exist("$(PROJECT
01b0: 29 2e 76 63 22 29 0a 4d 41 4b 45 46 49 4c 45 56  ).vc").MAKEFILEV
01c0: 43 20 3d 20 24 28 50 52 4f 4a 45 43 54 29 2e 76  C = $(PROJECT).v
01d0: 63 0a 21 65 6c 73 65 69 66 20 65 78 69 73 74 28  c.!elseif exist(
01e0: 22 6d 61 6b 65 66 69 6c 65 2e 76 63 22 29 0a 4d  "makefile.vc").M
01f0: 41 4b 45 46 49 4c 45 56 43 20 3d 20 6d 61 6b 65  AKEFILEVC = make
0200: 66 69 6c 65 2e 76 63 0a 21 65 6e 64 69 66 0a 21  file.vc.!endif.!
0210: 65 6e 64 69 66 20 23 20 22 24 28 4d 41 4b 45 46  endif # "$(MAKEF
0220: 49 4c 45 56 43 29 22 20 3d 3d 20 22 22 0a 0a 21  ILEVC)" == ""..!
0230: 69 66 20 21 65 78 69 73 74 28 22 24 28 4d 41 4b  if !exist("$(MAK
0240: 45 46 49 4c 45 56 43 29 22 29 0a 4d 53 47 20 3d  EFILEVC)").MSG =
0250: 20 5e 0a 59 6f 75 20 6d 75 73 74 20 72 75 6e 20   ^.You must run 
0260: 6e 6d 61 6b 65 20 66 72 6f 6d 20 74 68 65 20 64  nmake from the d
0270: 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61 69 6e  irectory contain
0280: 69 6e 67 20 74 68 65 20 70 72 6f 6a 65 63 74 20  ing the project 
0290: 6d 61 6b 65 66 69 6c 65 2e 5e 0a 49 66 20 79 6f  makefile.^.If yo
02a0: 75 20 61 72 65 20 64 6f 69 6e 67 20 74 68 61 74  u are doing that
02b0: 20 61 6e 64 20 67 65 74 74 69 6e 67 20 74 68 69   and getting thi
02c0: 73 20 6d 65 73 73 61 67 65 2c 20 73 65 74 20 74  s message, set t
02d0: 68 65 20 4d 41 4b 45 46 49 4c 45 56 43 5e 0a 6d  he MAKEFILEVC^.m
02e0: 61 63 72 6f 20 74 6f 20 74 68 65 20 6e 61 6d 65  acro to the name
02f0: 20 6f 66 20 74 68 65 20 70 72 6f 6a 65 63 74 20   of the project 
0300: 6d 61 6b 65 66 69 6c 65 2e 0a 21 6d 65 73 73 61  makefile..!messa
0310: 67 65 20 57 41 52 4e 49 4e 47 3a 20 24 28 4d 53  ge WARNING: $(MS
0320: 47 29 0a 21 65 6e 64 69 66 0a 0a 21 69 66 20 22  G).!endif..!if "
0330: 24 28 50 52 4f 4a 45 43 54 29 22 20 3d 3d 20 22  $(PROJECT)" == "
0340: 74 63 6c 22 0a 21 65 72 72 6f 72 20 54 68 65 20  tcl".!error The 
0350: 72 75 6c 65 73 2d 65 78 74 2e 76 63 20 66 69 6c  rules-ext.vc fil
0360: 65 20 69 73 20 6e 6f 74 20 69 6e 74 65 6e 64 65  e is not intende
0370: 64 20 66 6f 72 20 54 63 6c 20 69 74 73 65 6c 66  d for Tcl itself
0380: 2e 0a 21 65 6e 64 69 66 0a 0a 23 20 57 65 20 65  ..!endif..# We e
0390: 78 74 72 61 63 74 20 76 65 72 73 69 6f 6e 20 6e  xtract version n
03a0: 75 6d 62 65 72 73 20 75 73 69 6e 67 20 74 68 65  umbers using the
03b0: 20 6e 6d 61 6b 65 68 6c 70 20 70 72 6f 67 72 61   nmakehlp progra
03c0: 6d 2e 20 46 6f 72 20 6e 6f 77 20 75 73 65 0a 23  m. For now use.#
03d0: 20 74 68 65 20 6c 6f 63 61 6c 20 63 6f 70 79 20   the local copy 
03e0: 6f 66 20 6e 6d 61 6b 65 68 6c 70 2e 20 4f 6e 63  of nmakehlp. Onc
03f0: 65 20 77 65 20 6c 6f 63 61 74 65 20 54 63 6c 2c  e we locate Tcl,
0400: 20 77 65 20 77 69 6c 6c 20 75 73 65 20 74 68 61   we will use tha
0410: 74 0a 23 20 6f 6e 65 20 69 66 20 69 74 20 69 73  t.# one if it is
0420: 20 6e 65 77 65 72 2e 0a 21 69 66 20 5b 24 28 43   newer..!if [$(C
0430: 43 29 20 2d 6e 6f 6c 6f 67 6f 20 2d 44 4e 44 45  C) -nologo -DNDE
0440: 42 55 47 20 22 6e 6d 61 6b 65 68 6c 70 2e 63 22  BUG "nmakehlp.c"
0450: 20 2d 6c 69 6e 6b 20 2d 73 75 62 73 79 73 74 65   -link -subsyste
0460: 6d 3a 63 6f 6e 73 6f 6c 65 20 3e 20 6e 75 6c 5d  m:console > nul]
0470: 0a 21 65 6e 64 69 66 0a 0a 23 20 46 69 72 73 74  .!endif..# First
0480: 20 6c 6f 63 61 74 65 20 74 68 65 20 54 63 6c 20   locate the Tcl 
0490: 64 69 72 65 63 74 6f 72 79 20 74 68 61 74 20 77  directory that w
04a0: 65 20 61 72 65 20 77 6f 72 6b 69 6e 67 20 77 69  e are working wi
04b0: 74 68 2e 0a 21 69 66 20 22 24 28 54 43 4c 44 49  th..!if "$(TCLDI
04c0: 52 29 22 20 21 3d 20 22 22 0a 0a 5f 52 55 4c 45  R)" != "".._RULE
04d0: 53 44 49 52 20 3d 20 24 28 54 43 4c 44 49 52 3a  SDIR = $(TCLDIR:
04e0: 2f 3d 5c 29 0a 0a 21 65 6c 73 65 0a 0a 23 20 49  /=\)..!else..# I
04f0: 66 20 61 6e 20 69 6e 73 74 61 6c 6c 61 74 69 6f  f an installatio
0500: 6e 20 70 61 74 68 20 69 73 20 73 70 65 63 69 66  n path is specif
0510: 69 65 64 2c 20 74 68 61 74 20 69 73 20 61 6c 73  ied, that is als
0520: 6f 20 74 68 65 20 54 63 6c 20 64 69 72 65 63 74  o the Tcl direct
0530: 6f 72 79 2e 0a 23 20 41 6c 73 6f 20 54 6b 20 6e  ory..# Also Tk n
0540: 65 76 65 72 20 62 75 69 6c 64 73 20 61 67 61 69  ever builds agai
0550: 6e 73 74 20 61 6e 20 69 6e 73 74 61 6c 6c 65 64  nst an installed
0560: 20 54 63 6c 2c 20 69 74 20 6e 65 65 64 73 20 54   Tcl, it needs T
0570: 63 6c 20 73 6f 75 72 63 65 73 0a 21 69 66 20 64  cl sources.!if d
0580: 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44 49  efined(INSTALLDI
0590: 52 29 20 26 26 20 22 24 28 50 52 4f 4a 45 43 54  R) && "$(PROJECT
05a0: 29 22 20 21 3d 20 22 74 6b 22 0a 5f 52 55 4c 45  )" != "tk"._RULE
05b0: 53 44 49 52 3d 24 28 49 4e 53 54 41 4c 4c 44 49  SDIR=$(INSTALLDI
05c0: 52 3a 2f 3d 5c 29 0a 21 65 6c 73 65 0a 23 20 4c  R:/=\).!else.# L
05d0: 6f 63 61 74 65 20 54 63 6c 20 73 6f 75 72 63 65  ocate Tcl source
05e0: 73 0a 21 69 66 20 5b 65 63 68 6f 20 5f 52 55 4c  s.!if [echo _RUL
05f0: 45 53 44 49 52 20 3d 20 5c 3e 20 6e 6d 61 6b 65  ESDIR = \> nmake
0600: 68 6c 70 2e 6f 75 74 5d 20 5c 0a 20 20 20 7c 7c  hlp.out] \.   ||
0610: 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 4c 20 67 65   [nmakehlp -L ge
0620: 6e 65 72 69 63 5c 74 63 6c 2e 68 20 3e 3e 20 6e  neric\tcl.h >> n
0630: 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 0a 5f 52 55  makehlp.out]._RU
0640: 4c 45 53 44 49 52 20 3d 20 2e 2e 5c 2e 2e 5c 74  LESDIR = ..\..\t
0650: 63 6c 0a 21 65 6c 73 65 0a 21 69 6e 63 6c 75 64  cl.!else.!includ
0660: 65 20 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 0a 21  e nmakehlp.out.!
0670: 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20 23 20  endif..!endif # 
0680: 64 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44  defined(INSTALLD
0690: 49 52 29 2e 2e 2e 2e 0a 0a 21 65 6e 64 69 66 20  IR)......!endif 
06a0: 23 20 69 66 6e 64 65 66 20 54 43 4c 44 49 52 0a  # ifndef TCLDIR.
06b0: 0a 23 20 4e 6f 77 20 6c 6f 6f 6b 20 66 6f 72 20  .# Now look for 
06c0: 74 68 65 20 74 61 72 67 65 74 73 2e 76 63 20 66  the targets.vc f
06d0: 69 6c 65 20 75 6e 64 65 72 20 74 68 65 20 54 63  ile under the Tc
06e0: 6c 20 72 6f 6f 74 2e 20 4e 6f 74 65 20 77 65 20  l root. Note we 
06f0: 63 68 65 63 6b 20 74 68 69 73 0a 23 20 66 69 6c  check this.# fil
0700: 65 20 61 6e 64 20 6e 6f 74 20 72 75 6c 65 73 2e  e and not rules.
0710: 76 63 20 62 65 63 61 75 73 65 20 74 68 65 20 6c  vc because the l
0720: 61 74 74 65 72 20 61 6c 73 6f 20 65 78 69 73 74  atter also exist
0730: 73 20 6f 6e 20 6f 6c 64 65 72 20 73 79 73 74 65  s on older syste
0740: 6d 73 2e 0a 21 69 66 20 65 78 69 73 74 28 22 24  ms..!if exist("$
0750: 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 5c  (_RULESDIR)\lib\
0760: 6e 6d 61 6b 65 5c 74 61 72 67 65 74 73 2e 76 63  nmake\targets.vc
0770: 22 29 20 23 20 42 75 69 6c 64 69 6e 67 20 61 67  ") # Building ag
0780: 61 69 6e 73 74 20 69 6e 73 74 61 6c 6c 65 64 20  ainst installed 
0790: 54 63 6c 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20  Tcl._RULESDIR = 
07a0: 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62  $(_RULESDIR)\lib
07b0: 5c 6e 6d 61 6b 65 0a 21 65 6c 73 65 69 66 20 65  \nmake.!elseif e
07c0: 78 69 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49  xist("$(_RULESDI
07d0: 52 29 5c 77 69 6e 5c 74 61 72 67 65 74 73 2e 76  R)\win\targets.v
07e0: 63 22 29 20 20 20 23 20 42 75 69 6c 64 69 6e 67  c")   # Building
07f0: 20 61 67 61 69 6e 73 74 20 54 63 6c 20 73 6f 75   against Tcl sou
0800: 72 63 65 73 0a 5f 52 55 4c 45 53 44 49 52 20 3d  rces._RULESDIR =
0810: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 77 69   $(_RULESDIR)\wi
0820: 6e 0a 21 65 6c 73 65 0a 23 20 49 66 20 77 65 20  n.!else.# If we 
0830: 68 61 76 65 20 6e 6f 74 20 6c 6f 63 61 74 65 64  have not located
0840: 20 54 63 6c 27 73 20 74 61 72 67 65 74 73 20 66   Tcl's targets f
0850: 69 6c 65 2c 20 6d 6f 73 74 20 6c 69 6b 65 6c 79  ile, most likely
0860: 20 77 65 20 61 72 65 20 63 6f 6d 70 69 6c 69 6e   we are compilin
0870: 67 0a 23 20 61 67 61 69 6e 73 74 20 61 6e 20 6f  g.# against an o
0880: 6c 64 65 72 20 76 65 72 73 69 6f 6e 20 6f 66 20  lder version of 
0890: 54 63 6c 20 61 6e 64 20 73 6f 20 6d 75 73 74 20  Tcl and so must 
08a0: 75 73 65 20 6f 75 72 20 6f 77 6e 20 73 75 70 70  use our own supp
08b0: 6f 72 74 20 66 69 6c 65 73 2e 0a 5f 52 55 4c 45  ort files.._RULE
08c0: 53 44 49 52 20 3d 20 2e 0a 21 65 6e 64 69 66 0a  SDIR = ..!endif.
08d0: 0a 21 69 66 20 22 24 28 5f 52 55 4c 45 53 44 49  .!if "$(_RULESDI
08e0: 52 29 22 20 21 3d 20 22 2e 22 0a 23 20 50 6f 74  R)" != ".".# Pot
08f0: 65 6e 74 69 61 6c 6c 79 20 75 73 69 6e 67 20 54  entially using T
0900: 63 6c 27 73 20 73 75 70 70 6f 72 74 20 66 69 6c  cl's support fil
0910: 65 73 2e 20 49 66 20 74 68 69 73 20 65 78 74 65  es. If this exte
0920: 6e 73 69 6f 6e 20 68 61 73 20 69 74 73 20 6f 77  nsion has its ow
0930: 6e 0a 23 20 6e 6d 61 6b 65 20 73 75 70 70 6f 72  n.# nmake suppor
0940: 74 20 66 69 6c 65 73 2c 20 6e 65 65 64 20 74 6f  t files, need to
0950: 20 63 6f 6d 70 61 72 65 20 74 68 65 20 76 65 72   compare the ver
0960: 73 69 6f 6e 73 20 61 6e 64 20 70 69 63 6b 20 6e  sions and pick n
0970: 65 77 65 72 2e 0a 0a 21 69 66 20 65 78 69 73 74  ewer...!if exist
0980: 28 22 72 75 6c 65 73 2e 76 63 22 29 20 23 20 54  ("rules.vc") # T
0990: 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 68 61 73  he extension has
09a0: 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 0a 0a 21   its own copy..!
09b0: 69 66 20 5b 65 63 68 6f 20 54 43 4c 5f 52 55 4c  if [echo TCL_RUL
09c0: 45 53 5f 4d 41 4a 4f 52 20 3d 20 5c 3e 20 76 65  ES_MAJOR = \> ve
09d0: 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 20  rsions.vc] \.   
09e0: 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 56 20  && [nmakehlp -V 
09f0: 22 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75  "$(_RULESDIR)\ru
0a00: 6c 65 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45  les.vc" RULES_VE
0a10: 52 53 49 4f 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76  RSION_MAJOR >> v
0a20: 65 72 73 69 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64  ersions.vc].!end
0a30: 69 66 0a 21 69 66 20 5b 65 63 68 6f 20 54 43 4c  if.!if [echo TCL
0a40: 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c  _RULES_MINOR = \
0a50: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20  >> versions.vc] 
0a60: 5c 0a 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 6c  \.   && [nmakehl
0a70: 70 20 2d 56 20 22 24 28 5f 52 55 4c 45 53 44 49  p -V "$(_RULESDI
0a80: 52 29 5c 72 75 6c 65 73 2e 76 63 22 20 52 55 4c  R)\rules.vc" RUL
0a90: 45 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f 52  ES_VERSION_MINOR
0aa0: 20 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d   >> versions.vc]
0ab0: 0a 21 65 6e 64 69 66 0a 0a 21 69 66 20 5b 65 63  .!endif..!if [ec
0ac0: 68 6f 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a  ho OUR_RULES_MAJ
0ad0: 4f 52 20 3d 20 5c 3e 3e 20 76 65 72 73 69 6f 6e  OR = \>> version
0ae0: 73 2e 76 63 5d 20 5c 0a 20 20 20 26 26 20 5b 6e  s.vc] \.   && [n
0af0: 6d 61 6b 65 68 6c 70 20 2d 56 20 22 72 75 6c 65  makehlp -V "rule
0b00: 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53  s.vc" RULES_VERS
0b10: 49 4f 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76 65 72  ION_MAJOR >> ver
0b20: 73 69 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64 69 66  sions.vc].!endif
0b30: 0a 21 69 66 20 5b 65 63 68 6f 20 4f 55 52 5f 52  .!if [echo OUR_R
0b40: 55 4c 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c 3e 3e  ULES_MINOR = \>>
0b50: 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a   versions.vc] \.
0b60: 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20     && [nmakehlp 
0b70: 2d 56 20 22 72 75 6c 65 73 2e 76 63 22 20 52 55  -V "rules.vc" RU
0b80: 4c 45 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f  LES_VERSION_MINO
0b90: 52 20 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63  R >> versions.vc
0ba0: 5d 0a 21 65 6e 64 69 66 0a 21 69 6e 63 6c 75 64  ].!endif.!includ
0bb0: 65 20 76 65 72 73 69 6f 6e 73 2e 76 63 0a 23 20  e versions.vc.# 
0bc0: 57 65 20 68 61 76 65 20 61 20 6e 65 77 65 72 20  We have a newer 
0bd0: 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 73  version of the s
0be0: 75 70 70 6f 72 74 20 66 69 6c 65 73 2c 20 75 73  upport files, us
0bf0: 65 20 74 68 65 6d 0a 21 69 66 20 28 24 28 54 43  e them.!if ($(TC
0c00: 4c 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 29 20 21  L_RULES_MAJOR) !
0c10: 3d 20 24 28 4f 55 52 5f 52 55 4c 45 53 5f 4d 41  = $(OUR_RULES_MA
0c20: 4a 4f 52 29 29 20 7c 7c 20 28 24 28 54 43 4c 5f  JOR)) || ($(TCL_
0c30: 52 55 4c 45 53 5f 4d 49 4e 4f 52 29 20 3c 20 24  RULES_MINOR) < $
0c40: 28 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52  (OUR_RULES_MINOR
0c50: 29 29 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 2e  ))._RULESDIR = .
0c60: 0a 21 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20  .!endif..!endif 
0c70: 23 20 69 66 20 65 78 69 73 74 28 22 72 75 6c 65  # if exist("rule
0c80: 73 2e 76 63 22 29 0a 0a 21 65 6e 64 69 66 20 23  s.vc")..!endif #
0c90: 20 69 66 20 24 28 5f 52 55 4c 45 53 44 49 52 29   if $(_RULESDIR)
0ca0: 20 21 3d 20 22 2e 22 0a 0a 23 20 4c 65 74 20 72   != "."..# Let r
0cb0: 75 6c 65 73 2e 76 63 20 6b 6e 6f 77 20 77 68 61  ules.vc know wha
0cc0: 74 20 63 6f 70 79 20 6f 66 20 6e 6d 61 6b 65 68  t copy of nmakeh
0cd0: 6c 70 2e 63 20 74 6f 20 75 73 65 2e 0a 4e 4d 41  lp.c to use..NMA
0ce0: 4b 45 48 4c 50 43 20 3d 20 24 28 5f 52 55 4c 45  KEHLPC = $(_RULE
0cf0: 53 44 49 52 29 5c 6e 6d 61 6b 65 68 6c 70 2e 63  SDIR)\nmakehlp.c
0d00: 0a 0a 23 20 47 65 74 20 72 69 64 20 6f 66 20 6f  ..# Get rid of o
0d10: 75 72 20 69 6e 74 65 72 6e 61 6c 20 64 65 66 69  ur internal defi
0d20: 6e 65 73 20 62 65 66 6f 72 65 20 63 61 6c 6c 69  nes before calli
0d30: 6e 67 20 72 75 6c 65 73 2e 76 63 0a 21 75 6e 64  ng rules.vc.!und
0d40: 65 66 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 41 4a  ef TCL_RULES_MAJ
0d50: 4f 52 0a 21 75 6e 64 65 66 20 54 43 4c 5f 52 55  OR.!undef TCL_RU
0d60: 4c 45 53 5f 4d 49 4e 4f 52 0a 21 75 6e 64 65 66  LES_MINOR.!undef
0d70: 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52   OUR_RULES_MAJOR
0d80: 0a 21 75 6e 64 65 66 20 4f 55 52 5f 52 55 4c 45  .!undef OUR_RULE
0d90: 53 5f 4d 49 4e 4f 52 0a 0a 21 69 66 20 65 78 69  S_MINOR..!if exi
0da0: 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49 52 29  st("$(_RULESDIR)
0db0: 5c 72 75 6c 65 73 2e 76 63 22 29 0a 21 6d 65 73  \rules.vc").!mes
0dc0: 73 61 67 65 20 2a 2a 2a 20 55 73 69 6e 67 20 24  sage *** Using $
0dd0: 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65  (_RULESDIR)\rule
0de0: 73 2e 76 63 0a 21 69 6e 63 6c 75 64 65 20 22 24  s.vc.!include "$
0df0: 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65  (_RULESDIR)\rule
0e00: 73 2e 76 63 22 0a 21 65 6c 73 65 0a 21 65 72 72  s.vc".!else.!err
0e10: 6f 72 20 2a 2a 2a 20 43 6f 75 6c 64 20 6e 6f 74  or *** Could not
0e20: 20 6c 6f 63 61 74 65 20 72 75 6c 65 73 2e 76 63   locate rules.vc
0e30: 20 69 6e 20 24 28 5f 52 55 4c 45 53 44 49 52 29   in $(_RULESDIR)
0e40: 0a 21 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20  .!endif..!endif 
0e50: 23 20 5f 52 55 4c 45 53 5f 45 58 54 5f 56 43     # _RULES_EXT_VC