-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
53 lines (43 loc) · 2.1 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
GOBJECTS = $(SOURCES:%.scm=%.go) $(NODIST_SOURCES:%.scm=%.go)
nobase_mod_DATA = $(SOURCES) $(NODIST_SOURCES)
nobase_go_DATA = $(GOBJECTS)
snarfcppopts = $(INCLUDES) $(CPPFLAGS) $(libguile_wlroots_la_CFLAGS)
libguile_wlroots_la_CFLAGS=$(WAYLAND_SERVER_CFLAGS) $(WLROOTS_CFLAGS) $(GUILE_CFLAGS) -I. -DWLR_USE_UNSTABLE
lib_LTLIBRARIES = libguile-wlroots.la
libguile_wlroots_la_SOURCES= wlroots/types/xdg-shell.c
BUILT_SOURCES= $(libguile_wlroots_la_SOURCES:%.c=%.x)
$(SOURCES): $(lib_LTLIBRARIES)
$(libguile_wlroots_la_SOURCES): $(protocols_h)
.c.x:
$(AM_V_GEN)$(top_builddir)/pre-inst-env guile-snarf -o $@ $< $(snarfcppopts)
protocols_h = xdg-shell-protocol.h
xdg-shell-protocol.h:
$(AM_V_GEN) $(WAYLAND_SCANNER) server-header \
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
guile_install_go_files = install-nobase_goDATA
$(guile_install_go_files): install-nobase_modDATA
NOCOMP_SOURCES= wlroots/helper.c
CLEANFILES = $(GOBJECTS)
EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
GUILE_WARNINGS = \
-Wunbound-variable -Warity-mismatch -Wshadowed-toplevel \
-Wmacro-use-before-definition \
-Wunused-variable \
-Wduplicate-case-datum -Wbad-case-datum \
-Wformat
SUFFIXES = .scm .go .x
.scm.go:
$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_TARGET) $(GUILE_WARNINGS) -o "$@" "$<"
moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
include wlroots/Makefile
TESTS= tests/seat.scm tests/xdg-shell.scm tests/backend.scm tests/scene.scm tests/output.scm tests/cursor.scm tests/viewporter.scm tests/xdg-decoration.scm tests/render.scm
AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
TEST_EXTENSIONS = .scm
SCM_LOG_DRIVER = \
$(top_builddir)/pre-inst-env \
$(GUILE) --no-auto-compile -e main \
$(top_srcdir)/build-aux/test-driver.scm
AM_SCM_LOG_FLAGS = --no-auto-compile
EXTRA_DIST+= $(top_srcdir)/build-aux/test-driver.scm \
$(TESTS)