Added README, LICENSE, Makefile for future PDP-11 Unix FUSE fs driver project.
[pdp11-unix-fusefs] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..733abf5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+# © 2020 Aaron Taylor <ataylor at subgeniuskitty dot com>
+# See LICENSE.txt file for copyright and license details.
+
+PREFIX = $(HOME)
+BINPREFIX = $(PREFIX)/bin
+
+CC = cc
+CC_FLAGS = -std=c99 -I/usr/local/include
+
+all: v6fs
+
+v6fs:
+       @$(CC) $(CC_FLAGS) -o $@ v6.c unixfs.c
+
+install: bin2load
+       @mkdir -p $(BINPREFIX)
+       @cp ./v6fs $(BINPREFIX)/v6fs
+       @chmod +x $(BINPREFIX)/v6fs
+
+uninstall:
+       @rm $(BINPREFIX)/v6fs
+
+clean:
+       @rm -f v6fs v6fs.core
+