Added ZOOM.
[yazpp-moved-to-github.git] / zoom / Makefile
1 # $Header: /home/cvsroot/yaz++/zoom/Attic/Makefile,v 1.1 2002-08-08 13:31:54 mike Exp $
2
3 CCC = g++       # ... until I figure out what the standard
4                 # Make macro name is for the C++ compiler.
5 CPPFLAGS := -Wall -g
6 L = libzoom.a
7 OBJ = $L(zerr.o) $L(zconn.o) $L(zquery.o) $L(zrs.o) $L(zrec.o)
8
9 all: interface.h zclient
10
11 zclient: zclient.o $L
12         @echo CCC = $(CCC)
13         $(CCC) $(CPPFLAGS) -o zclient zclient.o $L -lyaz
14
15 test: zclient
16         ./zclient bagel.indexdata.dk 210 gils '@and mineral epicenter'
17
18 $L: $(OBJ)
19         ranlib $L
20
21 $(OBJ): zoom++.h
22
23 zclient.o: zoom++.h
24
25 zoom++.h: master-header
26         rm -f $@
27         sed 's/^*       /       /; s/^*/ /' $< > $@
28         chmod -w $@
29
30 interface.h: master-header
31         rm -f $@
32         grep -v '^*' $< > $@
33         chmod -w $@
34
35 clean:
36         rm -f zoom++.h interface.h zclient *.[ao] core