]>
Commit | Line | Data |
---|---|---|
953ff289 DN |
1 | ## Process this file with automake to produce Makefile.in |
2 | ||
3 | ACLOCAL_AMFLAGS = -I ../config | |
4 | SUBDIRS = testsuite | |
5 | ||
6 | ## May be used by toolexeclibdir. | |
7 | gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) | |
8 | ||
9 | config_path = @config_path@ | |
10 | search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir) | |
11 | ||
dd8d6dfe | 12 | fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude |
571d5ac5 | 13 | libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include |
dd8d6dfe | 14 | |
953ff289 DN |
15 | empty = |
16 | space = $(empty) $(empty) | |
17 | VPATH = $(subst $(space),:,$(strip $(search_path))) | |
18 | ||
19 | AM_CPPFLAGS = $(addprefix -I, $(search_path)) | |
20 | AM_CFLAGS = $(XCFLAGS) | |
21 | AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) | |
22 | ||
23 | toolexeclib_LTLIBRARIES = libgomp.la | |
24 | nodist_toolexeclib_HEADERS = libgomp.spec | |
25 | ||
26 | if LIBGOMP_BUILD_VERSIONED_SHLIB | |
27 | libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map | |
28 | else | |
29 | libgomp_version_script = | |
30 | endif | |
31 | libgomp_version_info = -version-info $(libtool_VERSION) | |
32 | libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) | |
33 | ||
34 | libgomp_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 | ||
38 | nodist_noinst_HEADERS = libgomp_f.h | |
571d5ac5 | 39 | nodist_libsubinclude_HEADERS = omp.h |
953ff289 | 40 | if USE_FORTRAN |
dd8d6dfe | 41 | nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod |
953ff289 DN |
42 | endif |
43 | ||
953ff289 DN |
44 | omp_lib_kinds.mod: omp_lib.mod |
45 | : | |
46 | omp_lib.mod: omp_lib.f90 | |
47 | $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90 | |
48 | fortran.lo: libgomp_f.h | |
49 | fortran.o: libgomp_f.h | |
50 | env.lo: libgomp_f.h | |
51 | env.o: libgomp_f.h | |
6667de0d | 52 | |
3721b9e1 | 53 | |
6667de0d CD |
54 | # No install-html target |
55 | .PHONY: install-html | |
56 | install-html: | |
57 | ||
3721b9e1 DF |
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'. | |
64 | TEXINFO_TEX = ../gcc/doc/include/texinfo.tex | |
65 | ||
66 | # Defines info, dvi, pdf and html targets | |
67 | MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include | |
68 | info_TEXINFOS = libgomp.texi | |
69 | ||
70 | # AM_CONDITIONAL on configure option --generated-files-in-srcdir | |
71 | if GENINSRC | |
72 | STAMP_GENINSRC = stamp-geninsrc | |
73 | else | |
74 | STAMP_GENINSRC = | |
75 | endif | |
76 | ||
77 | all-local: $(STAMP_GENINSRC) | |
78 | ||
79 | stamp-geninsrc: libgomp.info | |
80 | -cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info | |
81 | touch $@ | |
82 | ||
83 | CLEANFILES = stamp-geninsrc libgomp.info | |
84 | MAINTAINERCLEANFILES = $(srcdir)/libgomp.info |