blob: 5193c1442d91ebe3b93c736dd38964ada1a4483e [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
Dan Nicholson00994ac2008-04-30 15:06:00 -070014MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
Brian Paula70ad912004-03-26 15:16:35 +000015
Adam Jackson8fcd1e02005-08-19 20:20:03 +000016# external projects. This should be useless now that we use libdrm.
Jon Smirl78be0b52005-07-02 21:28:01 +000017DRM_SOURCE_PATH=$(TOP)/../drm
Brian Paula70ad912004-03-26 15:16:35 +000018
19# Compiler and flags
20CC = cc
21CXX = CC
22CFLAGS = -O
23CXXFLAGS = -O
Dan Nicholson2a3e3382007-09-28 18:42:21 -060024LDFLAGS =
Brian Paula70ad912004-03-26 15:16:35 +000025GLU_CFLAGS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000026
27# Misc tools and flags
Dan Nicholson9eee7f22008-07-08 07:44:58 -070028SHELL = /bin/sh
Brian Paula70ad912004-03-26 15:16:35 +000029MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000030MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000031MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000032MAKE = make
Brian Paul464fcd02006-10-19 20:09:05 +000033INSTALL = $(TOP)/bin/minstall
Brian Paula70ad912004-03-26 15:16:35 +000034
Dan Nicholson817af9b2008-01-15 09:52:17 -080035# Tools for regenerating glapi (generally only needed by the developers)
Brian Paulf4f1c292005-07-01 01:27:00 +000036PYTHON2 = python
37PYTHON_FLAGS = -t -O -O
Dan Nicholson817af9b2008-01-15 09:52:17 -080038INDENT = indent
39INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
Brian Paulf4f1c292005-07-01 01:27:00 +000040
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
58ASM_SOURCES =
59
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 Paulf4044952004-03-26 15:46:53 +000067SRC_DIRS = mesa glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000068GLU_DIRS = sgi
69DRIVER_DIRS = x11 osmesa
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
73
Dan Nicholson9ef1d9f2007-10-29 09:04:30 -060074# Library dependencies
Brian Paul2216aac2006-09-06 13:56:26 +000075#EXTRA_LIB_PATH ?=
Ian Romanick9204e872005-07-02 07:38:40 +000076GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
Brian Paul883f9892006-07-13 02:50:27 +000077OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
78GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
Briance987792007-12-03 11:58:55 -070079GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
Brian Paul883f9892006-07-13 02:50:27 +000080GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
Dan Nicholson9ef1d9f2007-10-29 09:04:30 -060081
82# Program dependencies - specific GL/glut libraries added in Makefiles
83APP_LIB_DEPS = -lm
Brian Paul0e794a12006-06-22 22:50:48 +000084
Brian Paul0e794a12006-06-22 22:50:48 +000085
86# Installation directories (for make install)
Brian Paul79b5d3e2006-10-19 20:11:15 +000087INSTALL_DIR = /usr/local
Dan Nicholson11ac5b22008-07-03 09:17:44 -070088INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
89INSTALL_INC_DIR = $(INSTALL_DIR)/include
90DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
Brian Paul883f9892006-07-13 02:50:27 +000091
92# Where libGL will look for DRI hardware drivers
93DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
94