From f92c62127cdbe6fb0831e911c5c6dc2b5db7a7c4 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 27 Aug 2026 13:33:41 +0200 Subject: Initial import --- config.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config.mk (limited to 'config.mk') 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) -- cgit v1.2.3