XCOMM IMserver Developers Kit Imakefile,v 1.13 94/02/06 15:22:54 tajima Exp $

#ifndef SharedLibXimd
#define SharedLibXimd HasSharedLibraries
#endif
#ifndef NormalLibXimd
#define NormalLibXimd (!SharedLibXimd | ForceNormalLib)
#endif
#ifndef DebugLibXimd
#define DebugLibXimd		NO	/* debugged Ximd library */
#endif
#ifndef ProfileLibXimd
#define ProfileLibXimd		NO	/* profiled Ximd library */
#endif

#ifdef SharedLibXimd
REQUIREDLIBS = $(XLIBONLY)
#endif

#define DoNormalLib NormalLibXimd
#define DoSharedLib SharedLibXimd
#define DoDebugLib DebugLibXimd
#define DoProfileLib ProfileLibXimd
#define LibName Ximd
#define SoRev SOXIMDREV
#define IncSubdir Ximd

#define BuildXi18n YES
#define BuildXimp YES

   SOXIMDREV = 1.0
   CONN_DEFINES = ConnectionFlags
   EXTRA_DEFINES = -DUse_Ximp
   XTRANS_XIM_DEFINES = -DXIM_t -DTRANS_SERVER
#if HasBSD44Sockets
   SOCK_DEFINES = -DBSD44SOCKETS
#endif
EXTRA_INCLUDES =

COREHDRS = IMdkit.h

CORESRCS = \
   IMConn.c \
   IMValues.c \
   IMMethod.c

COREOBJS = \
   IMConn.o \
   IMValues.o \
   IMMethod.o

#if BuildXi18n

I18NHDRS = Xi18n.h

I18NSRCS = \
   FrameMgr.c \
   i18nIMProto.c \
   i18nAttr.c \
   i18nMethod.c \
   i18nUtil.c \
   i18nPtHdr.c \
   i18nIc.c \
   i18nClbk.c \
   i18nX.c \
   i18nTr.c \
   i18ntrans.c

I18NOBJS = \
   FrameMgr.o \
   i18nIMProto.o \
   i18nAttr.o \
   i18nMethod.o \
   i18nUtil.o \
   i18nPtHdr.o \
   i18nIc.o \
   i18nClbk.o \
   i18nX.o \
   i18nTr.o \
   i18ntrans.o

#endif

#if BuildXimp

IMPHDRS = XimpData.h

IMPSRCS = \
	XimpMethods.c \
	XimpHandler.c \
	XimpProc.c \
	XimpAttr.c \
	XimpFlt.c \
	XimpClbk.c \
	XimpUtls.c

IMPOBJS = \
	XimpMethods.o \
	XimpHandler.o \
	XimpProc.o \
	XimpAttr.o \
	XimpFlt.o \
	XimpClbk.o \
	XimpUtls.o

#endif

DEPEND_DEFINES = $(TRANS_INCLUDES) $(CONN_DEFINES)
HEADERS = $(COREHDRS) $(I18NHDRS) $(IMPHDRS)
SRCS = $(CORESRCS) $(I18NSRCS) $(IMPSRCS)
OBJS = $(COREOBJS) $(I18NOBJS) $(IMPOBJS)

#include <Library.tmpl>

#define LCCORERules()					@@\
LinkSourceFile(IMdkit.h,IMCore)				@@\
LinkSourceFile(IMConn.c,IMCore)				@@\
LinkSourceFile(IMValues.c,IMCore)			@@\
LinkSourceFile(IMMethod.c,IMCore)

#if BuildXi18n

#define LCI18NRules()					@@\
LinkSourceFile(XimProto.h,Xi18n)			@@\
LinkSourceFile(FrameMgr.h,Xi18n)			@@\
LinkSourceFile(Xi18n.h,Xi18n)				@@\
LinkSourceFile(Xtrans.h,Xi18n)				@@\
LinkSourceFile(Xi18nX.h,Xi18n)				@@\
LinkSourceFile(Xi18nTr.h,Xi18n)				@@\
LinkSourceFile(FrameMgr.c,Xi18n)			@@\
LinkSourceFile(i18nIMProto.c,Xi18n)			@@\
LinkSourceFile(i18nAttr.c,Xi18n)			@@\
LinkSourceFile(i18nMethod.c,Xi18n)			@@\
LinkSourceFile(i18nUtil.c,Xi18n)			@@\
LinkSourceFile(i18nPtHdr.c,Xi18n)			@@\
LinkSourceFile(i18nIc.c,Xi18n)				@@\
LinkSourceFile(i18nClbk.c,Xi18n)			@@\
LinkSourceFile(i18nX.c,Xi18n)				@@\
SpecialCLibObjectRule(i18nTr,$(ICONFIGFILES),$(CONN_DEFINES) $(XTRANS_XIM_DEFINES))
LinkSourceFile(i18nTr.c,Xi18n)				@@\
SpecialCLibObjectRule(i18ntrans,$(ICONFIGFILES),$(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_XIM_DEFINES))
LinkFile(i18ntrans.c,$(TRANSCOMMSRC)/transport.c)
LinkFile(Xtransint.h,$(TRANSCOMMSRC)/Xtransint.h)

#endif

#if BuildXimp

#define LCIMPRules()					@@\
LinkSourceFile(XIMProto.h,Ximp)				@@\
LinkSourceFile(XimpData.h,Ximp)				@@\
LinkSourceFile(XimpMethods.c,Ximp)			@@\
LinkSourceFile(XimpHandler.c,Ximp)			@@\
LinkSourceFile(XimpProc.c,Ximp)				@@\
LinkSourceFile(XimpAttr.c,Ximp)				@@\
LinkSourceFile(XimpFlt.c,Ximp)				@@\
LinkSourceFile(XimpClbk.c,Ximp)				@@\
LinkSourceFile(XimpUtls.c,Ximp)

#endif

LCCORERules()
LCI18NRules()
LCIMPRules()

CleanTarget()

DependTarget()
