1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
##
## Samples source directory Makefile
##
include $(top_srcdir)/config/include.am
EXTRA_DIST = README fixedBuoy0.txt fixedBuoy1.txt floatBuoy0.txt floatBuoy1.txt simple.txt
## Location of necessary library header files for compilation
AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/gctp/include
## hdfeso and gctp libraries for linking
LDADD=$(LIBHDFEOS2) $(LIBGCTP)
## The sample programs to be built when the user types 'make check'
check_PROGRAMS=SetupSwath DefineFields WriteFields AppendField DefineGDflds DefineLevels \
InquireGrid InquireSwath ReadFields ReadGDflds \
ReadLevels SetupGrid SetupPoint \
SubsetGrid SubsetPoint SubsetSwath UpdateLevels \
WriteGDflds WriteLevels
## Additional test programs if fortran is available
if FORTRAN_77_CONDITIONAL
check_PROGRAMS += \
appendfield \
definefields \
definegdflds \
definelevels \
inquiregrid \
inquireswath \
readfields \
readgdflds \
readlevels \
setupgrid \
setuppoint \
setupswath \
subsetgrid \
subsetpoint \
subsetswath \
updatelevels \
writefields \
writegdflds \
writelevels
appendfield_SOURCES = appendfield.f
definefields_SOURCES = definefields.f
definegdflds_SOURCES = definegdflds.f
definelevels_SOURCES = definelevels.f
inquiregrid_SOURCES = inquiregrid.f
inquireswath_SOURCES = inquireswath.f
readfields_SOURCES = readfields.f
readgdflds_SOURCES = readgdflds.f
readlevels_SOURCES = readlevels.f
setupgrid_SOURCES = setupgrid.f
setuppoint_SOURCES = setuppoint.f
setupswath_SOURCES = setupswath.f
subsetgrid_SOURCES = subsetgrid.f
subsetpoint_SOURCES = subsetpoint.f
subsetswath_SOURCES = subsetswath.f
updatelevels_SOURCES = updatelevels.f
writefields_SOURCES = writefields.f
writegdflds_SOURCES = writegdflds.f
writelevels_SOURCES = writelevels.f
endif
## Tests consist of several programs run in succession. Each of these
## names is the name of such a "sequence" of tests.
TEST_SEQUENCES=swath_demo grid_demo point_demo
if FORTRAN_77_CONDITIONAL
TEST_SEQUENCES+=reset_hdf_files
TEST_SEQUENCES+=swath_demo_fortran grid_demo_fortran point_demo_fortran
endif
## 'make check' should run each of the test sequences above
check-local: $(TEST_SEQUENCES)
## Manually list the tests to be run in order for each test sequence.
swath_demo: $(check_PROGRAMS)
./SetupSwath
./DefineFields
./WriteFields
./ReadFields
./InquireSwath
./AppendField
./SubsetSwath
swath_demo_fortran: $(check_PROGRAMS)
./setupswath
./definefields
./writefields
./readfields
./inquireswath
./appendfield
./subsetswath
grid_demo: $(check_PROGRAMS)
@echo "TODO: grid_demo skipped as broken"
grid_demo_broken: $(check_PROGRAMS)
./SetupGrid
./DefineGDflds
./WriteGDflds
./ReadGDflds
./InquireGrid
./SubsetGrid
grid_demo_fortran: $(check_PROGRAMS)
./setupgrid
./definegdflds
./writegdflds
./readgdflds
./inquiregrid
./subsetgrid
point_demo: $(check_PROGRAMS)
./SetupPoint
./DefineLevels
./WriteLevels
./ReadLevels
point_demo_fortran: $(check_PROGRAMS)
@echo "Test disabled"
point_demo_fortran_broken: $(check_PROGRAMS)
./setuppoint
./definelevels
./writelevels
./readlevels
## Some files generated during configure that should be cleaned.
DISTCLEANFILES=SwathFile.hdf GridFile.hdf PointFile.hdf
## Some files generated during C check should be cleaned for fortran test
reset_hdf_files:
rm -f SwathFile.hdf GridFile.hdf PointFile.hdf
## This avoids any confusion between the names of the sequences and
## files with the same names.
.PHONY: $(TEST_SEQUENCES)
|