Artifact
fd5740d97aac8c41c97eaa0fbcc0c15a41b6f7075d5f9f593e147d7a284a247a:
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 22 24 28 4d newer..!if "$(M
0430: 41 43 48 49 4e 45 29 22 20 3d 3d 20 22 49 58 38 ACHINE)" == "IX8
0440: 36 22 20 7c 7c 20 22 24 28 4d 41 43 48 49 4e 45 6" || "$(MACHINE
0450: 29 22 20 3d 3d 20 22 24 28 4e 41 54 49 56 45 5f )" == "$(NATIVE_
0460: 41 52 43 48 29 22 0a 21 69 66 20 5b 24 28 43 43 ARCH)".!if [$(CC
0470: 29 20 2d 6e 6f 6c 6f 67 6f 20 2d 44 4e 44 45 42 ) -nologo -DNDEB
0480: 55 47 20 22 6e 6d 61 6b 65 68 6c 70 2e 63 22 20 UG "nmakehlp.c"
0490: 2d 6c 69 6e 6b 20 2d 73 75 62 73 79 73 74 65 6d -link -subsystem
04a0: 3a 63 6f 6e 73 6f 6c 65 20 3e 20 6e 75 6c 5d 0a :console > nul].
04b0: 21 65 6e 64 69 66 0a 21 65 6c 73 65 0a 21 69 66 !endif.!else.!if
04c0: 20 5b 63 6f 70 79 20 78 38 36 5f 36 34 2d 77 36 [copy x86_64-w6
04d0: 34 2d 6d 69 6e 67 77 33 32 2d 6e 6d 61 6b 65 68 4-mingw32-nmakeh
04e0: 6c 70 2e 65 78 65 20 6e 6d 61 6b 65 68 6c 70 2e lp.exe nmakehlp.
04f0: 65 78 65 20 3e 4e 55 4c 5d 0a 21 65 6e 64 69 66 exe >NUL].!endif
0500: 0a 21 65 6e 64 69 66 0a 0a 23 20 46 69 72 73 74 .!endif..# First
0510: 20 6c 6f 63 61 74 65 20 74 68 65 20 54 63 6c 20 locate the Tcl
0520: 64 69 72 65 63 74 6f 72 79 20 74 68 61 74 20 77 directory that w
0530: 65 20 61 72 65 20 77 6f 72 6b 69 6e 67 20 77 69 e are working wi
0540: 74 68 2e 0a 21 69 66 20 22 24 28 54 43 4c 44 49 th..!if "$(TCLDI
0550: 52 29 22 20 21 3d 20 22 22 0a 0a 5f 52 55 4c 45 R)" != "".._RULE
0560: 53 44 49 52 20 3d 20 24 28 54 43 4c 44 49 52 3a SDIR = $(TCLDIR:
0570: 2f 3d 5c 29 0a 0a 21 65 6c 73 65 0a 0a 23 20 49 /=\)..!else..# I
0580: 66 20 61 6e 20 69 6e 73 74 61 6c 6c 61 74 69 6f f an installatio
0590: 6e 20 70 61 74 68 20 69 73 20 73 70 65 63 69 66 n path is specif
05a0: 69 65 64 2c 20 74 68 61 74 20 69 73 20 61 6c 73 ied, that is als
05b0: 6f 20 74 68 65 20 54 63 6c 20 64 69 72 65 63 74 o the Tcl direct
05c0: 6f 72 79 2e 0a 23 20 41 6c 73 6f 20 54 6b 20 6e ory..# Also Tk n
05d0: 65 76 65 72 20 62 75 69 6c 64 73 20 61 67 61 69 ever builds agai
05e0: 6e 73 74 20 61 6e 20 69 6e 73 74 61 6c 6c 65 64 nst an installed
05f0: 20 54 63 6c 2c 20 69 74 20 6e 65 65 64 73 20 54 Tcl, it needs T
0600: 63 6c 20 73 6f 75 72 63 65 73 0a 21 69 66 20 64 cl sources.!if d
0610: 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44 49 efined(INSTALLDI
0620: 52 29 20 26 26 20 22 24 28 50 52 4f 4a 45 43 54 R) && "$(PROJECT
0630: 29 22 20 21 3d 20 22 74 6b 22 0a 5f 52 55 4c 45 )" != "tk"._RULE
0640: 53 44 49 52 3d 24 28 49 4e 53 54 41 4c 4c 44 49 SDIR=$(INSTALLDI
0650: 52 3a 2f 3d 5c 29 0a 21 65 6c 73 65 0a 23 20 4c R:/=\).!else.# L
0660: 6f 63 61 74 65 20 54 63 6c 20 73 6f 75 72 63 65 ocate Tcl source
0670: 73 0a 21 69 66 20 5b 65 63 68 6f 20 5f 52 55 4c s.!if [echo _RUL
0680: 45 53 44 49 52 20 3d 20 5c 3e 20 6e 6d 61 6b 65 ESDIR = \> nmake
0690: 68 6c 70 2e 6f 75 74 5d 20 5c 0a 20 20 20 7c 7c hlp.out] \. ||
06a0: 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 4c 20 67 65 [nmakehlp -L ge
06b0: 6e 65 72 69 63 5c 74 63 6c 2e 68 20 3e 3e 20 6e neric\tcl.h >> n
06c0: 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 0a 5f 52 55 makehlp.out]._RU
06d0: 4c 45 53 44 49 52 20 3d 20 2e 2e 5c 2e 2e 5c 74 LESDIR = ..\..\t
06e0: 63 6c 0a 21 65 6c 73 65 0a 21 69 6e 63 6c 75 64 cl.!else.!includ
06f0: 65 20 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 0a 21 e nmakehlp.out.!
0700: 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20 23 20 endif..!endif #
0710: 64 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44 defined(INSTALLD
0720: 49 52 29 2e 2e 2e 2e 0a 0a 21 65 6e 64 69 66 20 IR)......!endif
0730: 23 20 69 66 6e 64 65 66 20 54 43 4c 44 49 52 0a # ifndef TCLDIR.
0740: 0a 23 20 4e 6f 77 20 6c 6f 6f 6b 20 66 6f 72 20 .# Now look for
0750: 74 68 65 20 74 61 72 67 65 74 73 2e 76 63 20 66 the targets.vc f
0760: 69 6c 65 20 75 6e 64 65 72 20 74 68 65 20 54 63 ile under the Tc
0770: 6c 20 72 6f 6f 74 2e 20 4e 6f 74 65 20 77 65 20 l root. Note we
0780: 63 68 65 63 6b 20 74 68 69 73 0a 23 20 66 69 6c check this.# fil
0790: 65 20 61 6e 64 20 6e 6f 74 20 72 75 6c 65 73 2e e and not rules.
07a0: 76 63 20 62 65 63 61 75 73 65 20 74 68 65 20 6c vc because the l
07b0: 61 74 74 65 72 20 61 6c 73 6f 20 65 78 69 73 74 atter also exist
07c0: 73 20 6f 6e 20 6f 6c 64 65 72 20 73 79 73 74 65 s on older syste
07d0: 6d 73 2e 0a 21 69 66 20 65 78 69 73 74 28 22 24 ms..!if exist("$
07e0: 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 5c (_RULESDIR)\lib\
07f0: 6e 6d 61 6b 65 5c 74 61 72 67 65 74 73 2e 76 63 nmake\targets.vc
0800: 22 29 20 23 20 42 75 69 6c 64 69 6e 67 20 61 67 ") # Building ag
0810: 61 69 6e 73 74 20 69 6e 73 74 61 6c 6c 65 64 20 ainst installed
0820: 54 63 6c 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 Tcl._RULESDIR =
0830: 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 $(_RULESDIR)\lib
0840: 5c 6e 6d 61 6b 65 0a 21 65 6c 73 65 69 66 20 65 \nmake.!elseif e
0850: 78 69 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49 xist("$(_RULESDI
0860: 52 29 5c 77 69 6e 5c 74 61 72 67 65 74 73 2e 76 R)\win\targets.v
0870: 63 22 29 20 20 20 23 20 42 75 69 6c 64 69 6e 67 c") # Building
0880: 20 61 67 61 69 6e 73 74 20 54 63 6c 20 73 6f 75 against Tcl sou
0890: 72 63 65 73 0a 5f 52 55 4c 45 53 44 49 52 20 3d rces._RULESDIR =
08a0: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 77 69 $(_RULESDIR)\wi
08b0: 6e 0a 21 65 6c 73 65 0a 23 20 49 66 20 77 65 20 n.!else.# If we
08c0: 68 61 76 65 20 6e 6f 74 20 6c 6f 63 61 74 65 64 have not located
08d0: 20 54 63 6c 27 73 20 74 61 72 67 65 74 73 20 66 Tcl's targets f
08e0: 69 6c 65 2c 20 6d 6f 73 74 20 6c 69 6b 65 6c 79 ile, most likely
08f0: 20 77 65 20 61 72 65 20 63 6f 6d 70 69 6c 69 6e we are compilin
0900: 67 0a 23 20 61 67 61 69 6e 73 74 20 61 6e 20 6f g.# against an o
0910: 6c 64 65 72 20 76 65 72 73 69 6f 6e 20 6f 66 20 lder version of
0920: 54 63 6c 20 61 6e 64 20 73 6f 20 6d 75 73 74 20 Tcl and so must
0930: 75 73 65 20 6f 75 72 20 6f 77 6e 20 73 75 70 70 use our own supp
0940: 6f 72 74 20 66 69 6c 65 73 2e 0a 5f 52 55 4c 45 ort files.._RULE
0950: 53 44 49 52 20 3d 20 2e 0a 21 65 6e 64 69 66 0a SDIR = ..!endif.
0960: 0a 21 69 66 20 22 24 28 5f 52 55 4c 45 53 44 49 .!if "$(_RULESDI
0970: 52 29 22 20 21 3d 20 22 2e 22 0a 23 20 50 6f 74 R)" != ".".# Pot
0980: 65 6e 74 69 61 6c 6c 79 20 75 73 69 6e 67 20 54 entially using T
0990: 63 6c 27 73 20 73 75 70 70 6f 72 74 20 66 69 6c cl's support fil
09a0: 65 73 2e 20 49 66 20 74 68 69 73 20 65 78 74 65 es. If this exte
09b0: 6e 73 69 6f 6e 20 68 61 73 20 69 74 73 20 6f 77 nsion has its ow
09c0: 6e 0a 23 20 6e 6d 61 6b 65 20 73 75 70 70 6f 72 n.# nmake suppor
09d0: 74 20 66 69 6c 65 73 2c 20 6e 65 65 64 20 74 6f t files, need to
09e0: 20 63 6f 6d 70 61 72 65 20 74 68 65 20 76 65 72 compare the ver
09f0: 73 69 6f 6e 73 20 61 6e 64 20 70 69 63 6b 20 6e sions and pick n
0a00: 65 77 65 72 2e 0a 0a 21 69 66 20 65 78 69 73 74 ewer...!if exist
0a10: 28 22 72 75 6c 65 73 2e 76 63 22 29 20 23 20 54 ("rules.vc") # T
0a20: 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 68 61 73 he extension has
0a30: 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 0a 0a 21 its own copy..!
0a40: 69 66 20 5b 65 63 68 6f 20 54 43 4c 5f 52 55 4c if [echo TCL_RUL
0a50: 45 53 5f 4d 41 4a 4f 52 20 3d 20 5c 3e 20 76 65 ES_MAJOR = \> ve
0a60: 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 20 rsions.vc] \.
0a70: 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 56 20 && [nmakehlp -V
0a80: 22 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 "$(_RULESDIR)\ru
0a90: 6c 65 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 les.vc" RULES_VE
0aa0: 52 53 49 4f 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76 RSION_MAJOR >> v
0ab0: 65 72 73 69 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64 ersions.vc].!end
0ac0: 69 66 0a 21 69 66 20 5b 65 63 68 6f 20 54 43 4c if.!if [echo TCL
0ad0: 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c _RULES_MINOR = \
0ae0: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20 >> versions.vc]
0af0: 5c 0a 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 6c \. && [nmakehl
0b00: 70 20 2d 56 20 22 24 28 5f 52 55 4c 45 53 44 49 p -V "$(_RULESDI
0b10: 52 29 5c 72 75 6c 65 73 2e 76 63 22 20 52 55 4c R)\rules.vc" RUL
0b20: 45 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f 52 ES_VERSION_MINOR
0b30: 20 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d >> versions.vc]
0b40: 0a 21 65 6e 64 69 66 0a 0a 21 69 66 20 5b 65 63 .!endif..!if [ec
0b50: 68 6f 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a ho OUR_RULES_MAJ
0b60: 4f 52 20 3d 20 5c 3e 3e 20 76 65 72 73 69 6f 6e OR = \>> version
0b70: 73 2e 76 63 5d 20 5c 0a 20 20 20 26 26 20 5b 6e s.vc] \. && [n
0b80: 6d 61 6b 65 68 6c 70 20 2d 56 20 22 72 75 6c 65 makehlp -V "rule
0b90: 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53 s.vc" RULES_VERS
0ba0: 49 4f 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76 65 72 ION_MAJOR >> ver
0bb0: 73 69 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64 69 66 sions.vc].!endif
0bc0: 0a 21 69 66 20 5b 65 63 68 6f 20 4f 55 52 5f 52 .!if [echo OUR_R
0bd0: 55 4c 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c 3e 3e ULES_MINOR = \>>
0be0: 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a versions.vc] \.
0bf0: 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20 && [nmakehlp
0c00: 2d 56 20 22 72 75 6c 65 73 2e 76 63 22 20 52 55 -V "rules.vc" RU
0c10: 4c 45 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f LES_VERSION_MINO
0c20: 52 20 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 R >> versions.vc
0c30: 5d 0a 21 65 6e 64 69 66 0a 21 69 6e 63 6c 75 64 ].!endif.!includ
0c40: 65 20 76 65 72 73 69 6f 6e 73 2e 76 63 0a 23 20 e versions.vc.#
0c50: 57 65 20 68 61 76 65 20 61 20 6e 65 77 65 72 20 We have a newer
0c60: 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 73 version of the s
0c70: 75 70 70 6f 72 74 20 66 69 6c 65 73 2c 20 75 73 upport files, us
0c80: 65 20 74 68 65 6d 0a 21 69 66 20 28 24 28 54 43 e them.!if ($(TC
0c90: 4c 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 29 20 21 L_RULES_MAJOR) !
0ca0: 3d 20 24 28 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 = $(OUR_RULES_MA
0cb0: 4a 4f 52 29 29 20 7c 7c 20 28 24 28 54 43 4c 5f JOR)) || ($(TCL_
0cc0: 52 55 4c 45 53 5f 4d 49 4e 4f 52 29 20 3c 20 24 RULES_MINOR) < $
0cd0: 28 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 (OUR_RULES_MINOR
0ce0: 29 29 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 2e ))._RULESDIR = .
0cf0: 0a 21 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20 .!endif..!endif
0d00: 23 20 69 66 20 65 78 69 73 74 28 22 72 75 6c 65 # if exist("rule
0d10: 73 2e 76 63 22 29 0a 0a 21 65 6e 64 69 66 20 23 s.vc")..!endif #
0d20: 20 69 66 20 24 28 5f 52 55 4c 45 53 44 49 52 29 if $(_RULESDIR)
0d30: 20 21 3d 20 22 2e 22 0a 0a 23 20 4c 65 74 20 72 != "."..# Let r
0d40: 75 6c 65 73 2e 76 63 20 6b 6e 6f 77 20 77 68 61 ules.vc know wha
0d50: 74 20 63 6f 70 79 20 6f 66 20 6e 6d 61 6b 65 68 t copy of nmakeh
0d60: 6c 70 2e 63 20 74 6f 20 75 73 65 2e 0a 4e 4d 41 lp.c to use..NMA
0d70: 4b 45 48 4c 50 43 20 3d 20 24 28 5f 52 55 4c 45 KEHLPC = $(_RULE
0d80: 53 44 49 52 29 5c 6e 6d 61 6b 65 68 6c 70 2e 63 SDIR)\nmakehlp.c
0d90: 0a 0a 23 20 47 65 74 20 72 69 64 20 6f 66 20 6f ..# Get rid of o
0da0: 75 72 20 69 6e 74 65 72 6e 61 6c 20 64 65 66 69 ur internal defi
0db0: 6e 65 73 20 62 65 66 6f 72 65 20 63 61 6c 6c 69 nes before calli
0dc0: 6e 67 20 72 75 6c 65 73 2e 76 63 0a 21 75 6e 64 ng rules.vc.!und
0dd0: 65 66 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 41 4a ef TCL_RULES_MAJ
0de0: 4f 52 0a 21 75 6e 64 65 66 20 54 43 4c 5f 52 55 OR.!undef TCL_RU
0df0: 4c 45 53 5f 4d 49 4e 4f 52 0a 21 75 6e 64 65 66 LES_MINOR.!undef
0e00: 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 OUR_RULES_MAJOR
0e10: 0a 21 75 6e 64 65 66 20 4f 55 52 5f 52 55 4c 45 .!undef OUR_RULE
0e20: 53 5f 4d 49 4e 4f 52 0a 0a 21 69 66 20 65 78 69 S_MINOR..!if exi
0e30: 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49 52 29 st("$(_RULESDIR)
0e40: 5c 72 75 6c 65 73 2e 76 63 22 29 0a 21 6d 65 73 \rules.vc").!mes
0e50: 73 61 67 65 20 2a 2a 2a 20 55 73 69 6e 67 20 24 sage *** Using $
0e60: 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 (_RULESDIR)\rule
0e70: 73 2e 76 63 0a 21 69 6e 63 6c 75 64 65 20 22 24 s.vc.!include "$
0e80: 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 (_RULESDIR)\rule
0e90: 73 2e 76 63 22 0a 21 65 6c 73 65 0a 21 65 72 72 s.vc".!else.!err
0ea0: 6f 72 20 2a 2a 2a 20 43 6f 75 6c 64 20 6e 6f 74 or *** Could not
0eb0: 20 6c 6f 63 61 74 65 20 72 75 6c 65 73 2e 76 63 locate rules.vc
0ec0: 20 69 6e 20 24 28 5f 52 55 4c 45 53 44 49 52 29 in $(_RULESDIR)
0ed0: 0a 21 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20 .!endif..!endif
0ee0: 23 20 5f 52 55 4c 45 53 5f 45 58 54 5f 56 43 # _RULES_EXT_VC