Expand PMF_FN_* macros.
[netbsd-mini2440.git] / x11 / Xserver / cfb / Makefile.cfb
blobf2bd0f6b58452fbb250b0e71720a339dd2a58222
1 #       $NetBSD: Makefile.cfb,v 1.10 2004/02/13 04:49:00 mhitch Exp $
3 .include <bsd.own.mk>
5 .PATH:          ${X11SRCDIR.xc}/programs/Xserver/cfb
7 PIXELSIZE?=     8
9 .if ${PIXELSIZE} == 8
10 LIB=            cfb
11 .else
12 LIB=            cfb${PIXELSIZE}
13 .endif
15 SRCS+=          cfb8lineCO.c cfb8lineCP.c cfb8lineG.c cfb8lineX.c \
16                 cfb8segC.c cfb8segCS.c cfb8segG.c cfb8segX.c \
17                 cfballpriv.c cfbbitblt.c cfbbltC.c cfbbltG.c \
18                 cfbbltO.c cfbbltX.c cfbbres.c cfbbresd.c cfbbstore.c \
19                 cfbcppl.c cfbfillarcC.c cfbfillarcG.c \
20                 cfbfillrct.c cfbfillsp.c cfbgc.c cfbgetsp.c \
21                 cfbglblt8.c cfbhrzvert.c cfbigblt8.c cfbimage.c \
22                 cfbline.c cfbmskbits.c cfbpixmap.c cfbply1rctC.c \
23                 cfbply1rctG.c cfbpntwin.c cfbpolypnt.c cfbrrop.c \
24                 cfbscrinit.c cfbseg.c cfbsetsp.c cfbsolidC.c \
25                 cfbsolidG.c cfbsolidX.c cfbtegblt.c cfbtile32C.c \
26                 cfbtile32G.c cfbtileoddC.c cfbtileoddG.c cfbwindow.c \
27                 cfbzerarcC.c cfbzerarcG.c cfbzerarcX.c
29 X11XSERVERDIR=  ${X11SRCDIR.xc}/programs/Xserver
31 BUILDSYMLINKS=  cfbline.c cfbseg.c \
32                 cfbfillarc.c cfbfillarcC.c \
33                 cfbfillarc.c cfbfillarcG.c \
34                 cfbzerarc.c cfbzerarcC.c \
35                 cfbzerarc.c cfbzerarcX.c \
36                 cfbzerarc.c cfbzerarcG.c \
37                 cfbblt.c cfbbltC.c \
38                 cfbblt.c cfbbltX.c \
39                 cfbblt.c cfbbltO.c \
40                 cfbblt.c cfbbltG.c \
41                 cfbsolid.c cfbsolidC.c \
42                 cfbsolid.c cfbsolidX.c \
43                 cfbsolid.c cfbsolidG.c \
44                 cfbtileodd.c cfbtileoddC.c \
45                 cfbtileodd.c cfbtileoddG.c \
46                 cfbtile32.c cfbtile32C.c \
47                 cfbtile32.c cfbtile32G.c \
48                 cfb8line.c cfb8lineCO.c \
49                 cfb8line.c cfb8lineCP.c \
50                 cfb8line.c cfb8lineX.c \
51                 cfb8line.c cfb8lineG.c \
52                 cfb8line.c cfb8segCS.c \
53                 cfb8line.c cfb8segC.c \
54                 cfb8line.c cfb8segX.c \
55                 cfb8line.c cfb8segG.c \
56                 cfbply1rct.c cfbply1rctC.c \
57                 cfbply1rct.c cfbply1rctG.c \
58                 ${X11XSERVERDIR}/cfb16/cfbmodule.c cfbmodule16.c \
59                 ${X11XSERVERDIR}/cfb24/cfbmodule.c cfbmodule24.c \
60                 ${X11XSERVERDIR}/cfb32/cfbmodule.c cfbmodule32.c
61                 
63 .if ${PIXELSIZE} == 8                                                   # {
64 SRCS+=          cfb8bit.c cfbteblt8.c cfbglrop8.c cfbpush8.c cfbrctstp8.c
65 BUILDSYMLINKS+= cfbglblt8.c cfbglrop8.c
66 .endif                                                                  # }
68 .include "../Makefile.common"
70 .if ${XSERVER_XAMIGA} != "no"
71 CPPFLAGS+=      -DFORCE_SEPARATE_PRIVATE
72 .endif
74 CPPFLAGS+=      -I${X11SRCDIR.xc}/programs/Xserver/cfb \
75                 -I${X11SRCDIR.xc}/programs/Xserver/mfb \
76                 -I${X11SRCDIR.xc}/programs/Xserver/mi \
77                 -I${X11SRCDIR.xc}/programs/Xserver/cfb24 \
78                 -I${X11SRCDIR.xc}/programs/Xserver/include \
79                 -I${XSERVERINCDIR} \
80                 -I${DESTDIR}${X11INCDIR}/X11 \
81                 -I${X11SRCDIR.xc}/include/fonts \
82                 -I${DESTDIR}${X11INCDIR}/X11/extensions \
83                 -I${X11SRCDIR.xc}/programs/Xserver/Xext
85 CPPFLAGS+=      -DPSZ=${PIXELSIZE} -DXFREE86
88 .if ${MACHINE} == "sparc64"
89 CPPFLAGS+=      -UXF86VIDMODE
90 .endif
92 CPPFLAGS.cfb8lineCO.c=  -DRROP=GXcopy
93 CPPFLAGS.cfb8lineCP.c=  -DRROP=GXcopy -DPREVIOUS
94 CPPFLAGS.cfb8lineG.c=   -DRROP=GXset
95 CPPFLAGS.cfb8lineX.c=   -DRROP=GXxor
96 CPPFLAGS.cfb8segC.c=    -DRROP=GXcopy -DPOLYSEGMENT
97 CPPFLAGS.cfb8segCS.c=   -DRROP=GXcopy -DPOLYSEGMENT -DWIDTH_SHIFT
98 CPPFLAGS.cfb8segG.c=    -DRROP=GXset -DPOLYSEGMENT
99 CPPFLAGS.cfb8segX.c=    -DRROP=GXxor -DPOLYSEGMENT
100 CPPFLAGS.cfbbltC.c=     -DMROP=Mcopy
101 CPPFLAGS.cfbbltG.c=     -DMROP=0
102 CPPFLAGS.cfbbltO.c=     -DMROP=Mor
103 CPPFLAGS.cfbbltX.c=     -DMROP=Mxor
104 CPPFLAGS.cfbcmap.c=     ${X11FLAGS.EXTENSION} -DGLXEXT -DGLX_USE_MESA
105 CPPFLAGS.cfbfillarcC.c= -DRROP=GXcopy
106 CPPFLAGS.cfbfillarcG.c= -DRROP=GXset
107 CPPFLAGS.cfbglrop8.c=   -DGLYPHROP
108 CPPFLAGS.cfbply1rctC.c= -DRROP=GXcopy
109 CPPFLAGS.cfbply1rctG.c= -DRROP=GXset
110 CPPFLAGS.cfbseg.c=      -DPOLYSEGMENT
111 CPPFLAGS.cfbsolidC.c=   -DRROP=GXcopy
112 CPPFLAGS.cfbsolidG.c=   -DRROP=GXset
113 CPPFLAGS.cfbsolidX.c=   -DRROP=GXxor
114 CPPFLAGS.cfbtile32C.c=  -DMROP=Mcopy
115 CPPFLAGS.cfbtile32G.c=  -DMROP=0
116 CPPFLAGS.cfbtileoddC.c= -DMROP=Mcopy
117 CPPFLAGS.cfbtileoddG.c= -DMROP=0
118 CPPFLAGS.cfbzerarcC.c=  -DRROP=GXcopy
119 CPPFLAGS.cfbzerarcG.c=  -DRROP=GXset
120 CPPFLAGS.cfbzerarcX.c=  -DRROP=GXxor
122 .include <bsd.x11.mk>
123 LIBDIR= ${XMODULEDIR}
124 .include <bsd.lib.mk>