CC = @CC@ DEFS = @DEFS@ LIBS = @LIBS@ -ldb CFLAGS = $(DEFS) -g -O2 -c ## 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@ RM = /bin/rm -f 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) clean: -$(RM) -r *.o *.lo *.so *.la .libs sample sample: sample.c libchise.so gcc -o sample sample.c -lchise