4 CFLAGS = @CFLAGS@ -c -Wall -Wmissing-prototypes
12 ## The default location for installation. Everything is placed in
13 ## subdirectories of this directory. The default values for many of
14 ## the variables below are expressed in terms of this one, so you may
15 ## not need to change them. This defaults to /usr/local.
18 ## Like `prefix', but used for architecture-specific files.
19 exec_prefix = @exec_prefix@
25 #libexecdir = @libexecdir@
27 #localstatedir = @localstatedir@
29 sharedstatedir = @sharedstatedir@
33 top_builddir = @builddir@
36 INCLUDE_INSTALLDIR = ${prefix}/include
37 LIB_INSTALLDIR = ${libdir}
38 #CHISE_DIR_PREFIX = ${libexecdir}/chise
39 CHISE_DIR_PREFIX = ${datadir}/chise
40 #CHISE_DIR_PREFIX = ${sharedstatedir}/chise
41 CHISE_DIR_VERSION = 1.0
42 CHISE_DIR = ${CHISE_DIR_PREFIX}/${CHISE_DIR_VERSION}
43 #CHISE_DB_DIR = ${CHISE_DIR}/${target}
44 CHISE_DB_DIR = ${CHISE_DIR}
45 CHISE_SI_DB_DIR = ${CHISE_DB_DIR}/db
48 -DCHISE_DB_FORMAT_VERSION=\"${CHISE_DIR_VERSION}/\" \
49 -DCHISE_DB_DIR=\"${CHISE_DB_DIR}/\" \
50 -DCHISE_SI_DB_DIR=\"${CHISE_SI_DB_DIR}/\"
52 VERSION = @PACKAGE_VERSION@
63 $(LIBTOOL) --mode=link \
64 $(CC) -o libchise.la $(OBJS) $(LIBS) \
65 -rpath ${libdir} -version-info $(ABI_VERSION)
67 chise.lo: chise.c chise.h config.h sysdep.h
68 $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
71 install: install.h install.libs
74 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
76 install.libs: libchise.la
77 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
80 sample: sample.c libchise.la
81 gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise
85 -$(RM) -r *.o *.lo *.so *.la .libs sample
88 -$(RM) Makefile config.h config.status config.log
89 -$(RM) -r autom4te.cache autoscan.log configure.scan libtool
93 sh -c 'cvs tag -R libchise-`echo $(VERSION) \
94 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
96 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
97 export -d libchise-$(VERSION) \
98 -r libchise-`echo $(VERSION) | tr . _` libchise'
99 cd /tmp; $(RM) libchise-$(VERSION)/.cvsignore ; \
100 $(TAR) cvzf libchise-$(VERSION).tar.gz libchise-$(VERSION)
101 cd /tmp; $(RM) -r libchise-$(VERSION)