Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / mit / xorg / lib / libX11 / Makefile.libx11
blob78fe53e3c7edb58566370110302eed80142155b9
1 #       $NetBSD: Makefile.libx11,v 1.5 2008/10/30 18:26:01 cube Exp $
3 LIB=    X11
4 .PATH:  ${X11SRCDIR.${LIB}}/src
5 .PATH:  ${X11SRCDIR.${LIB}}/src/xkb
6 .PATH:  ${X11SRCDIR.${LIB}}/src/xcms
7 .PATH:  ${X11SRCDIR.${LIB}}/src/xlibi18n
9 SRCS=   \
10         AllCells.c \
11         AllowEv.c \
12         AllPlanes.c \
13         AutoRep.c \
14         Backgnd.c \
15         BdrWidth.c \
16         Bell.c \
17         Border.c \
18         ChAccCon.c \
19         ChActPGb.c \
20         ChClMode.c \
21         ChCmap.c \
22         ChGC.c \
23         ChKeyCon.c \
24         ChkIfEv.c \
25         ChkMaskEv.c \
26         ChkTypEv.c \
27         ChkTypWEv.c \
28         ChkWinEv.c \
29         ChPntCon.c \
30         ChProp.c \
31         ChSaveSet.c \
32         ChWAttrs.c \
33         ChWindow.c \
34         CirWin.c \
35         CirWinDn.c \
36         CirWinUp.c \
37         ClDisplay.c \
38         ClearArea.c \
39         Clear.c \
40         ConfWind.c \
41         Context.c \
42         ConvSel.c \
43         CopyArea.c \
44         CopyCmap.c \
45         CopyGC.c \
46         CopyPlane.c \
47         CrBFData.c \
48         CrCmap.c \
49         CrCursor.c \
50         CrGC.c \
51         CrGlCur.c \
52         CrPFBData.c \
53         CrPixmap.c \
54         CrWindow.c \
55         Cursor.c \
56         DefCursor.c \
57         DelProp.c \
58         Depths.c \
59         DestSubs.c \
60         DestWind.c \
61         DisName.c \
62         DrArc.c \
63         DrArcs.c \
64         DrLine.c \
65         DrLines.c \
66         DrPoint.c \
67         DrPoints.c \
68         DrRect.c \
69         DrRects.c \
70         DrSegs.c \
71         ErrDes.c \
72         ErrHndlr.c \
73         evtomask.c \
74         EvToWire.c \
75         FetchName.c \
76         FillArc.c \
77         FillArcs.c \
78         FillPoly.c \
79         FillRct.c \
80         FillRcts.c \
81         FilterEv.c \
82         Flush.c \
83         Font.c \
84         FontInfo.c \
85         FontNames.c \
86         FreeCmap.c \
87         FreeCols.c \
88         FreeCurs.c \
89         FreeEData.c \
90         FreeGC.c \
91         FreePix.c \
92         FSSaver.c \
93         FSWrap.c \
94         GCMisc.c \
95         Geom.c \
96         GetAtomNm.c \
97         GetColor.c \
98         GetDflt.c \
99         GetFPath.c \
100         GetFProp.c \
101         GetGCVals.c \
102         GetGeom.c \
103         GetHColor.c \
104         GetHints.c \
105         GetIFocus.c \
106         GetImage.c \
107         GetKCnt.c \
108         GetMoEv.c \
109         GetNrmHint.c \
110         GetPCnt.c \
111         GetPntMap.c \
112         GetProp.c \
113         GetRGBCMap.c \
114         GetSOwner.c \
115         GetSSaver.c \
116         GetStCmap.c \
117         GetTxtProp.c \
118         GetWAttrs.c \
119         GetWMCMapW.c \
120         GetWMProto.c \
121         globals.c \
122         GrButton.c \
123         GrKeybd.c \
124         GrKey.c \
125         GrPointer.c \
126         GrServer.c \
127         Host.c \
128         Iconify.c \
129         IfEvent.c \
130         imConv.c \
131         ImText16.c \
132         ImText.c \
133         ImUtil.c \
134         InitExt.c \
135         InsCmap.c \
136         IntAtom.c \
137         KeyBind.c \
138         KeysymStr.c \
139         KillCl.c \
140         LiHosts.c \
141         LiICmaps.c \
142         LiProps.c \
143         ListExt.c \
144         LoadFont.c \
145         LockDis.c \
146         locking.c \
147         LookupCol.c \
148         LowerWin.c \
149         Macros.c \
150         MapRaised.c \
151         MapSubs.c \
152         MapWindow.c \
153         MaskEvent.c \
154         Misc.c \
155         ModMap.c \
156         MoveWin.c \
157         NextEvent.c \
158         OCWrap.c \
159         OMWrap.c \
160         OpenDis.c \
161         ParseCmd.c \
162         ParseCol.c \
163         ParseGeom.c \
164         PeekEvent.c \
165         PeekIfEv.c \
166         Pending.c \
167         PixFormats.c \
168         PmapBgnd.c \
169         PmapBord.c \
170         PolyReg.c \
171         PolyTxt16.c \
172         PolyTxt.c \
173         PropAlloc.c \
174         PutBEvent.c \
175         PutImage.c \
176         Quarks.c \
177         QuBest.c \
178         QuColor.c \
179         QuColors.c \
180         QuCurShp.c \
181         QuExt.c \
182         QuKeybd.c \
183         QuPntr.c \
184         QuStipShp.c \
185         QuTextE16.c \
186         QuTextExt.c \
187         QuTileShp.c \
188         QuTree.c \
189         RaiseWin.c \
190         RdBitF.c \
191         RecolorC.c \
192         ReconfWin.c \
193         ReconfWM.c \
194         Region.c \
195         RegstFlt.c \
196         RepWindow.c \
197         RestackWs.c \
198         RotProp.c \
199         ScrResStr.c \
200         SelInput.c \
201         SendEvent.c \
202         SetBack.c \
203         SetClMask.c \
204         SetClOrig.c \
205         SetCRects.c \
206         SetDashes.c \
207         SetFont.c \
208         SetFore.c \
209         SetFPath.c \
210         SetFunc.c \
211         SetHints.c \
212         SetIFocus.c \
213         SetLocale.c \
214         SetLStyle.c \
215         SetNrmHint.c \
216         SetPMask.c \
217         SetPntMap.c \
218         SetRGBCMap.c \
219         SetSOwner.c \
220         SetSSaver.c \
221         SetState.c \
222         SetStCmap.c \
223         SetStip.c \
224         SetTile.c \
225         SetTSOrig.c \
226         SetTxtProp.c \
227         SetWMCMapW.c \
228         SetWMProto.c \
229         StBytes.c \
230         StColor.c \
231         StColors.c \
232         StName.c \
233         StNColor.c \
234         StrKeysym.c \
235         StrToText.c \
236         Sync.c \
237         Synchro.c \
238         Text16.c \
239         Text.c \
240         TextExt16.c \
241         TextExt.c \
242         TextToStr.c \
243         TrCoords.c \
244         UndefCurs.c \
245         UngrabBut.c \
246         UngrabKbd.c \
247         UngrabKey.c \
248         UngrabPtr.c \
249         UngrabSvr.c \
250         UninsCmap.c \
251         UnldFont.c \
252         UnmapSubs.c \
253         UnmapWin.c \
254         VisUtil.c \
255         WarpPtr.c \
256         Window.c \
257         WinEvent.c \
258         Withdraw.c \
259         WMGeom.c \
260         WMProps.c \
261         WrBitF.c \
262         XlibAsync.c \
263         XlibInt.c \
264         Xrm.c \
266 SRCS+=  \
267         UIThrStubs.c 
268 SRCS+=  \
269         ConnDis.c \
270         x11_trans.c
272 SRCS+=  \
273         AddDIC.c \
274         AddSF.c \
275         CCC.c \
276         CvColW.c \
277         CvCols.c \
278         HVC.c \
279         HVCGcC.c \
280         HVCGcV.c \
281         HVCGcVC.c \
282         HVCMnV.c \
283         HVCMxC.c \
284         HVCMxV.c \
285         HVCMxVC.c \
286         HVCMxVs.c \
287         HVCWpAj.c \
288         IdOfPr.c \
289         LRGB.c \
290         Lab.c \
291         LabGcC.c \
292         LabGcL.c \
293         LabGcLC.c \
294         LabMnL.c \
295         LabMxC.c \
296         LabMxL.c \
297         LabMxLC.c \
298         LabWpAj.c \
299         Luv.c \
300         LuvGcC.c \
301         LuvGcL.c \
302         LuvGcLC.c \
303         LuvMnL.c \
304         LuvMxC.c \
305         LuvMxL.c \
306         LuvMxLC.c \
307         LuvWpAj.c \
308         OfCCC.c \
309         PrOfId.c \
310         QBlack.c \
311         QBlue.c \
312         QGreen.c \
313         QRed.c \
314         QWhite.c \
315         QuCol.c \
316         QuCols.c \
317         SetCCC.c \
318         SetGetCols.c \
319         StCol.c \
320         StCols.c \
321         UNDEFINED.c \
322         XRGB.c \
323         XYZ.c \
324         cmsAllCol.c \
325         cmsAllNCol.c \
326         cmsCmap.c \
327         cmsColNm.c \
328         cmsGlobls.c \
329         cmsInt.c \
330         cmsLkCol.c \
331         cmsMath.c \
332         cmsProp.c \
333         cmsTrig.c \
334         uvY.c \
335         xyY.c \
337 SRCS+=  \
338         XKB.c \
339         XKBBind.c \
340         XKBCompat.c \
341         XKBCtrls.c \
342         XKBCvt.c \
343         XKBGetMap.c \
344         XKBGetByName.c \
345         XKBNames.c \
346         XKBRdBuf.c \
347         XKBSetMap.c \
348         XKBUse.c \
349         XKBleds.c \
350         XKBBell.c \
351         XKBGeom.c \
352         XKBSetGeom.c \
353         XKBExtDev.c \
354         XKBList.c \
355         XKBMisc.c \
356         XKBMAlloc.c \
357         XKBGAlloc.c \
358         XKBAlloc.c \
360 SRCS+=  \
361         XDefaultIMIF.c \
362         XDefaultOMIF.c \
363         xim_trans.c \
364         ICWrap.c \
365         IMWrap.c \
366         imKStoUCS.c \
367         lcCT.c \
368         lcCharSet.c \
369         lcConv.c \
370         lcDB.c \
371         lcDynamic.c \
372         lcFile.c \
373         lcGeneric.c \
374         lcInit.c \
375         lcPrTxt.c \
376         lcPubWrap.c \
377         lcPublic.c \
378         lcRM.c \
379         lcStd.c \
380         lcTxtPr.c \
381         lcUTF8.c \
382         lcUtil.c \
383         lcWrap.c \
384         mbWMProps.c \
385         mbWrap.c \
386         utf8WMProps.c \
387         utf8Wrap.c \
388         wcWrap.c \
390 CPPFLAGS+=      ${X11FLAGS.THREADLIB} ${X11FLAGS.CONNECTION}
391 CPPFLAGS+=      -I. -DHAS_SNPRINTF -DLIBX11 -DPOSTLOCALELIBDIR=\"lib\"
392 CPPFLAGS+=      -I${DESTDIR}${X11INCDIR}/X11
393 CPPFLAGS+=      -I${X11SRCDIR.X11}/src
394 CPPFLAGS+=      -I${X11SRCDIR.X11}/src/xkb
395 CPPFLAGS+=      -I${X11SRCDIR.X11}/src/xcms
396 CPPFLAGS+=      -I${X11SRCDIR.X11}/src/xlibi18n
398 CMS_DEFINES=            -DXCMS -DXCMSDB=\"${X11LIBDIR}/Xcms.txt\"
399 CONN_DEFINES=           ${X11FLAGS.CONNECTION}
400 EDB_DEFINES=            -DERRORDB=\"${X11LIBDIR}/XErrorDB\"
401 KDB_DEFINES=            -DKEYSYMDB=\"${X11LIBDIR}/XKeysymDB\"
402 LC_DYNDEFINES=          -DUSE_DYNAMIC_LC
403 OPEN_DEFINES=           -I${DESTDIR}${X11INCDIR}/X11/extensions
404 POLL_DEFINES=           -DUSE_POLL
405 SETID_DEFINES=          -DHASSETUGID
406 SHM_DEFINES=            -DHAS_SHM
407 SOCK_DEFINES=           -DBSD44SOCKETS
408 TRANS_INCLUDES=         -I${X11SRCDIR.xc}/lib/xtrans
409 XCURSOR_DEFINES=        -DUSE_DYNAMIC_XCURSOR -DLIBXCURSOR=\"libXcursor.so.1\"
410 XDMAUTHDEFS=            -DHASXDMAUTH
411 XF86BIGFONT_DEFINES=    -DXF86BIGFONT
412 XKB_DEFINES=            -DXKB
413 XLC_DEFINES=            ${XLOCALE.DEFINES}
414 XTRANS_XIM_DEFINES=     -DXIM_t -DTRANS_CLIENT
415 XTRANS_X_DEFINES=       -DX11_t -DTRANS_CLIENT -DLOCAL_TRANSPORT_LIST=UNIX_TRANS,TCP_TRANS
417 CPPFLAGS.CopyCmap.c=    $(CMS_DEFINES)
418 CPPFLAGS.ConnDis.c=     $(XDMAUTHDEFS) $(CONN_DEFINES) $(SOCK_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES)
419 CPPFLAGS.CrCmap.c=      $(CMS_DEFINES)
420 CPPFLAGS.ErrDes.c=      $(EDB_DEFINES)
421 CPPFLAGS.Font.c=        $(SHM_DEFINES) $(XF86BIGFONT_DEFINES)
422 CPPFLAGS.FontInfo.c=    $(SHM_DEFINES) $(XF86BIGFONT_DEFINES)
423 CPPFLAGS.FreeCmap.c=    $(CMS_DEFINES)
424 CPPFLAGS.GetColor.c=    $(CMS_DEFINES)
425 CPPFLAGS.KeyBind.c=     $(XKB_DEFINES)
426 CPPFLAGS.LookupCol.c=   $(CMS_DEFINES)
427 CPPFLAGS.OpenDis.c=     $(OPEN_DEFINES) $(XTRANS_X_DEFINES) $(XKB_DEFINES)
428 CPPFLAGS.ParseCol.c=    $(CMS_DEFINES)
429 CPPFLAGS.SetStCmap.c=   $(CMS_DEFINES)
430 CPPFLAGS.StNColor.c=    $(CMS_DEFINES)
431 CPPFLAGS.StrKeysym.c=   $(KDB_DEFINES)
432 CPPFLAGS.Wrap.c=        $(XDMAUTHDEFS)
433 CPPFLAGS.XKBBind.c=     $(XKB_DEFINES)
434 CPPFLAGS.XlibInt.c=     $(CONN_DEFINES) $(POLL_DEFINES) $(XTRANS_X_DEFINES)
435 CPPFLAGS.cmsColNm.c=    $(CMS_DEFINES)
436 CPPFLAGS.globals.c=     $(CONN_DEFINES)
437 CPPFLAGS.imConv.c=      $(XKB_DEFINES)
438 CPPFLAGS.imTrans.c=     $(CONN_DEFINES) $(XTRANS_XIM_DEFINES)
439 CPPFLAGS.imTransR.c=    $(CONN_DEFINES) $(XTRANS_XIM_DEFINES)
440 CPPFLAGS.lcFile.c=      $(XLC_DEFINES) $(SETID_DEFINES)
441 CPPFLAGS.x11trans.c=    $(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_X_DEFINES) $(POLL_DEFINES)
442 CPPFLAGS.ximtrans.c=    $(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES) $(XTRANS_XIM_DEFINES) $(POLL_DEFINES)
444 #BUILDSYMLINKS= transport.c x11trans.c \
445 #               transport.c ximtrans.c
447 COPTS.StBytes.c+=       -Wno-error
448 COPTS.lcUTF8.c+=        -Wno-error
450 .include "${NETBSDSRCDIR}/external/mit/xorg/tools/makekeys/Makefile.makekeys"