mirror of https://git.wownero.com/dsc/mxe.git
package liboauth: add test program and remove check target and associated variables
This commit is contained in:
parent
e9ec1dd065
commit
692fde6248
|
@ -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);
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue