From f46a2808f9f9857d9fee1c7813d05d5e44407c17 Mon Sep 17 00:00:00 2001 From: Petro <2592462+Kazmirchuk@users.noreply.github.com> Date: Wed, 14 Dec 2022 12:54:59 +0100 Subject: [PATCH] fixed the nmake build; added brief installation instructions --- README.md | 22 ++++++++++++++++++++++ win/makefile.vc | 3 +-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 948230d..892525f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,28 @@ set of patterns established by the core Tcl commands, is terse and readable to specify the arguments, and is fast enough to use in any situation. +# INSTALLATION +Common note: make sure to clone the repository with the `--recurse-submodules` option in order to pull the `tclconfig` submodule. +## Linux +Make sure you have both `tcl` and `tcl-devel` packages installed. +```sh +autoreconf +# customize with the correct Tcl paths in your system +./configure --with-tcl=/usr/lib64 --with-tclinclude=/usr/include +# "make all" will generate documentation using pandoc +make +sudo make install +# or you can skip the documentation: +make binaries +sudo make install-binaries +``` +## Windows +You can build the package using `nmake` in your MSVC shell. Customize INSTALLDIR to your Tcl location. +```cmd +cd parse_args\win +nmake /nologo /f makefile.vc INSTALLDIR=c:\software\ActiveTcl_8.6.12 +nmake /nologo /f makefile.vc INSTALLDIR=c:\software\ActiveTcl_8.6.12 install +``` # COMMANDS - **parse\_args::parse\_args** *args* *argspec* diff --git a/win/makefile.vc b/win/makefile.vc index ae75a2c..6095f0c 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -19,8 +19,7 @@ PROJECT = parse_args !include "rules-ext.vc" PRJ_OBJS = $(TMP_DIR)\parse_args.obj - -# PRJ_DEFINES = -D_CRT_SECURE_NO_WARNINGS +PRJ_DEFINES = -DTIP445_SHIM -D_CRT_SECURE_NO_WARNINGS !include "$(_RULESDIR)\targets.vc"