| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
|
| 3 |
AUTOMAKE_OPTIONS = info-in-builddir |
| 4 |
ACLOCAL_AMFLAGS = -I .. -I ../config |
| 5 |
SUBDIRS = testsuite |
| 6 |
|
| 7 |
## May be used by toolexeclibdir. |
| 8 |
gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER) |
| 9 |
|
| 10 |
config_path = @config_path@ |
| 11 |
search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir) \ |
| 12 |
$(top_srcdir)/../include |
| 13 |
|
| 14 |
fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)/finclude |
| 15 |
libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include |
| 16 |
|
| 17 |
vpath % $(strip $(search_path)) |
| 18 |
|
| 19 |
AM_CPPFLAGS = $(addprefix -I, $(search_path)) |
| 20 |
AM_CFLAGS = $(XCFLAGS) |
| 21 |
AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) |
| 22 |
|
| 23 |
toolexeclib_LTLIBRARIES = libgomp.la |
| 24 |
nodist_toolexeclib_HEADERS = libgomp.spec |
| 25 |
|
| 26 |
if LIBGOMP_BUILD_VERSIONED_SHLIB |
| 27 |
# -Wc is only a libtool option. |
| 28 |
comma = , |
| 29 |
PREPROCESS = $(subst -Wc$(comma), , $(COMPILE)) -E |
| 30 |
|
| 31 |
libgomp.ver: $(top_srcdir)/libgomp.map |
| 32 |
$(EGREP) -v '#(#| |$$)' $< | \ |
| 33 |
$(PREPROCESS) -P -include config.h - > $@ || (rm -f $@ ; exit 1) |
| 34 |
|
| 35 |
if LIBGOMP_BUILD_VERSIONED_SHLIB_GNU |
| 36 |
libgomp_version_script = -Wl,--version-script,libgomp.ver |
| 37 |
libgomp_version_dep = libgomp.ver |
| 38 |
endif |
| 39 |
if LIBGOMP_BUILD_VERSIONED_SHLIB_SUN |
| 40 |
libgomp_version_script = -Wl,-M,libgomp.ver-sun |
| 41 |
libgomp_version_dep = libgomp.ver-sun |
| 42 |
libgomp.ver-sun : libgomp.ver \ |
| 43 |
$(top_srcdir)/../contrib/make_sunver.pl \ |
| 44 |
$(libgomp_la_OBJECTS) $(libgomp_la_LIBADD) |
| 45 |
perl $(top_srcdir)/../contrib/make_sunver.pl \ |
| 46 |
libgomp.ver \ |
| 47 |
$(libgomp_la_OBJECTS) $(libgomp_la_LIBADD) \ |
| 48 |
> $@ || (rm -f $@ ; exit 1) |
| 49 |
endif |
| 50 |
else |
| 51 |
libgomp_version_script = |
| 52 |
libgomp_version_dep = |
| 53 |
endif |
| 54 |
|
| 55 |
libgomp_version_info = -version-info $(libtool_VERSION) |
| 56 |
if ENABLE_DARWIN_AT_RPATH |
| 57 |
libgomp_darwin_rpath = -Wc,-nodefaultrpaths |
| 58 |
libgomp_darwin_rpath += -Wl,-rpath,@loader_path |
| 59 |
endif |
| 60 |
libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) \ |
| 61 |
$(lt_host_flags) $(libgomp_darwin_rpath) |
| 62 |
libgomp_la_LIBADD = |
| 63 |
libgomp_la_DEPENDENCIES = $(libgomp_version_dep) |
| 64 |
libgomp_la_LINK = $(LINK) $(libgomp_la_LDFLAGS) |
| 65 |
|
| 66 |
libgomp_la_SOURCES = alloc.c atomic.c barrier.c critical.c env.c error.c \ |
| 67 |
icv.c icv-device.c iter.c iter_ull.c loop.c loop_ull.c ordered.c \ |
| 68 |
parallel.c scope.c sections.c single.c task.c team.c work.c lock.c \ |
| 69 |
mutex.c proc.c sem.c bar.c ptrlock.c time.c fortran.c affinity.c \ |
| 70 |
target.c splay-tree.c libgomp-plugin.c oacc-parallel.c oacc-host.c \ |
| 71 |
oacc-init.c oacc-mem.c oacc-async.c oacc-plugin.c oacc-cuda.c \ |
| 72 |
priority_queue.c affinity-fmt.c teams.c allocator.c oacc-profiling.c \ |
| 73 |
oacc-target.c target-indirect.c target-cxa-dso-dtor.c |
| 74 |
|
| 75 |
include $(top_srcdir)/plugin/Makefrag.am |
| 76 |
|
| 77 |
if USE_FORTRAN |
| 78 |
libgomp_la_SOURCES += openacc.f90 |
| 79 |
endif |
| 80 |
|
| 81 |
nodist_noinst_HEADERS = libgomp_f.h |
| 82 |
nodist_libsubinclude_HEADERS = omp.h openacc.h acc_prof.h |
| 83 |
if USE_FORTRAN |
| 84 |
nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod \ |
| 85 |
openacc_lib.h openacc.f90 openacc.mod openacc_kinds.mod |
| 86 |
endif |
| 87 |
|
| 88 |
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS)) |
| 89 |
|
| 90 |
LINK = $(LIBTOOL) --tag CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ |
| 91 |
$(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LTLDFLAGS) -o $@ |
| 92 |
|
| 93 |
omp_lib_kinds.mod: omp_lib.mod |
| 94 |
: |
| 95 |
openacc_kinds.mod: openacc.mod |
| 96 |
: |
| 97 |
openacc.mod: openacc.lo |
| 98 |
: |
| 99 |
%.mod: %.f90 |
| 100 |
$(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only -Wno-c-binding-type $< |
| 101 |
fortran.lo: libgomp_f.h |
| 102 |
fortran.o: libgomp_f.h |
| 103 |
env.lo: libgomp_f.h |
| 104 |
env.o: libgomp_f.h |
| 105 |
|
| 106 |
|
| 107 |
# Automake Documentation: |
| 108 |
# If your package has Texinfo files in many directories, you can use the |
| 109 |
# variable TEXINFO_TEX to tell Automake where to find the canonical |
| 110 |
# `texinfo.tex' for your package. The value of this variable should be |
| 111 |
# the relative path from the current `Makefile.am' to `texinfo.tex'. |
| 112 |
TEXINFO_TEX = ../gcc/doc/include/texinfo.tex |
| 113 |
|
| 114 |
# Defines info, dvi, pdf and html targets |
| 115 |
MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include |
| 116 |
info_TEXINFOS = libgomp.texi |
| 117 |
|
| 118 |
# AM_CONDITIONAL on configure option --generated-files-in-srcdir |
| 119 |
if GENINSRC |
| 120 |
STAMP_GENINSRC = stamp-geninsrc |
| 121 |
else |
| 122 |
STAMP_GENINSRC = |
| 123 |
endif |
| 124 |
|
| 125 |
# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO]) |
| 126 |
if BUILD_INFO |
| 127 |
STAMP_BUILD_INFO = stamp-build-info |
| 128 |
else |
| 129 |
STAMP_BUILD_INFO = |
| 130 |
endif |
| 131 |
|
| 132 |
|
| 133 |
all-local: $(STAMP_GENINSRC) |
| 134 |
|
| 135 |
stamp-geninsrc: libgomp.info |
| 136 |
cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info |
| 137 |
@touch $@ |
| 138 |
|
| 139 |
libgomp.info: $(STAMP_BUILD_INFO) |
| 140 |
|
| 141 |
stamp-build-info: libgomp.texi |
| 142 |
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi |
| 143 |
@touch $@ |
| 144 |
|
| 145 |
|
| 146 |
CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) |
| 147 |
MAINTAINERCLEANFILES = $(srcdir)/libgomp.info |
| 148 |
|
| 149 |
# target overrides |
| 150 |
-include $(tmake_file) |
| 151 |
|
| 152 |
include $(top_srcdir)/../multilib.am |