4 CFLAGS = -I. @CFLAGS@ -c -Wall -Wmissing-prototypes $(DEFS)
14 ## The default location for installation. Everything is placed in
15 ## subdirectories of this directory. The default values for many of
16 ## the variables below are expressed in terms of this one, so you may
17 ## not need to change them. This defaults to /usr/local.
20 ## Like `prefix', but used for architecture-specific files.
21 exec_prefix = @exec_prefix@
27 #libexecdir = @libexecdir@
29 localstatedir = @localstatedir@
31 sharedstatedir = @sharedstatedir@
35 top_builddir = @builddir@
38 INCLUDE_INSTALLDIR = ${prefix}/include
39 LIB_INSTALLDIR = ${libdir}
41 CONCORD_DB_PREFIX = ${localstatedir}/concord
42 CONCORD_DB_FORMAT_VERSION = 1.0
43 CONCORD_DB_DIR = ${CONCORD_DB_PREFIX}/${CONCORD_DB_FORMAT_VERSION}
44 CONCORD_SI_DB_DIR = ${CONCORD_DB_DIR}/db
47 -DCONCORD_DB_FORMAT_VERSION=\"${CONCORD_DB_FORMAT_VERSION}/\" \
48 -DCONCORD_DB_DIR=\"${CONCORD_DB_DIR}/\" \
49 -DCONCORD_SI_DB_DIR=\"${CONCORD_SI_DB_DIR}/\"
51 VERSION = @PACKAGE_VERSION@
55 HEADERS = cos.h concord.h concord-name.h concord-bdb.h
56 OBJS = cos.lo symbol.lo read.lo print.lo concord.lo concord-bdb.lo \
61 libconcord.la: $(OBJS)
62 $(LIBTOOL) --mode=link \
63 $(CC) $(LDFLAGS) -o libconcord.la $(OBJS) $(LIBS) \
64 -rpath ${libdir} -version-info $(ABI_VERSION) \
67 cos.lo: cos.c cos-i.h cos-hash.h cos-read.h cos.h concord.h config.h sysdep.h Makefile
68 $(LIBTOOL) --mode=compile $(CC) $(CONCORD_CFLAGS) $(CFLAGS) cos.c
70 symbol.lo: symbol.c cos-i.h cos-hash.h cos.h config.h sysdep.h Makefile
71 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) symbol.c
73 read.lo: read.c cos-read.h Makefile
74 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) read.c
76 print.lo: print.c cos-print.h Makefile
77 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) print.c
79 concord.lo: concord.c cos-i.h cos-hash.h cos.h concord.h config.h sysdep.h
80 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord.c
82 concord-bdb.lo: concord-bdb.c concord-bdb.h concord-name.h
83 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord-bdb.c
85 name.lo: name.c concord-name.h hash-i.h
86 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) name.c
88 cos-hash.lo: cos-hash.c concord-name.h cos-hash.h hash-i.h
89 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) cos-hash.c
92 install: install.h install.libs
95 $(MKDIR) $(INCLUDE_INSTALLDIR)
96 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
98 install.libs: libconcord.la
99 $(MKDIR) $(LIB_INSTALLDIR)
100 $(LIBTOOL) --mode=install install -c libconcord.la $(LIB_INSTALLDIR)
103 sample: sample.c libconcord.la
104 gcc -Wall -Wmissing-prototypes -o sample sample.c -lconcord
106 symbol-test: symbol-test.c libconcord.la
107 gcc -Wall -Wmissing-prototypes -o symbol-test symbol-test.c -lconcord
109 hash-test: hash-test.c libconcord.la
110 gcc -Wall -Wmissing-prototypes -o hash-test hash-test.c -lconcord
114 -$(RM) -r *.o *.lo *.so *.la .libs sample
117 -$(RM) Makefile config.h config.status config.log
122 sh -c 'cvs tag -R concord-`echo $(VERSION) \
123 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
125 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
126 export -d concord-$(VERSION) \
127 -r concord-`echo $(VERSION) | tr . _` concord'
128 cd /tmp; $(RM) concord-$(VERSION)/.cvsignore ; \
129 $(TAR) cvzf concord-$(VERSION).tar.gz concord-$(VERSION)
130 cd /tmp; $(RM) -r concord-$(VERSION)