diff options
| author | bryan <bryan@veltar.systems> | 2026-08-27 10:49:41 +0200 |
|---|---|---|
| committer | bryan <bryan@veltar.systems> | 2026-08-27 10:49:41 +0200 |
| commit | a6a2ea7ff0f1d0ef47f4797b72c7faae65d0bb54 (patch) | |
| tree | caa636959e49cdf0fec7ebc75997224d59ce296a /config.mk | |
| parent | 002742ad5b1fd76d539c2fb8736622e63e757f98 (diff) | |
| download | prtmib-a6a2ea7ff0f1d0ef47f4797b72c7faae65d0bb54.tar.gz prtmib-a6a2ea7ff0f1d0ef47f4797b72c7faae65d0bb54.zip | |
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.
Diffstat (limited to 'config.mk')
| -rw-r--r-- | config.mk | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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. |
