patch-deps_Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. $OpenBSD: patch-deps_Makefile,v 1.9 2016/06/20 10:49:38 dcoppa Exp $
  2. --- deps/Makefile.orig Fri May 6 09:11:36 2016
  3. +++ deps/Makefile Tue May 10 09:51:32 2016
  4. @@ -35,7 +35,6 @@ endif
  5. distclean:
  6. -(cd hiredis && $(MAKE) clean) > /dev/null || true
  7. -(cd linenoise && $(MAKE) clean) > /dev/null || true
  8. - -(cd lua && $(MAKE) clean) > /dev/null || true
  9. -(cd geohash-int && $(MAKE) clean) > /dev/null || true
  10. -(cd jemalloc && [ -f Makefile ] && $(MAKE) distclean) > /dev/null || true
  11. -(rm -f .make-*)
  12. @@ -43,48 +42,25 @@ distclean:
  13. .PHONY: distclean
  14. hiredis: .make-prerequisites
  15. - @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
  16. cd hiredis && $(MAKE) static
  17. .PHONY: hiredis
  18. linenoise: .make-prerequisites
  19. - @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
  20. cd linenoise && $(MAKE)
  21. .PHONY: linenoise
  22. -ifeq ($(uname_S),SunOS)
  23. - # Make isinf() available
  24. - LUA_CFLAGS= -D__C99FEATURES__=1
  25. -endif
  26. -
  27. -LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' $(CFLAGS)
  28. -LUA_LDFLAGS+= $(LDFLAGS)
  29. -# lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
  30. -# challenging to cross-compile lua (and redis). These defines make it easier
  31. -# to fit redis into cross-compilation environments, which typically set AR.
  32. -AR=ar
  33. -ARFLAGS=rcu
  34. -
  35. -lua: .make-prerequisites
  36. - @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
  37. - cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)"
  38. -
  39. -.PHONY: lua
  40. -
  41. JEMALLOC_CFLAGS= -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops $(CFLAGS)
  42. JEMALLOC_LDFLAGS= $(LDFLAGS)
  43. jemalloc: .make-prerequisites
  44. - @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
  45. cd jemalloc && ./configure --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)"
  46. cd jemalloc && $(MAKE) CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" lib/libjemalloc.a
  47. .PHONY: jemalloc
  48. geohash-int: .make-prerequisites
  49. - @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
  50. cd geohash-int && $(MAKE)
  51. .PHONY: geohash-int