eccodes/fortran/Makefile.am

76 lines
2.9 KiB
Makefile
Raw Normal View History

2013-03-25 12:04:10 +00:00
# See http://www.delorie.com/gnu/docs/automake/automake_48.html
AM_CFLAGS = @WARN_PEDANTIC@
lib_LTLIBRARIES = libgrib_api_f77.la libgrib_api_f90.la
include_HEADERS = grib_api_f77.h
libgrib_api_f77_la_SOURCES= grib_fortran.c grib_f77.c
libgrib_api_f77_la_DEPENDENCIES = $(top_builddir)/src/libgrib_api.la
2013-04-15 14:27:18 +00:00
libgrib_api_f77_la_LDFLAGS = -version-info $(GRIB_ABI_CURRENT):$(GRIB_ABI_REVISION):$(GRIB_ABI_AGE)
2013-03-25 12:04:10 +00:00
2015-01-28 22:54:42 +00:00
libgrib_api_f90_la_SOURCES= grib_fortran.c grib_f90.f90 eccodes_f90.f90
2013-03-25 12:04:10 +00:00
libgrib_api_f90_la_DEPENDENCIES = $(top_builddir)/src/libgrib_api.la grib_api_externals.h grib_api_visibility.h grib_api_constants.h grib_kinds.h
2013-04-15 14:27:18 +00:00
libgrib_api_f90_la_LDFLAGS = -version-info $(GRIB_ABI_CURRENT):$(GRIB_ABI_REVISION):$(GRIB_ABI_AGE)
2013-03-25 12:04:10 +00:00
libgrib_api_fortran_prototypes= grib_fortran.c
if UPPER_CASE_MOD_FALSE
nodist_include_HEADERS = grib_api.mod
grib_api.mod: grib_f90.o
2015-01-28 22:54:42 +00:00
eccodes.mod: eccodes_f90.o
2013-03-25 12:04:10 +00:00
else
nodist_include_HEADERS = GRIB_API.mod
GRIB_API.mod: grib_f90.o
2015-01-28 22:54:42 +00:00
ECCODES.mod: eccodes_f90.o
2013-03-25 12:04:10 +00:00
endif
# set the include path
INCLUDES= -I$(top_builddir)/src
## Make sure these will be cleaned even when they're not built by
## default.
2015-01-28 22:54:42 +00:00
CLEANFILES = libgrib_api_f77.la libgrib_api_f90.la grib_f90.f90 eccodes_f90.f90 *.mod grib_types grib_kinds.h same_int_long same_int_size_t
2013-03-25 12:04:10 +00:00
#noinst_HEADERS =
EXTRA_DIST= grib_fortran_prototypes.h grib_api_constants.h grib_api_externals.h \
grib_api_visibility.h grib_types.f90 create_grib_f90.sh \
grib_f90_head.f90 grib_f90_tail.f90 grib_f90_int.f90 grib_f90_long_int.f90 \
grib_f90_int_size_t.f90 grib_f90_long_size_t.f90 \
2015-01-28 22:54:42 +00:00
\
eccodes_f90_head.f90 eccodes_f90_tail.f90 eccodes_f90_int.f90 eccodes_f90_long_int.f90 \
eccodes_f90_int_size_t.f90 eccodes_f90_long_size_t.f90 \
2014-06-18 16:14:01 +00:00
same_int_long.f90 same_int_size_t.f90 grib_fortran_kinds.c \
CMakeLists.txt
2013-03-25 12:04:10 +00:00
grib_f90.f90: grib_f90_head.f90 grib_f90_tail.f90 grib_f90_int.f90 grib_f90_long_int.f90 grib_f90_int_size_t.f90 grib_f90_long_size_t.f90 same_int_long same_int_size_t grib_kinds.h
2015-01-28 22:54:42 +00:00
./create_grib_f90.sh
eccodes_f90.f90: eccodes_f90_head.f90 eccodes_f90_tail.f90 eccodes_f90_int.f90 eccodes_f90_long_int.f90 eccodes_f90_int_size_t.f90 eccodes_f90_long_size_t.f90 same_int_long same_int_size_t grib_kinds.h
./create_grib_f90.sh
2013-03-25 12:04:10 +00:00
grib_f90.o : grib_kinds.h
2015-01-28 22:54:42 +00:00
eccodes_f90.o : grib_kinds.h
2013-03-25 12:04:10 +00:00
grib_kinds.h: grib_types
./grib_types > grib_kinds.h
grib_types: grib_types.o grib_fortran_kinds.o
$(FC) $(FCFLAGS) -o grib_types grib_types.o grib_fortran_kinds.o
same_int_long: same_int_long.o grib_fortran_kinds.o
$(FC) $(FCFLAGS) -o same_int_long same_int_long.o grib_fortran_kinds.o
same_int_size_t: same_int_size_t.o grib_fortran_kinds.o
$(FC) $(FCFLAGS) -o same_int_size_t same_int_size_t.o grib_fortran_kinds.o
# Note: hooks are always executed after the main rule's work is done
2015-01-28 22:54:42 +00:00
#install-data-hook:
# ( some commands in here .... )
2013-03-25 12:04:10 +00:00
include extrules.am