init gmake
This commit is contained in:
parent
9d31afc224
commit
474b232b3a
2 changed files with 72 additions and 0 deletions
23
config.mk
Normal file
23
config.mk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# -*- make -*-
|
||||
|
||||
# === C Compiler Configuration ===
|
||||
CC := gcc -xc -std=gnu23
|
||||
CFLAGS := -Wall -Wextra -O
|
||||
CDEBUG := -g
|
||||
|
||||
# === Linker Configuration ===
|
||||
LD := ld
|
||||
LDFLAGS :=
|
||||
|
||||
# === 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue