]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/Makefile.am
fortran.exp: Add flags in case of shared only build.
[thirdparty/gcc.git] / libgomp / Makefile.am
CommitLineData
953ff289
DN
1## Process this file with automake to produce Makefile.in
2
6b2c5ce0 3ACLOCAL_AMFLAGS = -I .. -I ../config
953ff289
DN
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
dd8d6dfe 12fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude
571d5ac5 13libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
dd8d6dfe 14
d683ec81 15vpath % $(strip $(search_path))
953ff289
DN
16
17AM_CPPFLAGS = $(addprefix -I, $(search_path))
18AM_CFLAGS = $(XCFLAGS)
19AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS)
20
21toolexeclib_LTLIBRARIES = libgomp.la
22nodist_toolexeclib_HEADERS = libgomp.spec
23
24if LIBGOMP_BUILD_VERSIONED_SHLIB
25libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map
26else
27libgomp_version_script =
28endif
29libgomp_version_info = -version-info $(libtool_VERSION)
6528b88d
AL
30libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) \
31 -no-undefined
953ff289
DN
32
33libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \
a68ab351
JJ
34 iter_ull.c loop.c loop_ull.c ordered.c parallel.c sections.c single.c \
35 task.c team.c work.c lock.c mutex.c proc.c sem.c bar.c ptrlock.c \
36 time.c fortran.c affinity.c
953ff289
DN
37
38nodist_noinst_HEADERS = libgomp_f.h
571d5ac5 39nodist_libsubinclude_HEADERS = omp.h
953ff289 40if USE_FORTRAN
dd8d6dfe 41nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod
953ff289
DN
42endif
43
479c15c2
NF
44LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
45
46LINK = $(LIBTOOL) --tag CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
47 $(AM_LDFLAGS) $(LTLDFLAGS) -o $@
48
953ff289
DN
49omp_lib_kinds.mod: omp_lib.mod
50 :
51omp_lib.mod: omp_lib.f90
52 $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90
53fortran.lo: libgomp_f.h
54fortran.o: libgomp_f.h
55env.lo: libgomp_f.h
56env.o: libgomp_f.h
6667de0d 57
3721b9e1 58
c4dc950d
BM
59# No install-html or install-pdf support in automake yet
60.PHONY: install-html install-pdf
6667de0d
CD
61install-html:
62
c4dc950d
BM
63install-pdf: $(PDFS)
64 @$(NORMAL_INSTALL)
65 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
66 @list='$(PDFS)'; for p in $$list; do \
67 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
68 f=$(am__strip_dir) \
69 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
70 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
71 done
3721b9e1
DF
72
73# Automake Documentation:
74# If your package has Texinfo files in many directories, you can use the
75# variable TEXINFO_TEX to tell Automake where to find the canonical
76# `texinfo.tex' for your package. The value of this variable should be
77# the relative path from the current `Makefile.am' to `texinfo.tex'.
78TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
79
80# Defines info, dvi, pdf and html targets
81MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
82info_TEXINFOS = libgomp.texi
83
84# AM_CONDITIONAL on configure option --generated-files-in-srcdir
85if GENINSRC
86STAMP_GENINSRC = stamp-geninsrc
87else
88STAMP_GENINSRC =
89endif
90
748b9d7c
DF
91# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
92if BUILD_INFO
93STAMP_BUILD_INFO = stamp-build-info
94else
95STAMP_BUILD_INFO =
96endif
97
98
3721b9e1
DF
99all-local: $(STAMP_GENINSRC)
100
101stamp-geninsrc: libgomp.info
748b9d7c
DF
102 cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info
103 @touch $@
104
105libgomp.info: $(STAMP_BUILD_INFO)
106
107stamp-build-info: libgomp.texi
108 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi
109 @touch $@
110
3721b9e1 111
748b9d7c 112CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info
3721b9e1 113MAINTAINERCLEANFILES = $(srcdir)/libgomp.info