1 # Configuration for generic Linux
3 include $(TOP)/configs/default
14 # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support. Add -m32
15 # to build properly on 64-bit platforms.
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 $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
26 $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
28 CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
31 # Work around aliasing bugs - developers should comment this out
32 CFLAGS += -fno-strict-aliasing
33 CXXFLAGS += -fno-strict-aliasing
35 GLUT_CFLAGS = -fexceptions
37 EXTRA_LIB_PATH = -L/usr/X11R6/lib