Moved oid to util
[yaz-moved-to-github.git] / util / Makefile
index 7b3dfd2..03884b5 100644 (file)
@@ -1,24 +1,27 @@
 # Copyright (C) 1994, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.1 1995-03-27 08:35:16 quinn Exp $
+# $Id: Makefile,v 1.11 1995-05-29 08:12:16 quinn Exp $
 
 SHELL=/bin/sh
-INCLUDE=-I../include -I. -I../odr
-LIBDIR=../../lib
+INCLUDE=-I../include -I.
+LIBDIR=../lib
 LIBINCLUDE=-L$(LIBDIR)
 #CFLAGS=-g -Wall -pedantic -ansi
 DEFS=$(INCLUDE)
 LIB=$(LIBDIR)/libutil.a
 LIBS=
-PO = dmalloc.o options.o
-CPP=cc -E
+PO = options.o log.o marcdisp.o yaz-ccl.o pquery.o oid.o # dmalloc.o
+CPP=$(CC) -E
 
-all: $(LIBDIR) $(LIB)
+all: $(LIBDIR) $(LIB) marcdump
 
 #test: test.o $(LIB) ../odr/odr.a
 #      $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a
 
+marcdump: marcdump.o $(LIB)
+       $(CC) $(CFLAGS) $(INCLUDE) -o marcdump marcdump.o $(LIB)
+
 alll:
 
 $(LIB): $(PO)
@@ -33,7 +36,7 @@ $(LIBDIR):
        $(CC) -c $(DEFS) $(CFLAGS) $<
 
 clean:
-       rm -f *.[oa] test core mon.out gmon.out errlist
+       rm -f *.[oa] test marcdump core mon.out gmon.out errlist
 
 depend: depend2