mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
30 lines
800 B
Makefile
30 lines
800 B
Makefile
# A brief demonstration of using Automake with Libtool.
|
|
AUTOMAKE_OPTIONS = ansi2knr foreign
|
|
|
|
EXTRA_DIST = $(TESTS) acinclude.m4
|
|
|
|
# Build a libtool library, libhello.la for installation in libdir.
|
|
lib_PROGRAMS = libhello.la
|
|
libhello_la_SOURCES = hello.c foo.c
|
|
libhello_la_LDFLAGS = -version-info 3:12:1 -rpath $(libdir)
|
|
|
|
include_HEADERS = foo.h
|
|
|
|
bin_PROGRAMS = hell hell.static
|
|
|
|
# Build hell from main.c and libhello.la
|
|
hell_SOURCES = main.c
|
|
hell_LDADD = libhello.la
|
|
|
|
# Create a statically-linked version of hell.
|
|
hell_static_SOURCES = main.c
|
|
hell_static_LDADD = libhello.la
|
|
hell_static_LDFLAGS = -static
|
|
|
|
TESTS = run.test
|
|
|
|
# Only for libtool demo: Regenerate our acinclude.m4 only if it doesn't exist.
|
|
$(srcdir)/acinclude.m4:
|
|
rm -f $(srcdir)/acinclude.m4
|
|
ln -s ../libtool.m4 $(srcdir)/acinclude.m4
|