Fixed Makefile.
[yaz-moved-to-github.git] / asn / Makefile
index 83bae77..5b5cebb 100644 (file)
@@ -1,17 +1,17 @@
-# Copyright (C) 1994, Index Data I/S 
+# Copyright (C) 1995-1998, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.24 1996-10-09 15:54:54 quinn Exp $
+# $Id: Makefile,v 1.29 1998-04-26 11:08:09 adam Exp $
 
 SHELL=/bin/sh
 INCLUDE=-I../include -I.
 LIBDIR=../lib
 LIBINCLUDE=-L$(LIBDIR)
-DEFS=$(INCLUDE)
+DEFS=$(INCLUDE) $(CDEFS)
 LIB=$(LIBDIR)/libasn.a
-LIBS=-lodr -lasn
 PO = proto.o diagbib1.o zget.o prt-rsc.o prt-acc.o prt-exp.o prt-ext.o \
-       prt-grs.o prt-exd.o prt-dia.o prt-esp.o prt-arc.o prt-add.o
+       prt-grs.o prt-exd.o prt-dia.o prt-esp.o prt-arc.o prt-add.o \
+       prt-dat.o prt-univ.o
 CPP=$(CC) -E
 RANLIB=ranlib
 
@@ -23,6 +23,7 @@ test: test.o $(LIB) ../odr/odr.a
 alll:
 
 $(LIB): $(PO)
+       -mkdir $(LIBDIR)
        rm -f $(LIB)
        ar qc $(LIB) $(PO)
        $(RANLIB) $(LIB)
@@ -41,7 +42,7 @@ depend1:
        mv -f Makefile.tmp Makefile
 
 depend2:
-       $(CPP) $(INCLUDE) -M *.c >.depend       
+       $(CPP) $(DEFS) -M *.c >.depend  
 
 ifeq (.depend,$(wildcard .depend))
 include .depend