From: MORIOKA Tomohiko Date: Mon, 1 Apr 2013 05:46:38 +0000 (+0900) Subject: (localstatedir): New variable. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4923d221772f05926ace6356d9ad4a1c59203e8d;p=chise%2Fconcord.git (localstatedir): New variable. (CONCORD_DB_PREFIX): New variable. (CONCORD_DB_FORMAT_VERSION): New variable. (CONCORD_DB_DIR): New variable. (CONCORD_SI_DB_DIR): New variable. (CONCORD_CFLAGS): New variable. (HEADERS): Add cos.h. (OBJS): Add cos.lo, symbol.lo and read.lo. (cos.lo): New target. (symbol.lo): New target. (read.lo): New target. (concord.lo): Depend on cos-i.h and cos.h. --- diff --git a/Makefile.in b/Makefile.in index dab85ca..d0d557d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -25,7 +25,7 @@ libdir = @libdir@ #libexecdir = @libexecdir@ -#localstatedir = @localstatedir@ +localstatedir = @localstatedir@ sharedstatedir = @sharedstatedir@ @@ -37,12 +37,22 @@ top_builddir = @builddir@ INCLUDE_INSTALLDIR = ${prefix}/include LIB_INSTALLDIR = ${libdir} +CONCORD_DB_PREFIX = ${localstatedir}/concord +CONCORD_DB_FORMAT_VERSION = 2.0 +CONCORD_DB_DIR = ${CONCORD_DB_PREFIX}/${CONCORD_DB_FORMAT_VERSION} +CONCORD_SI_DB_DIR = ${CONCORD_DB_DIR}/db + +CONCORD_CFLAGS = \ + -DCONCORD_DB_FORMAT_VERSION=\"${CONCORD_DB_FORMAT_VERSION}/\" \ + -DCONCORD_DB_DIR=\"${CONCORD_DB_DIR}/\" \ + -DCONCORD_SI_DB_DIR=\"${CONCORD_SI_DB_DIR}/\" + VERSION = @PACKAGE_VERSION@ ABI_VERSION = 1:0:1 -HEADERS = concord.h concord-name.h concord-bdb.h -OBJS = concord.lo concord-bdb.lo name.lo +HEADERS = cos.h concord.h concord-name.h concord-bdb.h +OBJS = cos.lo symbol.lo read.lo concord.lo concord-bdb.lo name.lo all: libconcord.la @@ -53,7 +63,16 @@ libconcord.la: $(OBJS) -rpath ${libdir} -version-info $(ABI_VERSION) \ -no-undefined -concord.lo: concord.c concord.h config.h sysdep.h +cos.lo: cos.c cos-i.h cos-read.h cos.h concord.h config.h sysdep.h Makefile + $(LIBTOOL) --mode=compile $(CC) $(CONCORD_CFLAGS) $(CFLAGS) cos.c + +symbol.lo: symbol.c cos-i.h cos.h config.h sysdep.h Makefile + $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) symbol.c + +read.lo: read.c cos-read.h Makefile + $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) read.c + +concord.lo: concord.c cos-i.h cos.h concord.h config.h sysdep.h $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord.c concord-bdb.lo: concord-bdb.c concord-bdb.h concord-name.h