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