eccodes/fortran/Makefile.am

71 lines
2.6 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 = libeccodes_f90.la
2013-03-25 12:04:10 +00:00
libeccodes_f90_la_SOURCES= grib_fortran.c grib_f90.f90 eccodes_f90.f90
libeccodes_f90_la_DEPENDENCIES = $(top_builddir)/src/libeccodes.la grib_api_externals.h grib_api_visibility.h grib_api_constants.h grib_kinds.h
2015-02-25 18:11:17 +00:00
libeccodes_f90_la_LDFLAGS = -version-info $(ECCODES_CURRENT):$(ECCODES_REVISION):$(ECCODES_AGE)
2013-03-25 12:04:10 +00:00
libeccodes_fortran_prototypes= grib_fortran.c
2013-03-25 12:04:10 +00:00
if UPPER_CASE_MOD_FALSE
2015-03-30 11:43:41 +00:00
nodist_include_HEADERS = grib_api.mod eccodes.mod
2013-03-25 12:04:10 +00:00
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
2015-03-30 11:43:41 +00:00
nodist_include_HEADERS = GRIB_API.mod ECCODES.mod
2013-03-25 12:04:10 +00:00
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.
CLEANFILES = libeccodes_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