2 CONFIG_MK
= ${TOP}/config.mk
4 include ${TOP}/Makefile.rules
6 SRCS
= lel_main.c lel_debug.c lel_util.c lel_instance.c
9 CFLAGS
+= ${LUA_INC} -ggdb
-O0
-fPIC
16 .PHONY
: all test clean install
21 ${Q} $(CC
) ${CFLAGS} -o
$@
-shared
$^
$(LIBS
)
23 ${OBJS}: %.o
: %.c Makefile
25 ${Q} ${CC} ${CFLAGS} -o
$@
-c
$<
31 -${Q} rm -f
${TARGET} ${OBJS}
32 -${Q} rm -f
*.o
*.so
*~
35 ${Q} ${INSTALL} -d
${CORE_LIB_DIR}
36 ${Q} ${INSTALL} -b
-t
${CORE_LIB_DIR} ${TARGET}
38 install-user
: ${TARGET}
39 ${Q} ${INSTALL} -d
${HOME_CORE}
40 ${Q} ${INSTALL} -m
0744 -b
-t
${HOME_CORE} ${TARGET}