XCOMM $XFree86: xc/programs/Xserver/mi/Imakefile,v 3.11.2.1 1997/05/03 09:50:45 dawes Exp $
XCOMM $XConsortium: Imakefile /main/44 1996/12/02 10:22:16 lehors $
#include <Server.tmpl>

#if ! HasCbrt
CBRT_SRC = cbrt.c
CBRT_OBJ = cbrt.o
#endif

SRCS =  $(CBRT_SRC) mivaltree.c mipolyseg.c mipolyrect.c \
	mipoly.c mipolycon.c mipolygen.c mipolyutil.c \
	mifillrct.c miwideline.c mispans.c \
	miarc.c mizerarc.c mifillarc.c \
	miwindow.c micursor.c miregion.c \
	mipolytext.c mibitblt.c mipolypnt.c mipushpxl.c \
	miexpose.c miglblt.c mizerline.c mifpolycon.c \
	midash.c mibstore.c miinitext.c mieq.c \
	mipointer.c misprite.c midispcur.c miscrinit.c miclipn.c migc.c

OBJS =	$(CBRT_OBJ) mivaltree.o mipolyseg.o mipolyrect.o \
	mipoly.o mipolycon.o mipolygen.o mipolyutil.o \
	mifillrct.o miwideline.o mispans.o \
	miarc.o mizerarc.o mifillarc.o \
	miwindow.o micursor.o miregion.o \
	mipolytext.o mibitblt.o mipolypnt.o mipushpxl.o \
	miexpose.o miglblt.o mizerline.o mifpolycon.o \
	midash.o mibstore.o miinitext.o mieq.o \
	mipointer.o misprite.o midispcur.o miscrinit.o miclipn.o migc.o

#ifdef XFree86Version
/* 
 * Make sure XINPUT, XF86VidTune, etc aren't defined for the miinitext.o 
 * used by Xnest, Xvfb 
 */
EXT_DEFINES = ExtensionDefines -UXINPUT -UXF86VIDMODE -UXFreeXDGA -UXF86MISC
#else
EXT_DEFINES = ExtensionDefines
#endif
#if PexDynamicModule
PEX_MODULE_DEFINES = -DPEX_MODULE
#endif
#if XieDynamicModule
XIE_MODULE_DEFINES = -DXIE_MODULE
#endif
EXT_MODULES_DEFINES = $(PEX_MODULE_DEFINES) $(XIE_MODULE_DEFINES)

INCLUDES = -I. -I../include -I../../../include/fonts \
           -I$(XINCLUDESRC) -I$(FONTINCSRC)
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln

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

#ifndef Win32Architecture
NormalLibraryTarget(cbrt,cbrt.o)
#endif

SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(EXT_DEFINES) -UGLXEXT)
SpecialCObjectRule(miscrinit,$(ICONFIGFILES),$(EXT_DEFINES))

InstallLinkKitLibrary(mi,$(LINKKITDIR)/lib)
InstallLinkKitLibrary(cbrt,$(LINKKITDIR)/lib)
InstallLinkKitNonExecFile(mi.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(mibstore.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(miline.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(mipointer.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(misprite.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(mispritest.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(mistruct.h,$(LINKKITDIR)/include)
InstallLinkKitNonExecFile(miinitext.c,$(LINKKITDIR))

DependTarget()
