XCOMM $XFree86: xc/programs/Xserver/iplan2p4/Imakefile,v 3.5 2002/05/31 18:46:05 dawes Exp $
XCOMM $XConsortium: Imakefile,v 5.41 93/09/06 18:37:23 rws Exp $
#include <Server.tmpl>

#ifndef IPlanes
#define IPlanes 4
#endif

SRCS =	 iplgc.c iplrrop.c iplwindow.c \
	 iplpntwin.c iplmskbits.c iplpixmap.c iplbitblt.c \
	 iplfillsp.c iplsetsp.c iplscrinit.c iplallpriv.c \
	 iplgetsp.c iplfillrct.c \
	 iplsolidC.c iplsolidX.c iplsolidG.c \
	 ipltileoddC.c ipltileoddG.c ipltile32C.c ipltile32G.c \
	 iplcmap.c \
	 iplfillarcC.c iplfillarcG.c \
	 ipltegblt.c iplbstore.c \
	 iplpolypnt.c \
	 iplbres.c iplline.c iplhrzvert.c iplbresd.c iplimage.c iplseg.c \
	 iplbitblt.c iplbltC.c iplbltX.c iplbltO.c iplbltG.c \
	 iplply1rctC.c iplply1rctG.c iplpack.c

OBJS =   iplgc.o iplrrop.o iplwindow.o \
	 iplgetsp.o iplfillrct.o \
	 iplsolidC.o iplsolidX.o iplsolidG.o \
	 ipltileoddC.o ipltileoddG.o ipltile32C.o ipltile32G.o \
	 iplfillsp.o iplsetsp.o iplscrinit.o iplallpriv.o \
	 iplpntwin.o iplmskbits.o iplpixmap.o \
	 iplcmap.o \
	 iplfillarcC.o iplfillarcG.o \
	 ipltegblt.o iplbstore.o \
	 iplpolypnt.o \
	 iplbres.o iplline.o iplhrzvert.o iplbresd.o iplimage.o iplseg.o \
 	 iplbitblt.o iplbltC.o iplbltX.o iplbltO.o iplbltG.o \
	 iplply1rctC.o iplply1rctG.o iplpack.o

   INCLUDES = -I. -I../cfb -I../mfb -I../mi -I../include -I$(XINCLUDESRC) \
	      -I$(FONTINCSRC) $(EXTRAINCLUDES)
   LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln \
	     ../mfb/llib-lmfb.ln ../mi/llib-lmi.ln
    DEFINES = -DINTER_PLANES=IPlanes

NormalLibraryObjectRule()
#if IPlanes == 2
NormalLibraryTarget(ipl2p2,$(OBJS))
LintLibraryTarget(ipl2p2,$(SRCS))
#elif IPlanes == 4
NormalLibraryTarget(ipl2p4,$(OBJS))
LintLibraryTarget(ipl2p4,$(SRCS))
#elif IPlanes == 8
NormalLibraryTarget(ipl2p8,$(OBJS))
LintLibraryTarget(ipl2p8,$(SRCS))
#endif

NormalLintTarget($(SRCS))

#ifdef LinkDirectory

LinkSourceFile(ipl.h,LinkDirectory)
LinkSourceFile(iplallpriv.c,LinkDirectory)
LinkSourceFile(iplbitblt.c,LinkDirectory)
LinkSourceFile(iplblt.c,LinkDirectory)
LinkSourceFile(iplbres.c,LinkDirectory)
LinkSourceFile(iplbresd.c,LinkDirectory)
LinkSourceFile(iplbstore.c,LinkDirectory)
LinkSourceFile(iplcmap.c,LinkDirectory)
LinkSourceFile(iplfillarc.c,LinkDirectory)
LinkSourceFile(iplfillrct.c,LinkDirectory)
LinkSourceFile(iplfillsp.c,LinkDirectory)
LinkSourceFile(iplgc.c,LinkDirectory)
LinkSourceFile(iplgetsp.c,LinkDirectory)
LinkSourceFile(iplhrzvert.c,LinkDirectory)
LinkSourceFile(iplimage.c,LinkDirectory)
LinkSourceFile(iplline.c,LinkDirectory)
LinkSourceFile(iplmap.h,LinkDirectory)
LinkSourceFile(iplmergerop.h,LinkDirectory)
LinkSourceFile(iplmskbits.c,LinkDirectory)
LinkSourceFile(iplmskbits.h,LinkDirectory)
LinkSourceFile(iplpack.c,LinkDirectory)
LinkSourceFile(iplpack.h,LinkDirectory)
LinkSourceFile(iplpixmap.c,LinkDirectory)
LinkSourceFile(iplply1rct.c,LinkDirectory)
LinkSourceFile(iplpntwin.c,LinkDirectory)
LinkSourceFile(iplpolypnt.c,LinkDirectory)
LinkSourceFile(iplrrop.c,LinkDirectory)
LinkSourceFile(iplrrop.h,LinkDirectory)
LinkSourceFile(iplscrinit.c,LinkDirectory)
LinkSourceFile(iplsetsp.c,LinkDirectory)
LinkSourceFile(iplsolid.c,LinkDirectory)
LinkSourceFile(ipltegblt.c,LinkDirectory)
LinkSourceFile(ipltile32.c,LinkDirectory)
LinkSourceFile(ipltileodd.c,LinkDirectory)
LinkSourceFile(iplwindow.c,LinkDirectory)
#endif

ObjectFromSpecialSource(iplseg,iplline,-DPOLYSEGMENT)

ObjectFromSpecialSource(iplfillarcC,iplfillarc,-DRROP=GXcopy)
ObjectFromSpecialSource(iplfillarcG,iplfillarc,-DRROP=GXset)

ObjectFromSpecialSource(iplbltC,iplblt,-DMROP=Mcopy)
ObjectFromSpecialSource(iplbltX,iplblt,-DMROP=Mxor)
ObjectFromSpecialSource(iplbltO,iplblt,-DMROP=Mor)
ObjectFromSpecialSource(iplbltG,iplblt,-DMROP=0)

ObjectFromSpecialSource(iplsolidC,iplsolid,-DRROP=GXcopy)
ObjectFromSpecialSource(iplsolidX,iplsolid,-DRROP=GXxor)
ObjectFromSpecialSource(iplsolidG,iplsolid,-DRROP=GXset)

ObjectFromSpecialSource(ipltileoddC,ipltileodd,-DMROP=Mcopy)
ObjectFromSpecialSource(ipltileoddG,ipltileodd,-DMROP=0)

ObjectFromSpecialSource(ipltile32C,ipltile32,-DMROP=Mcopy)
ObjectFromSpecialSource(ipltile32G,ipltile32,-DMROP=0)

ObjectFromSpecialSource(iplply1rctC,iplply1rct,-DRROP=GXcopy)
ObjectFromSpecialSource(iplply1rctG,iplply1rct,-DRROP=GXset)

DependTarget()
