CC = @CC@ DEFS = @DEFS@ LIBS = @LIBS@ CFLAGS = -I. @CFLAGS@ -c -Wall -Wmissing-prototypes $(DEFS) LDFLAGS = @LDFLAGS@ LIBTOOL = @LIBTOOL@ RM = /bin/rm -f TAR = tar MKDIR = mkdir -p ## 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 = @prefix@ ## Like `prefix', but used for architecture-specific files. exec_prefix = @exec_prefix@ datadir = @datadir@ libdir = @libdir@ #libexecdir = @libexecdir@ localstatedir = @localstatedir@ sharedstatedir = @sharedstatedir@ #target = @target@ top_builddir = @builddir@ INCLUDE_INSTALLDIR = ${prefix}/include LIB_INSTALLDIR = ${libdir} CONCORD_DB_PREFIX = ${localstatedir}/concord CONCORD_DB_FORMAT_VERSION = 1.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 = 2:0:1 HEADERS = cos.h concord.h concord-name.h concord-bdb.h OBJS = cos.lo symbol.lo read.lo print.lo concord.lo concord-bdb.lo \ name.lo cos-hash.lo all: libconcord.la libconcord.la: $(OBJS) $(LIBTOOL) --mode=link \ $(CC) $(LDFLAGS) -o libconcord.la $(OBJS) $(LIBS) \ -rpath ${libdir} -version-info $(ABI_VERSION) \ -no-undefined cos.lo: cos.c cos-i.h cos-hash.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-hash.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 print.lo: print.c cos-print.h Makefile $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) print.c concord.lo: concord.c cos-i.h cos-hash.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 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) concord-bdb.c name.lo: name.c concord-name.h hash-i.h $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) name.c cos-hash.lo: cos-hash.c concord-name.h cos-hash.h hash-i.h $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) cos-hash.c install: install.h install.libs install.h: $(MKDIR) $(INCLUDE_INSTALLDIR) install -c $(HEADERS) $(INCLUDE_INSTALLDIR) install.libs: libconcord.la $(MKDIR) $(LIB_INSTALLDIR) $(LIBTOOL) --mode=install install -c libconcord.la $(LIB_INSTALLDIR) sample: sample.c libconcord.la gcc -Wall -Wmissing-prototypes -o sample sample.c -lconcord symbol-test: symbol-test.c libconcord.la gcc -Wall -Wmissing-prototypes -o symbol-test symbol-test.c -lconcord hash-test: hash-test.c libconcord.la gcc -Wall -Wmissing-prototypes -o hash-test hash-test.c -lconcord clean: -$(RM) -r *.o *.lo *.so *.la .libs sample distclean: clean -$(RM) Makefile config.h config.status config.log tar: cvs commit sh -c 'cvs tag -R concord-`echo $(VERSION) \ | sed s/\\\\./_/ | sed s/\\\\./_/`; \ cd /tmp; \ cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \ export -d concord-$(VERSION) \ -r concord-`echo $(VERSION) | tr . _` concord' cd /tmp; $(RM) concord-$(VERSION)/.cvsignore ; \ $(TAR) cvzf concord-$(VERSION).tar.gz concord-$(VERSION) cd /tmp; $(RM) -r concord-$(VERSION)