-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.am
84 lines (68 loc) · 2.88 KB
/
Makefile.am
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
bin_PROGRAMS =
BUILT_SOURCES =
if PNG
PNG_SOURCE = png_image.c
endif
if TIFF
TIFF_SOURCE = tiff_image.c
endif
if OPENGL
if GL
GL_SOURCE = gl_gears.c
endif
if GLESV1_CM
GLESV1_CM_SOURCE = glesv1_cm_gears.c
endif
if GLESV2
vert.xxd: glesv2_gears.vert
$(top_srcdir)/xxd.sh $< $@
frag.xxd: glesv2_gears.frag
$(top_srcdir)/xxd.sh $< $@
BUILT_SOURCES += vert.xxd frag.xxd
GLESV2_SOURCE = glesv2_gears.c
endif
if PGL
PGL_SOURCE = pgl_gears.c
endif
noinst_LTLIBRARIES = libyagears.la
libyagears_la_SOURCES = gears_engine.c $(GL_SOURCE) $(GLESV1_CM_SOURCE) $(GLESV2_SOURCE) $(PGL_SOURCE) image_loader.c $(PNG_SOURCE) $(TIFF_SOURCE)
libyagears_la_CFLAGS = @GL_CFLAGS@ @GLESV1_CM_CFLAGS@ @GLESV2_CFLAGS@ @PGL_CFLAGS@ @PNG_CFLAGS@ @TIFF_CFLAGS@
libyagears_la_LIBADD = @GL_LIBS@ @GLESV1_CM_LIBS@ @GLESV2_LIBS@ @PNG_LIBS@ @TIFF_LIBS@
bin_PROGRAMS += yagears2
yagears2_SOURCES = main.c
yagears2_CFLAGS = @WAFFLE_CFLAGS@ @EGL_CFLAGS@ @X11_CFLAGS@ @DIRECTFB_CFLAGS@ @WAYLAND_EGL_CFLAGS@ @XCB_CFLAGS@ @DRM_CFLAGS@ @RPI_CFLAGS@
yagears2_LDFLAGS = -Wl,--whole-archive,.libs/libyagears.a,--no-whole-archive
yagears2_LDADD = libyagears.la @WAFFLE_LIBS@ @EGL_LIBS@ @X11_LIBS@ @DIRECTFB_LIBS@ @WAYLAND_EGL_LIBS@ @XCB_LIBS@ @DRM_LIBS@ @RPI_LIBS@
endif
if VK
vert.spv: vulkan_gears.vert
$(GLSLANG_VALIDATOR) $< -V -x
frag.spv: vulkan_gears.frag
$(GLSLANG_VALIDATOR) $< -V -x
BUILT_SOURCES += vert.spv frag.spv
bin_PROGRAMS += yagears2-vk
yagears2_vk_SOURCES = vk.c vulkan_gears.c image_loader.c $(PNG_SOURCE) $(TIFF_SOURCE)
yagears2_vk_CFLAGS = @VULKAN_CFLAGS@ @PNG_CFLAGS@ @TIFF_CFLAGS@ @X11_CFLAGS@ @DIRECTFB_CFLAGS@ @WAYLAND_CFLAGS@ @XCB_CFLAGS@ @D2D_CFLAGS@
yagears2_vk_LDADD = @VULKAN_LIBS@ @PNG_LIBS@ @TIFF_LIBS@ @X11_LIBS@ @DIRECTFB_LIBS@ @WAYLAND_LIBS@ @XCB_LIBS@ @D2D_LIBS@
endif
if MOSAIC
bin_PROGRAMS += yagears2-mosaic
yagears2_mosaic_SOURCES = mosaic.c
yagears2_mosaic_CFLAGS = @GLUT_CFLAGS@
yagears2_mosaic_LDFLAGS = -Wl,--whole-archive,.libs/libyagears.a,--no-whole-archive
yagears2_mosaic_LDADD = libyagears.la @GLUT_LIBS@
endif
if GUI
bin_PROGRAMS += yagears2-gui
yagears2_gui_SOURCES = gui.cc
yagears2_gui_CXXFLAGS = @EFL_CFLAGS@ @FLTK_CFLAGS@ @GLFW_CFLAGS@ @GLUT_CFLAGS@ @GTK_CFLAGS@ @QT_CFLAGS@ @SDL_CFLAGS@ @SFML_CFLAGS@ @WX_CFLAGS@
yagears2_gui_LDFLAGS = -Wl,--whole-archive,.libs/libyagears.a,--no-whole-archive
yagears2_gui_LDADD = libyagears.la @EFL_LIBS@ @FLTK_LIBS@ @GLFW_LIBS@ @GLUT_LIBS@ @GTK_LIBS@ @QT_LIBS@ @SDL_LIBS@ @SFML_LIBS@ @WX_LIBS@
endif
if VK_GUI
bin_PROGRAMS += yagears2-vk-gui
yagears2_vk_gui_SOURCES = vk-gui.cc vulkan_gears.c image_loader.c $(PNG_SOURCE) $(TIFF_SOURCE)
yagears2_vk_gui_CFLAGS = @VULKAN_CFLAGS@ @PNG_CFLAGS@ @TIFF_CFLAGS@
yagears2_vk_gui_CXXFLAGS = @VULKAN_CFLAGS@ @PNG_CFLAGS@ @TIFF_CFLAGS@ @GLFW_CFLAGS@ @SDL_CFLAGS@ @SFML_CFLAGS@
yagears2_vk_gui_LDADD = @VULKAN_LIBS@ @PNG_LIBS@ @TIFF_LIBS@ @GLFW_LIBS@ @SDL_LIBS@ @SFML_LIBS@
endif