Using AM_CFLAGS instead of CFLAGS. 1.8.3 closer.
[yaz-moved-to-github.git] / ztest / Makefile.am
index ae45708..776a94e 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.3 2000-04-05 07:39:55 adam Exp $
+## $Id: Makefile.am,v 1.8 2001-11-19 09:16:37 adam Exp $
 
 bin_PROGRAMS=yaz-ztest
 
@@ -6,6 +6,11 @@ yaz_ztest_SOURCES=ztest.c read-grs.c
 
 EXTRA_DIST=dummy-records dummy-words dummy-grs
 
-yaz_ztest_LDADD=../lib/libyaz.la
+if ISTHR
+extra=../lib/libyazthread.la
+endif
+yaz_ztest_LDADD=$(extra) ../lib/libyaz.la $(LIBTHREAD)
 
-INCLUDES=-I$(srcdir)/../include
+AM_CFLAGS=@CFLAGSTHREADS@
+
+INCLUDES=-I$(top_srcdir)/include