Skip to content

zerodrift/lua-msvc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

lua-msvc

Sample Makefile for NMake

This repository contains a Makefile to use with Microsoft Visual Studio (or Command Line Tools) for statically building Lua on Windows. The Makefile must be used from a preconfigured Command Prompt (like one installed with the Command Line Tools for Visual C++).

Basic usage (for Lua 5.3.5):

Extract lua-5.3.5.tar.gz to lua-5.3.5 and change to that directory. Create a subdirectory named, let's say, msvc (it can have any name). Change to the crated directory (msvc) and copy Makefile here. Then execute:

make install

at the command prompt. This will install Lua to C:\Lua53 as defined in the Makefile.

Advanced usage:

One can make an independent build directory and copy there the Makefile. Then from that directory, execute:

make install INSTALL_ROOT=%PATH_TO_INSTALL_ROOT% SOURCE_ROOT=%PATH_TO_SOURCE_ROOT%

where PATH_TO_SOURCE_ROOT must contain the path to a valid Lua source tree (containing a src directory) and PATH_TO_INSTALL_ROOT is the desired path for the installed programs.

Options to build Lua library as DLL may be added in the future.

Enjoy.

About

Sample Makefile for NMake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 100.0%