From bf4630076762d9c20c16c80c1c791f352b046dd1 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 30 Jun 2014 22:10:16 -0500 Subject: Port FFS tools over from Building Block repository. --- fpart/Rules.test.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fpart/Rules.test.mk (limited to 'fpart/Rules.test.mk') diff --git a/fpart/Rules.test.mk b/fpart/Rules.test.mk new file mode 100644 index 0000000..9b63533 --- /dev/null +++ b/fpart/Rules.test.mk @@ -0,0 +1,25 @@ +CFLAGS += -m32 -D_GNU_SOURCE -std=gnu99 -D_FILE_OFFSET_BITS=64 -I$(DEPTH)/apps -iquote.. +LDFLAGS += -L. -L$(DEPTH)/apps/clib/$(ARCH_DEP_DIR) + +OBJS=test_libffs.o + +TARGETS=test_libffs + +vpath %.c ../test +vpath %.h .. + +all: $(TARGETS) + +#libffs.a: $(OBJS) +# $(AR) -r $@ $^ + +test_libffs: test_libffs.o ../ppc/libffs.a $(DEPTH)/apps/clib/$(ARCH_DEP_DIR)/libclib.a + $(CC) $(LDFLAGS) -o $@ $^ -lpthread + +install: $(TARGETS) + $(INSTALL) ../test/test_libffs $(TEST_LIBFFS_INSTALL) + $(INSTALL) ../test/libffs_test.sh $(TEST_LIBFFS_INSTALL) + $(INSTALL) ../test/ffs_tool_test.sh $(TEST_LIBFFS_INSTALL) + +clean distclean: + $(RM) -f $(TARGETS) $(OBJS) -- cgit v1.2.1