winsys/sw: Add a software winsys layered on a pipe
[mesa/mesa-lb.git] / configs / linux
blobc60f0d8ac3b3db496a20bdee2d83b151191449f8
1 # Configuration for generic Linux
3 include $(TOP)/configs/default
5 CONFIG_NAME = linux
7 # Compiler and flags
8 CC = gcc
9 CXX = g++
11 OPT_FLAGS  = -O3 -g
12 PIC_FLAGS  = -fPIC
14 # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.  Add -m32
15 # to build properly on 64-bit platforms.
17 ARCH_FLAGS ?=
19 DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
20         -D_BSD_SOURCE -D_GNU_SOURCE \
21         -DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN
23 X11_INCLUDES = -I/usr/X11R6/include
25 CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
26         -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
27         $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
29 CXXFLAGS = -Wall -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
30         $(DEFINES) $(X11_INCLUDES)
32 # Work around aliasing bugs - developers should comment this out
33 CFLAGS += -fno-strict-aliasing
34 CXXFLAGS += -fno-strict-aliasing
36 GLUT_CFLAGS = -fexceptions
38 EXTRA_LIB_PATH = -L/usr/X11R6/lib