summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorbryan <bryan@veltar.systems>2026-08-26 11:47:10 +0200
committerbryan <bryan@veltar.systems>2026-08-26 11:47:10 +0200
commit002742ad5b1fd76d539c2fb8736622e63e757f98 (patch)
tree483347bf0263b0b463dc8b116f90e1332edd1c3e /config.mk
downloadprtmib-002742ad5b1fd76d539c2fb8736622e63e757f98.tar.gz
prtmib-002742ad5b1fd76d539c2fb8736622e63e757f98.zip
Initial commit
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..d701da0
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,19 @@
+# prtmib — site/toolchain knobs. Edit this, not the Makefile.
+#
+# 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