Commit d25dc67d authored by Pierre's avatar Pierre

contrib: Factorize the win targets.

parent b9b7edc6
......@@ -251,18 +251,15 @@ case $TARGET in
fi
;;
*mingw32ce)
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
EXTRA_CPPFLAGS=" -D_WIN32_WCE=0x0500"
hint_distro wince
;;
*64-*mingw*)
add_enabled_makefile_cfg "HAVE_WIN32"
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
EXTRA_CFLAGS="-O3"
hint_distro win64
;;
*mingw32*)
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
EXTRA_CFLAGS=" -O3 -march=i686 -mtune=generic"
hint_distro win32
;;
......@@ -274,11 +271,9 @@ case $TARGET in
EXTRA_CFLAGS=" -mno-cygwin -isystem /usr/include/mingw"
EXTRA_CPPFLAGS=" -mno-cygwin -isystem /usr/include/mingw"
EXTRA_LDFLAGS=" -mno-cygwin"
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
hint_distro win32
;;
arm-wince-pe)
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
EXTRA_CPPFLAGS=" -D_WIN32_WCE"
hint_distro wince
;;
......@@ -366,6 +361,9 @@ case "$DISTRO" in
exit 1
fi
;;
win*)
add_makefile_cfg "PKG_CONFIG_PATH = \$(PREFIX)/lib/pkgconfig"
;;
esac
# Save passed flags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment