Using autoconf. New definitions: YAZ_BEGIN_CDECL/YAZ_END_CDECL.
[yaz-moved-to-github.git] / Makefile.am
1 # Copyright (C) 1995-2000, Index Data 
2 # All rights reserved.
3 # $Id: Makefile.am,v 1.1 2000-02-28 11:20:05 adam Exp $
4
5 AUTOMAKE_OPTIONS = foreign 
6
7 DIST_SUBDIRS=util odr z39.50 asn ill zutil comstack ccl tab retrieval server lib include client ztest doc
8
9 SUBDIRS = @SUBDIRS_VAR@
10
11 noinst_SCRIPTS = yaz-config
12 SPEC_FILE=$(PACKAGE).spec
13 EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt
14
15 yaz-config:
16         @echo "#!/bin/sh" >yaz-config
17         @echo "# YAZ settings for developers" >>yaz-config
18         @echo "YAZBIN=\"`pwd`/bin\"" >>yaz-config
19         @echo "YAZTAB=\"`pwd`/tab\"" >>yaz-config
20         @echo "YAZLIB=\"-L`pwd`/lib -lyaz @LIBS@\"" >>yaz-config
21         @echo "YAZINC=\"-I`pwd`/include\"" >>yaz-config
22         chmod +x yaz-config
23
24 dist-hook:
25         mkdir $(distdir)/win
26         -cp $(srcdir)/win/* $(distdir)/win
27
28 rpm: $(PACKAGE)-$(VERSION).tar.gz
29         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
30         rpm -ba $(SPEC_FILE)