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@
25 INCLUDE_INSTALLDIR = ${prefix}/include
26 LIB_INSTALLDIR = ${libdir}
27 DB_DIR = ${libexecdir}/chise/0.1/
30 VERSION = @PACKAGE_VERSION@
34 HEADERS = chise.h chise-name.h
35 OBJS = chise.lo name.lo
41 $(LIBTOOL) --mode=link \
42 $(CC) -o libchise.la $(OBJS) $(LIBS) \
43 -rpath ${libdir} -version-info $(ABI_VERSION)
45 chise.lo: chise.c chise.h config.h sysdep.h
46 $(LIBTOOL) $(CC) -DCHISE_DB_DIR=\"${DB_DIR}\" $(CFLAGS) chise.c
48 name.lo: name.c chise-name.h
49 $(LIBTOOL) $(CC) $(CFLAGS) name.c
52 install: install.h install.libs
55 install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
57 install.libs: libchise.la
58 $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
61 sample: sample.c libchise.la
62 gcc -Wall -Wmissing-prototypes -o sample sample.c -lchise
66 -$(RM) -r *.o *.lo *.so *.la .libs sample
69 -$(RM) Makefile config.h config.status config.log