1 ## Process this file with automake to produce Makefile.in
3 ACLOCAL_AMFLAGS = -I .. -I ../config
6 ## May be used by toolexeclibdir.
7 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
9 config_path = @config_path@
10 search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir)
12 fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude
13 libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
15 vpath % $(strip $(search_path))
17 AM_CPPFLAGS = $(addprefix -I, $(search_path))
18 AM_CFLAGS = $(XCFLAGS)
19 AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS)
21 toolexeclib_LTLIBRARIES = libgomp.la
22 nodist_toolexeclib_HEADERS = libgomp.spec
24 if LIBGOMP_BUILD_VERSIONED_SHLIB
25 if LIBGOMP_BUILD_VERSIONED_SHLIB_GNU
26 if LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2
27 libgomp_version_script = -Wl,--version-script,libgomp.map-sol2
28 libgomp_version_dep = libgomp.map-sol2
29 libgomp.map-sol2 : $(top_srcdir)/libgomp.map
30 sed -e '/^#ifdef HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT/,/^#endif/d' $< \
31 > $@ || (rm -f $@ ; exit 1)
33 libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map
34 libgomp_version_dep = $(top_srcdir)/libgomp.map
37 if LIBGOMP_BUILD_VERSIONED_SHLIB_SUN
38 libgomp_version_script = -Wl,-M,libgomp.map-sun
39 libgomp_version_dep = libgomp.map-sun
40 libgomp.map-sun : $(top_srcdir)/libgomp.map \
41 $(top_srcdir)/../contrib/make_sunver.pl \
42 $(libgomp_la_OBJECTS) $(libgomp_la_LIBADD)
43 perl $(top_srcdir)/../contrib/make_sunver.pl \
44 $(top_srcdir)/libgomp.map \
45 $(libgomp_la_OBJECTS:%.lo=.libs/%.o) \
46 `echo $(libgomp_la_LIBADD) | \
47 sed 's,/\([^/.]*\)\.la,/.libs/\1.a,g'` \
48 > $@ || (rm -f $@ ; exit 1)
51 libgomp_version_script =
54 libgomp_version_info = -version-info $(libtool_VERSION)
55 libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) \
56 -no-undefined -bindir "$(bindir)"
57 libgomp_la_DEPENDENCIES = $(libgomp_version_dep)
58 libgomp_la_LINK = $(LINK) $(libgomp_la_LDFLAGS)
60 libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \
61 iter_ull.c loop.c loop_ull.c ordered.c parallel.c sections.c single.c \
62 task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c \
63 time.c fortran.c affinity.c
65 nodist_noinst_HEADERS = libgomp_f.h
66 nodist_libsubinclude_HEADERS = omp.h
68 nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod
71 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
73 LINK = $(LIBTOOL) --tag CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
74 $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LTLDFLAGS) -o $@
76 omp_lib_kinds.mod: omp_lib.mod
78 omp_lib.mod: omp_lib.f90
79 $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90
80 fortran.lo: libgomp_f.h
81 fortran.o: libgomp_f.h
86 # Automake Documentation:
87 # If your package has Texinfo files in many directories, you can use the
88 # variable TEXINFO_TEX to tell Automake where to find the canonical
89 # `texinfo.tex' for your package. The value of this variable should be
90 # the relative path from the current `Makefile.am' to `texinfo.tex'.
91 TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
93 # Defines info, dvi, pdf and html targets
94 MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
95 info_TEXINFOS = libgomp.texi
97 # AM_CONDITIONAL on configure option --generated-files-in-srcdir
99 STAMP_GENINSRC = stamp-geninsrc
104 # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
106 STAMP_BUILD_INFO = stamp-build-info
112 all-local: $(STAMP_GENINSRC)
114 stamp-geninsrc: libgomp.info
115 cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info
118 libgomp.info: $(STAMP_BUILD_INFO)
120 stamp-build-info: libgomp.texi
121 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi
125 CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info
126 MAINTAINERCLEANFILES = $(srcdir)/libgomp.info