summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpast-due <30942300+past-due@users.noreply.github.com>2018-04-29 21:37:12 -0400
committerSteven G. Johnson <stevenj@mit.edu>2018-04-29 21:37:12 -0400
commit48949bd3ebd66bb94a40f4c3fcfb26dd4bf2be2b (patch)
treea134cb98c137196dac5fc013d244a844cae75e3a /Makefile
parentfe3f6bda1108655f1dc9356f151a1fec76517efa (diff)
downloadlibutf8proc-48949bd3ebd66bb94a40f4c3fcfb26dd4bf2be2b.tar.gz
libutf8proc-48949bd3ebd66bb94a40f4c3fcfb26dd4bf2be2b.tar.bz2
Static library support improvements (#123)
* `#define UTF8PROC_STATIC` to disable DLLEXPORT `#define UTF8PROC_STATIC` to disable DLLEXPORT * [CMake] Automatically define UTF8PROC_STATIC if BUILD_SHARED_LIBS is off * [Makefile] Support additional UTF8PROC_DEFINES, which can be used to specify flags like `-DUTF8PROC_STATIC`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f8e5e8b..5efd7e8 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ CFLAGS ?= -O2
PICFLAG = -fPIC
C99FLAG = -std=c99
WCFLAGS = -Wall -pedantic
-UCFLAGS = $(CFLAGS) $(PICFLAG) $(C99FLAG) $(WCFLAGS) -DUTF8PROC_EXPORTS
+UCFLAGS = $(CFLAGS) $(PICFLAG) $(C99FLAG) $(WCFLAGS) -DUTF8PROC_EXPORTS $(UTF8PROC_DEFINES)
# shared-library version MAJOR.MINOR.PATCH ... this may be *different*
# from the utf8proc version number because it indicates ABI compatibility,