aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a371ad0387e33f0f61bfc87117d4f20b99150f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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