Added GNU Configure script to build Makefiles.
[yaz-moved-to-github.git] / asn / Makefile.in
1 # Copyright (C) 1995-1998, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.1 1998-08-21 14:13:25 adam Exp $
5
6 SHELL=/bin/sh
7
8 CC=@CC@
9 CPP=@CPP@
10 RANLIB=@RANLIB@
11 CDEFS=@DEFS@ @ODEFS@
12 ELIBS=@LIBS@
13
14 INCLUDE=-I../include -I.
15 LIBDIR=../lib
16 LIBINCLUDE=-L$(LIBDIR)
17
18 DEFS=$(INCLUDE) $(CDEFS)
19 LIB=$(LIBDIR)/libasn.a
20 PO = proto.o diagbib1.o zget.o prt-rsc.o prt-acc.o prt-exp.o prt-ext.o \
21         prt-grs.o prt-exd.o prt-dia.o prt-esp.o prt-arc.o prt-add.o \
22         prt-dat.o prt-univ.o
23 all: $(LIB)
24
25 test: test.o $(LIB) ../odr/odr.a
26         $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a $(ELIBS)
27
28 alll:
29
30 $(LIB): $(PO)
31         rm -f $(LIB)
32         ar qc $(LIB) $(PO)
33         $(RANLIB) $(LIB)
34
35 .c.o:
36         $(CC) -c $(DEFS) $(CFLAGS) $<
37
38 clean:
39         rm -f *.[oa] test core mon.out gmon.out errlist
40
41 depend:
42         sed '/^#Depend/q' <Makefile >Makefile.tmp
43         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
44         mv -f Makefile.tmp Makefile
45
46 #Depend --- DOT NOT DELETE THIS LINE