summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-09 20:12:45 -0400
committerLLLL Colonq <llll@colonq>2026-06-09 20:12:45 -0400
commit05117cef2423ddc5deedf5dd51df28806065d0c8 (patch)
tree5e4140c5679122b1c37253e3843667c254934f46 /Makefile
parent2bed368821af4fcb06435bfe849332f5a813e470 (diff)
Make floating-point optional
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c1283d4..b26cd39 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,9 @@ EXE ?= pit
CC ?= gcc
AR ?= ar
CHK_SOURCES ?= src/main.c $(SRCS)
-CPPFLAGS ?= -MMD -MP
-CFLAGS ?= -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 -ftrapv
-LDFLAGS ?= -g -static
+override CPPFLAGS += -MMD -MP
+override CFLAGS += -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 # -ftrapv
+override LDFLAGS += -g -static
BUILD = build_$(CC)