Use libhwbase build infra
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f59aa9b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+libhw-dir ?= ../libhwbase/dest
+
+name := fstest
+fstest-deplibs := libhw
+link-type := program
+CONFIG_FSTEST := y
+CONFIG_FSCAT :=
+include $(libhw-dir)/Makefile
diff --git a/Makefile.cat b/Makefile.cat
new file mode 100644
index 0000000..e50abcb
--- /dev/null
+++ b/Makefile.cat
@@ -0,0 +1,9 @@
+libhw-dir ?= ../libhwbase/dest
+
+name := fstest
+fstest-deplibs := libhw
+prefixed-name := fscat
+link-type := program
+CONFIG_FSTEST :=
+CONFIG_FSCAT := y
+include $(libhw-dir)/Makefile
diff --git a/Makefile.inc b/Makefile.inc
new file mode 100644
index 0000000..129621e
--- /dev/null
+++ b/Makefile.inc
@@ -0,0 +1 @@
+subdirs-y += src
diff --git a/src/Makefile.inc b/src/Makefile.inc
new file mode 100644
index 0000000..0ccd349
--- /dev/null
+++ b/src/Makefile.inc
@@ -0,0 +1,18 @@
+fstest-y += blockdev.c
+fstest-y += filo-blockdev.adb
+fstest-y += filo-blockdev.ads
+fstest-y += filo-fs-ext2.adb
+fstest-y += filo-fs-ext2.ads
+fstest-y += filo-fs-iso9660.adb
+fstest-y += filo-fs-iso9660.ads
+fstest-y += filo-fs-nullfs.adb
+fstest-y += filo-fs-nullfs.ads
+fstest-y += filo-fs-vfs.adb
+fstest-y += filo-fs-vfs.ads
+fstest-y += filo-fs.adb
+fstest-y += filo-fs.ads
+fstest-y += filo.ads
+fstest-y += vfs.c
+
+fstest-main-$(CONFIG_FSTEST) = main.c
+fstest-main-$(CONFIG_FSCAT) = cat.c