Bertrand Jacquin
2014-06-11 22:26:12 UTC
Hi,
I had a need to be able to install luajit for mingw as I do for a
standard linux host, so I needed to able to run 'make install' in the
top directory for any or both destination arch, this for packaging
purpose.
I saw that the top directory Makefile is not able to handle MinGW target
as stated on http://luajit.org/install.html :
Configuring LuaJIT
The standard configuration should work fine for most installations.
Usually there is no need to tweak the settings. The following files hold
all user-configurable settings:
src/luaconf.h sets some configuration variables.
Makefile has settings for installing LuaJIT (POSIX only).
src/Makefile has settings for compiling LuaJIT under POSIX, MinGW or
Cygwin.
(..)
So I did a quick and dirty to top directory Makefile to handle this, so
all is controlled using TARGET_SYS variable as it's done in
src/Makefile. The patch is attached, and is not meant to be used as-is,
but just to get an answer from you if that's the way you see things for
future.
So some questions :
- Why have all the "smart stuff" in /src/Makefile and not in /Makefile
? To be able to just run 'make' in src/ dir ?
- Are you interesting in a more generic way to have install work for
other platform as MinGW ? so we can easily make dist packages.
Thanks,
Bertrand
I had a need to be able to install luajit for mingw as I do for a
standard linux host, so I needed to able to run 'make install' in the
top directory for any or both destination arch, this for packaging
purpose.
I saw that the top directory Makefile is not able to handle MinGW target
as stated on http://luajit.org/install.html :
Configuring LuaJIT
The standard configuration should work fine for most installations.
Usually there is no need to tweak the settings. The following files hold
all user-configurable settings:
src/luaconf.h sets some configuration variables.
Makefile has settings for installing LuaJIT (POSIX only).
src/Makefile has settings for compiling LuaJIT under POSIX, MinGW or
Cygwin.
(..)
So I did a quick and dirty to top directory Makefile to handle this, so
all is controlled using TARGET_SYS variable as it's done in
src/Makefile. The patch is attached, and is not meant to be used as-is,
but just to get an answer from you if that's the way you see things for
future.
So some questions :
- Why have all the "smart stuff" in /src/Makefile and not in /Makefile
? To be able to just run 'make' in src/ dir ?
- Are you interesting in a more generic way to have install work for
other platform as MinGW ? so we can easily make dist packages.
Thanks,
Bertrand