blob: a14078fa269614be139330d917f56c687d0b6be5 [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
Dan Nicholsondb072ba2008-07-11 13:54:48 -070029MKLIB = $(SHELL) $(TOP)/bin/mklib
Brian Paula70ad912004-03-26 15:16:35 +000030MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000031MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000032MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000033MAKE = make
Dan Nicholson4f5d97e2008-07-08 07:49:31 -070034INSTALL = $(SHELL) $(TOP)/bin/minstall
Brian Paula70ad912004-03-26 15:16:35 +000035
Dan Nicholson817af9b2008-01-15 09:52:17 -080036# Tools for regenerating glapi (generally only needed by the developers)
Brian Paulf4f1c292005-07-01 01:27:00 +000037PYTHON2 = python
38PYTHON_FLAGS = -t -O -O
Dan Nicholson817af9b2008-01-15 09:52:17 -080039INDENT = indent
40INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
Brian Paulf4f1c292005-07-01 01:27:00 +000041
Brian Paula70ad912004-03-26 15:16:35 +000042# Library names (base name)
43GL_LIB = GL
44GLU_LIB = GLU
45GLUT_LIB = glut
46GLW_LIB = GLw
47OSMESA_LIB = OSMesa
48
49
50# Library names (actual file names)
Brian Paul05bbafa2005-03-23 02:12:21 +000051GL_LIB_NAME = lib$(GL_LIB).so
52GLU_LIB_NAME = lib$(GLU_LIB).so
53GLUT_LIB_NAME = lib$(GLUT_LIB).so
54GLW_LIB_NAME = lib$(GLW_LIB).so
Brian Paul4417d4c2005-06-07 15:25:08 +000055OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
Brian Paula70ad912004-03-26 15:16:35 +000056
57
58# Optional assembly language optimization files for libGL
59ASM_SOURCES =
60
Brian Paul9408fe02004-07-20 20:43:24 +000061# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
62# order to build the Motif widget too)
Brian Paul533befc2004-03-26 21:48:09 +000063GLW_SOURCES = GLwDrawA.c
Brian Paula70ad912004-03-26 15:16:35 +000064
65
Brian Paul0e794a12006-06-22 22:50:48 +000066# Directories to build
Brian Paul883f9892006-07-13 02:50:27 +000067LIB_DIR = lib
Brian Paulf4044952004-03-26 15:46:53 +000068SRC_DIRS = mesa glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000069GLU_DIRS = sgi
70DRIVER_DIRS = x11 osmesa
Brian Paulcb34c112005-05-05 13:08:06 +000071# Which subdirs under $(TOP)/progs/ to enter:
Brian5dba9962007-04-08 15:50:31 -060072PROGRAM_DIRS = demos redbook samples glsl xdemos
Brian Paula70ad912004-03-26 15:16:35 +000073
74
Dan Nicholson9ef1d9f2007-10-29 09:04:30 -060075# Library dependencies
Brian Paul2216aac2006-09-06 13:56:26 +000076#EXTRA_LIB_PATH ?=
Ian Romanick9204e872005-07-02 07:38:40 +000077GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
Brian Paul883f9892006-07-13 02:50:27 +000078OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
79GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
Briance987792007-12-03 11:58:55 -070080GLUT_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 +000081GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
Dan Nicholson9ef1d9f2007-10-29 09:04:30 -060082
83# Program dependencies - specific GL/glut libraries added in Makefiles
84APP_LIB_DEPS = -lm
Brian Paul0e794a12006-06-22 22:50:48 +000085
Brian Paul0e794a12006-06-22 22:50:48 +000086
87# Installation directories (for make install)
Brian Paul79b5d3e2006-10-19 20:11:15 +000088INSTALL_DIR = /usr/local
Dan Nicholson11ac5b22008-07-03 09:17:44 -070089INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
90INSTALL_INC_DIR = $(INSTALL_DIR)/include
91DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/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