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