Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use libtool to produce both static and dynamic libraries #1

Merged
merged 2 commits into from
Sep 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ config.status
configure
depcomp
install-sh
ltmain.sh
missing
8 changes: 4 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Makefile.am - procress this file with automake to produce Makefile.in
lib_LIBRARIES = libfts.a
libfts_a_SOURCES = fts.c
libfts_a_HEADERS = fts.h
libfts_adir = $(includedir)
lib_LTLIBRARIES = libfts.la
libfts_la_SOURCES = fts.c
libfts_la_HEADERS = fts.h
libfts_ladir = $(includedir)
1 change: 1 addition & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
libtoolize
aclocal
autoconf
automake --add-missing
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ AC_INIT([fts], [1.1], [Jürgen Buchmüller <pullmoll@t-online.de>])
AM_INIT_AUTOMAKE([1.15])

AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LIBTOOL

LT_INIT

AC_CHECK_HEADERS(assert.h dirent.h errno.h fcntl.h stdlib.h string.h unistd.h sys/param.h sys/stat.h)

Expand Down