diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-20T10·53+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-20T10·53+0000 |
commit | 5079ccb45537fe8de4b9579e274523734a3f634e (patch) | |
tree | 314405a8fc117e6ce1737232d06bcdec5cf396ca /src/Makefile.am | |
parent | 1849aa2a72d7f530e2c18d640528075bcdf8991c (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.am | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 20f172819f41..afe34ba5ff5d 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 |