libtool/Makefile.am

86 lines
3.0 KiB
Makefile
Raw Normal View History

1997-04-02 03:19:30 +08:00
## Process Makefile.am with automake to create Makefile.in. -*-Makefile-*-
1997-04-02 02:29:23 +08:00
## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
AUTOMAKE_OPTIONS = gnits
1997-04-02 02:49:25 +08:00
SUBDIRS = doc tests
1997-04-02 02:29:23 +08:00
1997-04-02 03:19:30 +08:00
# We need to export these variables when we run ltconfig.
CFLAGS = @CFLAGS@
CPPLAGS = @CPPFLAGS@
1997-04-06 02:48:44 +08:00
aclocal_macros = libtool.m4
1997-04-02 03:18:28 +08:00
1997-06-07 05:55:10 +08:00
EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.sh.in \
README-automake libtool.prj
1997-06-14 04:05:46 +08:00
CLEANFILES = libtool libtoolize
MAINTAINERCLEANFILES = ltconfig ltmain.sh
1997-04-02 02:29:23 +08:00
# Files in the demo subdirectory that go in the distribution.
1997-04-02 03:18:28 +08:00
demo_distfiles = demo/Makefile.in demo/Makefile.am demo/README \
demo/acinclude.m4 demo/aclocal.m4 \
demo/configure demo/configure.in demo/foo.c demo/foo.h \
demo/hello.c demo/main.c demo/run.test
1997-04-02 02:29:23 +08:00
# These are required by libtoolize.
pkgdata_SCRIPTS = config.guess config.sub ltconfig
pkgdata_DATA = ltmain.sh
1997-04-02 02:57:49 +08:00
# This macro file should be visible to Automake's aclocal.
1997-04-02 02:29:23 +08:00
aclocaldir = @aclocaldir@
1997-04-02 03:18:28 +08:00
aclocal_DATA = $(aclocal_macros)
1997-04-02 02:29:23 +08:00
# The standalone libtool script, and the libtool distributor.
bin_SCRIPTS = libtool libtoolize
libtool: ltconfig
1997-04-02 02:49:25 +08:00
@echo 'WARNING: Warnings from ltconfig can be ignored. :-)'
1997-04-02 03:21:43 +08:00
CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
LD="${LD}" RANLIB="${RANLIB}" \
1997-04-02 02:46:48 +08:00
$(srcdir)/ltconfig --srcdir=$(srcdir) $(pkgdatadir)/ltmain.sh
1997-04-02 02:29:23 +08:00
1997-04-02 03:19:30 +08:00
libtoolize: libtoolize.in $(top_builddir)/config.status
1997-04-02 02:29:23 +08:00
CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
chmod +x libtoolize
1997-06-14 04:05:46 +08:00
# These depend on NEWS (rather then config.status) so that version numbers
# are correctly updated.
# This way, they aren't regenerated after people configure the package.
$(srcdir)/ltconfig: ltconfig.in NEWS
1997-04-02 02:29:23 +08:00
CONFIG_FILES=ltconfig CONFIG_HEADERS= $(top_builddir)/config.status
chmod +x ltconfig
1997-06-14 04:05:46 +08:00
test "$(srcdir)" = . || mv ltconfig $(srcdir)/ltconfig
1997-04-02 02:29:23 +08:00
1997-06-14 04:05:46 +08:00
$(srcdir)/ltmain.sh: ltmain.sh.in NEWS
1997-04-02 02:29:23 +08:00
CONFIG_FILES=ltmain.sh CONFIG_HEADERS= $(top_builddir)/config.status
1997-06-14 04:05:46 +08:00
test "$(srcdir)" = . || mv ltmain.sh $(srcdir)/ltmain.sh
1997-04-02 02:29:23 +08:00
# Distribute the demo subdirectory.
1997-04-02 03:18:28 +08:00
dist-hook: $(demo_distfiles)
1997-04-02 02:29:23 +08:00
mkdir $(distdir)/demo
1997-04-02 02:49:25 +08:00
-chmod 755 $(distdir)/demo
here=`pwd`; distdir=`cd $(distdir) && pwd` \
&& cd $(srcdir)/demo \
1997-04-02 03:21:43 +08:00
&& $(AUTOMAKE) --include-deps --build-dir=$$here/demo --srcdir-name=$(srcdir)/demo --output-dir=$$distdir/demo
1997-04-02 02:29:23 +08:00
@for file in $(demo_distfiles); do \
1997-04-02 03:18:28 +08:00
d=$(srcdir); \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \
1997-04-02 02:29:23 +08:00
done
1997-04-02 03:18:28 +08:00
# All our rules should depend on these demo files.
all: demo/Makefile.in demo/configure
# Rules for rebuilding some of the demo source files.
$(srcdir)/demo/Makefile.in: demo/Makefile.am demo/configure.in demo/aclocal.m4
1997-04-02 03:21:43 +08:00
cd $(srcdir)/demo && $(AUTOMAKE)
1997-04-02 03:18:28 +08:00
$(srcdir)/demo/configure: demo/configure.in demo/aclocal.m4
1997-04-02 03:21:43 +08:00
cd $(srcdir)/demo && $(AUTOMAKE)
1997-04-02 03:18:28 +08:00
$(srcdir)/demo/aclocal.m4: demo/configure.in demo/acinclude.m4
1997-04-02 03:21:43 +08:00
cd $(srcdir)/demo && $(ACLOCAL)
1997-04-02 03:18:28 +08:00
$(srcdir)/demo/acinclude.m4:
rm -f $(srcdir)/demo/acinclude.m4
ln -s ../libtool.m4 $(srcdir)/demo/acinclude.m4