blob: 2019a53b4f164155073e1a67e08b1e71d7b214ad [file] [log] [blame]
Brian Paula70ad912004-03-26 15:16:35 +00001# Default/template configuration
2
3# This is included by other config files which may override some
4# of these variables.
Brian Paul0e794a12006-06-22 22:50:48 +00005# Think of this as a base class from which configs are derived.
6
Brian Paula70ad912004-03-26 15:16:35 +00007
8CONFIG_NAME = default
9
10# Version info
Briane371a5f2007-04-27 17:01:23 -060011MESA_MAJOR=7
Brianc128c3c2007-05-14 14:30:36 -060012MESA_MINOR=1
Briane371a5f2007-04-27 17:01:23 -060013MESA_TINY=0
Brian Paula70ad912004-03-26 15:16:35 +000014
Adam Jackson8fcd1e02005-08-19 20:20:03 +000015# external projects. This should be useless now that we use libdrm.
Jon Smirl78be0b52005-07-02 21:28:01 +000016DRM_SOURCE_PATH=$(TOP)/../drm
Brian Paula70ad912004-03-26 15:16:35 +000017
18# Compiler and flags
19CC = cc
20CXX = CC
Ian Romanickb3492a22008-01-03 15:08:53 -080021HOST_CC = $(CC)
Brian Paula70ad912004-03-26 15:16:35 +000022CFLAGS = -O
23CXXFLAGS = -O
24GLU_CFLAGS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000025
26# Misc tools and flags
Brian Paula70ad912004-03-26 15:16:35 +000027MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000028MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000029MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000030MAKE = make
Brian Paul464fcd02006-10-19 20:09:05 +000031INSTALL = $(TOP)/bin/minstall
Brian Paula70ad912004-03-26 15:16:35 +000032
Brian Paulf4f1c292005-07-01 01:27:00 +000033# Python and flags (generally only needed by the developers)
34PYTHON2 = python
35PYTHON_FLAGS = -t -O -O
36
Brian Paula70ad912004-03-26 15:16:35 +000037# Library names (base name)
38GL_LIB = GL
39GLU_LIB = GLU
40GLUT_LIB = glut
41GLW_LIB = GLw
42OSMESA_LIB = OSMesa
43
44
45# Library names (actual file names)
Brian Paul05bbafa2005-03-23 02:12:21 +000046GL_LIB_NAME = lib$(GL_LIB).so
47GLU_LIB_NAME = lib$(GLU_LIB).so
48GLUT_LIB_NAME = lib$(GLUT_LIB).so
49GLW_LIB_NAME = lib$(GLW_LIB).so
Brian Paul4417d4c2005-06-07 15:25:08 +000050OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
Brian Paula70ad912004-03-26 15:16:35 +000051
52
53# Optional assembly language optimization files for libGL
José Fonseca90b2beb2008-02-19 13:27:13 +090054MESA_ASM_SOURCES =
Brian Paula70ad912004-03-26 15:16:35 +000055
Brian Paul9408fe02004-07-20 20:43:24 +000056# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
57# order to build the Motif widget too)
Brian Paul533befc2004-03-26 21:48:09 +000058GLW_SOURCES = GLwDrawA.c
Brian Paula70ad912004-03-26 15:16:35 +000059
60
Brian Paul0e794a12006-06-22 22:50:48 +000061# Directories to build
Brian Paul883f9892006-07-13 02:50:27 +000062LIB_DIR = lib
Brian Paule7725e12008-06-05 14:12:27 -060063SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000064GLU_DIRS = sgi
José Fonsecabfd59162008-02-18 14:25:04 +090065DRIVER_DIRS =
Brian Paulcb34c112005-05-05 13:08:06 +000066# Which subdirs under $(TOP)/progs/ to enter:
Brian5dba9962007-04-08 15:50:31 -060067PROGRAM_DIRS = demos redbook samples glsl xdemos
Brian Paula70ad912004-03-26 15:16:35 +000068
Zack Rusind76a7b62007-10-24 08:34:01 -040069
José Fonsecabfd59162008-02-18 14:25:04 +090070# Gallium directories and
Keith Whitwell59ba8ea2008-04-18 17:33:49 +010071GALLIUM_AUXILIARY_DIRS = draw cso_cache pipebuffer tgsi sct translate rtasm util
José Fonsecabfd59162008-02-18 14:25:04 +090072GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
73GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
74GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
Brian Paule7725e12008-06-05 14:12:27 -060075GALLIUM_WINSYS_DIRS = xlib egl_xlib
José Fonsecabfd59162008-02-18 14:25:04 +090076
77
Brian Paula70ad912004-03-26 15:16:35 +000078# Library/program dependencies
Brian Paul2216aac2006-09-06 13:56:26 +000079#EXTRA_LIB_PATH ?=
Ian Romanickffcb4d82008-01-03 14:59:14 -080080GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
81OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
82GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
83GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
84GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
85APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
Brian Paul0e794a12006-06-22 22:50:48 +000086
87
88
89# Installation directories (for make install)
Brian Paul79b5d3e2006-10-19 20:11:15 +000090INSTALL_DIR = /usr/local
Brian Paul0e794a12006-06-22 22:50:48 +000091DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
Brian Paul883f9892006-07-13 02:50:27 +000092
93# Where libGL will look for DRI hardware drivers
94DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
95