aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-20 10:53:04 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-20 10:53:04 +0000
commit5079ccb45537fe8de4b9579e274523734a3f634e (patch)
tree314405a8fc117e6ce1737232d06bcdec5cf396ca /src/Makefile.am
parent1849aa2a72d7f530e2c18d640528075bcdf8991c (diff)
* Move most of Nix into a library (libnix.a).
* Run `test' on `make check'.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 20f172819..afe34ba5f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,16 +1,22 @@
bin_PROGRAMS = nix # fix
-noinst_PROGRAMS = test
+check_PROGRAMS = test
AM_CXXFLAGS = -DSYSTEM=\"@host@\" -Wall -I..
-nix_SOURCES = nix.cc util.cc hash.cc archive.cc md5.c eval.cc values.cc globals.cc db.cc
-nix_LDADD = -ldb_cxx-4 -lATerm
+nix_SOURCES = nix.cc
+nix_LDADD = libnix.a -ldb_cxx-4 -lATerm
#fix_SOURCES = fix.cc util.cc hash.cc md5.c
#fix_LDADD = -lATerm
-test_SOURCES = test.cc util.cc hash.cc archive.cc md5.c eval.cc values.cc globals.cc db.cc
-test_LDADD = -ldb_cxx-4 -lATerm
+TESTS = test
+
+test_SOURCES = test.cc
+test_LDADD = libnix.a -ldb_cxx-4 -lATerm
+
+noinst_LIBRARIES = libnix.a
+
+libnix_a_SOURCES = util.cc hash.cc archive.cc md5.c eval.cc values.cc globals.cc db.cc
install-data-local:
$(INSTALL) -d $(localstatedir)/nix