4 CFLAGS = @CFLAGS@ -c -Wall -Wmissing-prototypes @DEFS@
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) \
68 chise.lo: chise.c chise.h config.h sysdep.h
69 $(LIBTOOL) --mode=compile $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
72 install: install.h install.libs
75 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
77 install.libs: libchise.la
78 $(LIBTOOL) --mode=install install -c libchise.la $(LIB_INSTALLDIR)
81 sample: sample.c libchise.la
82 gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise
86 -$(RM) -r *.o *.lo *.so *.la .libs sample
89 -$(RM) Makefile config.h config.status config.log
90 -$(RM) -r autom4te.cache autoscan.log configure.scan libtool
94 sh -c 'cvs tag -R libchise-`echo $(VERSION) \
95 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
97 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
98 export -d libchise-$(VERSION) \
99 -r libchise-`echo $(VERSION) | tr . _` libchise'
100 cd /tmp; $(RM) libchise-$(VERSION)/.cvsignore ; \
101 $(TAR) cvzf libchise-$(VERSION).tar.gz libchise-$(VERSION)
102 cd /tmp; $(RM) -r libchise-$(VERSION)