summaryrefslogtreecommitdiffstats
path: root/tests/windows/Makefile.am
blob: 34e5112e8f6d8ae10df8f4266f47238a99ee6a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
## Process this file with automake to produce Makefile.in
# Copyright (C) 2015 Red Hat, Inc.
#
# This file is part of GnuTLS.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/lib/includes		\
	-I$(top_builddir)/lib/includes \
	-I$(top_srcdir)/tests/ \
	-I$(top_srcdir)/lib \
	-I$(top_builddir)/gl \
	-I$(top_srcdir)/gl \
	-I.

if ENABLE_MINITASN1
AM_CPPFLAGS += -I$(top_builddir)/lib/minitasn1
endif

EXTRA_DIST = ncrypt-int.h check-output

AM_LDFLAGS = -no-install
LDADD = $(top_builddir)/tests/libutils.la \
	$(top_builddir)/gl/libgnu.la \
	$(top_builddir)/lib/libgnutls.la $(LIBSOCKET)

ctests =

if WINDOWS
check_LTLIBRARIES = ncrypt.la crypt32.la

ncrypt_la_SOURCES = ncrypt.c
crypt32_la_SOURCES = crypt32.c

ncrypt_la_LIBADD = ../../gl/libgnu.la ../../lib/libgnutls.la -lmsvcrt -lkernel32 -luser32
crypt32_la_LIBADD = ../../gl/libgnu.la ../../lib/libgnutls.la -lmsvcrt -lkernel32 -luser32
ncrypt_la_LDFLAGS = -module -no-undefined -avoid-version -Wl,--add-stdcall-alias
crypt32_la_LDFLAGS = -module -no-undefined -avoid-version -Wl,--add-stdcall-alias


cng_windows_DEPENDENCIES = ncrypt.la crypt32.la
cng_windows_CPPFLAGS = $(AM_CPPFLAGS)

LOG_COMPILER = $(srcdir)/check-output

endif

ctests += cng-windows

check_PROGRAMS = $(ctests)
dist_check_SCRIPTS =


TESTS = $(ctests) $(dist_check_SCRIPTS)

TESTS_ENVIRONMENT =						\
	WINEDLLOVERRIDES="crypt32=n,ncrypt=n"			\
	LC_ALL="C"				\
	GNUTLS_TEST_SUITE_RUN=1			\
	EXEEXT=$(EXEEXT)			\
	GNUTLS_SYSTEM_PRIORITY_FILE=$(abs_top_srcdir)/tests/system.prio \
	top_builddir="$(top_builddir)"		\
	abs_top_builddir="$(abs_top_builddir)"	\
	srcdir="$(srcdir)"