xref: /openbsd/gnu/gcc/libgomp/Makefile.am (revision 404b540a)
1## Process this file with automake to produce Makefile.in
2
3ACLOCAL_AMFLAGS = -I ../config
4SUBDIRS = testsuite
5
6## May be used by toolexeclibdir.
7gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
8
9config_path = @config_path@
10search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir)
11
12fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude
13libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
14
15empty =
16space = $(empty) $(empty)
17VPATH = $(subst $(space),:,$(strip $(search_path)))
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
27libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map
28else
29libgomp_version_script =
30endif
31libgomp_version_info = -version-info $(libtool_VERSION)
32libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script)
33
34libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \
35	loop.c ordered.c parallel.c sections.c single.c team.c work.c \
36	lock.c mutex.c proc.c sem.c bar.c time.c fortran.c
37
38nodist_noinst_HEADERS = libgomp_f.h
39nodist_libsubinclude_HEADERS = omp.h
40if USE_FORTRAN
41nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod
42endif
43
44omp_lib_kinds.mod: omp_lib.mod
45	:
46omp_lib.mod: omp_lib.f90
47	$(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90
48fortran.lo: libgomp_f.h
49fortran.o: libgomp_f.h
50env.lo: libgomp_f.h
51env.o: libgomp_f.h
52
53
54# No install-html target
55.PHONY: install-html
56install-html:
57
58
59# Automake Documentation:
60# If your package has Texinfo files in many directories, you can use the
61# variable TEXINFO_TEX to tell Automake where to find the canonical
62# `texinfo.tex' for your package. The value of this variable should be
63# the relative path from the current `Makefile.am' to `texinfo.tex'.
64TEXINFO_TEX   = ../gcc/doc/include/texinfo.tex
65
66# Defines info, dvi, pdf and html targets
67MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
68info_TEXINFOS = libgomp.texi
69
70# AM_CONDITIONAL on configure option --generated-files-in-srcdir
71if GENINSRC
72STAMP_GENINSRC = stamp-geninsrc
73else
74STAMP_GENINSRC =
75endif
76
77# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
78if BUILD_INFO
79STAMP_BUILD_INFO = stamp-build-info
80else
81STAMP_BUILD_INFO =
82endif
83
84
85all-local: $(STAMP_GENINSRC)
86
87stamp-geninsrc: libgomp.info
88	cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info
89	@touch $@
90
91libgomp.info: $(STAMP_BUILD_INFO)
92
93stamp-build-info: libgomp.texi
94	$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi
95	@touch $@
96
97
98CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info
99MAINTAINERCLEANFILES = $(srcdir)/libgomp.info
100