XCOMM $XConsortium: Imakefile,v 1.46 94/02/04 10:51:26 rws Exp $
#include <Server.tmpl>

SRCS = atom.c colormap.c cursor.c devices.c dispatch.c dixutils.c events.c \
	extension.c gc.c globals.c glyphcurs.c grabs.c \
	main.c property.c resource.c swaprep.c swapreq.c \
	tables.c window.c initatoms.c dixfonts.c privates.c pixmap.c
OBJS = atom.o colormap.o cursor.o devices.o dispatch.o dixutils.o events.o \
	extension.o gc.o globals.o glyphcurs.o grabs.o \
	main.o property.o resource.o swaprep.o swapreq.o \
	tables.o window.o initatoms.o dixfonts.o privates.o pixmap.o

    INCLUDES = -I../include -I$(INCLUDESRC) -I$(FONTINCSRC) -I$(EXTINCSRC)
    LINTLIBS = ../os/llib-los.ln

/*
 * The following configuration parameters may be set in the appropriate
 * .macros files or site.def in the directory util/imake.includes/:
 *
 *     DefaultFontPath                COMPILEDDEFAULTFONTPATH
 *     DefaultRGBDatabase             RGB_DB
 *
 * The sample util/imake.includes/Imake.tmpl will provide generic defaults.
 * The values in site.h are simply a last line of defense and should not be
 * changed.
 */

#ifdef DefaultFontPath
DEFAULTFONTPATH = DefaultFontPath
SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\"
#endif

#ifdef DefaultRGBDatabase
DEFAULTRGBDATABASE = DefaultRGBDatabase
   SITE_RGB_DB = -DRGB_DB=\"$(DEFAULTRGBDATABASE)\"
#endif

#ifdef DefaultDisplayClass
DEFAULTDISPLAYCLASS = DefaultDisplayClass
   SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\"
#endif

#if HasKrb5
         K5DEFS = Krb5Defines
#endif

SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_RGB_DB) $(SITE_DISPLAY_CLASS)

NormalLibraryObjectRule()
NormalLibraryTarget(dix,$(OBJS))
LintLibraryTarget(dix,$(SRCS))
NormalLintTarget($(SRCS))

SpecialCObjectRule(globals,$(ICONFIGFILES),$(SITE_DEFINES))
SpecialCObjectRule(tables,$(ICONFIGFILES),$(K5DEFS))
SpecialCObjectRule(dispatch,$(ICONFIGFILES),$(K5DEFS))

DependTarget()
