Makefile.am (3176B)
1# 2# Licensed to the Apache Software Foundation (ASF) under one 3# or more contributor license agreements. See the NOTICE file 4# distributed with this work for additional information 5# regarding copyright ownership. The ASF licenses this file 6# to you under the Apache License, Version 2.0 (the 7# "License"); you may not use this file except in compliance 8# with the License. You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, 13# software distributed under the License is distributed on an 14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15# KIND, either express or implied. See the License for the 16# specific language governing permissions and limitations 17# under the License. 18# 19# NOTE: Parts of this file (Makefile.am) are automatically transcluded verbatim 20# into Makefile.in. Though the build system (GNU Autotools) automatically adds 21# its own license boilerplate to the generated Makefile.in, that boilerplate 22# does not apply to the transcluded portions of Makefile.am which are licensed 23# to you by the ASF under the Apache License, Version 2.0, as described above. 24# 25 26AUTOMAKE_OPTIONS = foreign 27ACLOCAL_AMFLAGS = -I m4 28 29# 30# Unit tests for libguac 31# 32 33check_PROGRAMS = test_libguac 34TESTS = $(check_PROGRAMS) 35 36noinst_HEADERS = \ 37 assert-signal.h 38 39test_libguac_SOURCES = \ 40 client/buffer_pool.c \ 41 client/layer_pool.c \ 42 id/generate.c \ 43 mem/alloc.c \ 44 mem/ckd_add.c \ 45 mem/ckd_add_or_die.c \ 46 mem/ckd_mul.c \ 47 mem/ckd_mul_or_die.c \ 48 mem/ckd_sub.c \ 49 mem/ckd_sub_or_die.c \ 50 mem/free.c \ 51 mem/realloc.c \ 52 mem/realloc_or_die.c \ 53 mem/zalloc.c \ 54 parser/append.c \ 55 parser/read.c \ 56 pool/next_free.c \ 57 protocol/base64_decode.c \ 58 protocol/guac_protocol_version.c \ 59 socket/fd_send_instruction.c \ 60 socket/nested_send_instruction.c \ 61 string/strdup.c \ 62 string/strlcat.c \ 63 string/strlcpy.c \ 64 string/strljoin.c \ 65 string/strnstr.c \ 66 unicode/charsize.c \ 67 unicode/read.c \ 68 unicode/strlen.c \ 69 unicode/write.c 70 71 72test_libguac_CFLAGS = \ 73 -Werror -Wall -pedantic \ 74 @LIBGUAC_INCLUDE@ 75 76test_libguac_LDADD = \ 77 @CUNIT_LIBS@ \ 78 @LIBGUAC_LTLIB@ 79 80# 81# Autogenerate test runner 82# 83 84GEN_RUNNER = $(top_srcdir)/util/generate-test-runner.pl 85CLEANFILES = _generated_runner.c 86 87_generated_runner.c: $(test_libguac_SOURCES) 88 $(AM_V_GEN) $(GEN_RUNNER) $(test_libguac_SOURCES) > $@ 89 90nodist_test_libguac_SOURCES = \ 91 _generated_runner.c 92 93# Use automake's TAP test driver for running any tests 94LOG_DRIVER = \ 95 env AM_TAP_AWK='$(AWK)' \ 96 $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh 97