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@
23 libexecdir = @libexecdir@
25 #localstatedir = @localstatedir@
29 top_builddir = @builddir@
32 INCLUDE_INSTALLDIR = ${prefix}/include
33 LIB_INSTALLDIR = ${libdir}
34 CHISE_DIR_PREFIX = ${libexecdir}/chise
35 CHISE_DIR_VERSION = 0.2
36 CHISE_DIR = ${CHISE_DIR_PREFIX}/${CHISE_DIR_VERSION}
37 CHISE_DB_DIR = ${CHISE_DIR}/${target}
38 CHISE_SI_DB_DIR = ${CHISE_DB_DIR}/db
41 -DCHISE_DB_DIR=\"${CHISE_DB_DIR}/\" \
42 -DCHISE_SI_DB_DIR=\"${CHISE_SI_DB_DIR}/\"
44 VERSION = @PACKAGE_VERSION@
48 HEADERS = chise.h chise-name.h
49 OBJS = chise.lo name.lo
55 $(LIBTOOL) --mode=link \
56 $(CC) -o libchise.la $(OBJS) $(LIBS) \
57 -rpath ${libdir} -version-info $(ABI_VERSION)
59 chise.lo: chise.c chise.h config.h sysdep.h
60 $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
62 name.lo: name.c chise-name.h
63 $(LIBTOOL) $(CC) $(CFLAGS) name.c
66 install: install.h install.libs
69 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
71 install.libs: libchise.la
72 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
75 sample: sample.c libchise.la
76 gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise
80 -$(RM) -r *.o *.lo *.so *.la .libs sample
83 -$(RM) Makefile config.h config.status config.log
88 sh -c 'cvs tag -R libchise-`echo $(VERSION) \
89 | sed s/\\\\./_/ | sed s/\\\\./_/`; \
91 cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/chise \
92 export -d libchise-$(VERSION) \
93 -r libchise-`echo $(VERSION) | tr . _` libchise'
94 cd /tmp; $(RM) libchise-$(VERSION)/ftp.in libchise-$(VERSION)/.cvsignore ; \
95 $(TAR) cvzf libchise-$(VERSION).tar.gz libchise-$(VERSION)
96 cd /tmp; $(RM) -r libchise-$(VERSION)
97 sed "s/VERSION/$(VERSION)/" < ftp.in > ftp