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