You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
777B

  1. include $(RACK_DIR)/arch.mk
  2. DEP_LOCAL ?= .
  3. DEP_FLAGS += -g -O3 -march=nocona
  4. ifeq ($(ARCH), mac)
  5. DEP_FLAGS += -mmacosx-version-min=10.7 -stdlib=libc++
  6. DEP_LDFLAGS += -mmacosx-version-min=10.7 -stdlib=libc++
  7. endif
  8. DEP_CFLAGS += $(DEP_FLAGS)
  9. DEP_CXXFLAGS += $(DEP_FLAGS)
  10. # Commands
  11. WGET := curl -OL
  12. UNTAR := tar xf
  13. UNZIP := unzip
  14. CONFIGURE := ./configure --prefix="$(realpath $(DEP_LOCAL))"
  15. ifeq ($(ARCH), win)
  16. CMAKE := cmake -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX="$(realpath $(DEP_LOCAL))"
  17. else
  18. CMAKE := cmake -DCMAKE_INSTALL_PREFIX="$(realpath $(DEP_LOCAL))"
  19. endif
  20. # Export environment for all dependency targets
  21. $(DEPS): export CFLAGS = $(DEP_CFLAGS)
  22. $(DEPS): export CXXFLAGS = $(DEP_CXXFLAGS)
  23. $(DEPS): export LDFLAGS = $(DEP_LDFLAGS)
  24. dep: $(DEPS)
  25. .PHONY: dep