Makefile.am revision 282152
1## Process this file with automake to produce Makefile.in 2 3ACLOCAL_AMFLAGS = -I .. -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 15vpath % $(strip $(search_path)) 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) 30libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) 31 32libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \ 33 loop.c ordered.c parallel.c sections.c single.c team.c work.c \ 34 lock.c mutex.c proc.c sem.c bar.c time.c fortran.c affinity.c 35 36nodist_noinst_HEADERS = libgomp_f.h 37nodist_libsubinclude_HEADERS = omp.h 38if USE_FORTRAN 39nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod 40endif 41 42omp_lib_kinds.mod: omp_lib.mod 43 : 44omp_lib.mod: omp_lib.f90 45 $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90 46fortran.lo: libgomp_f.h 47fortran.o: libgomp_f.h 48env.lo: libgomp_f.h 49env.o: libgomp_f.h 50 51 52# No install-html or install-pdf support in automake yet 53.PHONY: install-html install-pdf 54install-html: 55 56install-pdf: $(PDFS) 57 @$(NORMAL_INSTALL) 58 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)" 59 @list='$(PDFS)'; for p in $$list; do \ 60 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 61 f=$(am__strip_dir) \ 62 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ 63 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ 64 done 65 66# Automake Documentation: 67# If your package has Texinfo files in many directories, you can use the 68# variable TEXINFO_TEX to tell Automake where to find the canonical 69# `texinfo.tex' for your package. The value of this variable should be 70# the relative path from the current `Makefile.am' to `texinfo.tex'. 71TEXINFO_TEX = ../gcc/doc/include/texinfo.tex 72 73# Defines info, dvi, pdf and html targets 74MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include 75info_TEXINFOS = libgomp.texi 76 77# AM_CONDITIONAL on configure option --generated-files-in-srcdir 78if GENINSRC 79STAMP_GENINSRC = stamp-geninsrc 80else 81STAMP_GENINSRC = 82endif 83 84# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO]) 85if BUILD_INFO 86STAMP_BUILD_INFO = stamp-build-info 87else 88STAMP_BUILD_INFO = 89endif 90 91 92all-local: $(STAMP_GENINSRC) 93 94stamp-geninsrc: libgomp.info 95 cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info 96 @touch $@ 97 98libgomp.info: $(STAMP_BUILD_INFO) 99 100stamp-build-info: libgomp.texi 101 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi 102 @touch $@ 103 104 105CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info 106MAINTAINERCLEANFILES = $(srcdir)/libgomp.info 107