summaryrefslogtreecommitdiffstats
path: root/fpart/Rules.test.mk
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2014-06-30 22:10:16 -0500
committerPatrick Williams <iawillia@us.ibm.com>2014-07-02 22:49:29 -0500
commitbf4630076762d9c20c16c80c1c791f352b046dd1 (patch)
treeefc67bad010a28fd1abf5aeeefda2a969514fd97 /fpart/Rules.test.mk
downloadffs-bf4630076762d9c20c16c80c1c791f352b046dd1.zip
ffs-bf4630076762d9c20c16c80c1c791f352b046dd1.tar.gz
Port FFS tools over from Building Block repository.
Diffstat (limited to 'fpart/Rules.test.mk')
-rw-r--r--fpart/Rules.test.mk25
1 files changed, 25 insertions, 0 deletions
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)
OpenPOWER on IntegriCloud