diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-17 01:07:14 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-17 01:07:14 +0000 |
commit | 555962f4618026d8da25b729994f22d0a8fcac23 (patch) | |
tree | 9b67cb05ca7cdd3b6cb281ed230f3af45d037125 /Makefile | |
parent | 5435cbb46fc3456a32fe7527c42e6c7419ceccc1 (diff) | |
download | luaevent-prosody-555962f4618026d8da25b729994f22d0a8fcac23.tar.gz luaevent-prosody-555962f4618026d8da25b729994f22d0a8fcac23.zip |
Makefile: Added basic Makefile for standard make
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a371ad0 --- /dev/null +++ b/Makefile @@ -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 + |