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_additional.c \
35 apple_xgl_api_read.c \
36 apple_xgl_api_stereo.c \
37 apple_xgl_api_viewport.c \
54 include $(TOP
)/src
/mesa
/sources.mak
56 LDFLAGS
+= -lXplugin
-framework ApplicationServices
-framework CoreFoundation
58 MESA_GLAPI_ASM_SOURCES
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_ASM_SOURCES
))
59 MESA_GLAPI_SOURCES
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_SOURCES
))
60 MESA_GLAPI_OBJECTS
= $(addprefix $(TOP
)/src
/mesa
/, $(GLAPI_OBJECTS
))
62 OBJECTS
= $(SOURCES
:.c
=.o
) # $(MESA_GLAPI_OBJECTS)
64 INCLUDES
= -I.
-Iinclude
-I..\
66 -I
$(TOP
)/include/GL
/internal \
68 -I
$(TOP
)/src
/mesa
/glapi \
75 $(OBJECTS
) : apple_xgl_api.h
77 apple_xgl_api.c
: apple_xgl_api.h
79 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
83 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(EXTRA_DEFINES
) $< -o
$@
86 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(EXTRA_DEFINES
) $< -o
$@
90 default
: depend
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
93 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
): $(OBJECTS
) Makefile
94 $(MKLIB
) -o
$(GL_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
95 -major
1 -minor
2 $(MKLIB_OPTIONS
) \
96 -install $(TOP
)/$(LIB_DIR
) -id
$(INSTALL_LIB_DIR
)/lib
$(GL_LIB
).1.dylib \
97 $(GL_LIB_DEPS
) $(OBJECTS
)
99 depend
: $(SOURCES
) $(MESA_GLAPI_SOURCES
) $(MESA_GLAPI_ASM_SOURCES
) Makefile
102 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDES
) $(SOURCES
) \
103 $(MESA_GLAPI_SOURCES
) $(MESA_GLAPI_ASM_SOURCES
)
107 etags
`find . -name \*.[ch]` `find $(TOP)/include`
109 install_headers
: include/GL
/gl.h
110 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
111 $(INSTALL
) -m
644 include/GL
/gl.h
$(DESTDIR
)$(INSTALL_DIR
)/include/GL
113 install_libraries
: $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
)
114 $(MAKE
) -C
$(TOP
)/src
/mesa install-libgl
116 install: install_libraries
118 # Remove .o and backup files
122 -rm -f apple_xgl_api.h apple_xgl_api.c
124 -rm -f
include/GL
/gl.h
125 -rm -f
$(TOP
)/$(LIB_DIR
)/$(GL_LIB_GLOB
)
127 -rm -f depend depend.bak