2 # Configuration for Solaris on x86 with gcc, dynamic libs
4 include $(TOP)/configs/default
6 CONFIG_NAME = solaris-x86-gcc-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 -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -Dsun
20 CFLAGS = $(PASSED_CFLAGS) $(X11_INCLUDES) \
21 -Wall -Wmissing-prototypes -std=c99 -ffast-math \
22 $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
24 CXXFLAGS = $(PASSED_CFLAGS) $(X11_INCLUDES) \
25 -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
28 GLUT_CFLAGS = -fexceptions
30 EXTRA_LIB_PATH = -L/usr/X11/lib -R/usr/X11/lib
33 SRC_DIRS = glx/x11 mesa glu glut/glx glw
38 DRM_SOURCE_PATH=$(TOP)/../drm
40 DRI_DIRS = i915 i965 r200 r300 radeon
42 #ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
43 #ASM_SOURCES = $(X86_SOURCES)
46 EXPAT_LIB= -L/usr/sfw/lib -R/usr/sfw/lib -lexpat
48 GL_LIB_DEPS += -L/usr/X11/lib -lXdamage -lXfixes -R/usr/X11/lib -lXdamage -lXfixes -lXxf86vm $(LIBDRM_LIB) -lc -Wl,-M,mapfile.scope
49 DRI_LIB_DEPS = $(LIBDRM_LIB) $(EXPAT_LIB) -l$(GL_LIB) -lm -lc
50 APP_LIB_DEPS = $(LDFLAGS) $(EXTRA_LIB_PATH) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lm -lXdamage
52 INSTALL = /usr/bin/ginstall