XCOMM $ Imakefile for skkinput,v 0.10 96/10/16 12:45 $

/* SKK Server Address */
#define SkkServer	localhost

/* SKK Port Num */
XCOMM #define SkkPort	1178

/* Skkinput Window uses these fonts. */
#define Default_FontSet -*-fixed-medium-r-normal--16-*-*-*-*-*-iso8859-1,-misc-fixed-medium-r-normal--16-*-*-*-*-*-jisx0201.1976-0,-misc-fixed-medium-r-normal--16-*-*-*-*-*-jisc6226.1978-0,-misc-fixed-medium-r-normal--16-*-*-*-*-*-jisx0208.1983-0,-misc-fixed-medium-r-normal--16-*-*-*-*-*-jisx0212.1990-0

/* Kinput Protocol Support */
XCOMM #define Support_KINPUT	NO
/* XIMP Protocol Support */
XCOMM #define Support_XIMP	NO
/* X Input Method Support */
XCOMM #define Support_XIM	NO

/* IPv6 support */
XCOMM #define Use_INET6	NO

/* for debugging */
XCOMM SKK_DEBUGFLAGS	 = -DDEBUG #-DDEBUG_AGAIN -DDEBUG_XIM 
CDEBUGFLAGS = -g -ggdb -O -Wall
STD_INCLUDES = -I. -I./myeval

/* Default Protocol Support */
#ifndef Support_KINPUT
#define Support_KINPUT	YES
#endif
#ifndef Support_XIMP
#define Support_XIMP	YES
#endif
#ifndef Support_XIM
#define Support_XIM	YES
#endif
#ifndef Use_INET6
#define Use_INET6	YES
#endif

DEPLIBS = $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB)

COMMONSRCS = main.c SeparateWin.c OverWin.c OffWin.c OnWin.c cstyle.c \
	skksoc.c skksvect.c skkldic.c skkldrec.c skkconfig.c parseStr.c \
	keymap.c ctext.c skkel.c skkmarker.c skkmbuf.c draw.c MyDispatch.c \
	MyError.c FontMgr.c Canvas.c WmcloseShell.c \
	HistMgr.c CliMsg.c lispparse.c lispeval.c kanji.c
COMMONOBJS = main.o SeparateWin.o OverWin.o OffWin.o OnWin.o cstyle.o \
	skksoc.o skksvect.o skkldic.o skkldrec.o skkconfig.o parseStr.o \
	keymap.o ctext.o skkel.o skkmarker.o skkmbuf.o draw.o MyDispatch.o \
	MyError.o FontMgr.o Canvas.o WmcloseShell.o \
	HistMgr.o CliMsg.o lispparse.o lispeval.o kanji.o

#if Support_KINPUT
KINPUTSRCS = Kinput.c
KINPUTOBJS = Kinput.o
SKK_KINPUTDEFS = -DSUPPORT_KINPUT
#else
KINPUTSRCS = 
KINPUTOBJS = 
SKK_KINPUTDEFS = 
#endif

#if Support_XIMP
XIMPSRCS = Ximp.c
XIMPOBJS = Ximp.o 
SKK_XIMPDEFS = -DSUPPORT_XIMP 
#else
XIMPSRCS = 
XIMPOBJS = 
SKK_XIMPDEFS = 
#endif
#if Support_XIM
IMSRCS = XIMServer.c XIMClient.c XIMInputMethod.c XIMInputContext.c \
	 XIMPacket.c
IMOBJS = XIMServer.o XIMClient.o XIMInputMethod.o XIMInputContext.o \
	 XIMPacket.o

SKK_IMDEFS = -DSUPPORT_XIM -DXIM_BC
#else
IMSRCS =
IMOBJS =
SKK_IMDEFS =
#endif

SRCS = $(COMMONSRCS) $(KINPUTSRCS) $(XIMPSRCS) $(IMSRCS)
OBJS = $(COMMONOBJS) $(KINPUTOBJS) $(XIMPOBJS) $(IMOBJS)

#ifdef SkkServer
SKKSERVER_DEFS = -DDEFAULT_SKKSERVER=\"SkkServer\"
#endif

#ifdef SkkPort
SKKPORT_DEFS = -DDEFAULT_SKKPORT=\"SkkPort\"
#endif

#ifdef Default_FontSet
SKKFONT_DEFS = -DDEFAULT_FONTSET=\"Default_FontSet\"
#endif

#if Use_INET6
SKKSERVER_USE_INET6 = -DUSE_INET6
#endif

DEFINES = $(SKKSERVER_DEFS) $(SKKPORT_DEFS) $(SKK_DEBUGFLAGS) \
          $(SKKFONT_DEFS) $(SKK_KINPUTDEFS) $(SKK_XIMPDEFS) $(SKK_IMDEFS) \
	  $(SKKSERVER_USE_INET6)

ComplexProgramTarget(skkinput)
InstallManPageLong(skkinput.ja,`echo $(MANDIR) | sed -e 's|$(MANPATH)|$(MANPATH)/ja|'`,skkinput)
InstallAppDefaults(Skkinput)
