* Build dynamic libraries.

This commit is contained in:
Eelco Dolstra 2005-07-22 14:52:45 +00:00
parent 1a67154d41
commit 4c20a08293
11 changed files with 27 additions and 21 deletions

View File

@ -1,4 +1,6 @@
#! /bin/sh -e
mkdir -p config
libtoolize --copy
aclocal
autoheader
automake --add-missing --copy

View File

@ -2,7 +2,7 @@ AC_INIT(nix, "0.9")
AC_CONFIG_SRCDIR(README)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([dist-bzip2])
# Change to `1' to produce a `stable' release (i.e., the `preREVISION'
# suffix is not added).
STABLE=0
@ -48,6 +48,10 @@ AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
# We are going to use libtool.
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
# Check for pubsetbuf.
AC_MSG_CHECKING([for pubsetbuf])
AC_LANG_PUSH(C++)

View File

@ -1,6 +1,6 @@
noinst_LIBRARIES = libformat.a
lib_LTLIBRARIES = libformat.la
libformat_a_SOURCES = format_implementation.cc free_funcs.cc \
libformat_la_SOURCES = format_implementation.cc free_funcs.cc \
parsing.cc exceptions.hpp feed_args.hpp format_class.hpp \
format_fwd.hpp group.hpp internals.hpp internals_fwd.hpp \
macros_default.hpp

View File

@ -1,6 +1,6 @@
noinst_LIBRARIES = libexpr.a
lib_LTLIBRARIES = libexpr.la
libexpr_a_SOURCES = nixexpr.cc nixexpr.hh parser.cc parser.hh \
libexpr_la_SOURCES = nixexpr.cc nixexpr.hh parser.cc parser.hh \
eval.cc eval.hh primops.cc \
lexer-tab.c lexer-tab.h parser-tab.c parser-tab.h \
nixexpr-ast.hh

View File

@ -1,6 +1,6 @@
noinst_LIBRARIES = libmain.a
lib_LTLIBRARIES = libmain.la
libmain_a_SOURCES = shared.cc shared.hh
libmain_la_SOURCES = shared.cc shared.hh
AM_CXXFLAGS = \
-DNIX_STORE_DIR=\"$(storedir)\" \

View File

@ -1,6 +1,6 @@
noinst_LIBRARIES = libstore.a
lib_LTLIBRARIES = libstore.la
libstore_a_SOURCES = \
libstore_la_SOURCES = \
store.cc store.hh derivations.cc derivations.hh \
build.cc misc.cc build.hh \
globals.cc globals.hh db.cc db.hh \

View File

@ -1,6 +1,6 @@
noinst_LIBRARIES = libutil.a
lib_LTLIBRARIES = libutil.la
libutil_a_SOURCES = util.cc util.hh hash.cc hash.hh \
libutil_la_SOURCES = util.cc util.hh hash.cc hash.hh \
archive.cc archive.hh aterm.cc aterm.hh \
md5.c md5.h sha1.c sha1.h sha256.c sha256.h md32_common.h

View File

@ -2,9 +2,9 @@ bin_PROGRAMS = nix-env
nix_env_SOURCES = main.cc names.cc names.hh \
profiles.cc profiles.hh help.txt
nix_env_LDADD = ../libmain/libmain.a ../libexpr/libexpr.a \
../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a ${bdb_lib} ${aterm_lib}
nix_env_LDADD = ../libmain/libmain.la ../libexpr/libexpr.la \
../libstore/libstore.la ../libutil/libutil.la \
../boost/format/libformat.la ${bdb_lib} ${aterm_lib}
main.o: help.txt.hh

View File

@ -1,8 +1,8 @@
bin_PROGRAMS = nix-hash
nix_hash_SOURCES = nix-hash.cc help.txt
nix_hash_LDADD = ../libmain/libmain.a ../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a ${bdb_lib} ${aterm_lib}
nix_hash_LDADD = ../libmain/libmain.la ../libstore/libstore.la ../libutil/libutil.la \
../boost/format/libformat.la ${bdb_lib} ${aterm_lib}
nix-hash.o: help.txt.hh

View File

@ -1,9 +1,9 @@
bin_PROGRAMS = nix-instantiate
nix_instantiate_SOURCES = main.cc help.txt
nix_instantiate_LDADD = ../libmain/libmain.a ../libexpr/libexpr.a \
../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a ${bdb_lib} ${aterm_lib}
nix_instantiate_LDADD = ../libmain/libmain.la ../libexpr/libexpr.la \
../libstore/libstore.la ../libutil/libutil.la \
../boost/format/libformat.la ${bdb_lib} ${aterm_lib}
main.o: help.txt.hh

View File

@ -1,8 +1,8 @@
bin_PROGRAMS = nix-store
nix_store_SOURCES = main.cc dotgraph.cc dotgraph.hh help.txt
nix_store_LDADD = ../libmain/libmain.a ../libstore/libstore.a ../libutil/libutil.a \
../boost/format/libformat.a ${bdb_lib} ${aterm_lib}
nix_store_LDADD = ../libmain/libmain.la ../libstore/libstore.la ../libutil/libutil.la \
../boost/format/libformat.la ${bdb_lib} ${aterm_lib}
main.o: help.txt.hh