/**/#	Copyright (c) 1990, 1991, 1992, 1993, 1994 Novell, Inc. All Rights Reserved.
/**/#	Copyright (c) 1993 Novell, Inc. All Rights Reserved.
/**/#	  All Rights Reserved

/**/#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Novell Inc.
/**/#	The copyright notice above does not evidence any
/**/#	actual or intended publication of such source code.

#ident	"@(#)r5server:dix/Imakefile	1.3"

XCOMM $XConsortium: Imakefile,v 1.37 91/07/16 22:54:10 gildea Exp $
#include <Server.tmpl>

#define BuildMonoFont NO

#if BuildMonoFont
#define MonoFontSrc dixfonts_m.c
#define MonoFontObj dixfonts_m.o
#else
#define MonoFontSrc /**/
#define MonoFontObj /**/
#endif


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 MonoFontSrc
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

    INCLUDES = -I. -I../include -I$(INCLUDESRC) -I$(FONTSRC)/include

/*
 * 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

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


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

all:: dixfonts.o MonoFontObj

SpecialObjectRule(globals.o, $(ICONFIGFILES), $(SITE_DEFINES))
#if BuildMonoFont
ObjectFromSpecialSource(dixfonts_m,dixfonts,-DX386MONOVGA)
#endif

#if HasSaberC
saber_src:
	XCOMM load $(CFLAGS) $(SITE_DEFINES) $(SRCS)
#endif

DependTarget()
