summaryrefslogtreecommitdiffstats
path: root/fpart/Rules.test.mk
diff options
context:
space:
mode:
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