Zebra uses GNU Configure.
[idzebra-moved-to-github.git] / util / Makefile.in
diff --git a/util/Makefile.in b/util/Makefile.in
new file mode 100644 (file)
index 0000000..87913a5
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright (C) 1994-1998, Index Data ApS
+# All rights reserved.
+# Sebastian Hammer, Adam Dickmeiss
+# $Id: Makefile.in,v 1.1 1998-09-02 14:15:37 adam Exp $
+
+SHELL=/bin/sh
+
+CC=@CC@
+CPP=@CPP@
+RANLIB=@RANLIB@
+CDEFS=@DEFS@ @ODEFS@
+LIBS=@LIBS@
+
+YAZLIB=../../yaz/lib/libyaz.a
+YAZINC=-I../../yaz/include
+
+INCLUDE=-I../include $(YAZINC)
+TPROG=opt-test
+DEFS=$(CDEFS) $(INCLUDE) -DUSE_CRYPT=0
+LIB=../lib/zebrautl.a
+PO = res.o charmap.o zebramap.o passwddb.o
+
+all: $(LIB)
+
+alll: res-test all passtest
+
+res-test: res-test.o $(LIB) 
+       $(CC) -o res-test res-test.o $(LIB) $(YAZLIB)
+
+passtest: passtest.o $(LIB) 
+       $(CC) -o passtest passtest.o $(LIB) $(YAZLIB) -lcrypt
+
+$(LIB): $(PO)
+       rm -f $(LIB)
+       ar qc $(LIB) $(PO)
+       $(RANLIB) $(LIB)
+
+.c.o:
+       $(CC) -c $(DEFS) $(CFLAGS) $<
+
+clean:
+       rm -f *.[oa] res-test core mon.out gmon.out errlist
+
+depend:
+       sed '/^#Depend/q' <Makefile >Makefile.tmp
+       $(CPP) $(DEFS) -M *.c >>Makefile.tmp
+       mv -f Makefile.tmp Makefile
+
+#Depend --- DOT NOT DELETE THIS LINE