XCOMM $XConsortium: Imakefile,v 1.17 93/08/17 20:49:32 rws Exp $ XCOMM $XFree86: xc/programs/xedit/Imakefile,v 1.25 2003/03/25 04:18:26 dawes Exp $ #include "lisp/lisp.cf" #if BuildSharedLispModules CCOPTIONS = -fpic DLLIB = DlLibrary LOCAL_LDFLAGS = -Xlinker -E #endif #define IHaveSubdirs #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)" #if BuildXprintLib && BuildXprintClients && BuildXaw # define XEditUseXprint YES #endif /* BuildXprintLib && BuildXprintClients && BuildXaw */ #ifdef XEditUseXprint PRINT_LIBS = -lXprintUtil $(XPLIB) PRINT_DEFS = -DINCLUDE_XPRINT_SUPPORT PRINT_SRCS = printdialog.c print.c PRINT_OBJS = printdialog.o print.o #endif /* XEditUseXprint */ SUBDIRS = lisp LISPLIBS = -Llisp -llisp -Llisp/mp -lmp -Llisp/re -lre LISP_SRC = lisp.c LISP_OBJ = lisp.o DEPLIBS = XawClientDepLibs $(SUBDIRS) LOCAL_LIBRARIES = $(LISPLIBS) $(PRINT_LIBS) 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 = $(PRINT_DEFS) $(SIGNAL_DEFINES) $(SYS_DEFINES) INCLUDES = -I. -Ilisp/re $(MISC_INCLUDES) SRCS = xedit.c commands.c util.c $(SYS_SRCS) ispell.c options.c \ hook.c $(PRINT_SRCS) $(LISP_SRC) OBJS = xedit.o commands.o util.o $(SYS_OBJS) ispell.o options.o \ hook.o $(PRINT_OBJS) $(LISP_OBJ) #ifdef XEditUseXprint LinkSourceFile(printdialog.c,../xmore) LinkSourceFile(printdialog.h,../xmore) LinkSourceFile(printdialogprivates.h,../xmore) LinkSourceFile(print.c,../xmore) LinkSourceFile(print.h,../xmore) LinkFile(Xedit.ad,Xedit-xprint.ad) #else LinkFile(Xedit.ad,Xedit-noxprint.ad) #endif /* XEditUseXprint */ #ifdef IHaveSubdirs ForceSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) #endif ComplexProgramTarget(xedit) InstallAppDefaults(Xedit) InstallAppDefaultsLong(Xedit-color,Xedit-color)