XCOMM $XConsortium: Imakefile,v 1.22 91/09/09 16:02:18 rws Exp $ XCOMM $XFree86: xc/programs/xman/Imakefile,v 1.9 2003/05/27 20:15:08 tsi Exp $ #if BuildXprintLib && BuildXprintClients && BuildXaw # define XmanUseXprint YES #endif /* BuildXprintLib && BuildXprintClients && BuildXaw */ #ifdef XmanSearchPath XMANSYSPATH = XmanSearchPath SYSMANPATH = -DSYSMANPATH=\"$(XMANSYSPATH)\" #endif #ifdef XmanLocalSearchPath XMANLOCALPATH = XmanLocalSearchPath LOCALMANPATH = -DLOCALMANPATH=\"$(XMANLOCALPATH)\" #endif MANPATHS = $(SYSMANPATH) $(LOCALMANPATH) HELPFILE = -DHELPFILE=\"$(LIBDIR)$(PATHSEP)xman.help\" #if HasMkstemp MKSTEMP = -DHAS_MKSTEMP #endif XCOMM select internal format of manpath configuration file #if defined(FreeBSDArchitecture) || \ (defined(LinuxDistribution) && (LinuxDistribution == LinuxDebian)) || \ (defined(DarwinArchitecture) && (OSMajorVersion >= 6)) MANCONFIGSTYLE = -DMANCONFIGSTYLE_FreeBSD MANCONF = -DMANCONF=\"/etc/manpath.config\" #elif defined(LinuxArchitecture) MANCONFIGSTYLE = -DMANCONFIGSTYLE_Linux # if defined(LinuxDistribution) && (LinuxDistribution == LinuxRedHat) MANCONF = -DMANCONF=\"/etc/man.config\" # else MANCONF = -DMANCONF=\"/etc/man.conf\" # endif #elif defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || \ defined(DarwinArchitecture) MANCONFIGSTYLE = -DMANCONFIGSTYLE_OpenBSD MANCONF = -DMANCONF=\"/etc/man.conf\" #elif defined(BSDArchitecture) MANCONFIGSTYLE = -DMANCONFIGSTYLE_BSD MANCONF = -DMANCONF=\"/etc/man.conf\" #endif #if HasGroff GROFF = -DHAS_GROFF #endif #if HasSnprintf SNPDEFINES = -DHAS_SNPRINTF #else SNPDEFINES = -Dsnprintf=XmuSnprintf #endif #ifdef XmanUseXprint PRINT_LIBS = -lXprintUtil $(XPLIB) PRINT_DEFS = -DINCLUDE_XPRINT_SUPPORT PRINT_SRCS = printdialog.c print.c PRINT_OBJS = printdialog.o print.o #endif /* XmanUseXprint */ OSMAJORVERSION = OSMajorVersion OSMINORVERSION = OSMinorVersion DEFINES = -DOSMAJORVERSION=$(OSMAJORVERSION) \ -DOSMINORVERSION=$(OSMINORVERSION) \ $(SNPDEFINES) $(HELPFILE) $(MANPATHS) $(MKSTEMP) $(GROFF) \ $(PRINT_DEFS) $(MANCONFIGSTYLE) $(MANCONF) DEPLIBS = XawClientDepLibs LOCAL_LIBRARIES = $(PRINT_LIBS) XawClientLibs SRCS = ScrollByL.c handler.c man.c buttons.c help.c \ $(PRINT_SRCS) search.c globals.c main.c \ misc.c tkfuncs.c vendor.c OBJS = ScrollByL.o handler.o man.o buttons.o help.o \ $(PRINT_OBJS) search.o globals.o main.o \ misc.o tkfuncs.o vendor.o #ifdef XmanUseXprint LinkSourceFile(printdialog.c,../xmore) LinkSourceFile(printdialog.h,../xmore) LinkSourceFile(printdialogprivates.h,../xmore) LinkFile(Xman.ad,Xman-xprint.ad) #else LinkFile(Xman.ad,Xman-noxprint.ad) #endif /* XmanUseXprint */ ComplexProgramTarget(xman) InstallNonExecFile(xman.help,$(LIBDIR)) InstallAppDefaults(Xman)