* mdemo2/configure.ac: Use AC_LIBTOOL_DLOPEN.
[libtool.git] / Makefile.am
blobe4228012c1c0373662a3d99043917e7922ed2269
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = 1.3e gnu
5 BUILD_SUBDIRS = . libltdl doc tests
6 CONF_SUBDIRS = @CONF_SUBDIRS@
7 SUBDIRS = $(BUILD_SUBDIRS)
8 DIST_SUBDIRS = $(BUILD_SUBDIRS) $(CONF_SUBDIRS)
10 # We need to export these variables
11 CFLAGS = @CFLAGS@
12 CPPLAGS = @CPPFLAGS@
13 LDFLAGS = @LDFLAGS@
14 LIBS= @LIBS@
15 FFLAGS = @FFLAGS@
16 FLIBS = @FLIBS@
18 aclocal_macros = libtool.m4 ltdl.m4
20 EXTRA_DIST = $(aclocal_macros) bootstrap libtoolize.in ltmain.in \
21         mkstamp ChangeLog.0 ChangeLog.1
22 CLEANFILES = libtool libtoolize ltmain.shT
24 # These are required by libtoolize.
25 pkgdata_SCRIPTS = config.guess config.sub
26 pkgdata_DATA = ltmain.sh
28 # This macro file should be visible to Automake's aclocal.
29 aclocal_DATA = $(aclocal_macros)
31 # The standalone libtool script, and the libtool distributor.
32 bin_SCRIPTS = libtool libtoolize
34 libtool: $(srcdir)/ltmain.sh $(top_builddir)/configure.ac
35         $(SHELL) $(top_builddir)/config.status --recheck
36         chmod +x $@
38 libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
39         CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) $(top_builddir)/config.status
40         chmod +x $@
42 $(srcdir)/ltmain.sh: $(srcdir)/ltmain.in $(TSDEPS)
43         -rm -f ltmain.shT
44         date=`$(SHELL) $(srcdir)/mkstamp < $(srcdir)/ChangeLog` && \
45         sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
46             -e "s%@""TIMESTAMP@%$$date%" $(srcdir)/ltmain.in > ltmain.shT
47         mv -f ltmain.shT $@ || \
48         (rm -f $@ && cp ltmain.shT $@ && rm -f ltmain.shT)
49         cp $@ $(srcdir)/libltdl/
51 # TSDEPS will be defined to TSDEPS_DIST at `make dist' time
52 TSDEPS =
53 TSDEPS_DIST = ChangeLog libtool.m4
54 CVS = cvs # set it to `:' to avoid CVS operations
56 .PHONY: timestamps update-timestamps
57 timestamps distdir: update-timestamps
58 update-timestamps:
59         @if (cd $(srcdir) && test -d CVS && \
60             $(CVS) -n update $(TSDEPS_DIST) | grep '^M'); then \
61                 echo "Cannot make dist before commit"; exit 1; else :; fi
63 # All our rules should depend on these demo files.
64 all-recursive: $(srcdir)/libltdl/acinclude.m4 $(ACINCLUDE_M4_LIST)
66 @srcdir@/libltdl/acinclude.m4: $(srcdir)/libtool.m4 $(srcdir)/ltdl.m4
67         -rm -f $@ $@T
68         cat $(srcdir)/libtool.m4 $(srcdir)/ltdl.m4 > $@T
69         mv $@T $@
71 @ACINCLUDE_M4_LIST@: $(srcdir)/libtool.m4
72         -rm -f $@ $@T
73         cat $(srcdir)/libtool.m4 > $@T
74         mv $@T $@
76 .PHONY: configure-subdirs
77 configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
78 @DIST_MAKEFILE_LIST@:
79         dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
80         test -d $$dir || mkdir $$dir || exit 1; \
81         abs_srcdir=`cd $(top_srcdir) && pwd`; \
82         (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
84 # Create and install libltdl
85 install-data-hook:
86         cd libltdl && $(MAKE) local-install-files
88 # Uninstall libltdl
89 uninstall-local:
90         -rm -rf $(DESTDIR)$(pkgdatadir)/libltdl
92 ################################################################
94 ## Everything past here is useful to the maintainer, but probably not
95 ## to anybody else (snarfed from automake/Makefile.am).
98 # Tag before making distribution.  Also, don't make a distribution if
99 # checks fail.  Also, make sure the NEWS file is up-to-date.
100 cvs-dist: distcheck
101         @if sed '1,2d;3q' $(srcdir)/NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
102           echo "NEWS not updated; not releasing" 1>&2; \
103           exit 1;                               \
104         fi
105         cd $(srcdir) && \
106          $(CVS) -q tag `echo "release-$(VERSION)" | sed 's/\./-/g'`
107         $(MAKE) dist
109 cvs-diff:
110         thisver=`echo "release-$(VERSION)" | sed 's/\./-/g'`; \
111         if test -z "$$OLDVERSION"; then \
112           prevno=`echo "$(VERSION)" - 0.01 | bc | sed 's/^\./0./'`; \
113         else prevno="$$OLDVERSION"; fi; \
114         prevver=release-`echo $$prevno | sed 's/\./-/g'`; \
115         $(CVS) -f rdiff -c -r $$prevver -r $$thisver $(PACKAGE) \
116             | GZIP=$(GZIP_ENV) gzip -c \
117             > $(PACKAGE)-$$prevno-$(VERSION).diff.gz