summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 8dd3ee9c54ebfc180b888cb47932b25cdf98ef90 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
if GLITZ_BUILD_GLX_BACKEND
libglitz_glx_library = libglitz-glx.la
libglitz_glx_header = glitz-glx.h
else
libglitz_glx_library =
libglitz_glx_header =
endif

if GLITZ_BUILD_AGL_BACKEND
libglitz_agl_library = libglitz-agl.la
libglitz_agl_header = glitz-agl.h
else
libglitz_agl_library =
libglitz_agl_header =
endif

lib_LTLIBRARIES = \
	libglitz.la \
	$(libglitz_glx_library) \
	$(libglitz_agl_library)

include_HEADERS = \
	glitz.h \
	$(libglitz_glx_header) \
	$(libglitz_agl_header)

libglitz_la_SOURCES = \
	glitz.c \
	glitz.h \
	glitz_operator.c \
	glitz_surface.c \
	glitz_texture.c \
	glitz_rect.c \
	glitz_status.c \
	glitz_util.c \
	glitz_format.c \
	glitz_program.c \
	glitz_compose.c \
	glitz_filter.c \
	glitz_buffer.c \
	glitz_geometry.c \
	glitz_pixel.c \
	glitz_gl.h \
	glitzint.h

libglitz_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
libglitz_la_CFLAGS =
libglitz_la_LIBADD = -lm

if GLITZ_BUILD_GLX_BACKEND
libglitz_glx_la_SOURCES = \
	glitz.h \
	glitz_gl.h \
	glitzint.h \
	glitz-glx.h \
	glitz_glx_surface.c \
	glitz_glx_format.c \
	glitz_glx_info.c \
	glitz_glx_extension.c \
	glitz_glx_context.c \
	glitz_glx_pbuffer.c \
	glitz_glxext.h \
	glitz_glxint.h
libglitz_glx_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
libglitz_glx_la_CFLAGS = $(GLX_CFLAGS)
libglitz_glx_la_LIBADD = -lglitz $(GLX_LIBS)
endif

if GLITZ_BUILD_AGL_BACKEND
libglitz_agl_la_SOURCES = \
	glitz.h \
	glitz_gl.h \
	glitzint.h \
	glitz-agl.h \
	glitz_agl_surface.c \
	glitz_agl_format.c \
	glitz_agl_info.c \
	glitz_agl_extension.c \
	glitz_agl_context.c \
	glitz_agl_pbuffer.c \
	glitz_aglint.h
libglitz_agl_la_LDFLAGS = -version-info @VERSION_INFO@
libglitz_agl_la_CFLAGS = $(AGL_CFLAGS)
libglitz_agl_la_LIBADD = -lglitz $(AGL_LIBS)
endif