annotate libgomp/Makefile.am @ 155:da32f4b04d38

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