Makefile.am 2.36 KB
Newer Older
Jon Turney's avatar
Jon Turney committed
1
noinst_LTLIBRARIES = libXwinGLX.la
2
lib_LTLIBRARIES = libnativeGLthunk.la
Jon Turney's avatar
Jon Turney committed
3
4
5

libXwinGLX_la_SOURCES = \
	winpriv.c \
6
	winpriv.h \
Jon Turney's avatar
Jon Turney committed
7
	glwindows.h \
8
	glshim.c \
Jon Turney's avatar
Jon Turney committed
9
	indirect.c \
Jon Turney's avatar
Jon Turney committed
10
	indirect.h \
Jon Turney's avatar
Jon Turney committed
11
12
	wgl_ext_api.c \
	wgl_ext_api.h
Jon Turney's avatar
Jon Turney committed
13

Jon Turney's avatar
Jon Turney committed
14
15
16
17
18
19
if XWIN_WINDOWS_DRI
libXwinGLX_la_SOURCES += \
	dri_helpers.c \
	dri_helpers.h
endif

20
21
22
libnativeGLthunk_la_SOURCES = \
	glthunk.c

Jon Turney's avatar
Jon Turney committed
23
24
25
26
if XWIN_MULTIWINDOWEXTWM
DEFS_MULTIWINDOWEXTWM = -DXWIN_MULTIWINDOWEXTWM
endif

27
28
29
30
if XWIN_GLX_WINDOWS
DEFS_GLX_WINDOWS = -DXWIN_GLX_WINDOWS
endif

31
32
33
DEFS = \
	$(DEFS_MULTIWINDOWEXTWM) \
	$(DEFS_GLX_WINDOWS)
Jon Turney's avatar
Jon Turney committed
34

35
AM_CPPFLAGS = -I$(top_srcdir)/miext/rootless
Jon Turney's avatar
Jon Turney committed
36
37
38
39
40
41

AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
            $(XWINMODULES_CFLAGS) \
            -I$(top_srcdir) \
            -I$(top_srcdir)/hw/xwin/

42
43
44
45
libnativeGLthunk_la_CFLAGS = $(AM_CFLAGS) -Wno-unused-function -Wno-missing-prototypes -Wno-missing-declarations
libnativeGLthunk_la_LDFLAGS = -shared -no-undefined -avoid-version -lopengl32 -export-symbols generated_gl_thunks.def
EXTRA_libnativeGLthunk_la_DEPENDENCIES = generated_gl_thunks.def

46
if XWIN_GLX_WINDOWS
47

48
49
50
51
52
53
if DEBUG
GENGLWRAPPERSOPTS=""
else
GENGLWRAPPERSOPTS="-nodebug"
endif

54
generated_wgl_wrappers.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/wgl.xml $(KHRONOS_SPEC_DIR)/reg.py
55
56
	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/wgl.xml -prefix wgl -wrapper -preresolve $(GENGLWRAPPERSOPTS) -outfile $@

57
generated_gl_shim.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
58
59
	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -shim $(GENGLWRAPPERSOPTS) -outfile $@

60
generated_gl_thunks.ic: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
61
	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunk $(GENGLWRAPPERSOPTS) -outfile $@
Jon Turney's avatar
Jon Turney committed
62

63
64
generated_gl_thunks.def: $(srcdir)/gen_gl_wrappers.py $(KHRONOS_SPEC_DIR)/gl.xml $(KHRONOS_SPEC_DIR)/reg.py
	$(AM_V_GEN)PYTHONPATH=$(KHRONOS_SPEC_DIR) $(PYTHON3) $(srcdir)/gen_gl_wrappers.py -registry $(KHRONOS_SPEC_DIR)/gl.xml -thunkdefs $(GENGLWRAPPERSOPTS) -outfile $@
Jon Turney's avatar
Jon Turney committed
65

66
BUILT_SOURCES = generated_gl_shim.ic generated_gl_thunks.ic generated_gl_thunks.def generated_wgl_wrappers.ic
Jon Turney's avatar
Jon Turney committed
67
68
CLEANFILES = $(BUILT_SOURCES)

69
70
endif

71
EXTRA_DIST = gen_gl_wrappers.py