diff --git a/configs/darwin b/configs/darwin
index 77edf1a..f061500 100644
a
|
b
|
CONFIG_NAME = darwin |
6 | 6 | |
7 | 7 | INSTALL_DIR = /usr/X11 |
8 | 8 | |
| 9 | X11_DIR = $(INSTALL_DIR) |
| 10 | |
9 | 11 | # Compiler and flags |
10 | 12 | CC = gcc |
11 | 13 | CXX = gcc |
… |
… |
DEFINES = -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L \ |
21 | 23 | ARCH_FLAGS += $(RC_CFLAGS) |
22 | 24 | |
23 | 25 | CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common \ |
24 | | -I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) |
| 26 | -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) |
25 | 27 | CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing -fno-common \ |
26 | | -I$(INSTALL_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) |
| 28 | -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) |
27 | 29 | |
28 | 30 | # Library names (actual file names) |
29 | 31 | GL_LIB_NAME = libGL.dylib |
… |
… |
GLUT_LIB_GLOB = libglut.*dylib |
39 | 41 | GLW_LIB_GLOB = libGLw.*dylib |
40 | 42 | OSMESA_LIB_GLOB = libOSMesa.*dylib |
41 | 43 | |
42 | | GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread |
| 44 | GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread |
43 | 45 | OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) |
44 | 46 | GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) |
45 | | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext |
46 | | GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXt |
47 | | APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm |
| 47 | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext |
| 48 | GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt |
| 49 | APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm |
48 | 50 | |
49 | 51 | # omit glw lib for now: |
50 | 52 | SRC_DIRS = glx/x11 mesa glu glut/glx |