Skip to content

Commit

Permalink
build: Use libtool to build the common library.
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Tricca <[email protected]>
  • Loading branch information
flihp committed Feb 18, 2016
1 parent 96e0ee2 commit a67fd4d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
aclocal.m4
autom4te.cache/
compile
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
m4/
libtool
ltmain.sh
missing
Makefile
Makefile.in
tss/
src/.dirstamp
src/libcommon.a
src/tpm2_activatecredential
src/tpm2_hash
Expand Down
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
# THE POSSIBILITY OF SUCH DAMAGE.
#;**********************************************************************;

ACLOCAL_AMFLAGS = -I m4

INCLUDE_DIRS = -I$(srcdir)

AM_CFLAGS = -DSAPI_CLIENT $(INCLUDE_DIRS)
Expand Down
12 changes: 8 additions & 4 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#! /bin/sh

aclocal \
&& autoconf \
&& automake --add-missing

printf "Running libtoolize ...\n"
libtoolize --install
printf "Running aclocal ...\n"
aclocal
printf "Running autoconf ...\n"
autoconf
printf "Running automake ...\n"
automake --add-missing
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
AC_INIT([tpm2.0-tools], [1.0.0])
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
LT_INIT
AM_INIT_AUTOMAKE([foreign
subdir-objects])
AC_CONFIG_FILES([Makefile])
Expand Down

0 comments on commit a67fd4d

Please sign in to comment.