Removed dbc2709_cvt function. Makes heuristic guess for DBC2709 records.
[egate.git] / util / Makefile
1 # Makefile for Email gateway utilities
2 # Europagate, 1995
3 #
4 # $Log: Makefile,v $
5 # Revision 1.8  1995/03/10 09:10:56  adam
6 # Removed dbc2709_cvt function. Makes heuristic guess for DBC2709 records.
7 #
8 # Revision 1.7  1995/02/22  21:32:36  adam
9 # Changed header.
10 #
11 # Revision 1.5  1995/02/22  08:51:46  adam
12 # Definition of CPP changed.
13 #
14 # Revision 1.4  1995/02/20  21:16:32  adam
15 # Minor changes.
16 #
17 # Revision 1.3  1995/02/15  17:45:43  adam
18 # Bug fix in iso2709 module.
19 #
20 # Revision 1.2  1995/02/10  17:05:18  adam
21 # New function iso2709_display to display MARC records in a
22 # line-by-line format. The iso2709_cvt function no longer
23 # prints the record to stderr.
24 #
25 # Revision 1.1.1.1  1995/02/09  17:27:11  adam
26 # Initial version of email gateway under CVS control.
27 #
28 SHELL=/bin/sh
29 INCLUDE=-I../include
30 CFLAGS=-g -Wall -pedantic -ansi
31 TPROG1=iso2709dump
32 LIB=../lib/util.a
33 PO=iso2709.o iso27dis.o
34 CPP=$(CC) -E
35 DEFS=$(INCLUDE) -DSTUPID_ISO_DBC=1
36
37 all: $(TPROG1) $(TPROG2)
38
39 $(TPROG1): $(TPROG1).o $(LIB) 
40         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB)
41
42 $(LIB): $(PO)
43         rm -f $(LIB)
44         ar qc $(LIB) $(PO)
45         ranlib $(LIB)
46
47 .c.o:
48         $(CC) -c $(DEFS) $(CFLAGS) $<
49
50 clean:
51         rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
52
53 depend: depend2
54
55 depend1:
56         mv Makefile Makefile.tmp
57         sed '/^#Depend/q' <Makefile.tmp >Makefile
58         $(CPP) $(INCLUDE) -M *.c >>Makefile
59         -rm Makefile.tmp
60
61 depend2:
62         $(CPP) $(INCLUDE) -M *.c >.depend       
63
64 ifeq (.depend,$(wildcard .depend))
65 include .depend
66 endif
67
68 #Depend --- DOT NOT DELETE THIS LINE