| 1 |
if BUILD_EXAMPLES |
| 2 |
|
| 3 |
# |
| 4 |
# FORTRAN library |
| 5 |
# |
| 6 |
lib_LTLIBRARIES = libmps-fortran.la |
| 7 |
libmps_fortran_la_FCFLAGS = -I${top_srcdir}/include -I${top_builddir}/include -fPIC |
| 8 |
libmps_fortran_la_CFLAGS = -I${top_srcdir}/include -I${top_builddir}/include -fPIC |
| 9 |
libmps_fortran_la_SOURCES = mps_impl.c |
| 10 |
libmps_fortran_la_LIBADD = ${top_builddir}/src/libmps/libmps.la |
| 11 |
libmps_fortran_la_LDFLAGS = \ |
| 12 |
-version-info 0:1:0 \ |
| 13 |
-no-undefined |
| 14 |
|
| 15 |
# include_HEADERS = mps.mod |
| 16 |
|
| 17 |
# CLEANFILES = *.mod |
| 18 |
|
| 19 |
# |
| 20 |
# Simple example to check if the library works OK |
| 21 |
# |
| 22 |
if WINDOWS_BUILD |
| 23 |
noinst_PROGRAMS = roots_of_unity |
| 24 |
roots_of_unity_SOURCES = roots_of_unity.f90 dummy.cpp |
| 25 |
roots_of_unity_LDADD = libmps-fortran.la -lgfortran |
| 26 |
else |
| 27 |
noinst_PROGRAMS = roots_of_unity |
| 28 |
roots_of_unity_SOURCES = roots_of_unity.f90 |
| 29 |
roots_of_unity_LDADD = libmps-fortran.la |
| 30 |
endif |
| 31 |
|
| 32 |
endif |