a8b3b0b633
2007-07-01 Christopher D. Rickett <crickett@lanl.gov> * interface.c (gfc_compare_derived_types): Special case for comparing derived types across namespaces. (gfc_compare_types): Deal with BT_VOID. (compare_parameter): Use BT_VOID to accept ISO C Binding pointers. * trans-expr.c (gfc_conv_function_call): Remove setting parm_kind to SCALAR (gfc_conv_initializer): Deal with ISO C Binding NULL_PTR and NULL_FUNPTR. (gfc_conv_expr): Convert expressions for ISO C Binding derived types. * symbol.c (gfc_set_default_type): BIND(C) variables should not be implicitly declared. (check_conflict): Add BIND(C) and check for conflicts. (gfc_add_explicit_interface): Whitespace. (gfc_add_is_bind_c): New function. (gfc_copy_attr): Use it. (gfc_new_symbol): Initialize ISO C Binding objects. (get_iso_c_binding_dt): New function. (verify_bind_c_derived_type): Ditto. (gen_special_c_interop_ptr): Ditto. (add_formal_arg): Ditto. (gen_cptr_param): Ditto. (gen_fptr_param): Ditto. (gen_shape_param): Ditto. (add_proc_interface): Ditto. (build_formal_args): Ditto. (generate_isocbinding_symbol): Ditto. (get_iso_c_sym): Ditto. * decl.c (num_idents_on_line, has_name_equals): New variables. (verify_c_interop_param): New function. (build_sym): Finish binding labels and deal with COMMON blocks. (add_init_expr_to_sym): Check if the initialized expression is an iso_c_binding named constants (variable_decl): Set ISO C Binding type_spec components. (gfc_match_kind_spec): Check match for C interoperable kind. (match_char_spec): Fix comment. Chnage gfc_match_small_int to gfc_match_small_int_expr. Check for C interoperable kind. (match_type_spec): Clear the current binding label. (match_attr_spec): Add DECL_IS_BIND_C. If BIND(C) is found, use it to set attributes. (set_binding_label): New function. (set_com_block_bind_c): Ditto. (verify_c_interop): Ditto. (verify_com_block_vars_c_interop): Ditto. (verify_bind_c_sym): Ditto. (set_verify_bind_c_sym): Ditto. (set_verify_bind_c_com_block): Ditto. (get_bind_c_idents): Ditto. (gfc_match_bind_c_stmt): Ditto. (gfc_match_data_decl): Use num_idents_on_line. (match_result): Deal with right paren in BIND(C). (gfc_match_suffix): New function. (gfc_match_function_decl): Use it. Code is re-arranged to deal with ISO C Binding result clauses. (gfc_match_subroutine): Deal with BIND(C). (gfc_match_bind_c): New function. (gfc_get_type_attr_spec): New function. Code is re-arranged in and taken from gfc_match_derived_decl. (gfc_match_derived_decl): Add check for BIND(C). * trans-common.c: Forward declare gfc_get_common. (gfc_sym_mangled_common_id): Change arg from 'const char *name' to 'gfc_common_head *com'. Check for ISO C Binding of the common block. (build_common_decl): 'com->name' to 'com in SET_DECL_ASSEMBLER_NAME. * gfortran.h: Add GFC_MAX_BINDING_LABEL_LEN (bt): Add BT_VOID (sym_flavor): Add FL_VOID. (iso_fortran_env_symbol, iso_c_binding_symbol, intmod_id): New enum (CInteropKind_t): New struct. (c_interop_kinds_table): Use it. Declare an array of structs. (symbol_attribute): Add is_bind_c, is_c_interop, and is_iso_c bitfields. (gfc_typespec): Add is_c_interop; is_iso_c, and f90_type members. (gfc_symbol): Add from_intmod, intmod_sym_id, binding_label, and common_block members. (gfc_common_head): Add binding_label and is_bind_c members. (gfc_gsymbol): Add sym_name, mod_name, and binding_label members. Add prototypes for get_c_kind, gfc_validate_c_kind, gfc_check_any_c_kind, gfc_add_is_bind_c, gfc_add_value, verify_c_interop, verify_c_interop_param, verify_bind_c_sym, verify_bind_c_derived_type, verify_com_block_vars_c_interop, generate_isocbinding_symbol, get_iso_c_sym, gfc_iso_c_sub_interface * iso-c-binding.def: New file. This file contains the definitions of the types provided by the Fortran 2003 ISO_C_BINDING intrinsic module. * trans-const.c (gfc_conv_constant_to_tree): Deal with C_NULL_PTR or C_NULL_FUNPTR expressions. * expr.c (gfc_copy_expr): Add BT_VOID case. For BT_CHARACTER, the ISO C Binding requires a minimum string length of 1 for '\0'. * module.c (intmod_sym): New struct. (pointer_info): Add binding_label member. (write_atom): Set len to 0 for NULL pointers. Check for NULL p and *p. (ab_attribute): Add AB_IS_BIND_C, AB_IS_C_INTEROP and AB_IS_ISO_C. (attr_bits): Add "IS_BIND_C", "IS_C_INTEROP", and "IS_ISO_C". (mio_symbol_attribute): Deal with ISO C Binding attributes. (bt_types): Add "VOID". (mio_typespec): Deal with ISO C Binding components. (mio_namespace_ref): Add intmod variable. (mio_symbol): Check for symbols from an intrinsic module. (load_commons): Check for BIND(C) common block. (read_module): Read binding_label and use it. (write_common): Add label. Write BIND(C) info. (write_blank_common): Blank commons are not BIND(C). Explicitly set is_bind_c=0. (write_symbol): Deal with binding_label. (sort_iso_c_rename_list): New function. (import_iso_c_binding_module): Ditto. (create_int_parameter): Add to args. (use_iso_fortran_env_module): Adjust to deal with iso_c_binding intrinsic module. * trans-types.c (c_interop_kinds_table): new array of structs. (gfc_validate_c_kind): New function. (gfc_check_any_c_kind): Ditto. (get_real_kind_from_node): Ditto. (get_int_kind_from_node): Ditto. (get_int_kind_from_width): Ditto. (get_int_kind_from_minimal_width): Ditto. (init_c_interop_kinds): Ditto. (gfc_init_kinds): call init_c_interop_kinds. (gfc_typenode_for_spec): Adjust for BT_VOID and ISO C Binding pointers. Adjust handling of BT_DERIVED. (gfc_sym_type): Whitespace. (gfc_get_derived_type): Account for iso_c_binding derived types * resolve.c (is_scalar_expr_ptr): New function. (gfc_iso_c_func_interface): Ditto. (resolve_function): Use gfc_iso_c_func_interface. (set_name_and_label): New function. (gfc_iso_c_sub_interface): Ditto. (resolve_specific_s0): Use gfc_iso_c_sub_interface. (resolve_bind_c_comms): New function. (resolve_bind_c_derived_types): Ditto. (gfc_verify_binding_labels): Ditto. (resolve_fl_procedure): Check for ISO C interoperability. (resolve_symbol): Check C interoperability. (resolve_types): Walk the namespace. Check COMMON blocks. * trans-decl.c (gfc_sym_mangled_identifier): Prevent the mangling of identifiers that have an assigned binding label. (gfc_sym_mangled_function_id): Use the binding label rather than the mangled name. (gfc_finish_var_decl): Put variables that are BIND(C) into a common segment of the object file, because this is what C would do. (gfc_create_module_variable): Conver to proper types (set_tree_decl_type_code): New function. (generate_local_decl): Check dummy variables and derived types for ISO C Binding attributes. * match.c (gfc_match_small_int_expr): New function. (gfc_match_name_C): Ditto. (match_common_name): Deal with ISO C Binding in COMMON blocks * trans-io.c (transfer_expr): Deal with C_NULL_PTR or C_NULL_FUNPTR expressions * match.h: Add prototypes for gfc_match_small_int_expr, gfc_match_name_C, match_common_name, set_com_block_bind_c, set_binding_label, set_verify_bind_c_sym, set_verify_bind_c_com_block, get_bind_c_idents, gfc_match_bind_c_stmt, gfc_match_suffix, gfc_match_bind_c, gfc_get_type_attr_spec * parse.c (decode_statement): Use gfc_match_bind_c_stmt (parse_derived): Init *derived_sym = NULL, and gfc_current_block later for valiadation. * primary.c (got_delim): Set ISO C Binding components of ts. (match_logical_constant): Ditto. (match_complex_constant): Ditto. (match_complex_constant): Ditto. (gfc_match_rvalue): Check for existence of at least one arg for C_LOC, C_FUNLOC, and C_ASSOCIATED. * misc.c (gfc_clear_ts): Clear ISO C Bindoing components in ts. (get_c_kind): New function. 2007-07-01 Christopher D. Rickett <crickett@lanl.gov> * Makefile.in: Add support for iso_c_generated_procs.c and iso_c_binding.c. * Makefile.am: Ditto. * intrinsics/iso_c_generated_procs.c: New file containing helper functions. * intrinsics/iso_c_binding.c: Ditto. * intrinsics/iso_c_binding.h: New file * gfortran.map: Include the __iso_c_binding_c_* functions. * libgfortran.h: define GFC_NUM_RANK_BITS. 2007-06-23 Christopher D. Rickett <crickett@lanl.gov> * bind_c_array_params.f03: New files for Fortran 2003 ISO C Binding. * bind_c_coms.f90: Ditto. * bind_c_coms_driver.c: Ditto. * bind_c_dts.f90: Ditto. * bind_c_dts_2.f03: Ditto. * bind_c_dts_2_driver.c: Ditto. * bind_c_dts_3.f03: Ditto. * bind_c_dts_4.f03: Ditto. * bind_c_dts_driver.c: Ditto. * bind_c_implicit_vars.f03: Ditto. * bind_c_procs.f03: Ditto. * bind_c_usage_2.f03: Ditto. * bind_c_usage_3.f03: Ditto. * bind_c_usage_5.f03: Ditto. * bind_c_usage_6.f03: Ditto. * bind_c_usage_7.f03: Ditto. * bind_c_vars.f90: Ditto. * bind_c_vars_driver.c: Ditto. * binding_c_table_15_1.f03: Ditto. * binding_label_tests.f03: Ditto. * binding_label_tests_10.f03: Ditto. * binding_label_tests_10_main.f03: Ditto. * binding_label_tests_11.f03: Ditto. * binding_label_tests_11_main.f03: Ditto. * binding_label_tests_12.f03: Ditto. * binding_label_tests_13.f03: Ditto. * binding_label_tests_13_main.f03: Ditto. * binding_label_tests_14.f03: Ditto. * binding_label_tests_2.f03: Ditto. * binding_label_tests_3.f03: Ditto. * binding_label_tests_4.f03: Ditto. * binding_label_tests_5.f03: Ditto. * binding_label_tests_6.f03: Ditto. * binding_label_tests_7.f03: Ditto. * binding_label_tests_8.f03: Ditto. * binding_label_tests_9.f03: Ditto. * c_assoc.f90: Ditto. * c_assoc_2.f03: Ditto. * c_f_pointer_shape_test.f90: Ditto. * c_f_pointer_tests.f90: Ditto. * c_f_tests_driver.c: Ditto. * c_funloc_tests.f03: Ditto. * c_funloc_tests_2.f03: Ditto. * c_funloc_tests_3.f03: Ditto. * c_funloc_tests_3_funcs.c: Ditto. * c_kind_params.f90: Ditto. * c_kind_tests_2.f03: Ditto. * c_kinds.c: Ditto. * c_loc_driver.c: Ditto. * c_loc_test.f90: Ditto. * c_loc_tests_2.f03: Ditto. * c_loc_tests_2_funcs.c: Ditto. * c_loc_tests_3.f03: Ditto. * c_loc_tests_4.f03: Ditto. * c_loc_tests_5.f03: Ditto. * c_loc_tests_6.f03: Ditto. * c_loc_tests_7.f03: Ditto. * c_loc_tests_8.f03: Ditto. * c_ptr_tests.f03: Ditto. * c_ptr_tests_10.f03: Ditto. * c_ptr_tests_5.f03: Ditto. * c_ptr_tests_7.f03: Ditto. * c_ptr_tests_7_driver.c: Ditto. * c_ptr_tests_8.f03: Ditto. * c_ptr_tests_8_funcs.c: Ditto. * c_ptr_tests_9.f03: Ditto. * c_ptr_tests_driver.c: Ditto. * c_size_t_driver.c: Ditto. * c_size_t_test.f03: Ditto. * com_block_driver.f90: Ditto. * global_vars_c_init.f90: Ditto. * global_vars_c_init_driver.c: Ditto. * global_vars_f90_init.f90: Ditto. * global_vars_f90_init_driver.c: Ditto. * interop_params.f03: Ditto. * iso_c_binding_only.f03: Ditto. * iso_c_binding_rename_1.f03: Ditto. * iso_c_binding_rename_1_driver.c: Ditto. * iso_c_binding_rename_2.f03: Ditto. * iso_c_binding_rename_2_driver.c: Ditto. * kind_tests_2.f03: Ditto. * kind_tests_3.f03: Ditto. * module_md5_1.f90: Ditto. * only_clause_main.c: Ditto. * print_c_kinds.f90: Ditto. * test_bind_c_parens.f03: Ditto. * test_c_assoc.c: Ditto. * test_com_block.f90: Ditto. * test_common_binding_labels.f03: Ditto. * test_common_binding_labels_2.f03: Ditto. * test_common_binding_labels_2_main.f03: Ditto. * test_common_binding_labels_3.f03: Ditto. * test_common_binding_labels_3_main.f03: Ditto. * test_only_clause.f90: Ditto. * use_iso_c_binding.f90: Ditto. * value_5.f90: Ditto. * value_test.f90: Ditto. * value_tests_f03.f90: Ditto. From-SVN: r126185
773 lines
24 KiB
Makefile
773 lines
24 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
|
|
|
## May be used by toolexeclibdir.
|
|
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
|
|
|
## Symbol versioning (copied from libssp).
|
|
if LIBGFOR_USE_SYMVER
|
|
version_arg = -Wl,--version-script=$(srcdir)/gfortran.map
|
|
else
|
|
version_arg =
|
|
endif
|
|
|
|
toolexeclib_LTLIBRARIES = libgfortran.la
|
|
libgfortran_la_LINK = $(LINK)
|
|
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran) $(version_arg)
|
|
|
|
myexeclib_LTLIBRARIES = libgfortranbegin.la
|
|
myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)
|
|
libgfortranbegin_la_SOURCES = fmain.c
|
|
libgfortranbegin_la_LDFLAGS = -static
|
|
|
|
## io.h conflicts with some a system header on some platforms, so
|
|
## use -iquote
|
|
AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \
|
|
-I$(srcdir)/$(MULTISRCTOP)../gcc/config \
|
|
-I$(MULTIBUILDTOP)../../$(host_subdir)/gcc -D_GNU_SOURCE
|
|
|
|
gfor_io_src= \
|
|
io/close.c \
|
|
io/file_pos.c \
|
|
io/format.c \
|
|
io/inquire.c \
|
|
io/intrinsics.c \
|
|
io/list_read.c \
|
|
io/lock.c \
|
|
io/open.c \
|
|
io/read.c \
|
|
io/size_from_kind.c \
|
|
io/transfer.c \
|
|
io/unit.c \
|
|
io/unix.c \
|
|
io/write.c
|
|
|
|
gfor_io_headers= \
|
|
io/io.h
|
|
|
|
gfor_helper_src= \
|
|
intrinsics/associated.c \
|
|
intrinsics/abort.c \
|
|
intrinsics/access.c \
|
|
intrinsics/args.c \
|
|
intrinsics/c99_functions.c \
|
|
intrinsics/chdir.c \
|
|
intrinsics/chmod.c \
|
|
intrinsics/clock.c \
|
|
intrinsics/cpu_time.c \
|
|
intrinsics/cshift0.c \
|
|
intrinsics/ctime.c \
|
|
intrinsics/date_and_time.c \
|
|
intrinsics/env.c \
|
|
intrinsics/eoshift0.c \
|
|
intrinsics/eoshift2.c \
|
|
intrinsics/etime.c \
|
|
intrinsics/exit.c \
|
|
intrinsics/fnum.c \
|
|
intrinsics/gerror.c \
|
|
intrinsics/getcwd.c \
|
|
intrinsics/getlog.c \
|
|
intrinsics/getXid.c \
|
|
intrinsics/hostnm.c \
|
|
intrinsics/ierrno.c \
|
|
intrinsics/ishftc.c \
|
|
intrinsics/iso_c_generated_procs.c \
|
|
intrinsics/iso_c_binding.c \
|
|
intrinsics/kill.c \
|
|
intrinsics/link.c \
|
|
intrinsics/malloc.c \
|
|
intrinsics/mvbits.c \
|
|
intrinsics/move_alloc.c \
|
|
intrinsics/pack_generic.c \
|
|
intrinsics/perror.c \
|
|
intrinsics/signal.c \
|
|
intrinsics/size.c \
|
|
intrinsics/sleep.c \
|
|
intrinsics/spread_generic.c \
|
|
intrinsics/string_intrinsics.c \
|
|
intrinsics/system.c \
|
|
intrinsics/rand.c \
|
|
intrinsics/random.c \
|
|
intrinsics/rename.c \
|
|
intrinsics/reshape_generic.c \
|
|
intrinsics/reshape_packed.c \
|
|
intrinsics/selected_int_kind.f90 \
|
|
intrinsics/selected_real_kind.f90 \
|
|
intrinsics/stat.c \
|
|
intrinsics/symlnk.c \
|
|
intrinsics/system_clock.c \
|
|
intrinsics/time.c \
|
|
intrinsics/transpose_generic.c \
|
|
intrinsics/umask.c \
|
|
intrinsics/unlink.c \
|
|
intrinsics/unpack_generic.c \
|
|
runtime/in_pack_generic.c \
|
|
runtime/in_unpack_generic.c
|
|
|
|
gfor_src= \
|
|
runtime/backtrace.c \
|
|
runtime/compile_options.c \
|
|
runtime/environ.c \
|
|
runtime/error.c \
|
|
runtime/fpu.c \
|
|
runtime/main.c \
|
|
runtime/memory.c \
|
|
runtime/pause.c \
|
|
runtime/stop.c \
|
|
runtime/string.c \
|
|
runtime/select.c
|
|
|
|
i_all_c= \
|
|
$(srcdir)/generated/all_l4.c \
|
|
$(srcdir)/generated/all_l8.c \
|
|
$(srcdir)/generated/all_l16.c
|
|
|
|
i_any_c= \
|
|
$(srcdir)/generated/any_l4.c \
|
|
$(srcdir)/generated/any_l8.c \
|
|
$(srcdir)/generated/any_l16.c
|
|
|
|
i_count_c= \
|
|
$(srcdir)/generated/count_4_l4.c \
|
|
$(srcdir)/generated/count_8_l4.c \
|
|
$(srcdir)/generated/count_16_l4.c \
|
|
$(srcdir)/generated/count_4_l8.c \
|
|
$(srcdir)/generated/count_8_l8.c \
|
|
$(srcdir)/generated/count_16_l8.c \
|
|
$(srcdir)/generated/count_4_l16.c \
|
|
$(srcdir)/generated/count_8_l16.c \
|
|
$(srcdir)/generated/count_16_l16.c
|
|
|
|
i_maxloc0_c= \
|
|
$(srcdir)/generated/maxloc0_4_i1.c \
|
|
$(srcdir)/generated/maxloc0_8_i1.c \
|
|
$(srcdir)/generated/maxloc0_16_i1.c \
|
|
$(srcdir)/generated/maxloc0_4_i2.c \
|
|
$(srcdir)/generated/maxloc0_8_i2.c \
|
|
$(srcdir)/generated/maxloc0_16_i2.c \
|
|
$(srcdir)/generated/maxloc0_4_i4.c \
|
|
$(srcdir)/generated/maxloc0_8_i4.c \
|
|
$(srcdir)/generated/maxloc0_16_i4.c \
|
|
$(srcdir)/generated/maxloc0_4_i8.c \
|
|
$(srcdir)/generated/maxloc0_8_i8.c \
|
|
$(srcdir)/generated/maxloc0_16_i8.c \
|
|
$(srcdir)/generated/maxloc0_4_i16.c \
|
|
$(srcdir)/generated/maxloc0_8_i16.c \
|
|
$(srcdir)/generated/maxloc0_16_i16.c \
|
|
$(srcdir)/generated/maxloc0_4_r4.c \
|
|
$(srcdir)/generated/maxloc0_8_r4.c \
|
|
$(srcdir)/generated/maxloc0_16_r4.c \
|
|
$(srcdir)/generated/maxloc0_4_r8.c \
|
|
$(srcdir)/generated/maxloc0_8_r8.c \
|
|
$(srcdir)/generated/maxloc0_16_r8.c \
|
|
$(srcdir)/generated/maxloc0_4_r10.c \
|
|
$(srcdir)/generated/maxloc0_8_r10.c \
|
|
$(srcdir)/generated/maxloc0_16_r10.c \
|
|
$(srcdir)/generated/maxloc0_4_r16.c \
|
|
$(srcdir)/generated/maxloc0_8_r16.c \
|
|
$(srcdir)/generated/maxloc0_16_r16.c
|
|
|
|
i_maxloc1_c= \
|
|
$(srcdir)/generated/maxloc1_4_i1.c \
|
|
$(srcdir)/generated/maxloc1_8_i1.c \
|
|
$(srcdir)/generated/maxloc1_16_i1.c \
|
|
$(srcdir)/generated/maxloc1_4_i2.c \
|
|
$(srcdir)/generated/maxloc1_8_i2.c \
|
|
$(srcdir)/generated/maxloc1_16_i2.c \
|
|
$(srcdir)/generated/maxloc1_4_i4.c \
|
|
$(srcdir)/generated/maxloc1_8_i4.c \
|
|
$(srcdir)/generated/maxloc1_16_i4.c \
|
|
$(srcdir)/generated/maxloc1_4_i8.c \
|
|
$(srcdir)/generated/maxloc1_8_i8.c \
|
|
$(srcdir)/generated/maxloc1_16_i8.c \
|
|
$(srcdir)/generated/maxloc1_4_i16.c \
|
|
$(srcdir)/generated/maxloc1_8_i16.c \
|
|
$(srcdir)/generated/maxloc1_16_i16.c \
|
|
$(srcdir)/generated/maxloc1_4_r4.c \
|
|
$(srcdir)/generated/maxloc1_8_r4.c \
|
|
$(srcdir)/generated/maxloc1_16_r4.c \
|
|
$(srcdir)/generated/maxloc1_4_r8.c \
|
|
$(srcdir)/generated/maxloc1_8_r8.c \
|
|
$(srcdir)/generated/maxloc1_16_r8.c \
|
|
$(srcdir)/generated/maxloc1_4_r10.c \
|
|
$(srcdir)/generated/maxloc1_8_r10.c \
|
|
$(srcdir)/generated/maxloc1_16_r10.c \
|
|
$(srcdir)/generated/maxloc1_4_r16.c \
|
|
$(srcdir)/generated/maxloc1_8_r16.c \
|
|
$(srcdir)/generated/maxloc1_16_r16.c
|
|
|
|
i_maxval_c= \
|
|
$(srcdir)/generated/maxval_i1.c \
|
|
$(srcdir)/generated/maxval_i2.c \
|
|
$(srcdir)/generated/maxval_i4.c \
|
|
$(srcdir)/generated/maxval_i8.c \
|
|
$(srcdir)/generated/maxval_i16.c \
|
|
$(srcdir)/generated/maxval_r4.c \
|
|
$(srcdir)/generated/maxval_r8.c \
|
|
$(srcdir)/generated/maxval_r10.c \
|
|
$(srcdir)/generated/maxval_r16.c
|
|
|
|
i_minloc0_c= \
|
|
$(srcdir)/generated/minloc0_4_i1.c \
|
|
$(srcdir)/generated/minloc0_8_i1.c \
|
|
$(srcdir)/generated/minloc0_16_i1.c \
|
|
$(srcdir)/generated/minloc0_4_i2.c \
|
|
$(srcdir)/generated/minloc0_8_i2.c \
|
|
$(srcdir)/generated/minloc0_16_i2.c \
|
|
$(srcdir)/generated/minloc0_4_i4.c \
|
|
$(srcdir)/generated/minloc0_8_i4.c \
|
|
$(srcdir)/generated/minloc0_16_i4.c \
|
|
$(srcdir)/generated/minloc0_4_i8.c \
|
|
$(srcdir)/generated/minloc0_8_i8.c \
|
|
$(srcdir)/generated/minloc0_16_i8.c \
|
|
$(srcdir)/generated/minloc0_4_i16.c \
|
|
$(srcdir)/generated/minloc0_8_i16.c \
|
|
$(srcdir)/generated/minloc0_16_i16.c \
|
|
$(srcdir)/generated/minloc0_4_r4.c \
|
|
$(srcdir)/generated/minloc0_8_r4.c \
|
|
$(srcdir)/generated/minloc0_16_r4.c \
|
|
$(srcdir)/generated/minloc0_4_r8.c \
|
|
$(srcdir)/generated/minloc0_8_r8.c \
|
|
$(srcdir)/generated/minloc0_16_r8.c \
|
|
$(srcdir)/generated/minloc0_4_r10.c \
|
|
$(srcdir)/generated/minloc0_8_r10.c \
|
|
$(srcdir)/generated/minloc0_16_r10.c \
|
|
$(srcdir)/generated/minloc0_4_r16.c \
|
|
$(srcdir)/generated/minloc0_8_r16.c \
|
|
$(srcdir)/generated/minloc0_16_r16.c
|
|
|
|
i_minloc1_c= \
|
|
$(srcdir)/generated/minloc1_4_i1.c \
|
|
$(srcdir)/generated/minloc1_8_i1.c \
|
|
$(srcdir)/generated/minloc1_16_i1.c \
|
|
$(srcdir)/generated/minloc1_4_i2.c \
|
|
$(srcdir)/generated/minloc1_8_i2.c \
|
|
$(srcdir)/generated/minloc1_16_i2.c \
|
|
$(srcdir)/generated/minloc1_4_i4.c \
|
|
$(srcdir)/generated/minloc1_8_i4.c \
|
|
$(srcdir)/generated/minloc1_16_i4.c \
|
|
$(srcdir)/generated/minloc1_4_i8.c \
|
|
$(srcdir)/generated/minloc1_8_i8.c \
|
|
$(srcdir)/generated/minloc1_16_i8.c \
|
|
$(srcdir)/generated/minloc1_4_i16.c \
|
|
$(srcdir)/generated/minloc1_8_i16.c \
|
|
$(srcdir)/generated/minloc1_16_i16.c \
|
|
$(srcdir)/generated/minloc1_4_r4.c \
|
|
$(srcdir)/generated/minloc1_8_r4.c \
|
|
$(srcdir)/generated/minloc1_16_r4.c \
|
|
$(srcdir)/generated/minloc1_4_r8.c \
|
|
$(srcdir)/generated/minloc1_8_r8.c \
|
|
$(srcdir)/generated/minloc1_16_r8.c \
|
|
$(srcdir)/generated/minloc1_4_r10.c \
|
|
$(srcdir)/generated/minloc1_8_r10.c \
|
|
$(srcdir)/generated/minloc1_16_r10.c \
|
|
$(srcdir)/generated/minloc1_4_r16.c \
|
|
$(srcdir)/generated/minloc1_8_r16.c \
|
|
$(srcdir)/generated/minloc1_16_r16.c
|
|
|
|
i_minval_c= \
|
|
$(srcdir)/generated/minval_i1.c \
|
|
$(srcdir)/generated/minval_i2.c \
|
|
$(srcdir)/generated/minval_i4.c \
|
|
$(srcdir)/generated/minval_i8.c \
|
|
$(srcdir)/generated/minval_i16.c \
|
|
$(srcdir)/generated/minval_r4.c \
|
|
$(srcdir)/generated/minval_r8.c \
|
|
$(srcdir)/generated/minval_r10.c \
|
|
$(srcdir)/generated/minval_r16.c
|
|
|
|
i_sum_c= \
|
|
$(srcdir)/generated/sum_i1.c \
|
|
$(srcdir)/generated/sum_i2.c \
|
|
$(srcdir)/generated/sum_i4.c \
|
|
$(srcdir)/generated/sum_i8.c \
|
|
$(srcdir)/generated/sum_i16.c \
|
|
$(srcdir)/generated/sum_r4.c \
|
|
$(srcdir)/generated/sum_r8.c \
|
|
$(srcdir)/generated/sum_r10.c \
|
|
$(srcdir)/generated/sum_r16.c \
|
|
$(srcdir)/generated/sum_c4.c \
|
|
$(srcdir)/generated/sum_c8.c \
|
|
$(srcdir)/generated/sum_c10.c \
|
|
$(srcdir)/generated/sum_c16.c
|
|
|
|
i_product_c= \
|
|
$(srcdir)/generated/product_i1.c \
|
|
$(srcdir)/generated/product_i2.c \
|
|
$(srcdir)/generated/product_i4.c \
|
|
$(srcdir)/generated/product_i8.c \
|
|
$(srcdir)/generated/product_i16.c \
|
|
$(srcdir)/generated/product_r4.c \
|
|
$(srcdir)/generated/product_r8.c \
|
|
$(srcdir)/generated/product_r10.c \
|
|
$(srcdir)/generated/product_r16.c \
|
|
$(srcdir)/generated/product_c4.c \
|
|
$(srcdir)/generated/product_c8.c \
|
|
$(srcdir)/generated/product_c10.c \
|
|
$(srcdir)/generated/product_c16.c
|
|
|
|
i_matmul_c= \
|
|
$(srcdir)/generated/matmul_i1.c \
|
|
$(srcdir)/generated/matmul_i2.c \
|
|
$(srcdir)/generated/matmul_i4.c \
|
|
$(srcdir)/generated/matmul_i8.c \
|
|
$(srcdir)/generated/matmul_i16.c \
|
|
$(srcdir)/generated/matmul_r4.c \
|
|
$(srcdir)/generated/matmul_r8.c \
|
|
$(srcdir)/generated/matmul_r10.c \
|
|
$(srcdir)/generated/matmul_r16.c \
|
|
$(srcdir)/generated/matmul_c4.c \
|
|
$(srcdir)/generated/matmul_c8.c \
|
|
$(srcdir)/generated/matmul_c10.c \
|
|
$(srcdir)/generated/matmul_c16.c
|
|
|
|
i_matmull_c= \
|
|
$(srcdir)/generated/matmul_l4.c \
|
|
$(srcdir)/generated/matmul_l8.c \
|
|
$(srcdir)/generated/matmul_l16.c
|
|
|
|
i_transpose_c= \
|
|
$(srcdir)/generated/transpose_i4.c \
|
|
$(srcdir)/generated/transpose_i8.c \
|
|
$(srcdir)/generated/transpose_i16.c \
|
|
$(srcdir)/generated/transpose_r4.c \
|
|
$(srcdir)/generated/transpose_r8.c \
|
|
$(srcdir)/generated/transpose_r10.c \
|
|
$(srcdir)/generated/transpose_r16.c \
|
|
$(srcdir)/generated/transpose_c4.c \
|
|
$(srcdir)/generated/transpose_c8.c \
|
|
$(srcdir)/generated/transpose_c10.c \
|
|
$(srcdir)/generated/transpose_c16.c
|
|
|
|
i_shape_c= \
|
|
$(srcdir)/generated/shape_i4.c \
|
|
$(srcdir)/generated/shape_i8.c \
|
|
$(srcdir)/generated/shape_i16.c
|
|
|
|
i_reshape_c= \
|
|
$(srcdir)/generated/reshape_i4.c \
|
|
$(srcdir)/generated/reshape_i8.c \
|
|
$(srcdir)/generated/reshape_i16.c \
|
|
$(srcdir)/generated/reshape_r4.c \
|
|
$(srcdir)/generated/reshape_r8.c \
|
|
$(srcdir)/generated/reshape_r10.c \
|
|
$(srcdir)/generated/reshape_r16.c \
|
|
$(srcdir)/generated/reshape_c4.c \
|
|
$(srcdir)/generated/reshape_c8.c \
|
|
$(srcdir)/generated/reshape_c10.c \
|
|
$(srcdir)/generated/reshape_c16.c
|
|
|
|
i_eoshift1_c= \
|
|
$(srcdir)/generated/eoshift1_4.c \
|
|
$(srcdir)/generated/eoshift1_8.c \
|
|
$(srcdir)/generated/eoshift1_16.c
|
|
|
|
i_eoshift3_c= \
|
|
$(srcdir)/generated/eoshift3_4.c \
|
|
$(srcdir)/generated/eoshift3_8.c \
|
|
$(srcdir)/generated/eoshift3_16.c
|
|
|
|
i_cshift1_c= \
|
|
$(srcdir)/generated/cshift1_4.c \
|
|
$(srcdir)/generated/cshift1_8.c \
|
|
$(srcdir)/generated/cshift1_16.c
|
|
|
|
in_pack_c = \
|
|
$(srcdir)/generated/in_pack_i4.c \
|
|
$(srcdir)/generated/in_pack_i8.c \
|
|
$(srcdir)/generated/in_pack_i16.c \
|
|
$(srcdir)/generated/in_pack_c4.c \
|
|
$(srcdir)/generated/in_pack_c8.c \
|
|
$(srcdir)/generated/in_pack_c10.c \
|
|
$(srcdir)/generated/in_pack_c16.c
|
|
|
|
in_unpack_c = \
|
|
$(srcdir)/generated/in_unpack_i4.c \
|
|
$(srcdir)/generated/in_unpack_i8.c \
|
|
$(srcdir)/generated/in_unpack_i16.c \
|
|
$(srcdir)/generated/in_unpack_c4.c \
|
|
$(srcdir)/generated/in_unpack_c8.c \
|
|
$(srcdir)/generated/in_unpack_c10.c \
|
|
$(srcdir)/generated/in_unpack_c16.c
|
|
|
|
i_exponent_c = \
|
|
$(srcdir)/generated/exponent_r4.c \
|
|
$(srcdir)/generated/exponent_r8.c \
|
|
$(srcdir)/generated/exponent_r10.c \
|
|
$(srcdir)/generated/exponent_r16.c
|
|
|
|
i_spacing_c = \
|
|
$(srcdir)/generated/spacing_r4.c \
|
|
$(srcdir)/generated/spacing_r8.c \
|
|
$(srcdir)/generated/spacing_r10.c \
|
|
$(srcdir)/generated/spacing_r16.c
|
|
|
|
i_rrspacing_c = \
|
|
$(srcdir)/generated/rrspacing_r4.c \
|
|
$(srcdir)/generated/rrspacing_r8.c \
|
|
$(srcdir)/generated/rrspacing_r10.c \
|
|
$(srcdir)/generated/rrspacing_r16.c
|
|
|
|
i_fraction_c = \
|
|
$(srcdir)/generated/fraction_r4.c \
|
|
$(srcdir)/generated/fraction_r8.c \
|
|
$(srcdir)/generated/fraction_r10.c \
|
|
$(srcdir)/generated/fraction_r16.c
|
|
|
|
i_nearest_c = \
|
|
$(srcdir)/generated/nearest_r4.c \
|
|
$(srcdir)/generated/nearest_r8.c \
|
|
$(srcdir)/generated/nearest_r10.c \
|
|
$(srcdir)/generated/nearest_r16.c
|
|
|
|
i_set_exponent_c = \
|
|
$(srcdir)/generated/set_exponent_r4.c \
|
|
$(srcdir)/generated/set_exponent_r8.c \
|
|
$(srcdir)/generated/set_exponent_r10.c \
|
|
$(srcdir)/generated/set_exponent_r16.c
|
|
|
|
i_pow_c = \
|
|
$(srcdir)/generated/pow_i4_i4.c \
|
|
$(srcdir)/generated/pow_i8_i4.c \
|
|
$(srcdir)/generated/pow_i16_i4.c \
|
|
$(srcdir)/generated/pow_c4_i4.c \
|
|
$(srcdir)/generated/pow_c8_i4.c \
|
|
$(srcdir)/generated/pow_c10_i4.c \
|
|
$(srcdir)/generated/pow_c16_i4.c \
|
|
$(srcdir)/generated/pow_i4_i8.c \
|
|
$(srcdir)/generated/pow_i8_i8.c \
|
|
$(srcdir)/generated/pow_i16_i8.c \
|
|
$(srcdir)/generated/pow_r4_i8.c \
|
|
$(srcdir)/generated/pow_r8_i8.c \
|
|
$(srcdir)/generated/pow_r10_i8.c \
|
|
$(srcdir)/generated/pow_r16_i8.c \
|
|
$(srcdir)/generated/pow_c4_i8.c \
|
|
$(srcdir)/generated/pow_c8_i8.c \
|
|
$(srcdir)/generated/pow_c10_i8.c \
|
|
$(srcdir)/generated/pow_c16_i8.c \
|
|
$(srcdir)/generated/pow_i4_i16.c \
|
|
$(srcdir)/generated/pow_i8_i16.c \
|
|
$(srcdir)/generated/pow_i16_i16.c \
|
|
$(srcdir)/generated/pow_r4_i16.c \
|
|
$(srcdir)/generated/pow_r8_i16.c \
|
|
$(srcdir)/generated/pow_r10_i16.c \
|
|
$(srcdir)/generated/pow_r16_i16.c \
|
|
$(srcdir)/generated/pow_c4_i16.c \
|
|
$(srcdir)/generated/pow_c8_i16.c \
|
|
$(srcdir)/generated/pow_c10_i16.c \
|
|
$(srcdir)/generated/pow_c16_i16.c
|
|
|
|
m4_files= m4/iparm.m4 m4/ifunction.m4 m4/iforeach.m4 m4/all.m4 \
|
|
m4/any.m4 m4/count.m4 m4/maxloc0.m4 m4/maxloc1.m4 m4/maxval.m4 \
|
|
m4/minloc0.m4 m4/minloc1.m4 m4/minval.m4 m4/product.m4 m4/sum.m4 \
|
|
m4/matmul.m4 m4/matmull.m4 \
|
|
m4/ctrig.m4 m4/cexp.m4 m4/chyp.m4 m4/mtype.m4 \
|
|
m4/specific.m4 m4/specific2.m4 m4/head.m4 m4/shape.m4 m4/reshape.m4 \
|
|
m4/transpose.m4 m4/eoshift1.m4 m4/eoshift3.m4 m4/exponent.m4 \
|
|
m4/fraction.m4 m4/nearest.m4 m4/set_exponent.m4 m4/pow.m4 \
|
|
m4/misc_specifics.m4 m4/rrspacing.m4 m4/spacing.m4
|
|
|
|
gfor_built_src= $(i_all_c) $(i_any_c) $(i_count_c) $(i_maxloc0_c) \
|
|
$(i_maxloc1_c) $(i_maxval_c) $(i_minloc0_c) $(i_minloc1_c) $(i_minval_c) \
|
|
$(i_product_c) $(i_sum_c) \
|
|
$(i_matmul_c) $(i_matmull_c) $(i_transpose_c) $(i_shape_c) $(i_eoshift1_c) \
|
|
$(i_eoshift3_c) $(i_cshift1_c) $(i_reshape_c) $(in_pack_c) $(in_unpack_c) \
|
|
$(i_exponent_c) $(i_fraction_c) $(i_nearest_c) $(i_set_exponent_c) \
|
|
$(i_pow_c) $(i_rrspacing_c) $(i_spacing_c) \
|
|
selected_int_kind.inc selected_real_kind.inc kinds.h \
|
|
kinds.inc c99_protos.inc fpu-target.h
|
|
|
|
# Machine generated specifics
|
|
gfor_built_specific_src= \
|
|
$(srcdir)/generated/_abs_c4.F90 \
|
|
$(srcdir)/generated/_abs_c8.F90 \
|
|
$(srcdir)/generated/_abs_c10.F90 \
|
|
$(srcdir)/generated/_abs_c16.F90 \
|
|
$(srcdir)/generated/_abs_i4.F90 \
|
|
$(srcdir)/generated/_abs_i8.F90 \
|
|
$(srcdir)/generated/_abs_i16.F90 \
|
|
$(srcdir)/generated/_abs_r4.F90 \
|
|
$(srcdir)/generated/_abs_r8.F90 \
|
|
$(srcdir)/generated/_abs_r10.F90 \
|
|
$(srcdir)/generated/_abs_r16.F90 \
|
|
$(srcdir)/generated/_aimag_c4.F90 \
|
|
$(srcdir)/generated/_aimag_c8.F90 \
|
|
$(srcdir)/generated/_aimag_c10.F90 \
|
|
$(srcdir)/generated/_aimag_c16.F90 \
|
|
$(srcdir)/generated/_exp_r4.F90 \
|
|
$(srcdir)/generated/_exp_r8.F90 \
|
|
$(srcdir)/generated/_exp_r10.F90 \
|
|
$(srcdir)/generated/_exp_r16.F90 \
|
|
$(srcdir)/generated/_exp_c4.F90 \
|
|
$(srcdir)/generated/_exp_c8.F90 \
|
|
$(srcdir)/generated/_exp_c10.F90 \
|
|
$(srcdir)/generated/_exp_c16.F90 \
|
|
$(srcdir)/generated/_log_r4.F90 \
|
|
$(srcdir)/generated/_log_r8.F90 \
|
|
$(srcdir)/generated/_log_r10.F90 \
|
|
$(srcdir)/generated/_log_r16.F90 \
|
|
$(srcdir)/generated/_log_c4.F90 \
|
|
$(srcdir)/generated/_log_c8.F90 \
|
|
$(srcdir)/generated/_log_c10.F90 \
|
|
$(srcdir)/generated/_log_c16.F90 \
|
|
$(srcdir)/generated/_log10_r4.F90 \
|
|
$(srcdir)/generated/_log10_r8.F90 \
|
|
$(srcdir)/generated/_log10_r10.F90 \
|
|
$(srcdir)/generated/_log10_r16.F90 \
|
|
$(srcdir)/generated/_sqrt_r4.F90 \
|
|
$(srcdir)/generated/_sqrt_r8.F90 \
|
|
$(srcdir)/generated/_sqrt_r10.F90 \
|
|
$(srcdir)/generated/_sqrt_r16.F90 \
|
|
$(srcdir)/generated/_sqrt_c4.F90 \
|
|
$(srcdir)/generated/_sqrt_c8.F90 \
|
|
$(srcdir)/generated/_sqrt_c10.F90 \
|
|
$(srcdir)/generated/_sqrt_c16.F90 \
|
|
$(srcdir)/generated/_asin_r4.F90 \
|
|
$(srcdir)/generated/_asin_r8.F90 \
|
|
$(srcdir)/generated/_asin_r10.F90 \
|
|
$(srcdir)/generated/_asin_r16.F90 \
|
|
$(srcdir)/generated/_asinh_r4.F90 \
|
|
$(srcdir)/generated/_asinh_r8.F90 \
|
|
$(srcdir)/generated/_asinh_r10.F90 \
|
|
$(srcdir)/generated/_asinh_r16.F90 \
|
|
$(srcdir)/generated/_acos_r4.F90 \
|
|
$(srcdir)/generated/_acos_r8.F90 \
|
|
$(srcdir)/generated/_acos_r10.F90 \
|
|
$(srcdir)/generated/_acos_r16.F90 \
|
|
$(srcdir)/generated/_acosh_r4.F90 \
|
|
$(srcdir)/generated/_acosh_r8.F90 \
|
|
$(srcdir)/generated/_acosh_r10.F90 \
|
|
$(srcdir)/generated/_acosh_r16.F90 \
|
|
$(srcdir)/generated/_atan_r4.F90 \
|
|
$(srcdir)/generated/_atan_r8.F90 \
|
|
$(srcdir)/generated/_atan_r10.F90 \
|
|
$(srcdir)/generated/_atan_r16.F90 \
|
|
$(srcdir)/generated/_atanh_r4.F90 \
|
|
$(srcdir)/generated/_atanh_r8.F90 \
|
|
$(srcdir)/generated/_atanh_r10.F90 \
|
|
$(srcdir)/generated/_atanh_r16.F90 \
|
|
$(srcdir)/generated/_sin_r4.F90 \
|
|
$(srcdir)/generated/_sin_r8.F90 \
|
|
$(srcdir)/generated/_sin_r10.F90 \
|
|
$(srcdir)/generated/_sin_r16.F90 \
|
|
$(srcdir)/generated/_sin_c4.F90 \
|
|
$(srcdir)/generated/_sin_c8.F90 \
|
|
$(srcdir)/generated/_sin_c10.F90 \
|
|
$(srcdir)/generated/_sin_c16.F90 \
|
|
$(srcdir)/generated/_cos_r4.F90 \
|
|
$(srcdir)/generated/_cos_r8.F90 \
|
|
$(srcdir)/generated/_cos_r10.F90 \
|
|
$(srcdir)/generated/_cos_r16.F90 \
|
|
$(srcdir)/generated/_cos_c4.F90 \
|
|
$(srcdir)/generated/_cos_c8.F90 \
|
|
$(srcdir)/generated/_cos_c10.F90 \
|
|
$(srcdir)/generated/_cos_c16.F90 \
|
|
$(srcdir)/generated/_tan_r4.F90 \
|
|
$(srcdir)/generated/_tan_r8.F90 \
|
|
$(srcdir)/generated/_tan_r10.F90 \
|
|
$(srcdir)/generated/_tan_r16.F90 \
|
|
$(srcdir)/generated/_sinh_r4.F90 \
|
|
$(srcdir)/generated/_sinh_r8.F90 \
|
|
$(srcdir)/generated/_sinh_r10.F90 \
|
|
$(srcdir)/generated/_sinh_r16.F90 \
|
|
$(srcdir)/generated/_cosh_r4.F90 \
|
|
$(srcdir)/generated/_cosh_r8.F90 \
|
|
$(srcdir)/generated/_cosh_r10.F90 \
|
|
$(srcdir)/generated/_cosh_r16.F90 \
|
|
$(srcdir)/generated/_tanh_r4.F90 \
|
|
$(srcdir)/generated/_tanh_r8.F90 \
|
|
$(srcdir)/generated/_tanh_r10.F90 \
|
|
$(srcdir)/generated/_tanh_r16.F90 \
|
|
$(srcdir)/generated/_conjg_c4.F90 \
|
|
$(srcdir)/generated/_conjg_c8.F90 \
|
|
$(srcdir)/generated/_conjg_c10.F90 \
|
|
$(srcdir)/generated/_conjg_c16.F90 \
|
|
$(srcdir)/generated/_aint_r4.F90 \
|
|
$(srcdir)/generated/_aint_r8.F90 \
|
|
$(srcdir)/generated/_aint_r10.F90 \
|
|
$(srcdir)/generated/_aint_r16.F90 \
|
|
$(srcdir)/generated/_anint_r4.F90 \
|
|
$(srcdir)/generated/_anint_r8.F90 \
|
|
$(srcdir)/generated/_anint_r10.F90 \
|
|
$(srcdir)/generated/_anint_r16.F90
|
|
|
|
gfor_built_specific2_src= \
|
|
$(srcdir)/generated/_sign_i4.F90 \
|
|
$(srcdir)/generated/_sign_i8.F90 \
|
|
$(srcdir)/generated/_sign_i16.F90 \
|
|
$(srcdir)/generated/_sign_r4.F90 \
|
|
$(srcdir)/generated/_sign_r8.F90 \
|
|
$(srcdir)/generated/_sign_r10.F90 \
|
|
$(srcdir)/generated/_sign_r16.F90 \
|
|
$(srcdir)/generated/_dim_i4.F90 \
|
|
$(srcdir)/generated/_dim_i8.F90 \
|
|
$(srcdir)/generated/_dim_i16.F90 \
|
|
$(srcdir)/generated/_dim_r4.F90 \
|
|
$(srcdir)/generated/_dim_r8.F90 \
|
|
$(srcdir)/generated/_dim_r10.F90 \
|
|
$(srcdir)/generated/_dim_r16.F90 \
|
|
$(srcdir)/generated/_atan2_r4.F90 \
|
|
$(srcdir)/generated/_atan2_r8.F90 \
|
|
$(srcdir)/generated/_atan2_r10.F90 \
|
|
$(srcdir)/generated/_atan2_r16.F90 \
|
|
$(srcdir)/generated/_mod_i4.F90 \
|
|
$(srcdir)/generated/_mod_i8.F90 \
|
|
$(srcdir)/generated/_mod_i16.F90 \
|
|
$(srcdir)/generated/_mod_r4.F90 \
|
|
$(srcdir)/generated/_mod_r8.F90 \
|
|
$(srcdir)/generated/_mod_r10.F90 \
|
|
$(srcdir)/generated/_mod_r16.F90
|
|
|
|
gfor_misc_specifics = $(srcdir)/generated/misc_specifics.F90
|
|
|
|
gfor_specific_src= \
|
|
$(gfor_built_specific_src) \
|
|
$(gfor_built_specific2_src) \
|
|
$(gfor_misc_specifics) \
|
|
intrinsics/dprod_r8.f90 \
|
|
intrinsics/f2c_specifics.F90
|
|
|
|
# No install-html or install-pdf support in automake yet
|
|
.PHONY: install-html install-pdf
|
|
install-html:
|
|
install-pdf:
|
|
|
|
# Turn on vectorization and loop unrolling for matmul.
|
|
$(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS += -ftree-vectorize -funroll-loops
|
|
# Logical matmul doesn't vectorize.
|
|
$(patsubst %.c,%.lo,$(notdir $(i_matmull_c))): AM_CFLAGS += -funroll-loops
|
|
|
|
# Add the -fallow-leading-underscore option when needed
|
|
$(patsubst %.F90,%.lo,$(patsubst %.f90,%.lo,$(notdir $(gfor_specific_src)))): AM_FCFLAGS += -fallow-leading-underscore
|
|
selected_real_kind.lo selected_int_kind.lo: AM_FCFLAGS += -fallow-leading-underscore
|
|
|
|
BUILT_SOURCES=$(gfor_built_src) $(gfor_built_specific_src) \
|
|
$(gfor_built_specific2_src) $(gfor_misc_specifics)
|
|
libgfortran_la_SOURCES = $(gfor_src) $(gfor_built_src) $(gfor_io_src) \
|
|
$(gfor_helper_src) $(gfor_io_headers) $(gfor_specific_src)
|
|
|
|
I_M4_DEPS=m4/iparm.m4
|
|
I_M4_DEPS0=$(I_M4_DEPS) m4/iforeach.m4
|
|
I_M4_DEPS1=$(I_M4_DEPS) m4/ifunction.m4
|
|
|
|
kinds.h: $(srcdir)/mk-kinds-h.sh
|
|
$(SHELL) $(srcdir)/mk-kinds-h.sh '$(FCCOMPILE)' > $@ || rm $@
|
|
|
|
kinds.inc: kinds.h
|
|
grep '^#' < kinds.h > $@
|
|
|
|
c99_protos.inc: $(srcdir)/c99_protos.h
|
|
grep '^#' < $(srcdir)/c99_protos.h > $@
|
|
|
|
selected_int_kind.inc: $(srcdir)/mk-sik-inc.sh
|
|
$(SHELL) $(srcdir)/mk-sik-inc.sh '$(FCCOMPILE)' > $@ || rm $@
|
|
|
|
selected_real_kind.inc: $(srcdir)/mk-srk-inc.sh
|
|
$(SHELL) $(srcdir)/mk-srk-inc.sh '$(FCCOMPILE)' > $@ || rm $@
|
|
|
|
fpu-target.h: $(srcdir)/$(FPU_HOST_HEADER)
|
|
cp $(srcdir)/$(FPU_HOST_HEADER) $@
|
|
|
|
## A 'normal' build shouldn't need to regenerate these
|
|
## so we only include them in maintainer mode
|
|
|
|
if MAINTAINER_MODE
|
|
$(i_all_c): m4/all.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 all.m4 > $@
|
|
|
|
$(i_any_c): m4/any.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 any.m4 > $@
|
|
|
|
$(i_count_c): m4/count.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 count.m4 > $@
|
|
|
|
$(i_maxloc0_c): m4/maxloc0.m4 $(I_M4_DEPS0)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 maxloc0.m4 > $@
|
|
|
|
$(i_maxloc1_c): m4/maxloc1.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 maxloc1.m4 > $@
|
|
|
|
$(i_maxval_c): m4/maxval.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 maxval.m4 > $@
|
|
|
|
$(i_minloc0_c): m4/minloc0.m4 $(I_M4_DEPS0)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 minloc0.m4 > $@
|
|
|
|
$(i_minloc1_c): m4/minloc1.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 minloc1.m4 > $@
|
|
|
|
$(i_minval_c): m4/minval.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 minval.m4 > $@
|
|
|
|
$(i_product_c): m4/product.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 product.m4 > $@
|
|
|
|
$(i_sum_c): m4/sum.m4 $(I_M4_DEPS1)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 sum.m4 > $@
|
|
|
|
$(i_matmul_c): m4/matmul.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 matmul.m4 > $@
|
|
|
|
$(i_matmull_c): m4/matmull.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 matmull.m4 > $@
|
|
|
|
$(i_transpose_c): m4/transpose.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 transpose.m4 > $@
|
|
|
|
$(i_shape_c): m4/shape.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 shape.m4 > $@
|
|
|
|
$(i_reshape_c): m4/reshape.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 reshape.m4 > $@
|
|
|
|
$(i_eoshift1_c): m4/eoshift1.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 eoshift1.m4 > $@
|
|
|
|
$(i_eoshift3_c): m4/eoshift3.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 eoshift3.m4 > $@
|
|
|
|
$(i_cshift1_c): m4/cshift1.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 cshift1.m4 > $@
|
|
|
|
$(in_pack_c): m4/in_pack.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 in_pack.m4 > $@
|
|
|
|
$(in_unpack_c): m4/in_unpack.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 in_unpack.m4 > $@
|
|
|
|
$(i_exponent_c): m4/exponent.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 exponent.m4 > $@
|
|
|
|
$(i_rrspacing_c): m4/rrspacing.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 rrspacing.m4 > $@
|
|
|
|
$(i_spacing_c): m4/spacing.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 spacing.m4 > $@
|
|
|
|
$(i_fraction_c): m4/fraction.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 fraction.m4 > $@
|
|
|
|
$(i_nearest_c): m4/nearest.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 nearest.m4 > $@
|
|
|
|
$(i_set_exponent_c): m4/set_exponent.m4 m4/mtype.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 set_exponent.m4 > $@
|
|
|
|
$(i_pow_c): m4/pow.m4 $(I_M4_DEPS)
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 pow.m4 > $@
|
|
|
|
$(gfor_built_specific_src): m4/specific.m4 m4/head.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 specific.m4 > $@
|
|
|
|
$(gfor_built_specific2_src): m4/specific2.m4 m4/head.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 specific2.m4 > $@
|
|
|
|
$(gfor_misc_specifics): m4/misc_specifics.m4 m4/head.m4
|
|
$(M4) -Dfile=$@ -I$(srcdir)/m4 misc_specifics.m4 > $@
|
|
## end of maintainer mode only rules
|
|
endif
|
|
|
|
EXTRA_DIST = $(m4_files)
|