summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2022-03-01 01:11:13 +0100
committerTobias Wiese <tobias@tobiaswiese.com>2022-03-01 01:11:13 +0100
commit8d8b9e371c33c9bc455245db35101585dcfb48e5 (patch)
treee3da33880591d82b92b4b0cf0f426a0b5fe734ea /Makefile
parent94aca244aa2de4cc9b7728f2c64d3a6add1b9efa (diff)
Define feature test macros in MakefileHEADmaster
To prevent other people from copying the definition of the feature test macro into their multi-file c project or the unlikely case that this project will contain more than one c file at some point.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 915330f..62226b8 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,9 @@ endif
INSTALL = install
-CFLAGS += -Wall -DVERSION="\"$(VERSION)\"" -DBUILD_DATE="\"$(BUILD_DATE)\""
+FEATURE_TEST_MACROS = _GNU_SOURCE
+CFLAGS += -Wall $(addprefix -D, $(FEATURE_TEST_MACROS)) \
+ -DVERSION="\"$(VERSION)\"" -DBUILD_DATE="\"$(BUILD_DATE)\""
LDFLAGS +=
TARGETS := exchange