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