Mercurial > mxe-octave
changeset 1977:3a54f0ccdd00
package gnutls: add test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Sun, 04 Sep 2011 00:40:19 +1000 |
parents | 16bfe2f3adfc |
children | 718a1a5818ee |
files | src/gnutls-test.c src/gnutls.mk |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gnutls-test.c Sun Sep 04 00:40:19 2011 +1000 @@ -0,0 +1,16 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <gnutls/gnutls.h> + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + gnutls_global_init (); + + gnutls_global_deinit (); + + return 0; +}
--- a/src/gnutls.mk Sat Sep 03 00:00:20 2011 +0200 +++ b/src/gnutls.mk Sun Sep 04 00:40:19 2011 +1000 @@ -41,4 +41,9 @@ --without-p11-kit \ LIBS='-lz' $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= defexec_DATA= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gnutls.exe' \ + `'$(TARGET)-pkg-config' gnutls --cflags --libs` endef