glsl/pp: Fix handling of if/elif/else cases.
[mesa.git] / configs / linux
1 # Configuration for generic Linux
2
3 include $(TOP)/configs/default
4
5 CONFIG_NAME = linux
6
7 # Compiler and flags
8 CC = gcc
9 CXX = g++
10
11 OPT_FLAGS = -O3 -g
12 PIC_FLAGS = -fPIC
13
14 # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. Add -m32
15 # to build properly on 64-bit platforms.
16
17 ARCH_FLAGS ?=
18
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
22
23 X11_INCLUDES = -I/usr/X11R6/include
24
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
28
29 CXXFLAGS = -Wall -Wpointer-arith $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
30 $(DEFINES) $(X11_INCLUDES)
31
32 # Work around aliasing bugs - developers should comment this out
33 CFLAGS += -fno-strict-aliasing
34 CXXFLAGS += -fno-strict-aliasing
35
36 GLUT_CFLAGS = -fexceptions
37
38 EXTRA_LIB_PATH = -L/usr/X11R6/lib