3 include $(TOP
)/configs
/current
6 #GL_CFLAGS=-Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT $(RC_CFLAGS) $(CFLAGS)
7 #GL_LDFLAGS=-L$(INSTALL_DIR)/lib -L$(X11_DIR)/lib $(LDFLAGS) -Wl,-single_module
15 #INCLUDE=-I. -Iinclude -I.. -DGLX_ALIAS_UNSUPPORTED -I$(INSTALL_DIR)/include -I$(X11_DIR)/include
17 #COMPILE=$(CC) $(INCLUDE) $(GL_CFLAGS) -c
19 #The directory with the final binaries.
22 all: $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
28 apple_glx_drawable.c \
34 apple_xgl_api_read.c \
35 apple_xgl_api_stereo.c \
36 apple_xgl_api_viewport.c \
53 include $(TOP
)/src
/mesa
/sources.mak
55 LDFLAGS
+= -lXplugin
-framework ApplicationServices
-framework CoreFoundation
57 MESA_GLAPI_ASM_SOURCES
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_ASM_SOURCES
))
58 MESA_GLAPI_SOURCES
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_SOURCES
))
59 MESA_GLAPI_OBJECTS
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_OBJECTS
))
61 OBJECTS
= $(SOURCES
:.c
=.o
) # $(MESA_GLAPI_OBJECTS)
63 INCLUDES
= -I.
-Iinclude
-I..\
65 -I
$(TOP
)/include/GL
/internal \
67 -I
$(TOP
)/src
/mesa
/glapi \
74 $(OBJECTS
) : include/GL
/gl.h apple_xgl_api.h
76 apple_xgl_api.c
: apple_xgl_api.h
78 apple_xgl_api.h
: gen_api_header.tcl gen_api_library.tcl gen_code.tcl gen_defs.tcl gen_exports.tcl gen_funcs.tcl gen_types.tcl
81 include/GL
/gl.h
: include/GL
/gl.h.template gen_gl_h.sh
82 .
/gen_gl_h.sh
include/GL
/gl.h.template
$@
85 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(EXTRA_DEFINES
) $< -o
$@
88 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(EXTRA_DEFINES
) $< -o
$@
92 default
: depend
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
95 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
): $(OBJECTS
) Makefile
96 $(MKLIB
) -o
$(GL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
97 -major
1 -minor
2 $(MKLIB_OPTIONS
) \
98 -install $(TOP
)/$(LIB_DIR
) -id
$(INSTALL_LIB_DIR
)/lib
$(GL_LIB
).1.dylib \
99 $(GL_LIB_DEPS
) $(OBJECTS
)
101 depend
: $(SOURCES
) $(MESA_GLAPI_SOURCES
) $(MESA_GLAPI_ASM_SOURCES
) Makefile
104 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(SOURCES
) \
105 $(MESA_GLAPI_SOURCES
) $(MESA_GLAPI_ASM_SOURCES
)
109 etags
`find . -name \*.[ch]` `find $(TOP)/include`
111 install_headers
: include/GL
/gl.h
112 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
113 $(INSTALL
) -m
644 include/GL
/gl.h
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
115 install_libraries
: $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
116 $(MAKE
) -C
$(TOP
)/src
/mesa install-libgl
118 install: install_headers install_libraries
123 # Remove .o and backup files
127 -rm -f apple_xgl_api.h apple_xgl_api.c
129 -rm -f
include/GL
/gl.h
130 -rm -f
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_GLOB
)
132 -rm -f depend depend.bak