2014-12-30 23:14:40 +01:00
|
|
|
CFLAGS = -g
|
2014-12-30 21:45:03 +01:00
|
|
|
INCFLAGS = -I. -I../libretro-sdk/include
|
2015-01-07 18:34:37 +01:00
|
|
|
|
|
|
|
LUA_CONVERTER_OBJ = rmsgpack.o \
|
2014-12-30 21:02:15 +01:00
|
|
|
rmsgpack_dom.o \
|
|
|
|
rarchdb.o \
|
|
|
|
bintree.o \
|
2015-01-07 18:34:37 +01:00
|
|
|
lua_converter.o \
|
2014-12-30 21:02:15 +01:00
|
|
|
$(NULL)
|
2015-01-07 18:34:37 +01:00
|
|
|
|
2014-12-30 21:02:15 +01:00
|
|
|
RARCHDB_TOOL_OBJ = rmsgpack.o \
|
|
|
|
rmsgpack_dom.o \
|
|
|
|
db_parser.o \
|
|
|
|
rarchdb_tool.o \
|
|
|
|
bintree.o \
|
|
|
|
rarchdb.o \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-01-07 18:34:37 +01:00
|
|
|
LUA_FLAGS = `pkg-config lua --libs`
|
|
|
|
|
|
|
|
all: rmsgpack_test rarchdb_tool lua_converter
|
2014-12-30 21:02:15 +01:00
|
|
|
|
|
|
|
%.o: %.c
|
2014-12-30 21:45:03 +01:00
|
|
|
${CC} $(INCFLAGS) $< -c ${CFLAGS} -o $@
|
2014-12-30 21:02:15 +01:00
|
|
|
|
2015-01-07 18:34:37 +01:00
|
|
|
lua_converter: ${LUA_CONVERTER_OBJ}
|
|
|
|
${CC} $(INCFLAGS) ${LUA_CONVERTER_OBJ} ${LUA_FLAGS} -o $@
|
2014-12-30 21:02:15 +01:00
|
|
|
|
|
|
|
rarchdb_tool: ${RARCHDB_TOOL_OBJ}
|
2014-12-30 21:45:03 +01:00
|
|
|
${CC} $(INCFLAGS) ${RARCHDB_TOOL_OBJ} -o $@
|
2014-12-30 21:02:15 +01:00
|
|
|
|
|
|
|
rmsgpack_test:
|
2014-12-30 23:14:40 +01:00
|
|
|
${CC} $(INCFLAGS) rmsgpack.c rmsgpack_test.c -g -o $@
|
2014-12-30 21:02:15 +01:00
|
|
|
clean:
|
2015-01-07 18:34:37 +01:00
|
|
|
rm -rf *.o rmsgpack_test lua_converter rarchdb_tool
|