Update Makefile

Currently, Lua 5.2.0-alpha do not provides a pkg-config file. I hope it
will change in the final release, so we have an automated Makefile for
free.
This commit is contained in:
Alexandre Erwin Ittner 2010-11-17 01:57:40 -02:00
parent 1a183d84c2
commit 1cbd622cef

View File

@ -30,8 +30,8 @@
# line when debugging.
OMIT_FRAME_POINTER = -fomit-frame-pointer
# Name of .pc file. "lua5.1" on Debian/Ubuntu
LUAPKG = lua5.1
# Name of .pc file. "lua5.2" on Debian/Ubuntu
LUAPKG = lua5.2
CFLAGS = `pkg-config $(LUAPKG) --cflags` -fPIC -O3 -Wall
LFLAGS = -shared $(OMIT_FRAME_POINTER)
INSTALL_PATH = `pkg-config $(LUAPKG) --variable=INSTALL_CMOD`
@ -40,7 +40,7 @@ INSTALL_PATH = `pkg-config $(LUAPKG) --variable=INSTALL_CMOD`
## uncomment and change the following ones according to your building
## enviroment.
#CFLAGS = -I/usr/include/lua5.1/ -fPIC -O3 -Wall
#CFLAGS = -I/usr/include/lua5.2/ -fPIC -O3 -Wall
#LFLAGS = -shared $(OMIT_FRAME_POINTER)
#INSTALL_PATH = /usr/lib/lua/5.1