add test program to package gsl

pull/13/head
Tony Theodore 13 years ago
parent d71b69ad08
commit 91329c8436

@ -0,0 +1,18 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int main(int argc, char *argv[])
{
double x, y;
(void)argc;
(void)argv;
x = 5.0;
y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}

@ -27,4 +27,9 @@ define $(PKG)_BUILD
--enable-static
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gsl.exe' \
-lgsl
endef

Loading…
Cancel
Save