Makefile.osx 821 B

12345678910111213141516171819202122232425262728293031
  1. CXX = clang++
  2. CXXFLAGS := ${CXX_DEBUG} -Wall -std=c++11 -DMAC_OSX
  3. INCFLAGS = -I/usr/local/include
  4. LDFLAGS := -Wl,-rpath,/usr/local/lib -L/usr/local/lib
  5. ifeq ($(USE_STATIC),yes)
  6. LDLIBS = -lz /usr/local/lib/libcrypto.a /usr/local/lib/libssl.a /usr/local/lib/libboost_system.a /usr/local/lib/libboost_date_time.a /usr/local/lib/libboost_filesystem.a /usr/local/lib/libboost_program_options.a -lpthread
  7. else
  8. LDLIBS = -lz -lcrypto -lssl -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread
  9. endif
  10. ifeq ($(USE_UPNP),yes)
  11. LDFLAGS += -ldl
  12. CXXFLAGS += -DUSE_UPNP
  13. ifeq ($(USE_STATIC),yes)
  14. LDLIBS += /usr/local/lib/libminiupnpc.a
  15. else
  16. LDLIBS += -lminiupnpc
  17. endif
  18. endif
  19. ifeq ($(USE_AESNI),1)
  20. CXXFLAGS += -maes
  21. else
  22. CXXFLAGS += -msse
  23. endif
  24. ifeq ($(USE_AVX),1)
  25. CXXFLAGS += -mavx
  26. endif