~ubuntu-branches/ubuntu/quantal/mesa-glw/quantal

« back to all changes in this revision

Viewing changes to configs/linux-dri-xcb

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-05-06 16:19:15 UTC
  • Revision ID: james.westby@ubuntu.com-20080506161915-uynz7nftmfixu6bq
Tags: upstream-7.0.3
ImportĀ upstreamĀ versionĀ 7.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-makefile-*-
 
2
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
 
3
 
 
4
include $(TOP)/configs/default
 
5
 
 
6
CONFIG_NAME = linux-dri-xcb
 
7
 
 
8
# Compiler and flags
 
9
CC = gcc
 
10
CXX = g++
 
11
 
 
12
#MKDEP = /usr/X11R6/bin/makedepend
 
13
#MKDEP = gcc -M
 
14
#MKDEP_OPTIONS = -MF depend
 
15
 
 
16
OPT_FLAGS  = -g
 
17
PIC_FLAGS  = -fPIC
 
18
 
 
19
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
 
20
ARCH_FLAGS ?=
 
21
 
 
22
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
 
23
        -D_BSD_SOURCE -D_GNU_SOURCE \
 
24
        -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
 
25
        -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
 
26
        -DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
 
27
 
 
28
X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb` `pkg-config --cflags-only-I x11-xcb` `pkg-config --cflags-only-I xcb-glx`
 
29
 
 
30
CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
 
31
        $(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math 
 
32
 
 
33
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
34
 
 
35
# Work around aliasing bugs - developers should comment this out
 
36
CFLAGS += -fno-strict-aliasing
 
37
CXXFLAGS += -fno-strict-aliasing
 
38
 
 
39
ASM_SOURCES = 
 
40
 
 
41
# Library/program dependencies
 
42
EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
 
43
 
 
44
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
 
45
LIBDRM_LIB = `pkg-config --libs libdrm`
 
46
DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
 
47
GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
 
48
                -lm -lpthread -ldl $(LIBDRM_LIB) `pkg-config --libs xcb` \
 
49
                `pkg-config --libs x11-xcb` `pkg-config --libs xcb-glx`
 
50
 
 
51
 
 
52
# This is now 0 by default since it seems to confuse the hell out of people
 
53
# and generate a lot of extra noise on bugzilla.  If you need to build with
 
54
# EGL, do 'make linux-dri USING_EGL=1'
 
55
 
 
56
USING_EGL=0
 
57
 
 
58
# Directories
 
59
ifeq ($(USING_EGL), 1)
 
60
SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
 
61
PROGRAM_DIRS = egl xdemos
 
62
else
 
63
SRC_DIRS = glx/x11 mesa glu glut/glx glw
 
64
PROGRAM_DIRS = xdemos
 
65
endif
 
66
 
 
67
DRIVER_DIRS = dri
 
68
WINDOW_SYSTEM=dri
 
69
 
 
70
# gamma are missing because they have not been converted to use the new
 
71
# interface.
 
72
DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon s3v \
 
73
        savage sis tdfx trident unichrome ffb nouveau