+++ /dev/null
-CC = gcc
-CFLAGS = -g -O2 -c
-LINKER = $(CC) -shared -o
-
-INCLUDE_INSTALLDIR = /usr/local/include
-LIB_INSTALLDIR = /usr/local/lib
-DB_INSTALLDIR = /usr/local/lib/chise
-
-VERSION = 0.1
-
-RM = /bin/rm -f
-
-
-all: libchise.so
-
-libchise.so: chise.o
- $(LINKER) libchise.so chise.o -ldb
-
-chise.o: chise.c chise.h
- $(CC) $(CFLAGS) chise.c
-
-
-install: install.h install.so install.db
-
-install.h:
- install -c chise.h $(INCLUDE_INSTALLDIR)
-
-install.so: libchise.so
- install -c libchise.so $(LIB_INSTALLDIR)/libchise.so.$(VERSION)
- (cd $(LIB_INSTALLDIR); ln -sf libchise.so.$(VERSION) libchise.so)
-
-install.db:
- -mkdir -p $(DB_INSTALLDIR)
- ln -sf `xemacs -q -batch -eval '(princ (file-name-as-directory exec-directory))'`char-db $(DB_INSTALLDIR)
-
-clean:
- -$(RM) *.o *.so sample
-
-
-sample: sample.c libchise.so
- gcc -o sample sample.c -lchise