Skip to content
Browse files

fix install bug.

  • Loading branch information...
1 parent 854ac51 commit bb4c450549d329c02005fe93029d302ae61422b7 @forhappy committed Apr 15, 2013
Showing with 13 additions and 2 deletions.
  1. +13 −2 Makefile
View
15 Makefile
@@ -1,10 +1,21 @@
all: zklua.so
+# You may need to change the following variables according to
+# your system, here are the descriptions of these variables:
+#
+# ZOOKEEPER_LIB_DIR: Zookeeper C API library path.
+# LUA_LIB_DIR: Lua library path.
+# LUA_VERSION: Lua version.
+# LUA_VERSION_NUMBER: Lua version number.
ZOOKEEPER_LIB_DIR = /usr/local/lib
+LUA_LIB_DIR = /usr/local/lib/lua
+LUA_VERSION = lua5.1
+LUA_VERSION_NUMBER = 5.1
CC = gcc
-CFLAGS = `pkg-config --cflags lua5.1` -fPIC -O2 #-Wall
-INSTALL_PATH = `pkg-config lua5.1 --variable=INSTALL_CMOD`
+CFLAGS = `pkg-config --cflags $(LUA_VERSION)` -fPIC -O2 #-Wall
+# INSTALL_PATH = `pkg-config $(LUA_VERSION) --variable=INSTALL_CMOD`
+INSTALL_PATH = $(LUA_LIB_DIR)/$(LUA_VERSION_NUMBER)
OS_NAME = $(shell uname -s)
MH_NAME = $(shell uname -m)

0 comments on commit bb4c450

Please sign in to comment.
Something went wrong with that request. Please try again.