BUGS from jkr
[wmiirc-lua.git] / luaeventloop / Makefile
blobc1f4031d62dcb1471bc990f8008dc6959174e2c6
1 include ../config.mk
3 SRCS = lel_main.c lel_debug.c lel_util.c lel_instance.c
4 OBJS = $(SRCS:.c=.o)
6 CFLAGS += ${LUA_INC} -ggdb -O0 -fPIC
7 LIBS += ${LUA_LIB}
9 #CFLAGS += -DDBG
11 TARGET = eventloop.so
13 .PHONY: all test clean install
14 all: ${TARGET}
16 ${TARGET}: ${OBJS}
17 $(CC) ${CFLAGS} -o $@ -shared $^ $(LIBS)
19 ${OBJS}: %.o: %.c Makefile
20 ${CC} ${CFLAGS} -o $@ -c $<
22 test: ${TARGET}
23 ./test.lua
25 clean:
26 -rm -f ${TARGET} ${OBJS}
27 -rm -f *.o *.so *~
29 install: ${TARGET}
30 ${INSTALL} -d ${CORE_LIB_DIR}
31 ${INSTALL} -b -t ${CORE_LIB_DIR} ${TARGET}
33 install-user: ${TARGET}
34 ${INSTALL} -d ${HOME_CORE}
35 ${INSTALL} -m 0744 -b -t ${HOME_CORE} ${TARGET}