blob: 94582d82746f61c88ca7f5912528f80b6a113f81 [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
Brian Paul90c93bb2008-09-11 11:00:54 -060026# Compiler for building demos/tests/etc
27APP_CC = $(CC)
28APP_CXX = $(CXX)
29
Brian Paul9f4ccd82004-04-07 23:15:26 +000030# Misc tools and flags
Brian Paula70ad912004-03-26 15:16:35 +000031MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000032MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000033MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000034MAKE = make
Brian Paul464fcd02006-10-19 20:09:05 +000035INSTALL = $(TOP)/bin/minstall
Brian Paula70ad912004-03-26 15:16:35 +000036
Brian Paulf4f1c292005-07-01 01:27:00 +000037# Python and flags (generally only needed by the developers)
38PYTHON2 = python
39PYTHON_FLAGS = -t -O -O
40
Brian Paula70ad912004-03-26 15:16:35 +000041# Library names (base name)
42GL_LIB = GL
43GLU_LIB = GLU
44GLUT_LIB = glut
45GLW_LIB = GLw
46OSMESA_LIB = OSMesa
47
48
49# Library names (actual file names)
Brian Paul05bbafa2005-03-23 02:12:21 +000050GL_LIB_NAME = lib$(GL_LIB).so
51GLU_LIB_NAME = lib$(GLU_LIB).so
52GLUT_LIB_NAME = lib$(GLUT_LIB).so
53GLW_LIB_NAME = lib$(GLW_LIB).so
Brian Paul4417d4c2005-06-07 15:25:08 +000054OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
Brian Paula70ad912004-03-26 15:16:35 +000055
56
57# Optional assembly language optimization files for libGL
José Fonseca90b2beb2008-02-19 13:27:13 +090058MESA_ASM_SOURCES =
Brian Paula70ad912004-03-26 15:16:35 +000059
Brian Paul9408fe02004-07-20 20:43:24 +000060# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
61# order to build the Motif widget too)
Brian Paul533befc2004-03-26 21:48:09 +000062GLW_SOURCES = GLwDrawA.c
Brian Paula70ad912004-03-26 15:16:35 +000063
64
Brian Paul0e794a12006-06-22 22:50:48 +000065# Directories to build
Brian Paul883f9892006-07-13 02:50:27 +000066LIB_DIR = lib
Brian Paule7725e12008-06-05 14:12:27 -060067SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000068GLU_DIRS = sgi
José Fonsecabfd59162008-02-18 14:25:04 +090069DRIVER_DIRS =
Brian Paulcb34c112005-05-05 13:08:06 +000070# Which subdirs under $(TOP)/progs/ to enter:
Brian5dba9962007-04-08 15:50:31 -060071PROGRAM_DIRS = demos redbook samples glsl xdemos
Brian Paula70ad912004-03-26 15:16:35 +000072
Jakob Bornecrantze59086a2008-07-13 18:04:49 +020073# EGL directories
74EGL_DRIVERS_DIRS = demo
Zack Rusind76a7b62007-10-24 08:34:01 -040075
José Fonsecabfd59162008-02-18 14:25:04 +090076# Gallium directories and
Jakob Bornecrantz5de823c2008-07-10 22:39:56 +020077GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util
José Fonsecabfd59162008-02-18 14:25:04 +090078GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
79GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
80GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
Brian Paule7725e12008-06-05 14:12:27 -060081GALLIUM_WINSYS_DIRS = xlib egl_xlib
José Fonsecabfd59162008-02-18 14:25:04 +090082
83
Brian Paula70ad912004-03-26 15:16:35 +000084# Library/program dependencies
Brian Paul2216aac2006-09-06 13:56:26 +000085#EXTRA_LIB_PATH ?=
Ian Romanickffcb4d82008-01-03 14:59:14 -080086GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
87OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
88GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
89GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
90GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
91APP_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 +000092
93
94
95# Installation directories (for make install)
Brian Paul79b5d3e2006-10-19 20:11:15 +000096INSTALL_DIR = /usr/local
Alan Hourihane3eeafb72008-08-17 19:12:54 +010097DRI_DRIVER_INSTALL_DIR = /usr/lib/dri
Brian Paul883f9892006-07-13 02:50:27 +000098
99# Where libGL will look for DRI hardware drivers
100DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
101