libtool/Makefile.am

100 lines
3.6 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
SUBDIRS = . doc tests libltdl
DIST_SUBDIRS = $(SUBDIRS) demo mdemo
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
EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.in \
libtool.spec README-alpha # remove this for a non-alpha release
1997-06-14 04:05:46 +08:00
CLEANFILES = libtool libtoolize
MAINTAINERCLEANFILES = ltconfig ltmain.sh
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_DEPS = $(srcdir)/ltmain.sh $(srcdir)/ltconfig
libtool: $(LIBTOOL_DEPS)
1997-07-01 12:38:32 +08:00
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
1997-07-13 05:39:00 +08:00
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
$(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ \
$(srcdir)/ltmain.sh
1998-08-20 23:48:13 +08:00
# Experimental C version of libtool.
clibtool: $(srcdir)/ltmain.c $(srcdir)/ltconfig
1998-08-20 23:48:13 +08:00
CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
$(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir) --output=$@ \
$(srcdir)/ltmain.c
1997-04-02 02:29:23 +08:00
libtoolize: $(srcdir)/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
1998-03-06 00:23:43 +08:00
# Do line number substitution, as well as PACKAGE and VERSION.
# Line numbering transliterated from a section in autoconf (Autoconf 2.12).
$(srcdir)/ltconfig: $(srcdir)/ltconfig.in $(top_srcdir)/configure.in
1998-03-06 00:23:43 +08:00
$(AWK) '/@LINENO@/ { printf "%d:", NR } { print }' $(srcdir)/ltconfig.in | \
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
-e '/@LINENO@/s/^\([0-9][0-9]*\):\(.*\)@LINENO@/\2\1/' > ltconfig.T
chmod +x ltconfig.T
mv -f ltconfig.T $@
1997-04-02 02:29:23 +08:00
$(srcdir)/ltmain.sh: $(srcdir)/ltmain.in $(top_srcdir)/configure.in
1998-03-06 00:23:43 +08:00
sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' $(srcdir)/ltmain.in > ltmain.shT
mv -f ltmain.shT $@
1997-04-02 02:29:23 +08:00
# We use our own libtool.m4 for these.
ACINCLUDE_M4_LIST = \
$(srcdir)/acinclude.m4 \
$(srcdir)/libltdl/acinclude.m4 \
$(srcdir)/demo/acinclude.m4 \
$(srcdir)/mdemo/acinclude.m4
1997-04-02 03:18:28 +08:00
# All our rules should depend on these demo files.
all check: $(ACINCLUDE_M4_LIST) $(LIBTOOL_DEPS)
$(ACINCLUDE_M4_LIST): $(srcdir)/libtool.m4
rm -f $@
cd `echo $@ | sed 's,/[^/]*$$,,'` && \
$(LN_S) `echo $@ | sed -e 's|^$(srcdir)/||' -e 's,[^/]*$$,,' -e 's,[^/][^/]*,..,g'`libtool.m4 acinclude.m4
1998-12-09 02:36:31 +08:00
################################################################
##
## Everything past here is useful to the maintainer, but probably not
## to anybody else (snarfed from automake/Makefile.am).
##
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
cvs-dist: distcheck
@if sed '1,2d;3q' $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
1998-12-09 02:36:31 +08:00
echo "NEWS not updated; not releasing" 1>&2; \
exit 1; \
fi
cd $(srcdir) && cvs -q tag `echo "release-$(VERSION)" | sed 's/\./-/g'`
1998-12-09 02:36:31 +08:00
$(MAKE) dist
cvs-diff:
thisver=`echo "release-$(VERSION)" | sed 's/\./-/g'`; \
1998-12-09 02:36:31 +08:00
if test -z "$$OLDVERSION"; then \
prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
else prevno="$$OLDVERSION"; fi; \
prevver=release-`echo $$prevno | sed 's/\./-/g'`; \
1998-12-09 02:36:31 +08:00
cvs -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
> $(PACKAGE)-$$prevno-$(VERSION).diff