Daniel Borca | d3746ca | 2004-04-07 06:37:50 +0000 | [diff] [blame] | 1 | # Configuration for Linux with 3Dfx Glide driver and x86 optimizations |
| 2 | |
| 3 | include $(TOP)/configs/default |
| 4 | |
| 5 | CONFIG_NAME = linux-x86-glide |
| 6 | |
| 7 | # Compiler and flags |
| 8 | CC = gcc |
| 9 | CXX = g++ |
| 10 | |
| 11 | CFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DPTHREADS -I/usr/X11R6/include -DFX -I/usr/include/glide -I/usr/local/glide/include |
| 12 | |
| 13 | CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE |
| 14 | |
| 15 | GLUT_CFLAGS = -fexceptions |
| 16 | |
Dan Nicholson | 013dbcd | 2007-10-31 09:47:39 -0700 | [diff] [blame] | 17 | # Work around aliasing bugs - developers should comment this out |
| 18 | CFLAGS += -fno-strict-aliasing |
| 19 | CXXFLAGS += -fno-strict-aliasing |
Daniel Borca | d3746ca | 2004-04-07 06:37:50 +0000 | [diff] [blame] | 20 | |
José Fonseca | 90b2beb | 2008-02-19 13:27:13 +0900 | [diff] [blame] | 21 | MESA_ASM_SOURCES = $(X86_SOURCES) |
| 22 | GLAPI_ASM_SOURCES = $(X86_API) |
Daniel Borca | d3746ca | 2004-04-07 06:37:50 +0000 | [diff] [blame] | 23 | |
| 24 | # Library/program dependencies |
| 25 | GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 26 | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm |
| 27 | GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/X11R6/lib -lXt -lX11 |
| 28 | APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/local/glide/lib -lglide3x -lm |