summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2025-08-11 21:43:11 +0200
committertv <tv@krebsco.de>2025-08-11 21:43:11 +0200
commit8f218561c608f2eaac446af3b35298ffcc3fce42 (patch)
tree781d306ce682dd8aab7c6a2420372990d293dec8 /Makefile
exec: initHEAD1.0master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..14ffa64
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+CACHEDIR ?= $(PWD)
+
+.PHONY: all
+all: $(CACHEDIR)/exec
+
+.PHONY: install
+install: $(CACHEDIR)/exec
+ mkdir -p $(BINDIR)
+ cp $(CACHEDIR)/exec $(BINDIR)/
+
+$(CACHEDIR)/%: %.c
+ gcc -Wall -Os -o $@ $<