55 lines
1.9 KiB
Plaintext
55 lines
1.9 KiB
Plaintext
$OpenBSD: patch-deps_Makefile,v 1.10 2017/08/09 09:16:09 dcoppa Exp $
|
|
Index: deps/Makefile
|
|
--- deps/Makefile.orig
|
|
+++ deps/Makefile
|
|
@@ -35,49 +35,16 @@ endif
|
|
distclean:
|
|
-(cd hiredis && $(MAKE) clean) > /dev/null || true
|
|
-(cd linenoise && $(MAKE) clean) > /dev/null || true
|
|
- -(cd lua && $(MAKE) clean) > /dev/null || true
|
|
- -(cd jemalloc && [ -f Makefile ] && $(MAKE) distclean) > /dev/null || true
|
|
-(rm -f .make-*)
|
|
|
|
.PHONY: distclean
|
|
|
|
hiredis: .make-prerequisites
|
|
- @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
|
|
cd hiredis && $(MAKE) static
|
|
|
|
.PHONY: hiredis
|
|
|
|
linenoise: .make-prerequisites
|
|
- @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
|
|
cd linenoise && $(MAKE)
|
|
|
|
.PHONY: linenoise
|
|
-
|
|
-ifeq ($(uname_S),SunOS)
|
|
- # Make isinf() available
|
|
- LUA_CFLAGS= -D__C99FEATURES__=1
|
|
-endif
|
|
-
|
|
-LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS)
|
|
-LUA_LDFLAGS+= $(LDFLAGS)
|
|
-# lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
|
|
-# challenging to cross-compile lua (and redis). These defines make it easier
|
|
-# to fit redis into cross-compilation environments, which typically set AR.
|
|
-AR=ar
|
|
-ARFLAGS=rcu
|
|
-
|
|
-lua: .make-prerequisites
|
|
- @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
|
|
- cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)"
|
|
-
|
|
-.PHONY: lua
|
|
-
|
|
-JEMALLOC_CFLAGS= -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops $(CFLAGS)
|
|
-JEMALLOC_LDFLAGS= $(LDFLAGS)
|
|
-
|
|
-jemalloc: .make-prerequisites
|
|
- @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
|
|
- cd jemalloc && ./configure --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)"
|
|
- cd jemalloc && $(MAKE) CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" lib/libjemalloc.a
|
|
-
|
|
-.PHONY: jemalloc
|