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@
37 $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) -rpath ${libdir}
39 chise.lo: chise.c chise.h
40 $(LIBTOOL) $(CC) $(CFLAGS) chise.c
43 install: install.h install.libs install.db
46 install -c chise.h $(INCLUDE_INSTALLDIR)
48 install.libs: libchise.la
49 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
52 -mkdir -p $(DB_INSTALLDIR)
53 ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR)
56 sample: sample.c libchise.la
57 gcc -o sample sample.c -lchise
61 -$(RM) -r *.o *.lo *.so *.la .libs sample
64 -$(RM) Makefile config.h config.status config.log