base: removes direct dependency on liblua since Lua modules should not directly link master

Sat, 15 Jan 2011 20:35:09 -0500

author
Thomas Harning Jr <harningt@gmail.com>
date
Sat, 15 Jan 2011 20:35:09 -0500
changeset 104
19afe60aef3d
parent 103
78087206bef7
child 105
9fb82ef210a3

base: removes direct dependency on liblua since Lua modules should not directly link

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Sat Jan 15 20:33:42 2011 -0500
+++ b/Makefile	Sat Jan 15 20:35:09 2011 -0500
@@ -9,18 +9,16 @@
 
 # Directories
 LUA_INC_DIR ?= /usr/include/lua5.1
-LUA_LIB_DIR ?= /usr/lib
 
 INSTALL_DIR_LUA ?= /usr/share/lua/5.1
 INSTALL_DIR_BIN ?= /usr/lib/lua/5.1
 
 # Files
-LUA_LIB ?= lua5.1
 LIB = core.so
 
 all:
 	$(CC) $(CFLAGS) -c -Iinclude -I$(LUA_INC_DIR) src/*.c
-	$(CC) $(LDFLAGS) -o $(LIB) *.o -L$(LUA_LIB_DIR) -l$(LUA_LIB) -levent
+	$(CC) $(LDFLAGS) -o $(LIB) *.o -levent
 
 install: all
 	mkdir -p $(DESTDIR)$(INSTALL_DIR_LUA)

mercurial