-# $Id: Makefile.am,v 1.5 2007-04-10 08:48:56 adam Exp $
+# $Id: Makefile.am,v 1.8 2007-04-16 13:58:20 marc Exp $
bin_PROGRAMS = pazpar2
+check_PROGRAMS = test_relevance
+TESTS = $(check_PROGRAMS)
+
+noinst_LIBRARIES = libpazpar2.a
MAINTAINERCLEANFILES = Makefile.in cconfig.h
AM_CFLAGS = $(YAZINC)
-LDADD = $(YAZLIB)
-pazpar2_SOURCES = config.c config.h eventl.c eventl.h \
+libpazpar2_a_SOURCES = config.c config.h eventl.c eventl.h \
http.c http_command.c http_command.h http.h \
- pazpar2.c pazpar2.h reclists.c reclists.h \
+ logic.c pazpar2.h reclists.c reclists.h \
relevance.c relevance.h termlists.c termlists.h \
util.c util.h zeerex.c zeerex.h database.c database.h \
- settings.h settings.c
+ settings.h settings.c
+
+
+pazpar2_SOURCES = pazpar2.c
+pazpar2_LDADD = libpazpar2.a $(YAZLIB)
+
+test_relevance_SOURCES = test_relevance.c
+test_relevance_LDADD = libpazpar2.a $(YAZLIB)