get_screens() to return nil when there are no screens
[wmiirc-lua.git] / luaixp / Makefile
blob06aa0ccf652e26b6d811d61c09ed25af1abf28aa
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 TARGET = ixp.so
11 .PHONY: all test clean install
12 all: ${TARGET}
14 ${TARGET}: ${OBJS}
15 $(CC) ${CFLAGS} -o $@ -shared $^ $(LIBS)
17 ${OBJS}: %.o: %.c Makefile
18 ${CC} ${CFLAGS} -o $@ -c $<
20 test: ${TARGET}
21 ./test.lua
23 clean:
24 -rm -f ${TARGET} ${OBJS}
25 -rm -f *.o *.so *~
27 install: ${TARGET}
28 ${INSTALL} -d ${CORE_LIB_DIR}
29 ${INSTALL} -b -t ${CORE_LIB_DIR} ${TARGET}
31 install-user: ${TARGET}
32 ${INSTALL} -d ${HOME_CORE}
33 ${INSTALL} -m 0744 -b -t ${HOME_CORE} ${TARGET}