From 6a73fcf4e31732c78ce3e17660dd7ffe39e8eb22 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 5 Apr 2016 16:49:04 +0100 Subject: Add threaded operation to mudraw. --- Makerules | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index a8257e80..766ad537 100644 --- a/Makerules +++ b/Makerules @@ -52,6 +52,7 @@ HAVE_X11 ?= no else ifeq "$(OS)" "MACOS" HAVE_X11 ?= yes +HAVE_PTHREADS ?= yes # Mac OS X deprecated openssl, so the default is to not include it. HAVE_OPENSSL ?= no @@ -83,6 +84,7 @@ RANLIB_CMD = xcrun ranlib $@ else ifeq "$(OS)" "Linux" HAVE_X11 ?= yes +HAVE_PTHREADS ?= yes ifeq "$(shell pkg-config --exists libcrypto && echo yes)" "yes" SYS_OPENSSL_CFLAGS = -DHAVE_OPENSSL $(shell pkg-config --cflags libcrypto) @@ -130,6 +132,7 @@ LD = arm-none-linux-gnueabi-gcc AR = arm-none-linux-gnueabi-ar CFLAGS += -O3 -mfpu=neon -mcpu=cortex-a8 -mfloat-abi=softfp -ftree-vectorize -ffast-math -fsingle-precision-constant CROSSCOMPILE=yes +HAVE_PTHREADS ?= yes endif ifeq "$(OS)" "webos-pre-cross" @@ -223,3 +226,8 @@ ifeq "$(CROSSCOMPILE)" "yes" HAVE_X11 ?= no HAVE_GLFW ?= no endif + +ifeq "$(HAVE_PTHREADS)" "yes" +CFLAGS += -DHAVE_PTHREADS +LIBS += -lpthread +endif -- cgit v1.2.3