summaryrefslogtreecommitdiffstats
path: root/build/flags.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-28 10:53:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:20 -0400
commitb3636fa8864913413455a050c5425447c9e98bc0 (patch)
tree4ade291bf5652e9e27535602b11edff5a78d08b8 /build/flags.mk
parentd1febdd40faf2f66a901c42377a6b6efaad1449c (diff)
downloadbfs-b3636fa8864913413455a050c5425447c9e98bc0.tar.xz
build: Move feature test macros to prelude.h
This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
Diffstat (limited to 'build/flags.mk')
-rw-r--r--build/flags.mk14
1 files changed, 1 insertions, 13 deletions
diff --git a/build/flags.mk b/build/flags.mk
index 4636620..afe19bc 100644
--- a/build/flags.mk
+++ b/build/flags.mk
@@ -7,19 +7,7 @@ include build/prelude.mk
include gen/vars.mk
# Internal flags
-_CPPFLAGS := \
- -Isrc \
- -Igen \
- -D__EXTENSIONS__ \
- -D_ATFILE_SOURCE \
- -D_BSD_SOURCE \
- -D_DARWIN_C_SOURCE \
- -D_DEFAULT_SOURCE \
- -D_GNU_SOURCE \
- -D_POSIX_PTHREAD_SEMANTICS \
- -D_FILE_OFFSET_BITS=64 \
- -D_TIME_BITS=64
-
+_CPPFLAGS := -Isrc -Igen -include src/prelude.h
_CFLAGS := -std=c17 -pthread
_LDFLAGS :=
_LDLIBS :=