cursetree/config.mk

24 lines
530 B
Makefile
Raw Normal View History

2025-09-27 20:56:22 +10:00
# -*- make -*-
# === C Compiler Configuration ===
CC := gcc -xc -std=gnu23
CFLAGS := -Wall -Wextra -O
CDEBUG := -g
# === Linker Configuration ===
LD := gcc
LDFLAGS := -lc
2025-09-27 20:56:22 +10:00
# === GNU Make Configuration ===
# GMAKE_JOBS defaults to the number of available logical processors
GMAKE_JOBS := $(shell nproc)
MAKEFLAGS := --jobs=$(GMAKE_JOBS) --output-sync=target
# === Platform Configuration ===
ifeq ($(OS),Windows_NT) # Windows_NT -> XP, 2000, 7, Vista, 10...
PLATFORM := WINDOWS_NT
else
PLATFORM := $(shell uname)
endif