blob: 571ff24a2b17f9301d682cb77c744c9ab5932c0e [file] [log] [blame]
Brian Paula70ad912004-03-26 15:16:35 +00001# Configuration for SunOS 5, with gcc
2
3include $(TOP)/configs/default
4
5CONFIG_NAME = sunos5-gcc
6
7# Compiler and flags
8CC = gcc
9CXX = g++
Ian Romanick9f23a3a2005-07-28 00:11:10 +000010
11WARN_FLAGS = -Wall
12OPT_FLAGS = -O3 -g -fomit-frame-pointer -pipe
13PIC_FLAGS = -fPIC
14
15ARCH_FLAGS ?=
16
17DEFINES = -D_REENTRANT -DUSE_XSHM
18
José Fonseca90b2beb2008-02-19 13:27:13 +090019MESA_ASM_SOURCES = $(SPARC_SOURCES)
20GLAPI_ASM_SOURCES = $(SPARC_API)
Ian Romanick9f23a3a2005-07-28 00:11:10 +000021ASM_FLAGS = -DUSE_SPARC_ASM
22
23CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
24 $(ASM_FLAGS) -std=c99 -ffast-math -I/usr/openwin/include
25
26CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
27 -I/usr/openwin/include
28
Brian Paula70ad912004-03-26 15:16:35 +000029GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
30
Dan Nicholson01b18ab2007-11-01 06:01:53 -070031# Work around aliasing bugs - developers should comment this out
32CFLAGS += -fno-strict-aliasing
33CXXFLAGS += -fno-strict-aliasing
34
Ian Romanick9f23a3a2005-07-28 00:11:10 +000035# Library/program dependencies
36EXTRA_LIB_PATH=-L/usr/openwin/lib
Brian Paula70ad912004-03-26 15:16:35 +000037
Ian Romanick9f23a3a2005-07-28 00:11:10 +000038GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXi -lm
Brian Paul883f9892006-07-13 02:50:27 +000039GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
40APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm