diff options
Diffstat (limited to 'src/libffi.mk')
-rw-r--r-- | src/libffi.mk | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/libffi.mk b/src/libffi.mk index 9969f1c..5fddd84 100644 --- a/src/libffi.mk +++ b/src/libffi.mk @@ -10,16 +10,28 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://www.mirrorservice.org/sites/sourceware.org/pub/$(PKG)/$($(PKG)_FILE) $(PKG)_URL_2 := https://sourceware.org/pub/$(PKG)/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) $(PKG)_DEPS := cc +$(PKG)_DEPS_$(BUILD) := + define $(PKG)_BUILD - cd '$(1)' && ./configure \ + # build and install the library + cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \ $(MXE_CONFIGURE_OPTS) - $(MAKE) -C '$(1)/$(TARGET)' -j '$(JOBS)' - $(MAKE) -C '$(1)/$(TARGET)' -j 1 install + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install '$(TARGET)-gcc' \ -W -Wall -Werror -std=c99 -pedantic \ '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libffi.exe' \ `'$(TARGET)-pkg-config' libffi --cflags --libs` endef + +define $(PKG)_BUILD_$(BUILD) + # build and install the library + cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \ + $(MXE_CONFIGURE_OPTS) + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install +endef |