Skip to content
zerodriftPublic

About

Sample Makefile for NMake

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages