forked from enlightenment/efl
parent
a00b9084ea
commit
0ca69d1f2d
|
@ -73,20 +73,20 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
||||||
|
|
||||||
### Checks for libraries
|
### Checks for libraries
|
||||||
|
|
||||||
win32_libs=""
|
EVIL_LIBS=""
|
||||||
win32_dl_libs=""
|
EVIL_DLFCN_LIBS=""
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
mingw32ce*)
|
mingw32ce*)
|
||||||
win32_libs="-lws2"
|
EVIL_LIBS="-lws2"
|
||||||
win32_dl_libs="-ltoolhelp"
|
EVIL_DLFCN_LIBS="-ltoolhelp"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
win32_libs="-lole32 -luuid -lws2_32 -lsecur32"
|
EVIL_LIBS="-lole32 -luuid -lws2_32 -lsecur32"
|
||||||
win32_dl_libs="-lpsapi"
|
EVIL_DLFCN_LIBS="-lpsapi"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST([win32_libs])
|
AC_SUBST([EVIL_LIBS])
|
||||||
AC_SUBST([win32_dl_libs])
|
AC_SUBST([EVIL_DLFCN_LIBS])
|
||||||
|
|
||||||
|
|
||||||
### Checks for header files
|
### Checks for header files
|
||||||
|
@ -102,25 +102,25 @@ AC_CHECK_HEADERS([errno.h])
|
||||||
### Checks for compiler characteristics
|
### Checks for compiler characteristics
|
||||||
EFL_ATTRIBUTE_UNUSED
|
EFL_ATTRIBUTE_UNUSED
|
||||||
|
|
||||||
win32_cppflags=""
|
EVIL_CPPFLAGS="-DEFL_EVIL_BUILD"
|
||||||
win32_cflags="-Wall -Wextra -Wshadow -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
|
EVIL_DLFCN_CPPFLAGS="-DEFL_EVIL_DLFCN_BUILD -DPSAPI_VERSION=1"
|
||||||
win32_cflags="${win32_cflags} -mms-bitfields"
|
EVIL_CFLAGS="-Wall -Wextra -Wshadow -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -mms-bitfields"
|
||||||
win32_cxxflags=""
|
EVIL_CXXFLAGS=""
|
||||||
have_wince="no"
|
have_wince="no"
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
mingw32ce*)
|
mingw32ce*)
|
||||||
have_wince="yes"
|
have_wince="yes"
|
||||||
win32_cppflags="${win32_cppflags}"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
have_wince="no"
|
have_wince="no"
|
||||||
win32_cxxflags="-fno-rtti -fno-exceptions"
|
EVIL_CXXFLAGS="-fno-rtti -fno-exceptions"
|
||||||
win32_cppflags="${win32_cppflags} -DSECURITY_WIN32"
|
EVIL_CPPFLAGS="-DSECURITY_WIN32"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST([win32_cppflags])
|
AC_SUBST([EVIL_CPPFLAGS])
|
||||||
AC_SUBST([win32_cflags])
|
AC_SUBST([EVIL_DLFCN_CPPFLAGS])
|
||||||
AC_SUBST([win32_cxxflags])
|
AC_SUBST([EVIL_CFLAGS])
|
||||||
|
AC_SUBST([EVIL_CXXFLAGS])
|
||||||
|
|
||||||
AM_CONDITIONAL(EVIL_HAVE_WINCE, test "x${have_wince}" = "xyes")
|
AM_CONDITIONAL(EVIL_HAVE_WINCE, test "x${have_wince}" = "xyes")
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) \
|
||||||
-I$(top_srcdir)/bin \
|
-I$(top_srcdir)/bin \
|
||||||
-I$(top_srcdir)/src/lib \
|
-I$(top_srcdir)/src/lib \
|
||||||
@win32_cppflags@
|
@EVIL_CPPFLAGS@
|
||||||
|
|
||||||
AM_CFLAGS = @win32_cflags@
|
AM_CFLAGS = @EVIL_CFLAGS@
|
||||||
|
|
||||||
bin_PROGRAMS = evil_suite test_evil
|
bin_PROGRAMS = evil_suite test_evil
|
||||||
|
|
||||||
|
|
|
@ -95,10 +95,10 @@ libevil_la_SOURCES += evil_link_xp.cpp
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libevil_la_CPPFLAGS = @win32_cppflags@ -DEFL_EVIL_BUILD
|
libevil_la_CPPFLAGS = @EVIL_CPPFLAGS@
|
||||||
libevil_la_CFLAGS = @win32_cflags@
|
libevil_la_CFLAGS = @EVIL_CFLAGS@
|
||||||
libevil_la_CXXFLAGS = @win32_cxxflags@
|
libevil_la_CXXFLAGS = @EVIL_CXXFLAGS@
|
||||||
libevil_la_LIBADD = @win32_libs@ $(EFL_MPATROL_LIBS)
|
libevil_la_LIBADD = @EVIL_LIBS@
|
||||||
libevil_la_LDFLAGS = -no-undefined -Wl,--enable-auto-import -version-info @version_info@
|
libevil_la_LDFLAGS = -no-undefined -Wl,--enable-auto-import -version-info @version_info@
|
||||||
|
|
||||||
if EVIL_HAVE_WINCE
|
if EVIL_HAVE_WINCE
|
||||||
|
@ -113,9 +113,9 @@ endif
|
||||||
|
|
||||||
libdl_la_SOURCES = dlfcn.c
|
libdl_la_SOURCES = dlfcn.c
|
||||||
|
|
||||||
libdl_la_CPPFLAGS = @win32_cppflags@ -DEFL_EVIL_DLFCN_BUILD -DPSAPI_VERSION=1
|
libdl_la_CPPFLAGS = @EVIL_DLFCN_CPPFLAGS@
|
||||||
libdl_la_CFLAGS = @win32_cflags@
|
libdl_la_CFLAGS = @EVIL_CFLAGS@
|
||||||
libdl_la_LIBADD = $(top_builddir)/src/lib/libevil.la $(EFL_MPATROL_LIBS) @win32_dl_libs@
|
libdl_la_LIBADD = $(top_builddir)/src/lib/libevil.la @EVIL_DLFCN_LIBS@
|
||||||
libdl_la_LDFLAGS = -no-undefined -Wl,--enable-auto-import -version-info @version_info@
|
libdl_la_LDFLAGS = -no-undefined -Wl,--enable-auto-import -version-info @version_info@
|
||||||
|
|
||||||
EXTRA_DIST = gdtoa/README gdtoa/README.mingw
|
EXTRA_DIST = gdtoa/README gdtoa/README.mingw
|
||||||
|
|
Loading…
Reference in New Issue