From b80ce7d0b602b9b39098408f36be2ffd4527a86e Mon Sep 17 00:00:00 2001
From: Boris Nagaev --enable-*
" and "--disable-*
" options.
+ Useful Makefile variables provided by MXE: +
+ +
+ $(SOURCE_DIR)
+ is a directory with package source and
+ $(BUILD_DIR)
+ is an empty directory intended for build files.
+ Both directories are temporary.
+ Prefer out-of-tree builds. Autotools
+ and CMake support them.
+
+ $(PREFIX)
+ is path to usr/
directory.
+ $(TOP_DIR)
+ is path to MXE root directory.
+ $(TARGET)
is target triplet
+ (e.g., i686-w64-mingw32.static
).
+ $(BUILD)
is build triplet
+ (e.g., x86_64-unknown-linux-gnu
).
+
+ $(MXE_CONFIGURE_OPTS)
+ adds standard options to ./configure
script.
+ Typical usage:
+
+cd '$(BUILD_DIR)' && '$(SOURCE_DIR)'/configure \ + $(MXE_CONFIGURE_OPTS) ++
+ $(MXE_DISABLE_CRUFT)
+ disables installation of documentation and programs.
+
+$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' $(MXE_DISABLE_CRUFT) +$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT) ++
+ $(BUILD_SHARED)
+ is TRUE for shared targets. Useful to add flags applicable
+ only to shared targets.
+
+$(if $(BUILD_SHARED),LDFLAGS=-no-undefined) ++
+ Similarly,
+ $(BUILD_STATIC)
+ is TRUE for static targets;
+ $(BUILD_NATIVE)
+ is TRUE for native targets;
+ $(BUILD_CROSS)
+ is TRUE for cross targets.
+