libexecdir = @libexecdir@
+#localstatedir = @localstatedir@
+
+target = @target@
+
+top_builddir = @builddir@
+
INCLUDE_INSTALLDIR = ${prefix}/include
LIB_INSTALLDIR = ${libdir}
-DB_DIR = ${libexecdir}/chise/0.2/
+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
-rpath ${libdir} -version-info $(ABI_VERSION)
chise.lo: chise.c chise.h config.h sysdep.h
- $(LIBTOOL) $(CC) -DCHISE_DB_DIR=\"${DB_DIR}\" $(CFLAGS) chise.c
+ $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
name.lo: name.c chise-name.h
$(LIBTOOL) $(CC) $(CFLAGS) name.c