aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Soulier <asoulier@google.com>2023-12-27 16:15:59 -0800
committerAntoine Soulier <asoulier@google.com>2023-12-28 10:16:57 -0800
commit0aac2a41e135930e200865dd37127c4d104542b0 (patch)
tree910c89ce53f0f7672e063f8f4b7e0b78edcfa718
parentd967d8e63b1a9c31aae8a86cf6a23b51781e701f (diff)
downloadliblc3-0aac2a41e135930e200865dd37127c4d104542b0.tar.gz
make: Add makefile LC3_PLUS options
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e9c2988..2aada0c 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,14 @@ LD := $(if $(LD)=ld,$(CC),$(LD))
CFLAGS := $(if $(DEBUG),-O0 -g,-O3)
CFLAGS += -std=c11 -Wall -Wextra -Wdouble-promotion -Wvla -pedantic
+ifneq ($(LC3_PLUS),)
+ DEFINE += LC3_PLUS=$(LC3_PLUS)
+endif
+
+ifneq ($(LC3_PLUS_HR),)
+ DEFINE += LC3_PLUS_HR=$(LC3_PLUS_HR)
+endif
+
#
# Declarations