about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-05-20 00:33:49 +0300
committerNakidai <nakidai@disroot.org>2025-05-20 00:33:49 +0300
commiteba7daeebc79080ede43d440ee075b0ef7ca96eb (patch)
tree283b9e10652648e8fa5ba5af982c7dcd48f48053 /Makefile
downloadsmalltcp-eba7daeebc79080ede43d440ee075b0ef7ca96eb.tar.gz
smalltcp-eba7daeebc79080ede43d440ee075b0ef7ca96eb.zip
Add code
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