OSDN Git Service

progs/es: Link to libX11.
[android-x86/external-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 # Work around aliasing bugs - developers should comment this out
17 CFLAGS += -fno-strict-aliasing
18 CXXFLAGS += -fno-strict-aliasing
19
20 HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
21 ifeq ($(HAVE_X86), yes)
22      CFLAGS   += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
23      CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
24      MESA_ASM_SOURCES = $(X86_SOURCES)
25      GLAPI_ASM_SOURCES = $(X86_API)
26 endif
27
28 # Directories
29 SRC_DIRS     = gallium mesa glu glut/directfb glew
30 GLU_DIRS     = sgi
31 DRIVER_DIRS  = directfb
32 PROGRAM_DIRS = demos directfb
33
34 # Library/program dependencies
35 GL_LIB_DEPS   = -lm -lpthread
36 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB)
37 APP_LIB_DEPS  = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLU_LIB) -l$(GLUT_LIB)
38