From 22ade138c4e83b7c0b0c702c38c0ca00a9948d4b Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 26 Aug 2026 15:16:23 +0200 Subject: Replace the placeholder with a suckless C rg. rg prints n cryptographically random strings of length l, matching rg.veltar.systems. Bytes come from getrandom(2) on Linux and rand_s on Windows. make selects clang and .exe when OS=Windows_NT. --- config.mk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..845b457 --- /dev/null +++ b/config.mk @@ -0,0 +1,29 @@ +# rg version +VERSION = 1.0 + +# Customize below to fit your system + +# paths +PREFIX = /usr/local +MANPREFIX = ${PREFIX}/share/man + +# compiler +CC = cc +EXE = +LIBS = + +# Windows (MinGW-w64): uncomment +# CC = gcc +# EXE = .exe + +# Windows (clang targeting MSVC CRT): uncomment +# CC = clang +# EXE = .exe + +ifeq ($(OS),Windows_NT) +CC = clang +EXE = .exe +endif + +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os +LDFLAGS = ${LIBS} -- cgit v1.2.3