XCOMM  This file is part of Byeoroo, a Korean input method server for X11.
XCOMM  Copyright (C) 1997  Park, Jae-hyon.
XCOMM  
XCOMM  This program is free software; you can redistribute it and/or modify
XCOMM  it under the terms of the GNU General Public License as published by
XCOMM  the Free Software Foundation; either version 2 of the License , or
XCOMM  (at your option) any later version.
XCOMM  
XCOMM  This program is distributed in the hope that it will be useful,
XCOMM  but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XCOMM  GNU General Public License for more details.
XCOMM  
XCOMM  You should have received a copy of the GNU General Public License
XCOMM  along with this program; see the file COPYING.  If not, write to
XCOMM  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
XCOMM  Boston, MA 02111-1307, USA.
XCOMM  
XCOMM  You may contact the author by:
XCOMM	  e-mail:  jhpark@entropy.kaist.ac.kr
XCOMM	    mail:  Park, Jae-hyon
XCOMM		   Physics Department, 305-701
XCOMM		   Korea Advanced Institute of Science and Technology
XCOMM		   Taejon, South Korea


XCOMM
XCOMM If your make doesn't handle pattern rules like
XCOMM 	  %.o : %.c
XCOMM 		  ...
XCOMM set USE_SUFFIX_RULE to YES.
XCOMM

#define USE_SUFFIX_RULE NO


IMDKITDIR = ../IMdkit/IMdkit
CCOPTIONS = -Wall -Wno-import
CDEBUGFLAGS = -DDEBUG -g
LIBIMD = -lXimd


XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM
XCOMM                                                             XCOMM
XCOMM           A v o i d   t o u c h i n g   b e l o w           XCOMM
XCOMM                                                             XCOMM  
XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM XCOMM 


DISTNAME = byeoroo-970905

SRCS = main.m hangul.c sutil.c \
	IContext.m ICManager.m KAutomataCore.m KAutomataForX.m \
	KeyTranslator.m ChineseDic.m XChineseDic.m \
	HistoryText.m KText.m CallbackText.m textActions.m \
	JohabLabel.c XJohab.c AdoptedShe.c
OBJS = main.o hangul.o sutil.o \
	IContext.o ICManager.o KAutomataCore.o KAutomataForX.o \
	KeyTranslator.o ChineseDic.o XChineseDic.o \
	HistoryText.o KText.o CallbackText.o textActions.o \
	JohabLabel.o XJohab.o AdoptedShe.o
DOCSRCS = INSTALL.sgml README.sgml
DOCS = INSTALL README
MISCFILES = Byeoroo ChangeLog COPYING

DEFINES = XawI18nDefines
IMDKITINCLUDE = -I$(IMDKITDIR)
INCLUDES = $(IMDKITINCLUDE)
LOCAL_LDFLAGS = -L$(IMDKITDIR)
DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs -lobjc $(LIBIMD)

ComplexProgramTarget(byeoroo)

dist: docs
	rm -rf ../$(DISTNAME)
	mkdir ../$(DISTNAME)
	cp -f *.{[cmh],kdf,ksm} $(DOCS) $(MISCFILES) ../$(DISTNAME)
	sed 's/^LIBIMD = .*$$/LIBIMD = -lXimd/' Imakefile > \
		../$(DISTNAME)/Imakefile
	(cd ..; tar zcvf ~/html/byeoroo/$(DISTNAME).tar.gz $(DISTNAME))
	rm -rf ../$(DISTNAME)
docs: $(DOCS)
README : README.sgml
INSTALL: INSTALL.sgml

#if USE_SUFFIX_RULE
.SUFFIXES: .m .txt .sgml

.m.o :
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
.txt :
	mv $< $@
.sgml.txt :
	sgml2txt -k -f $<
#else
%.o : %.m
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
% : %.txt
	mv $< $@
%.txt : %.sgml
	sgml2txt -k -f $<
#endif
