XCOMM $XConsortium: Imakefile,v 1.17 93/08/17 20:49:32 rws Exp $
XCOMM $XFree86: xc/programs/xedit/Imakefile,v 1.24 2002/10/01 14:31:46 alanh Exp $

#ifndef OS2Architecture
#include "lisp/lisp.cf"

#if BuildSharedLispModules
CCOPTIONS	= -fpic
DLLIB		= DlLibrary
LOCAL_LDFLAGS	= -Xlinker -E
#endif

#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"

        SUBDIRS = lisp
       LISPLIBS = -Llisp -llisp -Llisp/mp -lmp -Llisp/re -lre
       LISP_SRC = lisp.c
       LISP_OBJ = lisp.o
#endif

        DEPLIBS = XawClientDepLibs $(SUBDIRS)
LOCAL_LIBRARIES = $(LISPLIBS) XawClientLibs $(DLLIB)
  SYS_LIBRARIES = MathLibrary
#if defined(LynxOSArchitecture) || defined(SVR3Architecture) || defined(LinuxArchitecture)
        RP_SRCS = realpath.c
        RP_OBJS = realpath.o
     RP_DEFINES = -DNEED_REALPATH
#endif
#if !HasStrcasecmp
   STRCCMP_SRCS = strcasecmp.c
   STRCCMP_OBJS = strcasecmp.o
STRCCMP_DEFINES = -DNEED_STRCASECMP
#endif
       SYS_SRCS = $(RP_SRCS) $(STRCCMP_SRCS)
       SYS_OBJS = $(RP_OBJS) $(STRCCMP_OBJS)
    SYS_DEFINES = $(RP_DEFINES) $(STRCCMP_DEFINES)
        DEFINES = $(SIGNAL_DEFINES) $(SYS_DEFINES)
       INCLUDES = -I. -Ilisp/re -I- $(MISC_INCLUDES)

           SRCS = xedit.c commands.c util.c $(SYS_SRCS) ispell.c options.c \
		  hook.c $(LISP_SRC)
           OBJS = xedit.o commands.o util.o $(SYS_OBJS) ispell.o options.o \
		  hook.o $(LISP_OBJ)

#ifdef IHaveSubdirs
ForceSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

ComplexProgramTarget(xedit)
InstallAppDefaults(Xedit)
InstallAppDefaultsLong(Xedit-color,Xedit-color)
