X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile.in;h=e1fe85dc801cff726fe1adcf3f0c0fbca4a8962c;hb=ea59635e936fd759a015e896e6ac4126b408ad77;hp=e3aee961245badbe7e2218041881e55ba5b000c4;hpb=3ad9ad78e11e56c38fa451ca0c2a611e03ef9c23;p=chise%2Flibchise.git diff --git a/Makefile.in b/Makefile.in index e3aee96..e1fe85d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,61 +1,82 @@ CC = @CC@ DEFS = @DEFS@ -LIBS = @LIBS@ -ldb +LIBS = @LIBS@ +CFLAGS = @CFLAGS@ -c -Wall -Wmissing-prototypes + +LIBTOOL = @LIBTOOL@ + +RM = /bin/rm -f -#CC = gcc -CFLAGS = $(DEFS) -g -O2 -c -LINKER = $(CC) $(LIBS) -shared -o ## 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 +prefix = @prefix@ ## Like `prefix', but used for architecture-specific files. -exec_prefix=${prefix} +exec_prefix = @exec_prefix@ + +libdir = @libdir@ + +libexecdir = @libexecdir@ + +#localstatedir = @localstatedir@ + +target = @target@ -## 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 +top_builddir = @builddir@ INCLUDE_INSTALLDIR = ${prefix}/include LIB_INSTALLDIR = ${libdir} -DB_INSTALLDIR = ${libdir}/chise +CHISE_DIR_PREFIX = ${libexecdir}/chise +CHISE_DIR_VERSION = 0.2 +CHISE_DIR = ${CHISE_DIR_PREFIX}/${CHISE_DIR_VERSION} +CHISE_DB_DIR = ${CHISE_DIR}/${target} +CHISE_SI_DB_DIR = ${CHISE_DB_DIR}/db +CHISE_CFLAGS = \ + -DCHISE_DB_DIR=\"${CHISE_DB_DIR}/\" \ + -DCHISE_SI_DB_DIR=\"${CHISE_SI_DB_DIR}/\" VERSION = @PACKAGE_VERSION@ +ABI_VERSION = 1:0:0 + + +HEADERS = chise.h chise-name.h +OBJS = chise.lo name.lo -RM = /bin/rm -f +all: libchise.la -all: libchise.so +libchise.la: $(OBJS) + $(LIBTOOL) --mode=link \ + $(CC) -o libchise.la $(OBJS) $(LIBS) \ + -rpath ${libdir} -version-info $(ABI_VERSION) -libchise.so: chise.o - $(LINKER) libchise.so chise.o +chise.lo: chise.c chise.h config.h sysdep.h + $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c -chise.o: chise.c chise.h - $(CC) $(CFLAGS) chise.c +name.lo: name.c chise-name.h + $(LIBTOOL) $(CC) $(CFLAGS) name.c -install: install.h install.so install.db +install: install.h install.libs install.h: - install -c chise.h $(INCLUDE_INSTALLDIR) + install -c $(HEADERS) $(INCLUDE_INSTALLDIR) -install.so: libchise.so - install -c libchise.so $(LIB_INSTALLDIR)/libchise.so.$(VERSION) - (cd $(LIB_INSTALLDIR); ln -sf libchise.so.$(VERSION) libchise.so) +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) *.o *.so sample +sample: sample.c libchise.la + gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise + +clean: + -$(RM) -r *.o *.lo *.so *.la .libs sample -sample: sample.c libchise.so - gcc -o sample sample.c -lchise +distclean: clean + -$(RM) Makefile config.h config.status config.log