"Fossies" - the Fresh Open Source Software Archive

Member "gawk-5.1.0/extension/Makefile.am" (20 Mar 2020, 4514 Bytes) of package /linux/misc/gawk-5.1.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 5.0.1_vs_5.1.0.

    1 #
    2 # extension/Makefile.am --- automake input file for gawk
    3 #
    4 # Copyright (C) 1995-2006, 2012-2015, 2017, 2020,
    5 # the Free Software Foundation, Inc.
    6 #
    7 # This file is part of GAWK, the GNU implementation of the
    8 # AWK Programming Language.
    9 #
   10 # GAWK is free software; you can redistribute it and/or modify
   11 # it under the terms of the GNU General Public License as published by
   12 # the Free Software Foundation; either version 3 of the License, or
   13 # (at your option) any later version.
   14 #
   15 # GAWK is distributed in the hope that it will be useful,
   16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18 # GNU General Public License for more details.
   19 #
   20 # You should have received a copy of the GNU General Public License
   21 # along with this program; if not, write to the Free Software
   22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
   23 #
   24 
   25 ## Process this file with automake to produce Makefile.in.
   26 
   27 AM_CPPFLAGS = -I$(srcdir)/..
   28 
   29 # This variable insures that aclocal runs
   30 # correctly after changing configure.ac
   31 ACLOCAL_AMFLAGS = -I m4 -I ../m4
   32 
   33 # For some make's, e.g. OpenBSD, that don't define this
   34 RM = rm -f
   35 
   36 # Note: rwarray does not currently compile.
   37 
   38 pkgextension_LTLIBRARIES =	\
   39 	filefuncs.la	\
   40 	fnmatch.la	\
   41 	fork.la		\
   42 	inplace.la	\
   43 	intdiv.la	\
   44 	ordchr.la	\
   45 	readdir.la	\
   46 	readfile.la	\
   47 	revoutput.la	\
   48 	revtwoway.la	\
   49 	rwarray.la	\
   50 	time.la
   51 
   52 noinst_LTLIBRARIES =	\
   53 	readdir_test.la	\
   54 	testext.la
   55 
   56 MY_MODULE_FLAGS = -module -avoid-version -no-undefined
   57 # On Cygwin, gettext requires that we link with -lintl
   58 MY_LIBS = $(LTLIBINTL)
   59 
   60 filefuncs_la_SOURCES  = filefuncs.c stack.h stack.c gawkfts.h \
   61 			gawkfts.c gawkdirfd.h
   62 filefuncs_la_LDFLAGS  = $(MY_MODULE_FLAGS)
   63 filefuncs_la_LIBADD   = $(MY_LIBS)
   64 
   65 fnmatch_la_SOURCES    = fnmatch.c
   66 fnmatch_la_LDFLAGS    = $(MY_MODULE_FLAGS)
   67 fnmatch_la_LIBADD     = $(MY_LIBS)
   68 
   69 fork_la_SOURCES       = fork.c
   70 fork_la_LDFLAGS       = $(MY_MODULE_FLAGS)
   71 fork_la_LIBADD        = $(MY_LIBS)
   72 
   73 inplace_la_SOURCES    = inplace.c
   74 inplace_la_LDFLAGS    = $(MY_MODULE_FLAGS)
   75 inplace_la_LIBADD     = $(MY_LIBS)
   76 
   77 # On Cygwin, intdiv has to be linked with the MPFR and GMP libraries.
   78 # Solaris in addition wants the math library.
   79 intdiv_la_SOURCES     = intdiv.c
   80 intdiv_la_LDFLAGS     = $(MY_MODULE_FLAGS)
   81 intdiv_la_LIBADD      = $(MY_LIBS) $(LIBMPFR) -lm
   82 
   83 ordchr_la_SOURCES     = ordchr.c
   84 ordchr_la_LDFLAGS     = $(MY_MODULE_FLAGS)
   85 ordchr_la_LIBADD      = $(MY_LIBS)
   86 
   87 readdir_la_SOURCES    = readdir.c gawkdirfd.h
   88 readdir_la_LDFLAGS    = $(MY_MODULE_FLAGS)
   89 readdir_la_LIBADD     = $(MY_LIBS)
   90 
   91 readfile_la_SOURCES   = readfile.c
   92 readfile_la_LDFLAGS   = $(MY_MODULE_FLAGS)
   93 readfile_la_LIBADD    = $(MY_LIBS)
   94 
   95 revoutput_la_SOURCES  = revoutput.c
   96 revoutput_la_LDFLAGS  = $(MY_MODULE_FLAGS)
   97 revoutput_la_LIBADD   = $(MY_LIBS)
   98 
   99 revtwoway_la_SOURCES  = revtwoway.c
  100 revtwoway_la_LDFLAGS  = $(MY_MODULE_FLAGS)
  101 revtwoway_la_LIBADD   = $(MY_LIBS)
  102 
  103 rwarray_la_SOURCES    = rwarray.c
  104 rwarray_la_LDFLAGS    = $(MY_MODULE_FLAGS)
  105 rwarray_la_LIBADD     = $(MY_LIBS)
  106 
  107 time_la_SOURCES       = time.c
  108 time_la_LDFLAGS       = $(MY_MODULE_FLAGS)
  109 time_la_LIBADD        = $(MY_LIBS)
  110 
  111 # N.B. Becaues we are not installing testext, we must specify -rpath in
  112 # LDFLAGS to get automake to build a shared library, since it needs
  113 # an installation path.
  114 testext_la_SOURCES    = testext.c
  115 testext_la_LDFLAGS    = $(MY_MODULE_FLAGS) -rpath /foo
  116 testext_la_LIBADD     = $(MY_LIBS)
  117 
  118 # N.B. Because we are not installing readdir_test, we must specify -rpath in
  119 # LDFLAGS to get automake to build a shared library, since it needs
  120 # an installation path.
  121 readdir_test_la_SOURCES = readdir_test.c
  122 readdir_test_la_LDFLAGS = $(MY_MODULE_FLAGS) -rpath /foo
  123 readdir_test_la_LIBADD  = $(MY_LIBS)
  124 
  125 install-data-hook:
  126 	for i in $(pkgextension_LTLIBRARIES) ; do \
  127 		$(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \
  128 	done
  129 
  130 # Keep the uninstall check working:
  131 uninstall-so:
  132 	$(RM) $(DESTDIR)$(pkgextensiondir)/*.so
  133 	$(RM) $(DESTDIR)$(pkgextensiondir)/*.dll
  134 	$(RM) $(DESTDIR)$(pkgextensiondir)/*.a
  135 	$(RM) $(DESTDIR)$(pkgextensiondir)/*.lib
  136 
  137 uninstall-recursive: uninstall-so
  138 
  139 EXTRA_DIST = build-aux/config.rpath  \
  140 	ChangeLog \
  141 	ChangeLog.0 \
  142 	ChangeLog.1 \
  143 	ext_custom.h \
  144 	fts.3 \
  145 	m4 \
  146 	README.fts \
  147 	rwarray0.c
  148 
  149 dist_man_MANS = \
  150 	filefuncs.3am fnmatch.3am fork.3am inplace.3am \
  151 	ordchr.3am readdir.3am readfile.3am revoutput.3am \
  152 	revtwoway.3am rwarray.3am time.3am
  153 
  154 # gettext requires this
  155 SUBDIRS = po
  156 
  157 distclean-local:
  158 	rm -fr .deps