2
. ./libtemo.sh || exit 1
6
title Shared libraries and autoconf
10
cat_file autogen.sh <<"EOF"
11
../../std-autogen.sh ../../..
13
# fetch Antimake template from libusual
14
cp ../../antimake.mk antimake.mk.in
17
cat_file configure.ac <<"EOF"
18
AC_INIT([actest], [0.1])
19
AC_CONFIG_SRCDIR([prog.c])
25
AC_USUAL_PROGRAM_CHECK
27
AC_OUTPUT([antimake.mk])
30
msg Here are the source files:
32
cat_file prog.c <<"EOF"
41
cat_file func.c <<"EOF"
47
printf("hello from func1\n");
51
msg Antimake based Makefile
53
cat_file Makefile <<"EOF"
54
lib_LTLIBRARIES = libtemo.la
55
libtemo_la_SOURCES = func.c
56
libtemo_la_LDFLAGS = -version-info 3:0:2
60
prog_LDADD = libtemo.la
62
# clean configured files
69
# clean generated files
70
MAINTAINERCLEANFILES = \
80
$(MAINTAINERCLEANFILES)
93
msg Create distribution package
95
run 'tar tzf actest-0.1.tar.gz | sort'
98
run 'make install DESTDIR=/tmp/test-inst'
100
run 'find /tmp/test-inst | sort'
101
run rm -rf /tmp/test-inst
103
msg Test the distribution package and separate build dir
106
run tar xf ../actest-0.1.tar.gz
109
runq ../actest-0.1/configure
116
run make maintainer-clean