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.
17 ## Like `prefix', but used for architecture-specific files.
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
26 INCLUDE_INSTALLDIR = ${prefix}/include
27 LIB_INSTALLDIR = ${libdir}
28 DB_INSTALLDIR = ${libdir}/chise
31 VERSION = @PACKAGE_VERSION@
39 $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) \
40 -rpath ${libdir} -version-info $(ABI_VERSION)
42 chise.lo: chise.c chise.h
43 $(LIBTOOL) $(CC) $(CFLAGS) chise.c
46 install: install.h install.libs install.db
49 install -c chise.h $(INCLUDE_INSTALLDIR)
51 install.libs: libchise.la
52 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
55 -mkdir -p $(DB_INSTALLDIR)
56 ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR)
59 sample: sample.c libchise.la
60 gcc -o sample sample.c -lchise
64 -$(RM) -r *.o *.lo *.so *.la .libs sample
67 -$(RM) Makefile config.h config.status config.log