Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sunos5-gcc 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Configuration for SunOS 5, with gcc
  2. include $(TOP)/configs/default
  3. CONFIG_NAME = sunos5-gcc
  4. # Compiler and flags
  5. CC = gcc
  6. CXX = g++
  7. WARN_FLAGS = -Wall
  8. OPT_FLAGS = -O3 -g -fomit-frame-pointer -pipe
  9. PIC_FLAGS = -fPIC
  10. ARCH_FLAGS ?=
  11. DEFINES = -D_REENTRANT -DUSE_XSHM
  12. MESA_ASM_SOURCES = $(SPARC_SOURCES)
  13. GLAPI_ASM_SOURCES = $(SPARC_API)
  14. ASM_FLAGS = -DUSE_SPARC_ASM
  15. CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
  16. $(ASM_FLAGS) -std=c99 -ffast-math -I/usr/openwin/include
  17. CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
  18. -I/usr/openwin/include
  19. GLUT_CFLAGS = -fexceptions -DSOLARIS_2_4_BUG
  20. # Work around aliasing bugs - developers should comment this out
  21. CFLAGS += -fno-strict-aliasing
  22. CXXFLAGS += -fno-strict-aliasing
  23. # Library/program dependencies
  24. EXTRA_LIB_PATH=-L/usr/openwin/lib
  25. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXmu -lXi -lm
  26. GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
  27. APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm