# HG changeset patch # User Matthew Wild # Date 1263690434 0 # Node ID e9b909b391c36e91550d80f0d464eec1ed379745 # Parent adb5fa9ea85adbc532433b9f879779f7a0cd6c79 Makefile: Added basic Makefile for standard make diff -r adb5fa9ea85a -r e9b909b391c3 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sun Jan 17 01:07:14 2010 +0000 @@ -0,0 +1,21 @@ +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 + + +all: + gcc -g -O0 -c -Wall -fpic -Iinclude -I$(LUA_INC_DIR) src/*.c + gcc -g -shared -fpic -o core.so *.o -L$(LUA_LIB_DIR) -llua5.1 -levent + +install: + install -d $(INSTALL_DIR_LUA) + install lua/luaevent.lua $(INSTALL_DIR_LUA)/ + install -d $(INSTALL_DIR_BIN)/luaevent + install core.so $(INSTALL_DIR_BIN)/luaevent/core.so + +clean: + rm *.so + rm *.o +