2011-01-07 17:22:02 +00:00
|
|
|
NAME=r_fs
|
|
|
|
DEPS=r_lib r_util r_io
|
|
|
|
CFLAGS+=-DCORELIB -Iarch/include -Iarch
|
|
|
|
|
2011-01-14 00:02:20 +00:00
|
|
|
CFLAGS+=-Ip/grub/include
|
|
|
|
LDFLAGS+=p/grub/libgrubfs.a
|
|
|
|
|
2011-01-07 17:22:02 +00:00
|
|
|
include ../config.mk
|
|
|
|
|
2011-01-17 07:35:57 +00:00
|
|
|
EXTRA_TARGETS=plugins
|
2011-01-14 00:02:20 +00:00
|
|
|
foo: pre plugins ${LIBSO} ${LIBAR}
|
2011-01-07 17:22:02 +00:00
|
|
|
|
2011-01-11 23:01:06 +00:00
|
|
|
include ${STATIC_FS_PLUGINS}
|
2011-01-07 17:22:02 +00:00
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst fs_,p/fs_,$(STATIC_OBJ)))
|
2011-01-11 23:01:06 +00:00
|
|
|
OBJ=${STATIC_OBJS} fs.o file.o
|
2011-01-07 17:22:02 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
|
2011-01-14 00:02:20 +00:00
|
|
|
test:
|
|
|
|
#valgrind r2 -i test.rsc /tmp/test.fs.img
|
|
|
|
gdb --args r2 -i test.rsc /tmp/test.fs.img
|
|
|
|
|
2011-01-07 17:22:02 +00:00
|
|
|
plugins:
|
|
|
|
cd p && ${MAKE} all
|
|
|
|
|
|
|
|
include ../rules.mk
|