blob: f730759b653f13c832cf4e4bf31f74acee53f33f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# 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.
MINGWBIN = C:/msys64/mingw64/bin
CC = $(MINGWBIN)/gcc
CFLAGS = -std=c99 -Wall -Wextra -pedantic -Os
LDFLAGS = -lws2_32
EXE = .exe
RM = cmd /c del /q
export PATH := $(MINGWBIN);$(PATH)
# Linux (uncomment, comment the block above):
# CC = cc
# CFLAGS = -std=c99 -Wall -Wextra -pedantic -Os -D_POSIX_C_SOURCE=200809L
# LDFLAGS =
# EXE =
# RM = rm -f
|