Added GNU Configure script to build Makefiles.
[yaz-moved-to-github.git] / comstack / Makefile.in
1 # Copyright (C) 1994, 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:28 adam Exp $
5 SHELL=/bin/sh
6
7 CC=@CC@
8 CPP=@CPP@
9 RANLIB=@RANLIB@
10 CDEFS=@DEFS@ @ODEFS@
11 ELIBS=@LIBS@
12
13 LIBDIR=../lib
14
15 #LIBOSI=../../xtimosi/src/libmosi.a $(LIBDIR)/librfc.a
16 #XMOSI=xmosi.o
17
18 SHELL=/bin/sh
19 INCLUDE=-I../include -I. -I../../xtimosi/src
20 LIBINCLUDE=-L$(LIBDIR) -L../../xtimosi/src
21 DEFS=$(INCLUDE) $(CDEFS)
22 # -DTRACE_TCPIP
23 LIB= $(LIBDIR)/libcomstack.a 
24 LIBS=$(LIBDIR)/libasn.a $(LIBDIR)/libodr.a $(LIBDIR)/libcomstack.a \
25          ../lib/ccl.a $(LIBDIR)/libutil.a $(LIBMOSI)
26 PO = comstack.o tcpip.o waislen.o $(XMOSI)
27
28 all: $(LIB)
29
30 alll:
31
32 $(LIB): $(PO)
33         rm -f $(LIB)
34         ar qc $(LIB) $(PO)
35         $(RANLIB) $(LIB)
36
37 .c.o:
38         $(CC) -c $(DEFS) $(CFLAGS) $<
39
40 clean:
41         rm -f *.[oa] test core mon.out gmon.out errlist
42
43 depend:
44         sed '/^#Depend/q' <Makefile >Makefile.tmp
45         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
46         mv -f Makefile.tmp Makefile
47
48 #Depend --- DOT NOT DELETE THIS LINE