Artifact
996a3595b5bb990c5ee00fd6f3661d3a2897b7e7bd92c189d6ae4ee4304bf167:
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 57 65 20 6e 65 .!endif..# We ne
0480: 65 64 20 61 20 6e 6d 61 6b 65 68 6c 70 20 74 68 ed a nmakehlp th
0490: 61 74 20 77 69 6c 6c 20 72 75 6e 20 6f 6e 20 74 at will run on t
04a0: 68 65 20 68 6f 73 74 20 6d 61 63 68 69 6e 65 20 he host machine
04b0: 61 73 20 70 61 72 74 20 6f 66 20 74 68 65 20 62 as part of the b
04c0: 75 69 6c 64 2e 0a 23 20 69 66 20 54 43 4c 53 48 uild..# if TCLSH
04d0: 5f 4e 41 54 49 56 45 20 69 73 20 73 65 74 20 66 _NATIVE is set f
04e0: 6f 72 20 63 72 6f 73 73 20 63 6f 6d 70 69 6c 61 or cross compila
04f0: 74 69 6f 6e 2c 20 77 65 27 6c 6c 20 74 72 79 20 tion, we'll try
0500: 74 6f 20 66 69 6e 64 20 61 6e 20 61 73 73 6f 63 to find an assoc
0510: 69 61 74 65 64 0a 23 20 6e 6d 61 6b 65 68 6c 70 iated.# nmakehlp
0520: 2e 65 78 65 20 74 68 61 74 20 72 75 6e 73 20 6f .exe that runs o
0530: 6e 20 74 68 65 20 62 75 69 6c 64 20 61 72 63 68 n the build arch
0540: 69 74 65 63 74 75 72 65 2e 0a 21 69 66 64 65 66 itecture..!ifdef
0550: 20 54 43 4c 53 48 5f 4e 41 54 49 56 45 0a 21 69 TCLSH_NATIVE.!i
0560: 66 6e 64 65 66 20 4e 4d 41 4b 45 48 4c 50 5f 4e fndef NMAKEHLP_N
0570: 41 54 49 56 45 0a 21 69 66 20 5b 24 28 54 43 4c ATIVE.!if [$(TCL
0580: 53 48 5f 4e 41 54 49 56 45 29 20 24 28 54 43 4c SH_NATIVE) $(TCL
0590: 44 49 52 29 5c 77 69 6e 5c 66 69 6e 64 5f 6e 6d DIR)\win\find_nm
05a0: 61 6b 65 68 6c 70 2e 74 63 6c 20 24 28 54 43 4c akehlp.tcl $(TCL
05b0: 53 48 5f 4e 41 54 49 56 45 29 20 3e 20 66 69 6e SH_NATIVE) > fin
05c0: 64 5f 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 0a d_nmakehlp.out].
05d0: 21 65 72 72 6f 72 20 54 43 4c 53 48 5f 4e 41 54 !error TCLSH_NAT
05e0: 49 56 45 20 69 73 20 73 65 74 2c 20 62 75 74 20 IVE is set, but
05f0: 75 6e 61 62 6c 65 20 74 6f 20 66 69 6e 64 20 61 unable to find a
0600: 73 73 6f 63 69 61 74 65 64 20 6e 6d 61 6b 65 68 ssociated nmakeh
0610: 6c 70 2e 65 78 65 20 6e 65 61 72 62 79 2e 0a 21 lp.exe nearby..!
0620: 65 6c 73 65 0a 21 69 6e 63 6c 75 64 65 20 66 69 else.!include fi
0630: 6e 64 5f 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 0a nd_nmakehlp.out.
0640: 21 65 6e 64 69 66 0a 21 65 6e 64 69 66 0a 21 65 !endif.!endif.!e
0650: 6e 64 69 66 0a 0a 21 69 66 6e 64 65 66 20 4e 4d ndif..!ifndef NM
0660: 41 4b 45 48 4c 50 5f 4e 41 54 49 56 45 0a 4e 4d AKEHLP_NATIVE.NM
0670: 41 4b 45 48 4c 50 5f 4e 41 54 49 56 45 3d 6e 6d AKEHLP_NATIVE=nm
0680: 61 6b 65 68 6c 70 0a 21 65 6e 64 69 66 0a 0a 23 akehlp.!endif..#
0690: 20 46 69 72 73 74 20 6c 6f 63 61 74 65 20 74 68 First locate th
06a0: 65 20 54 63 6c 20 64 69 72 65 63 74 6f 72 79 20 e Tcl directory
06b0: 74 68 61 74 20 77 65 20 61 72 65 20 77 6f 72 6b that we are work
06c0: 69 6e 67 20 77 69 74 68 2e 0a 21 69 66 20 22 24 ing with..!if "$
06d0: 28 54 43 4c 44 49 52 29 22 20 21 3d 20 22 22 0a (TCLDIR)" != "".
06e0: 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 24 28 54 ._RULESDIR = $(T
06f0: 43 4c 44 49 52 3a 2f 3d 5c 29 0a 0a 21 65 6c 73 CLDIR:/=\)..!els
0700: 65 0a 0a 23 20 49 66 20 61 6e 20 69 6e 73 74 61 e..# If an insta
0710: 6c 6c 61 74 69 6f 6e 20 70 61 74 68 20 69 73 20 llation path is
0720: 73 70 65 63 69 66 69 65 64 2c 20 74 68 61 74 20 specified, that
0730: 69 73 20 61 6c 73 6f 20 74 68 65 20 54 63 6c 20 is also the Tcl
0740: 64 69 72 65 63 74 6f 72 79 2e 0a 23 20 41 6c 73 directory..# Als
0750: 6f 20 54 6b 20 6e 65 76 65 72 20 62 75 69 6c 64 o Tk never build
0760: 73 20 61 67 61 69 6e 73 74 20 61 6e 20 69 6e 73 s against an ins
0770: 74 61 6c 6c 65 64 20 54 63 6c 2c 20 69 74 20 6e talled Tcl, it n
0780: 65 65 64 73 20 54 63 6c 20 73 6f 75 72 63 65 73 eeds Tcl sources
0790: 0a 21 69 66 20 64 65 66 69 6e 65 64 28 49 4e 53 .!if defined(INS
07a0: 54 41 4c 4c 44 49 52 29 20 26 26 20 22 24 28 50 TALLDIR) && "$(P
07b0: 52 4f 4a 45 43 54 29 22 20 21 3d 20 22 74 6b 22 ROJECT)" != "tk"
07c0: 0a 5f 52 55 4c 45 53 44 49 52 3d 24 28 49 4e 53 ._RULESDIR=$(INS
07d0: 54 41 4c 4c 44 49 52 3a 2f 3d 5c 29 0a 21 65 6c TALLDIR:/=\).!el
07e0: 73 65 0a 23 20 4c 6f 63 61 74 65 20 54 63 6c 20 se.# Locate Tcl
07f0: 73 6f 75 72 63 65 73 0a 21 69 66 20 5b 65 63 68 sources.!if [ech
0800: 6f 20 5f 52 55 4c 45 53 44 49 52 20 3d 20 5c 3e o _RULESDIR = \>
0810: 20 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 20 5c nmakehlp.out] \
0820: 0a 20 20 20 7c 7c 20 5b 24 28 4e 4d 41 4b 45 48 . || [$(NMAKEH
0830: 4c 50 5f 4e 41 54 49 56 45 29 20 2d 4c 20 67 65 LP_NATIVE) -L ge
0840: 6e 65 72 69 63 5c 74 63 6c 2e 68 20 3e 3e 20 6e neric\tcl.h >> n
0850: 6d 61 6b 65 68 6c 70 2e 6f 75 74 5d 0a 5f 52 55 makehlp.out]._RU
0860: 4c 45 53 44 49 52 20 3d 20 2e 2e 5c 2e 2e 5c 74 LESDIR = ..\..\t
0870: 63 6c 0a 21 65 6c 73 65 0a 21 69 6e 63 6c 75 64 cl.!else.!includ
0880: 65 20 6e 6d 61 6b 65 68 6c 70 2e 6f 75 74 0a 21 e nmakehlp.out.!
0890: 65 6e 64 69 66 0a 0a 21 65 6e 64 69 66 20 23 20 endif..!endif #
08a0: 64 65 66 69 6e 65 64 28 49 4e 53 54 41 4c 4c 44 defined(INSTALLD
08b0: 49 52 29 2e 2e 2e 2e 0a 0a 21 65 6e 64 69 66 20 IR)......!endif
08c0: 23 20 69 66 6e 64 65 66 20 54 43 4c 44 49 52 0a # ifndef TCLDIR.
08d0: 0a 23 20 4e 6f 77 20 6c 6f 6f 6b 20 66 6f 72 20 .# Now look for
08e0: 74 68 65 20 74 61 72 67 65 74 73 2e 76 63 20 66 the targets.vc f
08f0: 69 6c 65 20 75 6e 64 65 72 20 74 68 65 20 54 63 ile under the Tc
0900: 6c 20 72 6f 6f 74 2e 20 4e 6f 74 65 20 77 65 20 l root. Note we
0910: 63 68 65 63 6b 20 74 68 69 73 0a 23 20 66 69 6c check this.# fil
0920: 65 20 61 6e 64 20 6e 6f 74 20 72 75 6c 65 73 2e e and not rules.
0930: 76 63 20 62 65 63 61 75 73 65 20 74 68 65 20 6c vc because the l
0940: 61 74 74 65 72 20 61 6c 73 6f 20 65 78 69 73 74 atter also exist
0950: 73 20 6f 6e 20 6f 6c 64 65 72 20 73 79 73 74 65 s on older syste
0960: 6d 73 2e 0a 21 69 66 20 65 78 69 73 74 28 22 24 ms..!if exist("$
0970: 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 5c (_RULESDIR)\lib\
0980: 6e 6d 61 6b 65 5c 74 61 72 67 65 74 73 2e 76 63 nmake\targets.vc
0990: 22 29 20 23 20 42 75 69 6c 64 69 6e 67 20 61 67 ") # Building ag
09a0: 61 69 6e 73 74 20 69 6e 73 74 61 6c 6c 65 64 20 ainst installed
09b0: 54 63 6c 0a 5f 52 55 4c 45 53 44 49 52 20 3d 20 Tcl._RULESDIR =
09c0: 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 6c 69 62 $(_RULESDIR)\lib
09d0: 5c 6e 6d 61 6b 65 0a 21 65 6c 73 65 69 66 20 65 \nmake.!elseif e
09e0: 78 69 73 74 28 22 24 28 5f 52 55 4c 45 53 44 49 xist("$(_RULESDI
09f0: 52 29 5c 77 69 6e 5c 74 61 72 67 65 74 73 2e 76 R)\win\targets.v
0a00: 63 22 29 20 20 20 23 20 42 75 69 6c 64 69 6e 67 c") # Building
0a10: 20 61 67 61 69 6e 73 74 20 54 63 6c 20 73 6f 75 against Tcl sou
0a20: 72 63 65 73 0a 5f 52 55 4c 45 53 44 49 52 20 3d rces._RULESDIR =
0a30: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 77 69 $(_RULESDIR)\wi
0a40: 6e 0a 21 65 6c 73 65 0a 23 20 49 66 20 77 65 20 n.!else.# If we
0a50: 68 61 76 65 20 6e 6f 74 20 6c 6f 63 61 74 65 64 have not located
0a60: 20 54 63 6c 27 73 20 74 61 72 67 65 74 73 20 66 Tcl's targets f
0a70: 69 6c 65 2c 20 6d 6f 73 74 20 6c 69 6b 65 6c 79 ile, most likely
0a80: 20 77 65 20 61 72 65 20 63 6f 6d 70 69 6c 69 6e we are compilin
0a90: 67 0a 23 20 61 67 61 69 6e 73 74 20 61 6e 20 6f g.# against an o
0aa0: 6c 64 65 72 20 76 65 72 73 69 6f 6e 20 6f 66 20 lder version of
0ab0: 54 63 6c 20 61 6e 64 20 73 6f 20 6d 75 73 74 20 Tcl and so must
0ac0: 75 73 65 20 6f 75 72 20 6f 77 6e 20 73 75 70 70 use our own supp
0ad0: 6f 72 74 20 66 69 6c 65 73 2e 0a 5f 52 55 4c 45 ort files.._RULE
0ae0: 53 44 49 52 20 3d 20 2e 0a 21 65 6e 64 69 66 0a SDIR = ..!endif.
0af0: 0a 21 69 66 20 22 24 28 5f 52 55 4c 45 53 44 49 .!if "$(_RULESDI
0b00: 52 29 22 20 21 3d 20 22 2e 22 0a 23 20 50 6f 74 R)" != ".".# Pot
0b10: 65 6e 74 69 61 6c 6c 79 20 75 73 69 6e 67 20 54 entially using T
0b20: 63 6c 27 73 20 73 75 70 70 6f 72 74 20 66 69 6c cl's support fil
0b30: 65 73 2e 20 49 66 20 74 68 69 73 20 65 78 74 65 es. If this exte
0b40: 6e 73 69 6f 6e 20 68 61 73 20 69 74 73 20 6f 77 nsion has its ow
0b50: 6e 0a 23 20 6e 6d 61 6b 65 20 73 75 70 70 6f 72 n.# nmake suppor
0b60: 74 20 66 69 6c 65 73 2c 20 6e 65 65 64 20 74 6f t files, need to
0b70: 20 63 6f 6d 70 61 72 65 20 74 68 65 20 76 65 72 compare the ver
0b80: 73 69 6f 6e 73 20 61 6e 64 20 70 69 63 6b 20 6e sions and pick n
0b90: 65 77 65 72 2e 0a 0a 21 69 66 20 65 78 69 73 74 ewer...!if exist
0ba0: 28 22 72 75 6c 65 73 2e 76 63 22 29 20 23 20 54 ("rules.vc") # T
0bb0: 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 68 61 73 he extension has
0bc0: 20 69 74 73 20 6f 77 6e 20 63 6f 70 79 0a 0a 21 its own copy..!
0bd0: 69 66 20 5b 65 63 68 6f 20 54 43 4c 5f 52 55 4c if [echo TCL_RUL
0be0: 45 53 5f 4d 41 4a 4f 52 20 3d 20 5c 3e 20 76 65 ES_MAJOR = \> ve
0bf0: 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 20 rsions.vc] \.
0c00: 26 26 20 5b 24 28 4e 4d 41 4b 45 48 4c 50 5f 4e && [$(NMAKEHLP_N
0c10: 41 54 49 56 45 29 20 2d 56 20 22 24 28 5f 52 55 ATIVE) -V "$(_RU
0c20: 4c 45 53 44 49 52 29 5c 72 75 6c 65 73 2e 76 63 LESDIR)\rules.vc
0c30: 22 20 52 55 4c 45 53 5f 56 45 52 53 49 4f 4e 5f " RULES_VERSION_
0c40: 4d 41 4a 4f 52 20 3e 3e 20 76 65 72 73 69 6f 6e MAJOR >> version
0c50: 73 2e 76 63 5d 0a 21 65 6e 64 69 66 0a 21 69 66 s.vc].!endif.!if
0c60: 20 5b 65 63 68 6f 20 54 43 4c 5f 52 55 4c 45 53 [echo TCL_RULES
0c70: 5f 4d 49 4e 4f 52 20 3d 20 5c 3e 3e 20 76 65 72 _MINOR = \>> ver
0c80: 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 20 26 sions.vc] \. &
0c90: 26 20 5b 24 28 4e 4d 41 4b 45 48 4c 50 5f 4e 41 & [$(NMAKEHLP_NA
0ca0: 54 49 56 45 29 20 2d 56 20 22 24 28 5f 52 55 4c TIVE) -V "$(_RUL
0cb0: 45 53 44 49 52 29 5c 72 75 6c 65 73 2e 76 63 22 ESDIR)\rules.vc"
0cc0: 20 52 55 4c 45 53 5f 56 45 52 53 49 4f 4e 5f 4d RULES_VERSION_M
0cd0: 49 4e 4f 52 20 3e 3e 20 76 65 72 73 69 6f 6e 73 INOR >> versions
0ce0: 2e 76 63 5d 0a 21 65 6e 64 69 66 0a 0a 21 69 66 .vc].!endif..!if
0cf0: 20 5b 65 63 68 6f 20 4f 55 52 5f 52 55 4c 45 53 [echo OUR_RULES
0d00: 5f 4d 41 4a 4f 52 20 3d 20 5c 3e 3e 20 76 65 72 _MAJOR = \>> ver
0d10: 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 20 26 sions.vc] \. &
0d20: 26 20 5b 24 28 4e 4d 41 4b 45 48 4c 50 5f 4e 41 & [$(NMAKEHLP_NA
0d30: 54 49 56 45 29 20 2d 56 20 22 72 75 6c 65 73 2e TIVE) -V "rules.
0d40: 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53 49 4f vc" RULES_VERSIO
0d50: 4e 5f 4d 41 4a 4f 52 20 3e 3e 20 76 65 72 73 69 N_MAJOR >> versi
0d60: 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64 69 66 0a 21 ons.vc].!endif.!
0d70: 69 66 20 5b 65 63 68 6f 20 4f 55 52 5f 52 55 4c if [echo OUR_RUL
0d80: 45 53 5f 4d 49 4e 4f 52 20 3d 20 5c 3e 3e 20 76 ES_MINOR = \>> v
0d90: 65 72 73 69 6f 6e 73 2e 76 63 5d 20 5c 0a 20 20 ersions.vc] \.
0da0: 20 26 26 20 5b 24 28 4e 4d 41 4b 45 48 4c 50 5f && [$(NMAKEHLP_
0db0: 4e 41 54 49 56 45 29 20 2d 56 20 22 72 75 6c 65 NATIVE) -V "rule
0dc0: 73 2e 76 63 22 20 52 55 4c 45 53 5f 56 45 52 53 s.vc" RULES_VERS
0dd0: 49 4f 4e 5f 4d 49 4e 4f 52 20 3e 3e 20 76 65 72 ION_MINOR >> ver
0de0: 73 69 6f 6e 73 2e 76 63 5d 0a 21 65 6e 64 69 66 sions.vc].!endif
0df0: 0a 21 69 6e 63 6c 75 64 65 20 76 65 72 73 69 6f .!include versio
0e00: 6e 73 2e 76 63 0a 23 20 57 65 20 68 61 76 65 20 ns.vc.# We have
0e10: 61 20 6e 65 77 65 72 20 76 65 72 73 69 6f 6e 20 a newer version
0e20: 6f 66 20 74 68 65 20 73 75 70 70 6f 72 74 20 66 of the support f
0e30: 69 6c 65 73 2c 20 75 73 65 20 74 68 65 6d 0a 21 iles, use them.!
0e40: 69 66 20 28 24 28 54 43 4c 5f 52 55 4c 45 53 5f if ($(TCL_RULES_
0e50: 4d 41 4a 4f 52 29 20 21 3d 20 24 28 4f 55 52 5f MAJOR) != $(OUR_
0e60: 52 55 4c 45 53 5f 4d 41 4a 4f 52 29 29 20 7c 7c RULES_MAJOR)) ||
0e70: 20 28 24 28 54 43 4c 5f 52 55 4c 45 53 5f 4d 49 ($(TCL_RULES_MI
0e80: 4e 4f 52 29 20 3c 20 24 28 4f 55 52 5f 52 55 4c NOR) < $(OUR_RUL
0e90: 45 53 5f 4d 49 4e 4f 52 29 29 0a 5f 52 55 4c 45 ES_MINOR))._RULE
0ea0: 53 44 49 52 20 3d 20 2e 0a 21 65 6e 64 69 66 0a SDIR = ..!endif.
0eb0: 0a 21 65 6e 64 69 66 20 23 20 69 66 20 65 78 69 .!endif # if exi
0ec0: 73 74 28 22 72 75 6c 65 73 2e 76 63 22 29 0a 0a st("rules.vc")..
0ed0: 21 65 6e 64 69 66 20 23 20 69 66 20 24 28 5f 52 !endif # if $(_R
0ee0: 55 4c 45 53 44 49 52 29 20 21 3d 20 22 2e 22 0a ULESDIR) != ".".
0ef0: 0a 23 20 4c 65 74 20 72 75 6c 65 73 2e 76 63 20 .# Let rules.vc
0f00: 6b 6e 6f 77 20 77 68 61 74 20 63 6f 70 79 20 6f know what copy o
0f10: 66 20 6e 6d 61 6b 65 68 6c 70 2e 63 20 74 6f 20 f nmakehlp.c to
0f20: 75 73 65 2e 0a 4e 4d 41 4b 45 48 4c 50 43 20 3d use..NMAKEHLPC =
0f30: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 6e 6d $(_RULESDIR)\nm
0f40: 61 6b 65 68 6c 70 2e 63 0a 0a 23 20 47 65 74 20 akehlp.c..# Get
0f50: 72 69 64 20 6f 66 20 6f 75 72 20 69 6e 74 65 72 rid of our inter
0f60: 6e 61 6c 20 64 65 66 69 6e 65 73 20 62 65 66 6f nal defines befo
0f70: 72 65 20 63 61 6c 6c 69 6e 67 20 72 75 6c 65 73 re calling rules
0f80: 2e 76 63 0a 21 75 6e 64 65 66 20 54 43 4c 5f 52 .vc.!undef TCL_R
0f90: 55 4c 45 53 5f 4d 41 4a 4f 52 0a 21 75 6e 64 65 ULES_MAJOR.!unde
0fa0: 66 20 54 43 4c 5f 52 55 4c 45 53 5f 4d 49 4e 4f f TCL_RULES_MINO
0fb0: 52 0a 21 75 6e 64 65 66 20 4f 55 52 5f 52 55 4c R.!undef OUR_RUL
0fc0: 45 53 5f 4d 41 4a 4f 52 0a 21 75 6e 64 65 66 20 ES_MAJOR.!undef
0fd0: 4f 55 52 5f 52 55 4c 45 53 5f 4d 49 4e 4f 52 0a OUR_RULES_MINOR.
0fe0: 0a 21 69 66 20 65 78 69 73 74 28 22 24 28 5f 52 .!if exist("$(_R
0ff0: 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 73 2e 76 ULESDIR)\rules.v
1000: 63 22 29 0a 21 69 6e 63 6c 75 64 65 20 22 24 28 c").!include "$(
1010: 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 6c 65 73 _RULESDIR)\rules
1020: 2e 76 63 22 0a 21 69 66 6e 64 65 66 20 56 45 52 .vc".!ifndef VER
1030: 42 4f 53 45 0a 23 20 42 61 63 6b 77 61 72 64 20 BOSE.# Backward
1040: 63 6f 6d 70 61 74 69 62 69 6c 69 74 79 0a 56 45 compatibility.VE
1050: 52 42 4f 53 45 3d 31 0a 21 65 6e 64 69 66 0a 21 RBOSE=1.!endif.!
1060: 69 66 20 24 28 56 45 52 42 4f 53 45 29 0a 21 6d if $(VERBOSE).!m
1070: 65 73 73 61 67 65 20 2a 2a 2a 20 55 73 69 6e 67 essage *** Using
1080: 20 24 28 5f 52 55 4c 45 53 44 49 52 29 5c 72 75 $(_RULESDIR)\ru
1090: 6c 65 73 2e 76 63 0a 21 65 6e 64 69 66 0a 21 65 les.vc.!endif.!e
10a0: 6c 73 65 0a 21 65 72 72 6f 72 20 2a 2a 2a 20 43 lse.!error *** C
10b0: 6f 75 6c 64 20 6e 6f 74 20 6c 6f 63 61 74 65 20 ould not locate
10c0: 72 75 6c 65 73 2e 76 63 20 69 6e 20 24 28 5f 52 rules.vc in $(_R
10d0: 55 4c 45 53 44 49 52 29 0a 21 65 6e 64 69 66 0a ULESDIR).!endif.
10e0: 0a 21 65 6e 64 69 66 20 23 20 5f 52 55 4c 45 53 .!endif # _RULES
10f0: 5f 45 58 54 5f 56 43 0a _EXT_VC.