diff options
author | tv <tv@krebsco.de> | 2025-08-11 21:43:11 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2025-08-11 21:43:11 +0200 |
commit | 8f218561c608f2eaac446af3b35298ffcc3fce42 (patch) | |
tree | 781d306ce682dd8aab7c6a2420372990d293dec8 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
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 $@ $< |