2011-01-07 17:22:02 +00:00
|
|
|
NAME=r_fs
|
2014-01-18 01:52:49 +00:00
|
|
|
DEPS=r_util r_io
|
2011-01-07 17:22:02 +00:00
|
|
|
CFLAGS+=-DCORELIB -Iarch/include -Iarch
|
|
|
|
|
2013-12-14 02:51:18 +00:00
|
|
|
SHLR=../../shlr/
|
2011-01-14 00:02:20 +00:00
|
|
|
|
2011-01-07 17:22:02 +00:00
|
|
|
include ../config.mk
|
2014-03-24 22:43:30 +00:00
|
|
|
CFLAGS+=-I$(SHLR)/grub/include
|
2013-12-22 02:24:12 +00:00
|
|
|
LDFLAGS+=$(SHLR)/grub/libgrubfs.a
|
2011-01-07 17:22:02 +00:00
|
|
|
|
2011-01-17 07:35:57 +00:00
|
|
|
EXTRA_TARGETS=plugins
|
2012-08-13 23:25:50 +00:00
|
|
|
foo:
|
2015-10-26 21:33:45 +00:00
|
|
|
for TARGET in pre plugins ${LIBSO} ${LIBAR} ; do ${MAKE} $$TARGET ; done
|
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)))
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS=${STATIC_OBJS} fs.o file.o
|
2011-02-21 08:26:32 +00:00
|
|
|
#p/grub/main.o
|
2011-01-07 17:22:02 +00:00
|
|
|
|
2013-12-14 02:51:18 +00:00
|
|
|
#p/grub/libgrubfs.a:
|
|
|
|
# cd p/grub && ${MAKE} libgrubfs.a CC="${CC}"
|
2011-03-09 17:30:17 +00:00
|
|
|
|
|
|
|
pre:
|
2011-11-22 01:35:14 +00:00
|
|
|
cd d && ${MAKE}
|
2011-07-13 11:59:55 +00:00
|
|
|
# @if [ ! -e libr_fs.${EXT_SO} ]; then if [ ! -e libr_fs.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi ; fi
|
2011-01-07 17:22:02 +00:00
|
|
|
|
|
|
|
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:
|
2013-12-14 02:51:18 +00:00
|
|
|
#cd p/grub && ${MAKE} libgrubfs.a CC="${CC}"
|
2011-01-07 17:22:02 +00:00
|
|
|
cd p && ${MAKE} all
|
|
|
|
|
|
|
|
include ../rules.mk
|