reminder on how to enable debugging in luaixp
[wmiirc-lua.git] / luaixp / Makefile
blob143809086512751da029007e5af5b0f9fee002a0
1 include ../config.mk
3 SRCS = lixp_main.c lixp_debug.c lixp_util.c lixp_instance.c
4 OBJS = $(SRCS:.c=.o)
6 CFLAGS += ${LUA_INC} ${IXP_INC} -ggdb -O0 -fPIC
7 LIBS += ${LUA_LIB} ${IXP_LIB}
9 #CFLAGS += -DDBG
11 TARGET = ixp.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}