blob: 1da3239a86e761dddd5ec04582102a1aa9e8cc8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
|