(chise_ft_iterate): New function.
[chise/libchise.git] / Makefile.in
1 CC = @CC@
2 DEFS = @DEFS@
3 LIBS = @LIBS@ -ldb
4 CFLAGS  = @CFLAGS@ -c
5
6 LIBTOOL = @LIBTOOL@
7
8 RM      = /bin/rm -f
9
10
11 ## The default location for installation.  Everything is placed in
12 ## subdirectories of this directory.  The default values for many of
13 ## the variables below are expressed in terms of this one, so you may
14 ## not need to change them.  This defaults to /usr/local.
15 prefix=/usr/local
16
17 ## Like `prefix', but used for architecture-specific files.
18 exec_prefix=${prefix}
19
20 ## Where to install and expect executable files to be run by XEmacs
21 ## rather than directly by users, and other architecture-dependent data
22 ## ${archlibdir} is a subdirectory of this.
23 libdir=${exec_prefix}/lib
24
25
26 INCLUDE_INSTALLDIR = ${prefix}/include
27 LIB_INSTALLDIR  = ${libdir}
28 DB_INSTALLDIR   = ${libdir}/chise
29
30
31 VERSION         = @PACKAGE_VERSION@
32
33
34 all:    libchise.la
35
36 libchise.la:    chise.lo
37         $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) -rpath ${libdir}
38
39 chise.lo:       chise.c chise.h
40         $(LIBTOOL) $(CC) $(CFLAGS) chise.c
41
42
43 install:        install.h install.libs install.db
44
45 install.h:
46         install -c chise.h $(INCLUDE_INSTALLDIR)
47
48 install.libs:   libchise.la
49         $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
50
51 install.db:
52         -mkdir -p $(DB_INSTALLDIR)
53         ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR)
54
55
56 sample: sample.c libchise.la
57         gcc -o sample sample.c -lchise
58
59
60 clean:
61         -$(RM) -r *.o *.lo *.so *.la .libs sample
62
63 distclean: clean
64         -$(RM) Makefile config.h config.status config.log