summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-01-29 15:06:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-01-29 15:06:46 -0500
commite89b125d341c9ade21a6aef97ea5ed8aa3084c93 (patch)
treef799fcd92f2b52cd3a098d9f39200b8a89b15d80 /Makefile
parent8199f5c1c599a39ba0a9c4ace0bacde95b4bb483 (diff)
parent3cdf67e77da64ba1235265836f29b228deca3642 (diff)
downloadbfs-e89b125d341c9ade21a6aef97ea5ed8aa3084c93.tar.xz
Merge pull request #81 from data-man:oniguruma_1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 18a51d3..8af4a99 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,11 @@ ifneq ($(filter release,$(MAKECMDGOALS)),)
CFLAGS := $(DEFAULT_CFLAGS) -O3 -flto -DNDEBUG
endif
+ifeq ($(USE_ONIGURUMA),1)
+LOCAL_LDLIBS += -lonig
+LOCAL_CFLAGS += -DBFS_USE_ONIGURUMA=1
+endif
+
ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS)
ALL_CFLAGS = $(ALL_CPPFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) $(DEPFLAGS)
ALL_LDFLAGS = $(ALL_CFLAGS) $(LOCAL_LDFLAGS) $(LDFLAGS)