summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index d701da0..f730759 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,17 @@
# prtmib — site/toolchain knobs. Edit this, not the Makefile.
#
+# Install: make install
+# Windows: %USERPROFILE%\.local\bin
+# Linux: /usr/local/bin
+# Override: make PREFIX=... install
+
+ifeq ($(OS),Windows_NT)
+PREFIX ?= $(USERPROFILE)/.local
+else
+PREFIX ?= /usr/local
+endif
+BINDIR ?= $(PREFIX)/bin
+
# Windows (this machine): MinGW-w64 gcc. LLVM clang in PATH targets MSVC
# and needs the VS developer prompt; MinGW does not.
# as/ld live next to gcc; export PATH so the driver finds them.