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.

28 lines
500B

  1. include $(RACK_DIR)/arch.mk
  2. LOCAL ?= .
  3. FLAGS += -g -O3 -march=nocona
  4. ifeq ($(ARCH), mac)
  5. FLAGS += -mmacosx-version-min=10.7 -stdlib=libc++
  6. LDFLAGS += -mmacosx-version-min=10.7 -stdlib=libc++
  7. endif
  8. CFLAGS += $(FLAGS)
  9. CXXFLAGS += $(FLAGS)
  10. export CFLAGS
  11. export CXXFLAGS
  12. export LDFLAGS
  13. # Commands
  14. WGET := curl -OL
  15. UNTAR := tar xf
  16. UNZIP := unzip
  17. MAKE := make
  18. CONFIGURE := ./configure --prefix="$(realpath $(LOCAL))"
  19. ifeq ($(ARCH), win)
  20. CMAKE := cmake -G 'MSYS Makefiles'
  21. else
  22. CMAKE := cmake
  23. endif