Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Get rid of tcludp.rc and use the default rc template instead |
---|---|
Timelines: | family | ancestors | descendants | both | vc-reform |
Files: | files | file ages | folders |
SHA1: |
b43da5b57bb28f89ecd63d932d88c096 |
User & Date: | apnadkarni 2017-10-08 16:05:45.615 |
Context
2017-10-16
| ||
13:17 | Updated to latest Tcl rules check-in: b01a44a88a user: apnadkarni tags: vc-reform | |
2017-10-08
| ||
16:05 | Get rid of tcludp.rc and use the default rc template instead check-in: b43da5b57b user: apnadkarni tags: vc-reform | |
2017-09-30
| ||
13:37 | First cut at building with new rules.vc check-in: 4442f2b1bb user: apnadkarni tags: vc-reform | |
Changes
Changes to win/makefile.vc.
︙ | ︙ | |||
155 156 157 158 159 160 161 | # # You need to specify the object files that need to be linked into your # binary here. # #------------------------------------------------------------------------- PROJECT = udp | | < < < | | < < < < | | | < > | < < < | | < < < < | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | # # You need to specify the object files that need to be linked into your # binary here. # #------------------------------------------------------------------------- PROJECT = udp !include "rules-ext.vc" PRJ_OBJS = \ $(TMP_DIR)\udp_tcl.obj \ $(TMP_DIR)\$(PROJECT).res PRJDOCS = \ $(OUT_DIR)\udp.html #------------------------------------------------------------------------- # Target names and paths ( shouldn't need changing ) #------------------------------------------------------------------------- PRJ_DEFINES = -D_CRT_SECURE_NO_WARNINGS \ -D_WINSOCK_DEPRECATED_NO_WARNINGS PRJ_LIBS = ws2_32.lib # Define the standard targets !include "$(_RULESDIR)\targets.vc" # We will use the standard resource template instead of writing our own $(TMP_DIR)\$(PROJECT).res: default-rc #--------------------------------------------------------------------- # Project specific targets (EDIT) #--------------------------------------------------------------------- all: setup $(PROJECT) doc: setup $(PRJDOCS) install: install-docs install-demos pkgindex: default-pkgindex test: setup $(PROJECT) $(TCLSH) << load $(PRJLIB:\=/) cd {$(ROOT)/tests} set argv "$(TESTFLAGS)" source all.tcl << #--------------------------------------------------------------------- # Implicit rules #--------------------------------------------------------------------- DOC2HTML = $(TCLSH) "$(TOOLSDIR)\mpexpand.tcl" html {$(DOCDIR)}.man{$(OUT_DIR)}.html: $(DOC2HTML) $< $@ @$(TCLSH) << set name $(@:\=/) set f [open $$name r]; set d [read $$f]; close $$f set d [regsub {</head>} $$d {<link rel="stylesheet" href="manpage.css" type="text/css"></head>}] set f [open $$name w]; puts -nonewline $$f $$d; close $$f << .SUFFIXES: .man install-docs: $(PRJDOCS) @echo Installing documentation to '$(DOC_INSTALL_DIR)' @if not exist $(DOC_INSTALL_DIR)\NUL mkdir "$(DOC_INSTALL_DIR)" @$(CPY) "$(DOCDIR)\manpage.css" "$(DOC_INSTALL_DIR)\" >NUL @for %i in ($(PRJDOCS)) do @$(CPY) %i "$(DOC_INSTALL_DIR)\" > NUL install-demos: @echo Installing demos to '$(DEMO_INSTALL_DIR)' @if not exist $(DEMO_INSTALL_DIR)\nul mkdir "$(DEMO_INSTALL_DIR)" @$(CPY) $(DEMODIR)\*.tcl "$(DEMO_INSTALL_DIR)" >NUL |
Changes to win/rules.vc.
|
| | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #------------------------------------------------------------- -*- makefile -*- # rules.vc -- # # Microsoft Visual C++ makefile include for decoding the commandline # macros. This file does not need editing to build Tcl. # # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # Copyright (c) 2001-2003 David Gravereaux. # Copyright (c) 2003-2008 Patrick Thoyts # Copyright (c) 2017 Ashok P. Nadkarni #------------------------------------------------------------------------------ !ifndef _RULES_VC _RULES_VC = 1 # The following macros define the version of the rules.vc nmake build system RULES_VERSION_MAJOR = 1 RULES_VERSION_MINOR = 0 ################################################################ # Nmake is a pretty weak environment in syntax and capabilities # so this file is necessarily verbose. It's broken down into # the following parts. # # 0. Sanity check that compiler environment is set up. |
︙ | ︙ | |||
1081 1082 1083 1084 1085 1086 1087 | !if "$(MACHINE)" == "AMD64" OPTDEFINES = $(OPTDEFINES) -DTCL_CFG_DO64BIT !endif !if $(VCVERSION) < 1300 OPTDEFINES = $(OPTDEFINES) -DNO_STRTOI64 !endif | < | > > > > > > > > > > > > > > > > > > | 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 | !if "$(MACHINE)" == "AMD64" OPTDEFINES = $(OPTDEFINES) -DTCL_CFG_DO64BIT !endif !if $(VCVERSION) < 1300 OPTDEFINES = $(OPTDEFINES) -DNO_STRTOI64 !endif # _ATL_XP_TARGETING - Newer SDK's need this to build for XP COMPILERFLAGS = /D_ATL_XP_TARGETING # Following is primarily for the benefit of extensions. Tcl 8.5 builds # Tcl without /DUNICODE, while 8.6 builds with it defined. When building # an extension, it is advisable (but not mandated) to use the same Windows # API as the Tcl build. This is accordingly defaulted below. A particular # extension can override this by pre-definining USE_WIDECHAR_API. !ifndef USE_WIDECHAR_API !if $(TCL_VERSION) > 85 USE_WIDECHAR_API = 1 !else USE_WIDECHAR_API = 0 !endif !endif !if $(USE_WIDECHAR_API) COMPILERFLAGS = $(COMPILERFLAGS) /DUNICODE /D_UNICODE !endif # crt picks the C run time based on selected OPTS !if $(MSVCRT) !if $(DEBUG) && !$(UNCHECKED) crt = -MDd !else crt = -MD |
︙ | ︙ | |||
1295 1296 1297 1298 1299 1300 1301 | {$(COMPATDIR)}.c{$(TMP_DIR)}.obj:: $(cc32) $(pkgcflags) -Fo$(TMP_DIR)\ @<< $< << {$(RCDIR)}.rc{$(TMP_DIR)}.res: $(MAKERESCMD) | | | 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 | {$(COMPATDIR)}.c{$(TMP_DIR)}.obj:: $(cc32) $(pkgcflags) -Fo$(TMP_DIR)\ @<< $< << {$(RCDIR)}.rc{$(TMP_DIR)}.res: $(MAKERESCMD) {$(WINDIR)}.rc{$(TMP_DIR)}.res: $(MAKERESCMD) .SUFFIXES: .SUFFIXES:.c .rc !endif |
︙ | ︙ |
Deleted win/tcludp.rc.
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |