|
123456789101112131415161718192021222324252627282930313233343536 |
- include $(RACK_DIR)/arch.mk
-
- # The install location for `make install`
- DEP_LOCAL ?= .
- DEP_PATH := $(shell pwd)/$(DEP_LOCAL)
-
- DEP_FLAGS += -g -O3 -march=nocona
-
- ifeq ($(ARCH), mac)
- DEP_MAC_SDK_FLAGS := -mmacosx-version-min=10.7
- DEP_FLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++
- DEP_LDFLAGS += $(DEP_MAC_SDK_FLAGS) -stdlib=libc++
- endif
-
- DEP_CFLAGS += $(DEP_FLAGS)
- DEP_CXXFLAGS += $(DEP_FLAGS)
-
- # Commands
- WGET := wget -c
- UNTAR := tar xf
- UNZIP := unzip -o
- CONFIGURE := ./configure --prefix="$(DEP_PATH)"
- ifdef ARCH_WIN
- CMAKE := cmake -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX="$(DEP_PATH)"
- else
- CMAKE := cmake -DCMAKE_INSTALL_PREFIX="$(DEP_PATH)"
- endif
-
- # Export environment for all dependency targets
- $(DEPS): export CFLAGS = $(DEP_CFLAGS)
- $(DEPS): export CXXFLAGS = $(DEP_CXXFLAGS)
- $(DEPS): export LDFLAGS = $(DEP_LDFLAGS)
-
- dep: $(DEPS)
-
- .PHONY: dep
|