(localstatedir): New variable.
authorMORIOKA Tomohiko <tomo.git@chise.org>
Mon, 1 Apr 2013 05:46:38 +0000 (14:46 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Mon, 1 Apr 2013 05:46:38 +0000 (14:46 +0900)
(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.

Makefile.in

index dab85ca..d0d557d 100644 (file)
@@ -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