~ubuntu-branches/ubuntu/quantal/mesa-demos/quantal

« back to all changes in this revision

Viewing changes to configs/linux-indirect

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers, Robert Hooker, Christopher James Halse Rogers
  • Date: 2010-09-27 16:18:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100927161827-x40djzmvy8xtdfb0
Tags: 8.0.1-0ubuntu1
[ Robert Hooker ]
* Initial debian packaging of mesa demos now that they are split out
  of the mesa source. (LP: #648401)
[ Christopher James Halse Rogers]
* Add debian/watch
* Split package drops the glxgears_is_not_a_benchmark patch.  Not printing
  the FPS of glxgears isn't really important enough to patch out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-makefile-*-
 
2
# Configuration for linux-indirect: Builds a libGL capable of indirect
 
3
# rendering, but *NOT* capable of direct rendering.
 
4
 
 
5
include $(TOP)/configs/default
 
6
 
 
7
CONFIG_NAME = linux-dri
 
8
 
 
9
# Compiler and flags
 
10
CC = gcc
 
11
CXX = g++
 
12
 
 
13
#MKDEP = /usr/X11R6/bin/makedepend
 
14
#MKDEP = gcc -M
 
15
#MKDEP_OPTIONS = -MF depend
 
16
 
 
17
WARN_FLAGS = -Wall
 
18
OPT_FLAGS  = -O -g
 
19
PIC_FLAGS  = -fPIC
 
20
 
 
21
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
 
22
ARCH_FLAGS ?=
 
23
 
 
24
DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
 
25
        -D_BSD_SOURCE -D_GNU_SOURCE \
 
26
        -DGLX_INDIRECT_RENDERING \
 
27
        -DPTHREADS -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
 
28
 
 
29
X11_INCLUDES = -I/usr/X11R6/include
 
30
 
 
31
CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
 
32
        $(ASM_FLAGS) -std=c99 -ffast-math 
 
33
 
 
34
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
35
 
 
36
# Work around aliasing bugs - developers should comment this out
 
37
CFLAGS += -fno-strict-aliasing
 
38
CXXFLAGS += -fno-strict-aliasing
 
39
 
 
40
MESA_ASM_SOURCES = 
 
41
 
 
42
# Library/program dependencies
 
43
EXTRA_LIB_PATH=-L/usr/X11R6/lib
 
44
 
 
45
DRI_LIB_DEPS  = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl
 
46
GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
 
47
 
 
48
 
 
49
# Directories
 
50
SRC_DIRS = glx glu glut/glx glew glw
 
51
DRIVER_DIRS =
 
52
PROGRAM_DIRS =