Function res_trav returns number of 'hits'.
[idzebra-moved-to-github.git] / util / Makefile
index 15c7e35..fcdc9cd 100644 (file)
@@ -1,25 +1,26 @@
-# Copyright (C) 1994, Index Data I/S 
+# Copyright (C) 1994-1996, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.17 1995-09-04 12:34:05 adam Exp $
+# $Id: Makefile,v 1.27 1997-10-27 14:33:06 adam Exp $
 
 SHELL=/bin/sh
 RANLIB=ranlib
-YAZ=../../yaz
-YAZLIB=$(YAZ)/lib/libyaz.a
-INCLUDE=-I../include -I$(YAZ)/include
+
+YAZLIB=-lyaz
+YAZINC=-I../../yaz/include
+
+INCLUDE=-I../include $(YAZINC)
 TPROG=opt-test
-#CFLAGS=-g -Wall -pedantic -ansi
 DEFS=$(INCLUDE)
-CPP=cc -E
-LIB=../lib/alexutil.a
-PO = xmalloc.o res.o alexpath.o common.o
+CPP=$(CC) -E
+LIB=../lib/zebrautl.a
+PO = res.o charmap.o zebramap.o
 
 all: $(LIB)
 
 alll: res-test all
 
-res-test: res-test.o $(LIB) $(YAZLIB)
+res-test: res-test.o $(LIB) 
        $(CC) -o res-test res-test.o $(LIB) $(YAZLIB)
 
 $(LIB): $(PO)