Added GNU Configure script to build Makefiles.
[yaz-moved-to-github.git] / odr / 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:30 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
17 DEFS=$(INCLUDE) $(CDEFS) # -DODR_DEBUG
18 LIB=$(LIBDIR)/libodr.a
19 PO = odr_bool.o ber_bool.o ber_len.o ber_tag.o odr_util.o odr_null.o \
20         ber_null.o odr_int.o ber_int.o odr_tag.o odr_cons.o odr_seq.o\
21         odr_oct.o ber_oct.o odr_bit.o ber_bit.o odr_oid.o ber_oid.o odr_use.o \
22         odr_choice.o odr_any.o ber_any.o odr.o odr_mem.o dumpber.o odr_enum.o
23
24 all: $(LIB)
25
26 test: test.o $(LIB)
27         $(CC) $(CFLAGS) $(LIBINCLUDE) -o test test.o $(LIB)
28
29 alll:
30
31 $(LIB): $(PO)
32         rm -f $(LIB)
33         ar qc $(LIB) $(PO)
34         $(RANLIB) $(LIB)
35
36 .c.o:
37         $(CC) -c $(DEFS) $(CFLAGS) $<
38
39 clean:
40         rm -f *.[oa] test core mon.out gmon.out errlist
41
42 depend:
43         sed '/^#Depend/q' <Makefile >Makefile.tmp
44         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
45         mv -f Makefile.tmp Makefile
46
47 #Depend --- DOT NOT DELETE THIS LINE