[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Generating makefile for C library.
- From: "A.S. Bradbury" <asb@...>
- Date: Tue, 28 Oct 2008 08:10:35 +0000
On Tue, Oct 28, 2008 at 6:42 AM, Asko Kauppi <email@example.com> wrote:
> To me, this sounds like a thing LuaRocks should be inclined to take on.
> Actually, it might already do such; can we just throw .c to it and it will
> build things the "right" way?
> Any LuaRocks guru, please comment. :)
I'm not guru, but luarocks can indeed be used to build lua extensions
the right way on supported platforms when using the "builtin" build
type in your rockspec. See 'Creating a rock' on the luarocks wiki
for an example. You may also be interested in 'recommended practices
for Makefiles', also on the luarocks wiki. I use this build type
for my projects, so users won't need to edit a Makefile with the
right linker options, lua paths etc if they have luarocks installed.