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