aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/makefile
blob: 6d1cbeb21b3a435455a9b06fa8f6089f02c4489e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
LIBRARY=libwinglx

INCLUDES += ..\..\..\glx .. ..\..\..
DEFINES += GLAPIENTRY=__stdcall _GLAPI_NO_EXPORTS

DEFINES += XWIN_CLIPBOARD
DEFINES += XWIN_MULTIWINDOW
DEFINES += XWIN_RANDR
DEFINES += RELOCATE_PROJECTROOT
INCLUDES += ..\..\..\miext\rootless
DEFINES += HAVE_XWIN_CONFIG_H PTW32_STATIC_LIB

CSRCS = \
	winpriv.c \
	glwrap.c \
	indirect.c \
	wgl_ext_api.c

glwrap.c: generated_gl_wrappers.c
wgl_ext_api.c: generated_wgl_wrappers.c wglext.h
wgl_ext_api.h: wglext.h
indirect.c: wgl_ext_api.h

SPEC_FILES = gl.spec gl.tm wglext.spec wgl.tm

.PHONY: getspecfiles

getspecfiles:
	wget http://www.opengl.org/registry/api/gl.spec
	wget http://www.opengl.org/registry/api/gl.tm

	wget http://www.opengl.org/registry/api/glxenum.spec
	wget http://www.opengl.org/registry/api/glxenumext.spec
	wget http://www.opengl.org/registry/api/glx.spec
	wget http://www.opengl.org/registry/api/glxext.spec
	wget http://www.opengl.org/registry/api/glx.tm

	wget http://www.opengl.org/registry/api/wglenum.spec
	wget http://www.opengl.org/registry/api/wglenumext.spec
	wget http://www.opengl.org/registry/api/wgl.spec
	wget http://www.opengl.org/registry/api/wglext.spec
	wget http://www.opengl.org/registry/api/wgl.tm
	wget http://www.opengl.org/registry/api/wglext.h
	wget http://www.opengl.org/registry/api/glext.h
	wget http://www.opengl.org/registry/api/glxext.h

generated_gl_wrappers.c: gen_gl_wrappers.py gl.spec gl.tm
	gen_gl_wrappers --spec=gl.spec --typemap=gl.tm --dispatch-header=../../../glx/dispatch.h --staticwrappers >generated_gl_wrappers.c

generated_wgl_wrappers.c: gen_gl_wrappers.py wglext.spec wgl.tm
	gen_gl_wrappers --spec=wglext.spec --typemap=wgl.tm --prefix=wgl --preresolve >generated_wgl_wrappers.c


BUILT_SOURCES = generated_gl_wrappers.c generated_wgl_wrappers.c