radare2/libr/fs/Makefile
pancake ca5e38d239 * Fix w32 and w64 build (r_fs/grub issue)
* Dont quit rax2 when reading from stdin until 'q' or ^D
* Minor fix in fortunes
2011-07-13 13:59:55 +02:00

40 lines
790 B
Makefile

NAME=r_fs
DEPS=r_lib r_util r_io
CFLAGS+=-DCORELIB -Iarch/include -Iarch
CFLAGS+=-Ip/grub/include
LDFLAGS+=p/grub/libgrubfs.a
include ../config.mk
EXTRA_TARGETS=plugins
foo: pre plugins ${LIBSO} ${LIBAR}
include ${STATIC_FS_PLUGINS}
STATIC_OBJS=$(subst ..,p/..,$(subst fs_,p/fs_,$(STATIC_OBJ)))
OBJ=${STATIC_OBJS} fs.o file.o
#p/grub/main.o
p/grub/libgrubfs.a:
cd p/grub && ${MAKE} libgrubfs.a
pre:
# @if [ ! -e libr_fs.${EXT_SO} ]; then if [ ! -e libr_fs.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi ; fi
re:
rm -f fs.o libr_fs.so
${MAKE}
rm -f t/fastcall.o
sudo ${MAKE} install
cd t && ${MAKE}
test:
#valgrind r2 -i test.rsc /tmp/test.fs.img
gdb --args r2 -i test.rsc /tmp/test.fs.img
plugins:
cd p/grub && ${MAKE} libgrubfs.a
cd p && ${MAKE} all
include ../rules.mk