~alirezagh76/bigdft/1.8

« back to all changes in this revision

Viewing changes to futile/tests/flib/Makefile.am

  • Committer: Alireza Ghasemi
  • Date: 2017-01-18 05:25:18 UTC
  • mfrom: (1683.1.25 1.8)
  • Revision ID: alirezagh76@gmail.com-20170118052518-cqas2xva33xzspcy
Merged with main branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
dynlibdir = $(libdir)
10
10
 
11
 
check_PROGRAMS = yaml_test hooks yaml_argparse f_allocations
12
 
if BUILD_DYNAMIC_LIBS
13
 
check_PROGRAMS += test_plugin
 
11
check_PROGRAMS = yaml_test hooks yaml_argparse f_allocations test_plugin
14
12
noinst_LIBRARIES = libpong.a
15
 
endif
16
13
 
17
 
AM_FCFLAGS = -I../../flib -I../../src
 
14
AM_FCFLAGS = -I../../flib -I../../src @FC_PIC_FLAG@
18
15
AM_LDFLAGS = -L$(top_builddir)/src
19
16
#LIBS += -lflib -lrt @LIB_YAML_LIBS@
20
17
 
45
42
 
46
43
libpong_a_SOURCES = pong.f90
47
44
test_plugin_SOURCES = test_plugin.f90
48
 
test_plugin_LDADD = $(flib_libraries)
 
45
test_plugin_LDADD = $(flib_libraries) @FC_EXPORTS@
49
46
 
50
 
CLEANFILES = *.out.yaml *.report.yaml *.@MODULE_EXT@ memstatus.yaml report_remarks *.err
 
47
CLEANFILES = *.out.yaml *.report.yaml *.@MODULE_EXT@ memstatus.yaml report_remarks *.err libpong.so
51
48
 
52
49
yaml_test.o: $(abs_top_builddir)/src/libfutile-1.a
53
50
hooks.o: $(abs_top_builddir)/src/libfutile-1.a
54
51
 
55
52
libpong.so: $(libpong_a_OBJECTS)
56
 
        $(FC) $(FCFLAGS) @FC_BUILD_SHARED@ $(LDFLAGS) @FC_RPATH@$(DESTDIR)$(dynlibdir) -o $@ $< $(flib_libraries)
 
53
        $(FC) $(FCFLAGS) @FC_BUILD_SHARED@ $(LDFLAGS) @FC_RPATH@$(DESTDIR)$(dynlibdir) -o $@ $<
57
54
        @chmod a+x $@
58
55
 
59
56
yaml_test.out.yaml: yaml_test
84
81
report:
85
82
        @if test $(MAKELEVEL) = 0 ; then python $(pythondir)/report.py ; fi
86
83
 
87
 
regtest: yaml_argparse
 
84
regtest: yaml_argparse test_plugin libpong.so
88
85
        python $(pythondir)/f_regtest.py --fldiff=$(pythondir)/fldiff_yaml.py \
89
86
               --tols=$(srcdir)/tols.yaml --srcdir=$(srcdir) \
90
87
               --exclusive=$(CHECK_ONLY)