CC = @CC@ DEFS = @DEFS@ LIBS = @LIBS@ -ldb CFLAGS = @CFLAGS@ -c LIBTOOL = @LIBTOOL@ RM = /bin/rm -f ## The default location for installation. Everything is placed in ## subdirectories of this directory. The default values for many of ## the variables below are expressed in terms of this one, so you may ## not need to change them. This defaults to /usr/local. prefix=/usr/local ## Like `prefix', but used for architecture-specific files. exec_prefix=${prefix} ## Where to install and expect executable files to be run by XEmacs ## rather than directly by users, and other architecture-dependent data ## ${archlibdir} is a subdirectory of this. libdir=${exec_prefix}/lib INCLUDE_INSTALLDIR = ${prefix}/include LIB_INSTALLDIR = ${libdir} DB_INSTALLDIR = ${libdir}/chise VERSION = @PACKAGE_VERSION@ all: libchise.la libchise.la: chise.lo $(LIBTOOL) $(CC) -o libchise.la chise.lo $(LIBS) -rpath ${libdir} chise.lo: chise.c chise.h $(LIBTOOL) $(CC) $(CFLAGS) chise.c install: install.h install.libs install.db install.h: install -c chise.h $(INCLUDE_INSTALLDIR) install.libs: libchise.la $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR) install.db: -mkdir -p $(DB_INSTALLDIR) ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR) sample: sample.c libchise.la gcc -o sample sample.c -lchise clean: -$(RM) -r *.o *.lo *.so *.la .libs sample distclean: clean -$(RM) Makefile config.h config.status config.log