2 # Configuration for Solaris on x86 with cc, dynamic libs, dri
4 include $(TOP)/configs/default
6 CONFIG_NAME = solaris-x86-cc-dri
14 X11_INCLUDES = -I /usr/X11/include
16 DEFINES = -DUSE_XSHM -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
17 -DGLX_DIRECT_RENDERING -DNO_FAST_MATH -DDEFAULT_X86_FPU=0x037f -DSVR4
19 CFLAGS = $(PASSED_CFLAGS) $(X11_INCLUDES) \
20 $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
22 CXXFLAGS = $(PASSED_CFLAGS) $(X11_INCLUDES) \
23 -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
26 EXTRA_LIB_PATH = -L/usr/X11/lib -R/usr/X11/lib
29 SRC_DIRS = glx/x11 mesa glu glut/glx glw
30 DRIVER_DIRS = x11 osmesa dri
34 DRM_SOURCE_PATH=$(TOP)/../drm
36 DRI_DIRS = i915 r200 r300 radeon
38 #ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_SSE_ASM -DUSE_3DNOW_ASM
39 #ASM_SOURCES = $(X86_SOURCES)
42 EXPAT_LIB= -L/usr/sfw/lib -R/usr/sfw/lib -lexpat
44 GL_LIB_DEPS += -lXxf86vm $(LIBDRM_LIB) -lc -Wl,-M,mapfile.scope
45 DRI_LIB_DEPS = $(LIBDRM_LIB) $(EXPAT_LIB) -l$(GL_LIB) -lm -lc
46 APP_LIB_DEPS = $(LDFLAGS) $(EXTRA_LIB_PATH) -lGLU -lGL -lX11 -lm
48 INSTALL = /usr/bin/ginstall