From bf04095624fb8ab4c1eb9be52b51b2a14bf72a72 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 20 Jan 2000 02:20:43 +0000 Subject: [PATCH] New file. --- Makefile | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c9ee1d8 --- /dev/null +++ b/Makefile @@ -0,0 +1,67 @@ +# +# Makefile for emacs-canna. +# + +EMACS = emacs +EMACS_FLAGS = -batch -q -no-site-file -l CANNA-MK + +EMACS_SRC_DIR = /usr/users/tomo/src/Emacs-DL/src +CC = gcc +CANNA_DEFINES = -DCANNA_EMACS -DCANNA_EMACS_DL +CANNA_HEADERDIR = /usr/users/tomo/src/elisp/emacs-canna/include +CANNA_CFLAGS = $(CANNA_DEFINES) -I$(CANNA_HEADERDIR) +CANNA_LDFLAGS = -L/usr/lib -lcanna + +DL_INSTALLDIR = /usr/local/libexec/emacs/20.4/i686-pc-linux-gnu/ + +CFLAGS = -g -O2 -c -nostdlib -fPIC + +LINKER = $(CC) -shared -o + +VERSION = 1.3 + +PACKAGE = emacs-canna +TAR = tar +RM = /bin/rm -f +CP = /bin/cp -p + + +all: canna.so canna.elc + +canna.elc: canna.el + $(EMACS) $(EMACS_FLAGS) -f compile-canna $(PREFIX) $(LISPDIR) + +canna.o: canna.c Makefile + $(CC) $(CFLAGS) -I$(EMACS_SRC_DIR) $(CANNA_CFLAGS) canna.c + +canna.so: canna.o + $(LINKER) canna.so $(CANNA_LDFLAGS) canna.o + + +install: install.elc install.so + +install.elc: canna.elc + $(EMACS) $(EMACS_FLAGS) -f install-canna $(PREFIX) $(LISPDIR) + +install.so: canna.so + install -c canna.so $(DL_INSTALLDIR)/canna.so.$(VERSION) + (cd $(DL_INSTALLDIR); ln -sf canna.so.$(VERSION) canna.so) + + +clean: + -rm -f canna.o canna.so canna.elc + + +tar: + cvs commit + sh -c 'cvs tag -RF $(PACKAGE)-`echo $(VERSION) | tr . _`; \ + cd /tmp; \ + cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root \ + export -d $(PACKAGE)-$(VERSION) \ + -r $(PACKAGE)-`echo $(VERSION) | tr . _` \ + emacs-canna' + $(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in + cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) + cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION) + sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \ + | sed "s/PACKAGE/$(PACKAGE)/" > ftp -- 1.7.10.4