Annotation of gforth/libltdl/Makefile.inc, revision 1.1

1.1     ! anton       1: ## Makefile.inc -- includable Makefile.am snippet
        !             2: ##
        !             3: ##   Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
        !             4: ##   Written by Gary V. Vaughan, 2003
        !             5: ##
        !             6: ##   NOTE: The canonical source of this file is maintained with the
        !             7: ##   GNU Libtool package.  Report bugs to bug-libtool@gnu.org.
        !             8: ##
        !             9: ## GNU Libltdl is free software; you can redistribute it and/or
        !            10: ## modify it under the terms of the GNU Lesser General Public
        !            11: ## License as published by the Free Software Foundation; either
        !            12: ## version 2 of the License, or (at your option) any later version.
        !            13: ##
        !            14: ## As a special exception to the GNU Lesser General Public License,
        !            15: ## if you distribute this file as part of a program or library that
        !            16: ## is built using GNU libtool, you may include this file under the
        !            17: ## same distribution terms that you use for the rest of that program.
        !            18: ##
        !            19: ## GNU Libltdl is distributed in the hope that it will be useful,
        !            20: ## but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            21: ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            22: ## GNU Lesser General Public License for more details.
        !            23: ##
        !            24: ## You should have received a copy of the GNU LesserGeneral Public
        !            25: ## License along with GNU Libltdl; see the file COPYING.LIB.  If not, a
        !            26: ## copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
        !            27: ## or obtained by writing to the Free Software Foundation, Inc.,
        !            28: ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
        !            29: #####
        !            30: 
        !            31: ## DO NOT REMOVE THIS LINE -- make depends on it
        !            32: 
        !            33: # -I$(srcdir) is needed for user that built libltdl with a sub-Automake
        !            34: # (not as a sub-package!) using 'nostdinc':
        !            35: AM_CPPFLAGS           += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \
        !            36:                          -DLTDL -I. -I$(srcdir) -Ilibltdl \
        !            37:                          -I$(srcdir)/libltdl -I$(srcdir)/libltdl/libltdl
        !            38: AM_LDFLAGS            += -no-undefined
        !            39: LTDL_VERSION_INFO      = -version-info 8:1:1
        !            40: 
        !            41: noinst_LTLIBRARIES     += $(LT_DLLOADERS)
        !            42: 
        !            43: if INSTALL_LTDL
        !            44: ltdlincludedir         = $(includedir)/libltdl
        !            45: ltdlinclude_HEADERS    = libltdl/libltdl/lt_system.h \
        !            46:                          libltdl/libltdl/lt_error.h \
        !            47:                          libltdl/libltdl/lt_dlloader.h
        !            48: include_HEADERS               += libltdl/ltdl.h
        !            49: lib_LTLIBRARIES               += libltdl/libltdl.la
        !            50: endif
        !            51: 
        !            52: if CONVENIENCE_LTDL
        !            53: noinst_LTLIBRARIES     += libltdl/libltdlc.la
        !            54: endif
        !            55: 
        !            56: libltdl_libltdl_la_SOURCES = libltdl/libltdl/lt__alloc.h \
        !            57:                          libltdl/libltdl/lt__dirent.h \
        !            58:                          libltdl/libltdl/lt__glibc.h \
        !            59:                          libltdl/libltdl/lt__private.h \
        !            60:                          libltdl/libltdl/lt__strl.h \
        !            61:                          libltdl/libltdl/lt_dlloader.h \
        !            62:                          libltdl/libltdl/lt_error.h \
        !            63:                          libltdl/libltdl/lt_system.h \
        !            64:                          libltdl/libltdl/slist.h \
        !            65:                          libltdl/loaders/preopen.c \
        !            66:                          libltdl/lt__alloc.c \
        !            67:                          libltdl/lt_dlloader.c \
        !            68:                          libltdl/lt_error.c \
        !            69:                          libltdl/ltdl.c \
        !            70:                          libltdl/ltdl.h \
        !            71:                          libltdl/slist.c
        !            72: 
        !            73: EXTRA_DIST            += libltdl/lt__dirent.c \
        !            74:                          libltdl/lt__strl.c
        !            75: 
        !            76: libltdl_libltdl_la_CPPFLAGS    = -DLTDLOPEN=$(LTDLOPEN) $(AM_CPPFLAGS)
        !            77: libltdl_libltdl_la_LDFLAGS     = $(AM_LDFLAGS) $(LTDL_VERSION_INFO) $(LT_DLPREOPEN)
        !            78: libltdl_libltdl_la_LIBADD      = $(LTLIBOBJS)
        !            79: libltdl_libltdl_la_DEPENDENCIES        = $(LT_DLLOADERS) $(LTLIBOBJS)
        !            80: 
        !            81: libltdl_libltdlc_la_SOURCES    = $(libltdl_libltdl_la_SOURCES)
        !            82: libltdl_libltdlc_la_CPPFLAGS   = -DLTDLOPEN=$(LTDLOPEN)c $(AM_CPPFLAGS)
        !            83: libltdl_libltdlc_la_LDFLAGS    = $(AM_LDFLAGS) $(LT_DLPREOPEN)
        !            84: libltdl_libltdlc_la_LIBADD     = $(libltdl_libltdl_la_LIBADD)
        !            85: libltdl_libltdlc_la_DEPENDENCIES= $(libltdl_libltdl_la_DEPENDENCIES)
        !            86: 
        !            87: ## The loaders are preopened by libltdl, itself always built from
        !            88: ## pic-objects (either as a shared library, or a convenience library),
        !            89: ## so the loaders themselves must be made from pic-objects too.  We
        !            90: ## use convenience libraries for that purpose:
        !            91: EXTRA_LTLIBRARIES             += libltdl/dlopen.la \
        !            92:                                  libltdl/dld_link.la \
        !            93:                                  libltdl/dyld.la \
        !            94:                                  libltdl/load_add_on.la \
        !            95:                                  libltdl/loadlibrary.la \
        !            96:                                  libltdl/shl_load.la
        !            97: 
        !            98: libltdl_dlopen_la_SOURCES      = libltdl/loaders/dlopen.c
        !            99: libltdl_dlopen_la_LDFLAGS      = -module -avoid-version
        !           100: libltdl_dlopen_la_LIBADD       = $(LIBADD_DLOPEN)
        !           101: 
        !           102: libltdl_dld_link_la_SOURCES    = libltdl/loaders/dld_link.c
        !           103: libltdl_dld_link_la_LDFLAGS    = -module -avoid-version
        !           104: libltdl_dld_link_la_LIBADD     = -ldld
        !           105: 
        !           106: libltdl_dyld_la_SOURCES                = libltdl/loaders/dyld.c
        !           107: libltdl_dyld_la_LDFLAGS                = -module -avoid-version
        !           108: 
        !           109: libltdl_load_add_on_la_SOURCES = libltdl/loaders/load_add_on.c
        !           110: libltdl_load_add_on_la_LDFLAGS = -module -avoid-version
        !           111: 
        !           112: libltdl_loadlibrary_la_SOURCES = libltdl/loaders/loadlibrary.c
        !           113: libltdl_loadlibrary_la_LDFLAGS = -module -avoid-version
        !           114: 
        !           115: libltdl_shl_load_la_SOURCES    = libltdl/loaders/shl_load.c
        !           116: libltdl_shl_load_la_LDFLAGS    = -module -avoid-version
        !           117: libltdl_shl_load_la_LIBADD     = $(LIBADD_SHL_LOAD)
        !           118: 
        !           119: ## Make sure these will be cleaned even when they're not built by default:
        !           120: CLEANFILES                    += libltdl/libltdl.la \
        !           121:                                  libltdl/libltdlc.la \
        !           122:                                  libltdl/libdlloader.la
        !           123: 
        !           124: ## Automake-1.9.6 doesn't clean subdir AC_LIBOBJ compiled objects
        !           125: ## automatically:
        !           126: CLEANFILES            += $(LIBOBJS) $(LTLIBOBJS)
        !           127: 
        !           128: EXTRA_DIST            += libltdl/COPYING.LIB \
        !           129:                          libltdl/configure.ac \
        !           130:                          libltdl/Makefile.am \
        !           131:                          libltdl/aclocal.m4 \
        !           132:                          libltdl/Makefile.in \
        !           133:                          libltdl/configure \
        !           134:                          libltdl/config-h.in \
        !           135:                          libltdl/README
        !           136: 
        !           137: ## --------------------------- ##
        !           138: ## Gnulib Makefile.am snippets ##
        !           139: ## --------------------------- ##
        !           140: 
        !           141: BUILT_SOURCES  += libltdl/$(ARGZ_H)
        !           142: EXTRA_DIST     += libltdl/argz_.h \
        !           143:                   libltdl/argz.c
        !           144: 
        !           145: # We need the following in order to create an <argz.h> when the system
        !           146: # doesn't have one that works with the given compiler.
        !           147: all-local $(lib_OBJECTS): libltdl/$(ARGZ_H)
        !           148: libltdl/argz.h: libltdl/argz_.h
        !           149:        $(mkinstalldirs) . libltdl/
        !           150:        cp $(srcdir)/libltdl/argz_.h $@-t
        !           151:        mv $@-t $@
        !           152: MOSTLYCLEANFILES += libltdl/argz.h \
        !           153:                    libltdl/argz.h-t

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>