"Fossies" - the Fresh Open Source Software Archive

Member "wayland-1.18.0/Makefile.am" (11 Feb 2020, 10068 Bytes) of package /linux/misc/wayland-1.18.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 1.17.0_vs_1.18.0.

    1 if BUILD_DOCS
    2 SUBDIRS = doc
    3 endif
    4 
    5 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
    6 
    7 AM_CPPFLAGS =					\
    8 	-I$(top_builddir)/src			\
    9 	-I$(top_srcdir)/src			\
   10 	-I$(top_builddir)/protocol
   11 
   12 AM_CFLAGS = $(GCC_CFLAGS)
   13 
   14 aclocaldir = $(datadir)/aclocal
   15 dist_aclocal_DATA = wayland-scanner.m4
   16 
   17 dist_pkgdata_DATA =				\
   18 	wayland-scanner.mk			\
   19 	protocol/wayland.xml			\
   20 	protocol/wayland.dtd
   21 
   22 pkgconfigdir = $(libdir)/pkgconfig
   23 pkgconfig_DATA =
   24 
   25 bin_PROGRAMS = wayland-scanner
   26 wayland_scanner_SOURCES = src/scanner.c
   27 wayland_scanner_CPPFLAGS = $(AM_CPPFLAGS) -include config.h
   28 wayland_scanner_CFLAGS = $(EXPAT_CFLAGS) $(LIBXML_CFLAGS) $(AM_CFLAGS)
   29 wayland_scanner_LDADD = $(EXPAT_LIBS) $(LIBXML_LIBS) libwayland-util.la
   30 pkgconfig_DATA += src/wayland-scanner.pc
   31 
   32 if DTD_VALIDATION
   33 wayland_scanner_SOURCES += src/dtddata.S
   34 endif
   35 src/dtddata.o: protocol/wayland.dtd
   36 
   37 if USE_HOST_SCANNER
   38 wayland_scanner = wayland-scanner
   39 else
   40 $(BUILT_SOURCES) : wayland-scanner
   41 wayland_scanner = $(top_builddir)/wayland-scanner
   42 endif
   43 
   44 libwayland_util_la_CFLAGS = $(AM_CFLAGS)
   45 libwayland_util_la_SOURCES =			\
   46 	src/wayland-util.c			\
   47 	src/wayland-util.h
   48 
   49 noinst_LTLIBRARIES = libwayland-util.la
   50 
   51 if ENABLE_LIBRARIES
   52 noinst_LTLIBRARIES += libwayland-private.la
   53 lib_LTLIBRARIES = libwayland-server.la libwayland-client.la
   54 
   55 libwayland_private_la_CFLAGS = $(FFI_CFLAGS) $(AM_CFLAGS)
   56 libwayland_private_la_SOURCES =			\
   57 	src/connection.c			\
   58 	src/wayland-os.c			\
   59 	src/wayland-os.h			\
   60 	src/wayland-private.h			\
   61 	src/wayland-server-private.h
   62 
   63 include_HEADERS =				\
   64 	src/wayland-util.h			\
   65 	src/wayland-server.h			\
   66 	src/wayland-server-core.h		\
   67 	src/wayland-client.h			\
   68 	src/wayland-client-core.h		\
   69 	src/wayland-version.h
   70 
   71 nodist_include_HEADERS =			\
   72 	protocol/wayland-server-protocol.h	\
   73 	protocol/wayland-client-protocol.h
   74 
   75 libwayland_server_la_CFLAGS = $(FFI_CFLAGS) $(AM_CFLAGS) -pthread
   76 libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-private.la libwayland-util.la $(RT_LIBS) -lm
   77 libwayland_server_la_LDFLAGS = -version-info 1:0:1
   78 libwayland_server_la_SOURCES =			\
   79 	src/wayland-server.c			\
   80 	src/wayland-shm.c			\
   81 	src/event-loop.c
   82 
   83 nodist_libwayland_server_la_SOURCES =		\
   84 	protocol/wayland-server-protocol.h	\
   85 	protocol/wayland-protocol.c
   86 
   87 libwayland_client_la_CFLAGS = $(FFI_CFLAGS) $(AM_CFLAGS) -pthread
   88 libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-private.la libwayland-util.la $(RT_LIBS) -lm
   89 libwayland_client_la_LDFLAGS = -version-info 3:0:3
   90 libwayland_client_la_SOURCES =			\
   91 	src/wayland-client.c
   92 
   93 nodist_libwayland_client_la_SOURCES =		\
   94 	protocol/wayland-client-protocol.h	\
   95 	protocol/wayland-protocol.c
   96 
   97 pkgconfig_DATA += src/wayland-client.pc src/wayland-server.pc
   98 
   99 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
  100 if USE_HOST_SCANNER
  101 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s code $< $@
  102 else
  103 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s public-code $< $@
  104 endif
  105 
  106 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
  107 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s server-header $< $@
  108 
  109 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
  110 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s client-header $< $@
  111 
  112 protocol/%-server-protocol-core.h : $(top_srcdir)/protocol/%.xml
  113 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s server-header -c < $< > $@
  114 
  115 protocol/%-client-protocol-core.h : $(top_srcdir)/protocol/%.xml
  116 	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) -s client-header -c < $< > $@
  117 
  118 BUILT_SOURCES =					\
  119 	$(nodist_libwayland_server_la_SOURCES)	\
  120 	$(nodist_libwayland_client_la_SOURCES)	\
  121 	$(nodist_headers_test_SOURCES)		\
  122 	$(nodist_display_test_SOURCES)
  123 
  124 CLEANFILES = $(BUILT_SOURCES) doc/doxygen/doxygen_sqlite3.db
  125 DISTCLEANFILES = src/wayland-version.h
  126 EXTRA_DIST = CONTRIBUTING.md
  127 
  128 
  129 
  130 lib_LTLIBRARIES += libwayland-cursor.la
  131 
  132 include_HEADERS += cursor/wayland-cursor.h
  133 
  134 libwayland_cursor_la_SOURCES =			\
  135 	cursor/wayland-cursor.c			\
  136 	cursor/os-compatibility.c		\
  137 	cursor/os-compatibility.h		\
  138 	cursor/cursor-data.h			\
  139 	cursor/xcursor.c			\
  140 	cursor/xcursor.h
  141 libwayland_cursor_la_LIBADD = libwayland-client.la
  142 
  143 pkgconfig_DATA += cursor/wayland-cursor.pc
  144 
  145 libwayland_cursor_la_CFLAGS =			\
  146 	$(AM_CFLAGS)				\
  147 	-I$(top_builddir)/src			\
  148 	-I$(top_srcdir)/src			\
  149 	-DICONDIR=\"$(ICONDIR)\"
  150 
  151 lib_LTLIBRARIES += libwayland-egl.la
  152 
  153 include_HEADERS += egl/wayland-egl.h
  154 include_HEADERS += egl/wayland-egl-core.h
  155 
  156 libwayland_egl_la_SOURCES = egl/wayland-egl.c
  157 libwayland_egl_la_LDFLAGS = -version-info 1
  158 
  159 pkgconfig_DATA += egl/wayland-egl.pc
  160 
  161 ## XXX: backend interface
  162 include_HEADERS += egl/wayland-egl-backend.h
  163 pkgconfig_DATA += egl/wayland-egl-backend.pc
  164 
  165 built_test_programs =				\
  166 	array-test				\
  167 	client-test				\
  168 	display-test				\
  169 	connection-test				\
  170 	event-loop-test				\
  171 	fixed-test				\
  172 	interface-test				\
  173 	list-test				\
  174 	map-test				\
  175 	os-wrappers-test			\
  176 	sanity-test				\
  177 	socket-test				\
  178 	queue-test				\
  179 	proxy-test				\
  180 	signal-test				\
  181 	newsignal-test				\
  182 	resources-test				\
  183 	message-test				\
  184 	headers-test				\
  185 	compositor-introspection-test		\
  186 	protocol-logger-test			\
  187 	wayland-egl-abi-check
  188 
  189 EXTRA_DIST += egl/wayland-egl-symbols-check
  190 
  191 check_PROGRAMS = wayland-egl-abi-check
  192 wayland_egl_abi_check_SOURCES = egl/wayland-egl-abi-check.c
  193 
  194 if ENABLE_CPP_TEST
  195 built_test_programs += cpp-compile-test
  196 endif
  197 
  198 AM_TESTS_ENVIRONMENT =							\
  199 	export WAYLAND_SCANNER='$(top_builddir)/wayland-scanner'	\
  200 	TEST_DATA_DIR='$(top_srcdir)/tests/data'			\
  201 	TEST_OUTPUT_DIR='$(top_builddir)/tests/output'			\
  202 	WAYLAND_EGL_LIB='$(top_builddir)/.libs/libwayland-egl.so'	\
  203 	SED=$(SED)							\
  204 	NM='$(NM)'							\
  205 	;
  206 
  207 TESTS = $(built_test_programs)			\
  208 	egl/wayland-egl-symbols-check		\
  209 	tests/scanner-test.sh
  210 
  211 noinst_PROGRAMS =				\
  212 	$(built_test_programs)			\
  213 	exec-fd-leak-checker			\
  214 	fixed-benchmark
  215 
  216 noinst_LTLIBRARIES +=				\
  217 	libtest-runner.la			\
  218 	libtest-helpers.la
  219 
  220 libtest_helpers_la_SOURCES = tests/test-helpers.c
  221 
  222 libtest_runner_la_SOURCES =			\
  223 	tests/test-runner.c			\
  224 	tests/test-runner.h			\
  225 	tests/test-compositor.h			\
  226 	tests/test-compositor.c
  227 libtest_runner_la_LIBADD =			\
  228 	libwayland-private.la			\
  229 	libwayland-util.la			\
  230 	libwayland-client.la			\
  231 	libwayland-server.la			\
  232 	libtest-helpers.la			\
  233 	$(RT_LIBS) $(DL_LIBS) $(FFI_LIBS)
  234 
  235 array_test_SOURCES = tests/array-test.c
  236 array_test_LDADD = libtest-runner.la
  237 client_test_SOURCES = tests/client-test.c
  238 client_test_LDADD = libtest-runner.la
  239 display_test_CFLAGS = -pthread
  240 display_test_SOURCES = tests/display-test.c
  241 display_test_LDADD = libtest-runner.la
  242 nodist_display_test_SOURCES =				\
  243 	protocol/tests-server-protocol.h		\
  244 	protocol/tests-client-protocol.h 		\
  245 	protocol/tests-protocol.c
  246 connection_test_SOURCES = tests/connection-test.c
  247 connection_test_LDADD = libtest-runner.la
  248 event_loop_test_SOURCES = tests/event-loop-test.c
  249 event_loop_test_LDADD = libtest-runner.la
  250 fixed_test_SOURCES = tests/fixed-test.c
  251 fixed_test_LDADD = libtest-runner.la
  252 interface_test_SOURCES = tests/interface-test.c
  253 interface_test_LDADD = libtest-runner.la
  254 list_test_SOURCES = tests/list-test.c
  255 list_test_LDADD = libtest-runner.la
  256 map_test_SOURCES = tests/map-test.c
  257 map_test_LDADD = libtest-runner.la
  258 sanity_test_SOURCES = tests/sanity-test.c
  259 sanity_test_LDADD = libtest-runner.la
  260 socket_test_SOURCES = tests/socket-test.c
  261 socket_test_LDADD = libtest-runner.la
  262 queue_test_SOURCES = tests/queue-test.c
  263 queue_test_LDADD = libtest-runner.la
  264 proxy_test_SOURCES = tests/proxy-test.c
  265 proxy_test_LDADD = libtest-runner.la
  266 signal_test_SOURCES = tests/signal-test.c
  267 signal_test_LDADD = libtest-runner.la
  268 # wayland-server.c is needed here to access wl_priv_* functions
  269 newsignal_test_SOURCES = tests/newsignal-test.c src/wayland-server.c
  270 newsignal_test_LDADD = libtest-runner.la
  271 resources_test_SOURCES = tests/resources-test.c
  272 resources_test_LDADD = libtest-runner.la
  273 message_test_SOURCES = tests/message-test.c
  274 message_test_LDADD = libtest-runner.la
  275 compositor_introspection_test_SOURCES = tests/compositor-introspection-test.c
  276 compositor_introspection_test_LDADD = libtest-runner.la
  277 protocol_logger_test_SOURCES = tests/protocol-logger-test.c
  278 protocol_logger_test_LDADD = libtest-runner.la
  279 headers_test_SOURCES = tests/headers-test.c \
  280 		       tests/headers-protocol-test.c \
  281 		       tests/headers-protocol-core-test.c
  282 nodist_headers_test_SOURCES =			\
  283 	protocol/wayland-server-protocol-core.h	\
  284 	protocol/wayland-client-protocol-core.h
  285 
  286 if ENABLE_CPP_TEST
  287 cpp_compile_test_SOURCES = tests/cpp-compile-test.cpp
  288 endif
  289 
  290 fixed_benchmark_SOURCES = tests/fixed-benchmark.c
  291 fixed_benchmark_LDADD = $(RT_LIBS)
  292 
  293 os_wrappers_test_SOURCES = tests/os-wrappers-test.c
  294 os_wrappers_test_LDADD = libtest-runner.la
  295 
  296 exec_fd_leak_checker_SOURCES = tests/exec-fd-leak-checker.c
  297 exec_fd_leak_checker_LDADD = libtest-helpers.la
  298 
  299 EXTRA_DIST += tests/scanner-test.sh			\
  300 	protocol/tests.xml				\
  301 	tests/data/bad-identifier-arg.xml		\
  302 	tests/data/bad-identifier-entry.xml		\
  303 	tests/data/bad-identifier-enum.xml		\
  304 	tests/data/bad-identifier-event.xml		\
  305 	tests/data/bad-identifier-interface.xml		\
  306 	tests/data/bad-identifier-protocol.xml		\
  307 	tests/data/bad-identifier-request.xml		\
  308 	tests/data/example.xml				\
  309 	tests/data/example-client.h			\
  310 	tests/data/example-server.h			\
  311 	tests/data/example-code.c			\
  312 	tests/data/small.xml				\
  313 	tests/data/small-code.c				\
  314 	tests/data/small-client.h			\
  315 	tests/data/small-server.h			\
  316 	tests/data/small-code-core.c			\
  317 	tests/data/small-client-core.h			\
  318 	tests/data/small-server-core.h			\
  319 	tests/data/small-private-code.c			\
  320 	meson.build					\
  321 	meson_options.txt				\
  322 	cursor/meson.build				\
  323 	doc/meson.build					\
  324 	doc/doxygen/mainpage.dox			\
  325 	doc/doxygen/meson.build				\
  326 	doc/doxygen/gen-doxygen.py			\
  327 	doc/doxygen/xml/meson.build			\
  328 	doc/doxygen/xml/Client/meson.build		\
  329 	doc/doxygen/xml/Server/meson.build		\
  330 	doc/man/meson.build				\
  331 	doc/publican/meson.build			\
  332 	doc/publican/sources/meson.build		\
  333 	egl/meson.build					\
  334 	src/meson.build					\
  335 	tests/meson.build
  336 
  337 tests/scanner-test.sh: $(top_builddir)/wayland-scanner
  338 
  339 clean-local:
  340 	-rm -rf tests/output
  341 
  342 endif #ENABLE_LIBRARIES