Fixed Makefile(s).
[yaz-moved-to-github.git] / comstack / Makefile
index 46f9770..2b8ec70 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) 1994, Index Data I/S 
 # All rights reserved.
 # Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.1 1995-06-14 09:58:19 quinn Exp $
+# $Id: Makefile,v 1.6 1997-09-17 12:10:30 adam Exp $
 
 
 LIBDIR=../lib
@@ -12,15 +12,14 @@ LIBDIR=../lib
 SHELL=/bin/sh
 INCLUDE=-I../include -I. -I../../xtimosi/src
 LIBINCLUDE=-L$(LIBDIR) -L../../xtimosi/src
-#CFLAGS=-Wall -pedantic -g
-#CFLAGS=-g
-DEFS=$(INCLUDE) -DRPN_QUERY # -DTRACE_TCPIP
+DEFS=$(INCLUDE) $(CDEFS) # -DTRACE_TCPIP
 LIB= $(LIBDIR)/libcomstack.a 
 LIBS=$(LIBDIR)/libasn.a $(LIBDIR)/libodr.a $(LIBDIR)/libcomstack.a \
         ../lib/ccl.a $(LIBDIR)/libutil.a $(LIBMOSI)
-PO = comstack.o tcpip.o $(XMOSI)
+PO = comstack.o tcpip.o waislen.o $(XMOSI)
 CPP=$(CC) -E
 #CC=checkergcc
+RANLIB=ranlib
 
 all: $(LIBDIR) $(LIB)
 
@@ -32,7 +31,7 @@ alll:
 $(LIB): $(PO)
        rm -f $(LIB)
        ar qc $(LIB) $(PO)
-       ranlib $(LIB)
+       $(RANLIB) $(LIB)
 
 $(LIBDIR):
        mkdir $(LIBDIR)
@@ -50,7 +49,7 @@ depend1:
        mv -f Makefile.tmp Makefile
 
 depend2:
-       $(CPP) $(INCLUDE) -M *.c >.depend       
+       $(CPP) $(DEFS) -M *.c >.depend  
 
 ifeq (.depend,$(wildcard .depend))
 include .depend