package liboauth: add test program and remove check target and associated variables

This commit is contained in:
Tony Theodore 2011-01-03 16:34:14 +11:00
parent e9ec1dd065
commit 692fde6248
2 changed files with 21 additions and 5 deletions

14
src/liboauth-test.c Normal file
View File

@ -0,0 +1,14 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <oauth.h>
int main (int argc, char *argv[])
{
(void)argc;
(void)argv;
printf("Nonce: %s", oauth_gen_nonce());
return (0);
}

View File

@ -23,10 +23,12 @@ define $(PKG)_BUILD
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-curl \
HASH_LIBS="`$(TARGET)-pkg-config --libs libcrypto`" \
HASH_CFLAGS="`$(TARGET)-pkg-config --cflags libcrypto`"
--disable-curl
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' check
$(MAKE) -C '$(1)' -j '$(JOBS)' install
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-liboauth.exe' \
`'$(TARGET)-pkg-config' oauth --cflags --libs`
endef