A few logging messages added.
[egate.git] / util / Makefile
1 # Makefile for Email gateway utilities
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.3  1995/02/15 17:45:43  adam
6 # Bug fix in iso2709 module.
7 #
8 # Revision 1.2  1995/02/10  17:05:18  adam
9 # New function iso2709_display to display MARC records in a
10 # line-by-line format. The iso2709_cvt function no longer
11 # prints the record to stderr.
12 #
13 # Revision 1.1.1.1  1995/02/09  17:27:11  adam
14 # Initial version of email gateway under CVS control.
15 #
16 SHELL=/bin/sh
17 INCLUDE=-I../include
18 CFLAGS=-g -Wall -pedantic -ansi
19 TPROG1=iso2709dump
20 LIB=../lib/util.a
21 PO=iso2709.o iso27dis.o
22 CPP=cc -E
23 DEFS=$(INCLUDE)
24
25 all: $(TPROG1)
26
27 $(TPROG1): $(TPROG1).o $(LIB) 
28         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
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 *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
40
41 depend: depend2
42
43 depend1:
44         mv Makefile Makefile.tmp
45         sed '/^#Depend/q' <Makefile.tmp >Makefile
46         $(CPP) $(INCLUDE) -M *.c >>Makefile
47         -rm Makefile.tmp
48
49 depend2:
50         $(CPP) $(INCLUDE) -M *.c >.depend       
51
52 ifeq (.depend,$(wildcard .depend))
53 include .depend
54 endif
55
56 #Depend --- DOT NOT DELETE THIS LINE