2014-12-30 20:45:03 +00:00
|
|
|
CFLAGS =-std=c99 -g
|
|
|
|
INCFLAGS = -I. -I../libretro-sdk/include
|
2014-12-30 20:02:15 +00:00
|
|
|
DAT_CONVERTER_OBJ = rmsgpack.o \
|
|
|
|
rmsgpack_dom.o \
|
|
|
|
rarchdb.o \
|
|
|
|
bintree.o \
|
|
|
|
db_parser.o \
|
|
|
|
dat_converter.o \
|
|
|
|
$(NULL)
|
|
|
|
RARCHDB_TOOL_OBJ = rmsgpack.o \
|
|
|
|
rmsgpack_dom.o \
|
|
|
|
db_parser.o \
|
|
|
|
rarchdb_tool.o \
|
|
|
|
bintree.o \
|
|
|
|
rarchdb.o \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
all: dat_converter rmsgpack_test rarchdb_tool
|
|
|
|
|
|
|
|
%.o: %.c
|
2014-12-30 20:45:03 +00:00
|
|
|
${CC} $(INCFLAGS) $< -c ${CFLAGS} -o $@
|
2014-12-30 20:02:15 +00:00
|
|
|
|
|
|
|
dat_converter: ${DAT_CONVERTER_OBJ}
|
2014-12-30 20:45:03 +00:00
|
|
|
${CC} $(INCFLAGS) ${DAT_CONVERTER_OBJ} -o $@
|
2014-12-30 20:02:15 +00:00
|
|
|
|
|
|
|
rarchdb_tool: ${RARCHDB_TOOL_OBJ}
|
2014-12-30 20:45:03 +00:00
|
|
|
${CC} $(INCFLAGS) ${RARCHDB_TOOL_OBJ} -o $@
|
2014-12-30 20:02:15 +00:00
|
|
|
|
|
|
|
rmsgpack_test:
|
2014-12-30 20:45:03 +00:00
|
|
|
${CC} $(INCFLAGS) rmsgpack.c rmsgpack_test.c -std=c99 -g -o $@
|
2014-12-30 20:02:15 +00:00
|
|
|
clean:
|
|
|
|
rm -rf *.o rmsgpack_test dat_converter rarchdb_tool
|