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