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.

34 lines
821B

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