/* $Id: Imakefile,v 1.2 2002/10/20 04:10:25 aida_s Exp $ */
#include "../../Canna.conf"

       CANNAROOT = ../..
          RKCSRC = $(CANNAROOT)/lib/RKC
        CANNASRC = $(CANNAROOT)/lib/canna

#ifdef engineSwitch
     ENGINE_DEFS = -DENGINE_SWITCH
#endif

#if defined(engineSwitch)
       DEPRKCLIB = $(RKCSRC)/libRKC.so.$(cannaDsoRev)
          RKCLIB = -L$(RKCSRC) -lRKC
#else /* !defined(engineSwitch) */
#if DoSharedLib
       DEPRKCLIB = $(DEPCANNALIB)
          RKCLIB = $(CANNALIB)
#else /* !HasSharedLibraries */
#ifdef __EMX__
       DEPRKCLIB = $(RKCSRC)/RKC.a
#else
       DEPRKCLIB = $(RKCSRC)/libRKC.a
#endif
          RKCLIB = -L$(RKCSRC) -lRKC
#endif /* !HasSharedLibraries */
#endif /* !defined(engineSwitch) */

         DEFINES = $(ENGINE_DEFS)
        INCLUDES = -I$(CANNAROOT)/include
            OBJS = cannastat.o
            SRCS = cannastat.c
          TARGET = cannastat

#if defined(__EMX__) || defined(__CYGWIN32__)
AllTarget($(TARGET).exe)
#else
AllTarget($(TARGET))
#endif
NormalProgramTarget($(TARGET),$(OBJS),$(DEPRKCLIB),$(RKCLIB),)
InstallProgram($(TARGET),$(cannaBinDir))
InstallManPageLong(cstat,$(cannaManDir),$(TARGET))
DependTarget()
LintTarget()
