diff options
| author | bryan <bryan@veltar.systems> | 2026-08-27 13:33:41 +0200 |
|---|---|---|
| committer | bryan <bryan@veltar.systems> | 2026-08-27 13:33:41 +0200 |
| commit | f92c62127cdbe6fb0831e911c5c6dc2b5db7a7c4 (patch) | |
| tree | fb5659b274bb5117a93c4f021e2a654858c7d371 /config.mk | |
| download | selc-f92c62127cdbe6fb0831e911c5c6dc2b5db7a7c4.tar.gz selc-f92c62127cdbe6fb0831e911c5c6dc2b5db7a7c4.zip | |
Initial import
Diffstat (limited to 'config.mk')
| -rw-r--r-- | config.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..1da3239 --- /dev/null +++ b/config.mk @@ -0,0 +1,19 @@ +# selc — site/toolchain knobs. Edit this, not the Makefile. +# +# Windows only. Install: make install +# default: %USERPROFILE%\.local\bin +# Boot: make boot (install + HKCU Run, then starts selc) +# Override: make PREFIX=... install + +PREFIX ?= $(USERPROFILE)/.local +BINDIR ?= $(PREFIX)/bin + +# MinGW-w64 gcc. LLVM clang in PATH targets MSVC and needs the VS +# developer prompt; MinGW does not. as/ld live next to gcc. +MINGWBIN = C:/msys64/mingw64/bin +CC = $(MINGWBIN)/gcc +CFLAGS = -std=c99 -Wall -Wextra -pedantic -Os +LDFLAGS = -mwindows -luser32 -ladvapi32 +EXE = .exe +RM = cmd /c del /q +export PATH := $(MINGWBIN);$(PATH) |
