Support for YAZ in standard located directories, such as /usr/local/..
[idzebra-moved-to-github.git] / dict / Makefile
index ece4b6b..d38942d 100644 (file)
@@ -1,13 +1,15 @@
 # Copyright (C) 1994, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.16 1995-10-06 09:04:03 adam Exp $
+# $Id: Makefile,v 1.18 1995-11-20 11:58:03 adam Exp $
 
 SHELL=/bin/sh
 RANLIB=ranlib
-YAZ=../../yaz
-YAZLIB=$(YAZ)/lib/libyaz.a
-INCLUDE=-I../include -I$(YAZ)/include
+
+YAZLIB=-lyaz
+YAZINC=
+
+INCLUDE=-I../include $(YAZINC)
 TPROG1=dicttest
 TPROG2=dictext
 #CFLAGS=-g -Wall -pedantic -ansi
@@ -15,7 +17,7 @@ DEFS=$(INCLUDE)
 LIB=../lib/dict.a 
 PO = scan.o dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o \
  lookupec.o lookgrep.o
-CPP=cc -E
+CPP=$(CC) -E
 
 all: $(LIB)