WINDOWS beta
This commit is contained in:
parent
cb59c4193e
commit
b27160a59a
@ -1,5 +1,7 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
|
ACLOCAL_AMFLAGS = -I /tmp/aclocal
|
||||||
|
|
||||||
if BUILD_EXAMPLES
|
if BUILD_EXAMPLES
|
||||||
EXAMPLES = examples
|
EXAMPLES = examples
|
||||||
else
|
else
|
||||||
|
20
configure.ac
20
configure.ac
@ -2,9 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|||||||
|
|
||||||
AC_INIT(libsntl, 0.2.1)
|
AC_INIT(libsntl, 0.2.1)
|
||||||
|
|
||||||
#LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
AC_CONFIG_MACRO_DIR(['/tmp/aclocal'])
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIR(['aclocal'])
|
|
||||||
|
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
@ -12,6 +10,8 @@ AM_INIT_AUTOMAKE([1.11])
|
|||||||
|
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
|
CC=${CC-/opt/windows_64/bin/x86_64-w64-mingw32-g++.exe}
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
LT_INIT
|
LT_INIT
|
||||||
@ -29,22 +29,12 @@ AS_IF([test "x$enable_build_examples" = "xyes"], [
|
|||||||
|
|
||||||
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
|
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
|
||||||
|
|
||||||
dnl ************win32*********
|
AC_DEFINE([BUILD_WIN32], 1, [build for win32])
|
||||||
|
|
||||||
AC_ARG_ENABLE([win32],
|
|
||||||
AS_HELP_STRING([--enable-win32-build], [Enable win32 build mode]))
|
|
||||||
|
|
||||||
AS_IF([test "x$enable_win32_build" = "xyes"], [
|
dnl PKG_CHECK_MODULES(LIBUUID, [uuid])
|
||||||
AC_DEFINE([BUILD_WIN32], 1, [build for win32]),
|
|
||||||
LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
||||||
],
|
|
||||||
[
|
|
||||||
PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
||||||
dnl PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBTDATA, [libtdata >= 0.2.2])
|
PKG_CHECK_MODULES(LIBTDATA, [libtdata >= 0.2.2])
|
||||||
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr >= 1.3.1])
|
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr >= 1.3.1])
|
||||||
|
2
debian/compat
vendored
2
debian/compat
vendored
@ -1 +1 @@
|
|||||||
8
|
<EFBFBD>
|
||||||
|
@ -4,7 +4,9 @@ AM_CPPFLAGS = \
|
|||||||
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
|
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
|
||||||
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
|
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
|
||||||
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
|
-DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
|
||||||
$(LIBSNTL_CFLAGS) -I../include
|
$(LIBSNTL_CFLAGS) -I../include \
|
||||||
|
-I/include -I../../libtdata/include/ \
|
||||||
|
-I../../libsexpr/include/
|
||||||
|
|
||||||
AM_CFLAGS =\
|
AM_CFLAGS =\
|
||||||
-Wall\
|
-Wall\
|
||||||
@ -16,7 +18,9 @@ lib_LTLIBRARIES = libsntl.la
|
|||||||
libsntl_la_SOURCES = \
|
libsntl_la_SOURCES = \
|
||||||
support.c queue.c rpclist.c message.c channel.c connection.c
|
support.c queue.c rpclist.c message.c channel.c connection.c
|
||||||
|
|
||||||
libsntl_la_LDFLAGS = -Wl,--export-dynamic
|
libsntl_la_LDFLAGS =
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
libsntl_la_LIBADD = -lpthread -lcrypto $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS)
|
libsntl_la_LIBADD = -lpthread -lcrypto $(LIBTDATA_LIBS) $(LIBSEXPR_LIBS) $(OPENSSL_LIBS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user