Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
[mesa.git] / configs / linux-directfb
1 # Configuration for DirectFB
2
3 include $(TOP)/configs/default
4
5 CONFIG_NAME = linux-directfb
6
7 # Compiler and flags
8 CC = gcc
9 CXX = g++
10
11 CFLAGS = -Wall -O3 -ffast-math -fPIC -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -D_SVID_SOURCE \
12 -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DPTHREADS
13
14 CXXFLAGS = -Wall -O3 -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
15
16 HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
17 ifeq ($(HAVE_X86), yes)
18 CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
19 CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
20 MESA_ASM_SOURCES = $(X86_SOURCES)
21 GLAPI_ASM_SOURCES = $(X86_API)
22 endif
23
24 # Directories
25 SRC_DIRS = gallium mesa glu glut/directfb
26 GLU_DIRS = sgi
27 DRIVER_DIRS = directfb
28 PROGRAM_DIRS = demos directfb
29
30 # Library/program dependencies
31 GL_LIB_DEPS = -lm -lpthread
32 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB)
33 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB) -l$(GLUT_LIB)
34