Artifact
50db9d785c66e5b35a5573717ce96340b0bc54ed5659cdb2209ae11fe2cdfe60:
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 22 24 28 newer...!if "$(
0450: 4d 41 43 48 49 4e 45 29 22 20 3d 3d 20 22 49 58 MACHINE)" == "IX
0460: 38 36 22 20 7c 7c 20 22 24 28 4d 41 43 48 49 4e 86" || "$(MACHIN
0470: 45 29 22 20 3d 3d 20 22 24 28 4e 41 54 49 56 45 E)" == "$(NATIVE
0480: 5f 41 52 43 48 29 22 0d 0a 21 69 66 20 5b 24 28 _ARCH)"..!if [$(
0490: 43 43 29 20 2d 6e 6f 6c 6f 67 6f 20 2d 44 4e 44 CC) -nologo -DND
04a0: 45 42 55 47 20 22 6e 6d 61 6b 65 68 6c 70 2e 63 EBUG "nmakehlp.c
04b0: 22 20 2d 6c 69 6e 6b 20 2d 73 75 62 73 79 73 74 " -link -subsyst
04c0: 65 6d 3a 63 6f 6e 73 6f 6c 65 20 3e 20 6e 75 6c em:console > nul
04d0: 5d 0d 0a 21 65 6e 64 69 66 0d 0a 21 65 6c 73 65 ]..!endif..!else
04e0: 0d 0a 21 69 66 20 5b 63 6f 70 79 20 78 38 36 5f ..!if [copy x86_
04f0: 36 34 2d 77 36 34 2d 6d 69 6e 67 77 33 32 2d 6e 64-w64-mingw32-n
0500: 6d 61 6b 65 68 6c 70 2e 65 78 65 20 6e 6d 61 6b makehlp.exe nmak
0510: 65 68 6c 70 2e 65 78 65 20 3e 4e 55 4c 5d 0d 0a ehlp.exe >NUL]..
0520: 21 65 6e 64 69 66 0d 0a 21 65 6e 64 69 66 0d 0a !endif..!endif..
0530: 0d 0a 23 20 46 69 72 73 74 20 6c 6f 63 61 74 65 ..# First locate
0540: 20 74 68 65 20 54 63 6c 20 64 69 72 65 63 74 6f the Tcl directo
0550: 72 79 20 74 68 61 74 20 77 65 20 61 72 65 20 77 ry that we are w
0560: 6f 72 6b 69 6e 67 20 77 69 74 68 2e 0d 0a 21 69 orking with...!i
0570: 66 20 22 24 28 54 43 4c 44 49 52 29 22 20 21 3d f "$(TCLDIR)" !=
0580: 20 22 22 0d 0a 0d 0a 5f 52 55 4c 45 53 44 49 52 ""...._RULESDIR
0590: 20 3d 20 24 28 54 43 4c 44 49 52 3a 2f 3d 5c 29 = $(TCLDIR:/=\)
05a0: 0d 0a 0d 0a 21 65 6c 73 65 0d 0a 0d 0a 23 20 49 ....!else....# I
05b0: 66 20 61 6e 20 69 6e 73 74 61 6c 6c 61 74 69 6f f an installatio
05c0: 6e 20 70 61 74 68 20 69 73 20 73 70 65 63 69 66 n path is specif
05d0: 69 65 64 2c 20 74 68 61 74 20 69 73 20 61 6c 73 ied, that is als
05e0: 6f 20 74 68 65 20 54 63 6c 20 64 69 72 65 63 74 o the Tcl direct
05f0: 6f 72 79 2e 0d 0a 23 20 41 6c 73 6f 20 54 6b 20 ory...# Also Tk
0600: 6e 65 76 65 72 20 62 75 69 6c 64 73 20 61 67 61 never builds aga
0610: 69 6e 73 74 20 61 6e 20 69 6e 73 74 61 6c 6c 65 inst an installe
0620: 64 20 54 63 6c 2c 20 69 74 20 6e 65 65 64 73 20 d Tcl, it needs
0630: 54 63 6c 20 73 6f 75 72 63 65 73 0d 0a 21 69 66 Tcl sources..!if
0640: 20 64 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c defined(INSTALL
0650: 44 49 52 29 20 26 26 20 22 24 28 50 52 4f 4a 45 DIR) && "$(PROJE
0660: 43 54 29 22 20 21 3d 20 22 74 6b 22 0d 0a 5f 52 CT)" != "tk".._R
0670: 55 4c 45 53 44 49 52 3d 24 28 49 4e 53 54 41 4c ULESDIR=$(INSTAL
0680: 4c 44 49 52 3a 2f 3d 5c 29 0d 0a 21 65 6c 73 65 LDIR:/=\)..!else
0690: 0d 0a 23 20 4c 6f 63 61 74 65 20 54 63 6c 20 73 ..# Locate Tcl s
06a0: 6f 75 72 63 65 73 0d 0a 21 69 66 20 5b 65 63 68 ources..!if [ech
06b0: 6f 20 5f 52 55 4c 45 53 44 49 52 20 3d 20 5c 3e o _RULESDIR = \>
06c0: 20 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 20 5c nmakehlp.out] \
06d0: 0d 0a 20 20 20 7c 7c 20 5b 6e 6d 61 6b 65 68 6c .. || [nmakehl
06e0: 70 20 2d 4c 20 67 65 6e 65 72 69 63 5c 74 63 6c p -L generic\tcl
06f0: 2e 68 20 3e 3e 20 6e 6d 61 6b 65 68 6c 70 2e 6f .h >> nmakehlp.o
0700: 75 74 5d 0d 0a 5f 52 55 4c 45 53 44 49 52 20 3d ut].._RULESDIR =
0710: 20 2e 2e 5c 2e 2e 5c 74 63 6c 0d 0a 21 65 6c 73 ..\..\tcl..!els
0720: 65 0d 0a 21 69 6e 63 6c 75 64 65 20 6e 6d 61 6b e..!include nmak
0730: 65 68 6c 70 2e 6f 75 74 0d 0a 21 65 6e 64 69 66 ehlp.out..!endif
0740: 0d 0a 0d 0a 21 65 6e 64 69 66 20 23 20 64 65 66 ....!endif # def
0750: 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44 49 52 29 ined(INSTALLDIR)
0760: 2e 2e 2e 2e 0d 0a 0d 0a 21 65 6e 64 69 66 20 23 ........!endif #
0770: 20 69 66 6e 64 65 66 20 54 43 4c 44 49 52 0d 0a ifndef TCLDIR..
0780: 0d 0a 23 20 4e 6f 77 20 6c 6f 6f 6b 20 66 6f 72 ..# Now look for
0790: 20 74 68 65 20 74 61 72 67 65 74 73 2e 76 63 20 the targets.vc
07a0: 66 69 6c 65 20 75 6e 64 65 72 20 74 68 65 20 54 file under the T
07b0: 63 6c 20 72 6f 6f 74 2e 20 4e 6f 74 65 20 77 65 cl root. Note we
07c0: 20 63 68 65 63 6b 20 74 68 69 73 0d 0a 23 20 66 check this..# f
07d0: 69 6c 65 20 61 6e 64 20 6e 6f 74 20 72 75 6c 65 ile and not rule
07e0: 73 2e 76 63 20 62 65 63 61 75 73 65 20 74 68 65 s.vc because the
07f0: 20 6c 61 74 74 65 72 20 61 6c 73 6f 20 65 78 69 latter also exi
0800: 73 74 73 20 6f 6e 20 6f 6c 64 65 72 20 73 79 73 sts on older sys
0810: 74 65 6d 73 2e 0d 0a 21 69 66 20 65 78 69 73 74 tems...!if exist
0820: 28 22 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c ("$(_RULESDIR)\l
0830: 69 62 5c 6e 6d 61 6b 65 5c 74 61 72 67 65 74 73 ib\nmake\targets
0840: 2e 76 63 22 29 20 23 20 42 75 69 6c 64 69 6e 67 .vc") # Building
0850: 20 61 67 61 69 6e 73 74 20 69 6e 73 74 61 6c 6c against install
0860: 65 64 20 54 63 6c 0d 0a 5f 52 55 4c 45 53 44 49 ed Tcl.._RULESDI
0870: 52 20 3d 20 24 28 5f 52 55 4c 45 53 44 49 52 29 R = $(_RULESDIR)
0880: 5c 6c 69 62 5c 6e 6d 61 6b 65 0d 0a 21 65 6c 73 \lib\nmake..!els
0890: 65 69 66 20 65 78 69 73 74 28 22 24 28 5f 52 55 eif exist("$(_RU
08a0: 4c 45 53 44 49 52 29 5c 77 69 6e 5c 74 61 72 67 LESDIR)\win\targ
08b0: 65 74 73 2e 76 63 22 29 20 20 20 23 20 42 75 69 ets.vc") # Bui
08c0: 6c 64 69 6e 67 20 61 67 61 69 6e 73 74 20 54 63 lding against Tc
08d0: 6c 20 73 6f 75 72 63 65 73 0d 0a 5f 52 55 4c 45 l sources.._RULE
08e0: 53 44 49 52 20 3d 20 24 28 5f 52 55 4c 45 53 44 SDIR = $(_RULESD
08f0: 49 52 29 5c 77 69 6e 0d 0a 21 65 6c 73 65 0d 0a IR)\win..!else..
0900: 23 20 49 66 20 77 65 20 68 61 76 65 20 6e 6f 74 # If we have not
0910: 20 6c 6f 63 61 74 65 64 20 54 63 6c 27 73 20 74 located Tcl's t
0920: 61 72 67 65 74 73 20 66 69 6c 65 2c 20 6d 6f 73 argets file, mos
0930: 74 20 6c 69 6b 65 6c 79 20 77 65 20 61 72 65 20 t likely we are
0940: 63 6f 6d 70 69 6c 69 6e 67 0d 0a 23 20 61 67 61 compiling..# aga
0950: 69 6e 73 74 20 61 6e 20 6f 6c 64 65 72 20 76 65 inst an older ve
0960: 72 73 69 6f 6e 20 6f 66 20 54 63 6c 20 61 6e 64 rsion of Tcl and
0970: 20 73 6f 20 6d 75 73 74 20 75 73 65 20 6f 75 72 so must use our
0980: 20 6f 77 6e 20 73 75 70 70 6f 72 74 20 66 69 6c own support fil
0990: 65 73 2e 0d 0a 5f 52 55 4c 45 53 44 49 52 20 3d es..._RULESDIR =
09a0: 20 2e 0d 0a 21 65 6e 64 69 66 0d 0a 0d 0a 21 69 ...!endif....!i
09b0: 66 20 22 24 28 5f 52 55 4c 45 53 44 49 52 29 22 f "$(_RULESDIR)"
09c0: 20 21 3d 20 22 2e 22 0d 0a 23 20 50 6f 74 65 6e != "."..# Poten
09d0: 74 69 61 6c 6c 79 20 75 73 69 6e 67 20 54 63 6c tially using Tcl
09e0: 27 73 20 73 75 70 70 6f 72 74 20 66 69 6c 65 73 's support files
09f0: 2e 20 49 66 20 74 68 69 73 20 65 78 74 65 6e 73 . If this extens
0a00: 69 6f 6e 20 68 61 73 20 69 74 73 20 6f 77 6e 0d ion has its own.
0a10: 0a 23 20 6e 6d 61 6b 65 20 73 75 70 70 6f 72 74 .# nmake support
0a20: 20 66 69 6c 65 73 2c 20 6e 65 65 64 20 74 6f 20 files, need to
0a30: 63 6f 6d 70 61 72 65 20 74 68 65 20 76 65 72 73 compare the vers
0a40: 69 6f 6e 73 20 61 6e 64 20 70 69 63 6b 20 6e 65 ions and pick ne
0a50: 77 65 72 2e 0d 0a 0d 0a 21 69 66 20 65 78 69 73 wer.....!if exis
0a60: 74 28 22 72 75 6c 65 73 2e 76 63 22 29 20 23 20 t("rules.vc") #
0a70: 54 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 68 61 The extension ha
0a80: 73 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 0d 0a s its own copy..
0a90: 0d 0a 21 69 66 20 5b 65 63 68 6f 20 54 43 4c 5f ..!if [echo TCL_
0aa0: 52 55 4c 45 53 5f 4d 41 4a 4f 52 20 3d 20 5c 3e RULES_MAJOR = \>
0ab0: 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0d versions.vc] \.
0ac0: 0a 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 . && [nmakehlp
0ad0: 20 2d 56 20 22 24 28 5f 52 55 4c 45 53 44 49 52 -V "$(_RULESDIR
0ae0: 29 5c 72 75 6c 65 73 2e 76 63 22 20 52 55 4c 45 )\rules.vc" RULE
0af0: 53 5f 56 45 52 53 49 4f 4e 5f 4d 41 4a 4f 52 20 S_VERSION_MAJOR
0b00: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 0d >> versions.vc].
0b10: 0a 21 65 6e 64 69 66 0d 0a 21 69 66 20 5b 65 63 .!endif..!if [ec
0b20: 68 6f 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 49 4e ho TCL_RULES_MIN
0b30: 4f 52 20 3d 20 5c 3e 3e 20 76 65 72 73 69 6f 6e OR = \>> version
0b40: 73 2e 76 63 5d 20 5c 0d 0a 20 20 20 26 26 20 5b s.vc] \.. && [
0b50: 6e 6d 61 6b 65 68 6c 70 20 2d 56 20 22 24 28 5f nmakehlp -V "$(_
0b60: 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 73 2e RULESDIR)\rules.
0b70: 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53 49 4f vc" RULES_VERSIO
0b80: 4e 5f 4d 49 4e 4f 52 20 3e 3e 20 76 65 72 73 69 N_MINOR >> versi
0b90: 6f 6e 73 2e 76 63 5d 0d 0a 21 65 6e 64 69 66 0d ons.vc]..!endif.
0ba0: 0a 0d 0a 21 69 66 20 5b 65 63 68 6f 20 4f 55 52 ...!if [echo OUR
0bb0: 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 20 3d 20 5c _RULES_MAJOR = \
0bc0: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 20 >> versions.vc]
0bd0: 5c 0d 0a 20 20 20 26 26 20 5b 6e 6d 61 6b 65 68 \.. && [nmakeh
0be0: 6c 70 20 2d 56 20 22 72 75 6c 65 73 2e 76 63 22 lp -V "rules.vc"
0bf0: 20 52 55 4c 45 53 5f 56 45 52 53 49 4f 4e 5f 4d RULES_VERSION_M
0c00: 41 4a 4f 52 20 3e 3e 20 76 65 72 73 69 6f 6e 73 AJOR >> versions
0c10: 2e 76 63 5d 0d 0a 21 65 6e 64 69 66 0d 0a 21 69 .vc]..!endif..!i
0c20: 66 20 5b 65 63 68 6f 20 4f 55 52 5f 52 55 4c 45 f [echo OUR_RULE
0c30: 53 5f 4d 49 4e 4f 52 20 3d 20 5c 3e 3e 20 76 65 S_MINOR = \>> ve
0c40: 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0d 0a 20 20 rsions.vc] \..
0c50: 20 26 26 20 5b 6e 6d 61 6b 65 68 6c 70 20 2d 56 && [nmakehlp -V
0c60: 20 22 72 75 6c 65 73 2e 76 63 22 20 52 55 4c 45 "rules.vc" RULE
0c70: 53 5f 56 45 52 53 49 4f 4e 5f 4d 49 4e 4f 52 20 S_VERSION_MINOR
0c80: 3e 3e 20 76 65 72 73 69 6f 6e 73 2e 76 63 5d 0d >> versions.vc].
0c90: 0a 21 65 6e 64 69 66 0d 0a 21 69 6e 63 6c 75 64 .!endif..!includ
0ca0: 65 20 76 65 72 73 69 6f 6e 73 2e 76 63 0d 0a 23 e versions.vc..#
0cb0: 20 57 65 20 68 61 76 65 20 61 20 6e 65 77 65 72 We have a newer
0cc0: 20 76 65 72 73 69 6f 6e 20 6f 66 20 74 68 65 20 version of the
0cd0: 73 75 70 70 6f 72 74 20 66 69 6c 65 73 2c 20 75 support files, u
0ce0: 73 65 20 74 68 65 6d 0d 0a 21 69 66 20 28 24 28 se them..!if ($(
0cf0: 54 43 4c 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 29 TCL_RULES_MAJOR)
0d00: 20 21 3d 20 24 28 4f 55 52 5f 52 55 4c 45 53 5f != $(OUR_RULES_
0d10: 4d 41 4a 4f 52 29 29 20 7c 7c 20 28 24 28 54 43 MAJOR)) || ($(TC
0d20: 4c 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 29 20 3c L_RULES_MINOR) <
0d30: 20 24 28 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e $(OUR_RULES_MIN
0d40: 4f 52 29 29 0d 0a 5f 52 55 4c 45 53 44 49 52 20 OR)).._RULESDIR
0d50: 3d 20 2e 0d 0a 21 65 6e 64 69 66 0d 0a 0d 0a 21 = ...!endif....!
0d60: 65 6e 64 69 66 20 23 20 69 66 20 65 78 69 73 74 endif # if exist
0d70: 28 22 72 75 6c 65 73 2e 76 63 22 29 0d 0a 0d 0a ("rules.vc")....
0d80: 21 65 6e 64 69 66 20 23 20 69 66 20 24 28 5f 52 !endif # if $(_R
0d90: 55 4c 45 53 44 49 52 29 20 21 3d 20 22 2e 22 0d ULESDIR) != ".".
0da0: 0a 0d 0a 23 20 4c 65 74 20 72 75 6c 65 73 2e 76 ...# Let rules.v
0db0: 63 20 6b 6e 6f 77 20 77 68 61 74 20 63 6f 70 79 c know what copy
0dc0: 20 6f 66 20 6e 6d 61 6b 65 68 6c 70 2e 63 20 74 of nmakehlp.c t
0dd0: 6f 20 75 73 65 2e 0d 0a 4e 4d 41 4b 45 48 4c 50 o use...NMAKEHLP
0de0: 43 20 3d 20 24 28 5f 52 55 4c 45 53 44 49 52 29 C = $(_RULESDIR)
0df0: 5c 6e 6d 61 6b 65 68 6c 70 2e 63 0d 0a 0d 0a 23 \nmakehlp.c....#
0e00: 20 47 65 74 20 72 69 64 20 6f 66 20 6f 75 72 20 Get rid of our
0e10: 69 6e 74 65 72 6e 61 6c 20 64 65 66 69 6e 65 73 internal defines
0e20: 20 62 65 66 6f 72 65 20 63 61 6c 6c 69 6e 67 20 before calling
0e30: 72 75 6c 65 73 2e 76 63 0d 0a 21 75 6e 64 65 66 rules.vc..!undef
0e40: 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 TCL_RULES_MAJOR
0e50: 0d 0a 21 75 6e 64 65 66 20 54 43 4c 5f 52 55 4c ..!undef TCL_RUL
0e60: 45 53 5f 4d 49 4e 4f 52 0d 0a 21 75 6e 64 65 66 ES_MINOR..!undef
0e70: 20 4f 55 52 5f 52 55 4c 45 53 5f 4d 41 4a 4f 52 OUR_RULES_MAJOR
0e80: 0d 0a 21 75 6e 64 65 66 20 4f 55 52 5f 52 55 4c ..!undef OUR_RUL
0e90: 45 53 5f 4d 49 4e 4f 52 0d 0a 0d 0a 21 69 66 20 ES_MINOR....!if
0ea0: 65 78 69 73 74 28 22 24 28 5f 52 55 4c 45 53 44 exist("$(_RULESD
0eb0: 49 52 29 5c 72 75 6c 65 73 2e 76 63 22 29 0d 0a IR)\rules.vc")..
0ec0: 21 6d 65 73 73 61 67 65 20 2a 2a 2a 20 55 73 69 !message *** Usi
0ed0: 6e 67 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c ng $(_RULESDIR)\
0ee0: 72 75 6c 65 73 2e 76 63 0d 0a 21 69 6e 63 6c 75 rules.vc..!inclu
0ef0: 64 65 20 22 24 28 5f 52 55 4c 45 53 44 49 52 29 de "$(_RULESDIR)
0f00: 5c 72 75 6c 65 73 2e 76 63 22 0d 0a 21 65 6c 73 \rules.vc"..!els
0f10: 65 0d 0a 21 65 72 72 6f 72 20 2a 2a 2a 20 43 6f e..!error *** Co
0f20: 75 6c 64 20 6e 6f 74 20 6c 6f 63 61 74 65 20 72 uld not locate r
0f30: 75 6c 65 73 2e 76 63 20 69 6e 20 24 28 5f 52 55 ules.vc in $(_RU
0f40: 4c 45 53 44 49 52 29 0d 0a 21 65 6e 64 69 66 0d LESDIR)..!endif.
0f50: 0a 0d 0a 21 65 6e 64 69 66 20 23 20 5f 52 55 4c ...!endif # _RUL
0f60: 45 53 5f 45 58 54 5f 56 43 ES_EXT_VC