about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5fd5245
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+RM ?= rm -f
+PREFIX ?= /usr/local/
+BINDIR ?= ${PREFIX}/bin
+
+CFLAGS += -ansi
+
+.PHONY: all
+all: buc bus
+
+install: all
+	install -d ${BINDIR}
+	install -m755 buc bus ${BINDIR}
+
+uninstall:
+	${RM} ${BINDIR}/buc ${BINDIR}/bus
+
+.PHONY: clean
+clean:
+	${RM} buc bus