From a6a2ea7ff0f1d0ef47f4797b72c7faae65d0bb54 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 27 Aug 2026 10:49:41 +0200 Subject: Add make install for Windows and Linux. Windows copies prtmib.exe to %USERPROFILE%\.local\bin. Linux installs to /usr/local/bin. PREFIX and DESTDIR work as usual. --- config.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config.mk') 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. -- cgit v1.2.3