4 CFLAGS = @CFLAGS@ -c -Wall -Wmissing-prototypes
11 ## The default location for installation. Everything is placed in
12 ## subdirectories of this directory. The default values for many of
13 ## the variables below are expressed in terms of this one, so you may
14 ## not need to change them. This defaults to /usr/local.
17 ## Like `prefix', but used for architecture-specific files.
18 exec_prefix = @exec_prefix@
22 libexecdir = @libexecdir@
24 #localstatedir = @localstatedir@
28 top_builddir = @builddir@
31 INCLUDE_INSTALLDIR = ${prefix}/include
32 LIB_INSTALLDIR = ${libdir}
33 CHISE_DIR_PREFIX = ${libexecdir}/chise
34 CHISE_DIR_VERSION = 0.2
35 CHISE_DIR = ${CHISE_DIR_PREFIX}/${CHISE_DIR_VERSION}
36 CHISE_DB_DIR = ${CHISE_DIR}/${target}
37 CHISE_SI_DB_DIR = ${CHISE_DB_DIR}/db
40 -DCHISE_DB_DIR=\"${CHISE_DB_DIR}/\" \
41 -DCHISE_SI_DB_DIR=\"${CHISE_SI_DB_DIR}/\"
43 VERSION = @PACKAGE_VERSION@
47 HEADERS = chise.h chise-name.h
48 OBJS = chise.lo name.lo
54 $(LIBTOOL) --mode=link \
55 $(CC) -o libchise.la $(OBJS) $(LIBS) \
56 -rpath ${libdir} -version-info $(ABI_VERSION)
58 chise.lo: chise.c chise.h config.h sysdep.h
59 $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
61 name.lo: name.c chise-name.h
62 $(LIBTOOL) $(CC) $(CFLAGS) name.c
65 install: install.h install.libs
68 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
70 install.libs: libchise.la
71 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
74 sample: sample.c libchise.la
75 gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise
79 -$(RM) -r *.o *.lo *.so *.la .libs sample
82 -$(RM) Makefile config.h config.status config.log