Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 1 | # Configuration for SunOS 5, with gcc |
| 2 | |
| 3 | include $(TOP)/configs/default |
| 4 | |
| 5 | CONFIG_NAME = sunos5-gcc |
| 6 | |
| 7 | # Compiler and flags |
| 8 | CC = gcc |
| 9 | CXX = g++ |
Ian Romanick | 9f23a3a | 2005-07-28 00:11:10 +0000 | [diff] [blame] | 10 | |
| 11 | WARN_FLAGS = -Wall |
| 12 | OPT_FLAGS = -O3 -g -fomit-frame-pointer -pipe |
| 13 | PIC_FLAGS = -fPIC |
| 14 | |
| 15 | ARCH_FLAGS ?= |
| 16 | |
| 17 | DEFINES = -D_REENTRANT -DUSE_XSHM |
| 18 | |
José Fonseca | 90b2beb | 2008-02-19 13:27:13 +0900 | [diff] [blame] | 19 | MESA_ASM_SOURCES = $(SPARC_SOURCES) |
| 20 | GLAPI_ASM_SOURCES = $(SPARC_API) |
Ian Romanick | 9f23a3a | 2005-07-28 00:11:10 +0000 | [diff] [blame] | 21 | ASM_FLAGS = -DUSE_SPARC_ASM |
| 22 | |
| 23 | CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ |
| 24 | $(ASM_FLAGS) -std=c99 -ffast-math -I/usr/openwin/include |
| 25 | |
| 26 | CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ |
| 27 | -I/usr/openwin/include |
| 28 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 29 | GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG |
| 30 | |
Dan Nicholson | 01b18ab | 2007-11-01 06:01:53 -0700 | [diff] [blame] | 31 | # Work around aliasing bugs - developers should comment this out |
| 32 | CFLAGS += -fno-strict-aliasing |
| 33 | CXXFLAGS += -fno-strict-aliasing |
| 34 | |
Ian Romanick | 9f23a3a | 2005-07-28 00:11:10 +0000 | [diff] [blame] | 35 | # Library/program dependencies |
| 36 | EXTRA_LIB_PATH=-L/usr/openwin/lib |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 37 | |
Ian Romanick | 9f23a3a | 2005-07-28 00:11:10 +0000 | [diff] [blame] | 38 | GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXi -lm |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 39 | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm |
| 40 | APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm |