Merge branch 'nouveau-import'
[mesa.git] / configs / linux-profile
1 # Configuration for profiling on Linux with gprof
2
3 include $(TOP)/configs/default
4
5 CONFIG_NAME = linux-profile
6
7 # Compiler and flags
8 CC = gcc
9 CXX = g++
10
11 CFLAGS = -pg -O -ansi -pedantic -Wall -Wmissing-prototypes -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DUSE_XSHM -DPTHREADS -DDEBUG
12
13 CXXFLAGS = -pg -O -ansi -pedantic -Wall -Wundef -fPIC -ffast-math -D_POSIX_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE -DDEBUG
14
15 GLUT_CFLAGS = -fexceptions
16
17 # Need to have -L/usr/X11R6/lib in these:
18 GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
19 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
20 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -L/usr/X11R6/lib -lX11
21
22 # Need to make static libs for profiling:
23 MKLIB_OPTIONS = -static
24 GL_LIB_NAME = lib$(GL_LIB).a
25 GLU_LIB_NAME = lib$(GLU_LIB).a
26 GLUT_LIB_NAME = lib$(GLUT_LIB).a
27 GLW_LIB_NAME = lib$(GLW_LIB).a
28 OSMESA_LIB_NAME = lib$(OSMesa).a
29 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread