Debian packages libyazpp2 and libyazpp2-dev. These depend on libyaz3,
[yazpp-moved-to-github.git] / zoom / Makefile.am
1 # $Header: /home/cvsroot/yaz++/zoom/Makefile.am,v 1.14 2007-03-20 16:21:58 adam Exp $
2
3 AM_CXXFLAGS= $(YAZINC) 
4
5 if ZOOM
6 lib_LTLIBRARIES = libzoompp.la
7 noinst_PROGRAMS = zclient
8 endif
9
10 libzoompp_la_LDFLAGS=-version-info 2:0:0
11 LDADD=libzoompp.la $(YAZLALIB)
12
13 mirk_sources = zexcept.cpp zconn.cpp zquery.cpp zrs.cpp zrec.cpp
14 libzoompp_la_SOURCES = $(mirk_sources) interface.h
15 pkginclude_HEADERS=zoom.h
16
17 zclient_SOURCES=zclient.cpp
18
19 EXTRA_DIST=master-header README
20
21 test: zclient
22         ./zclient bagel.indexdata.dk 210 gils '@and mineral epicenter'
23
24 $(mirk_sources): zoom.h
25
26 zoom.h: master-header
27         rm -f $@
28         sed 's/^*       /       /; s/^*/ /' $< > $@
29         chmod -w $@
30
31 interface.h: master-header
32         rm -f $@
33         grep -v '^*' $< | sed 's/YAZ_EXPORT //g' > $@
34         chmod -w $@