Makefile.am (2575B)
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 27 28sbin_PROGRAMS = guacd 29 30man_MANS = \ 31 man/guacd.8 \ 32 man/guacd.conf.5 33 34noinst_HEADERS = \ 35 conf.h \ 36 conf-args.h \ 37 conf-file.h \ 38 conf-parse.h \ 39 connection.h \ 40 log.h \ 41 move-fd.h \ 42 proc.h \ 43 proc-map.h 44 45guacd_SOURCES = \ 46 conf-args.c \ 47 conf-file.c \ 48 conf-parse.c \ 49 connection.c \ 50 daemon.c \ 51 log.c \ 52 move-fd.c \ 53 proc.c \ 54 proc-map.c 55 56guacd_CFLAGS = \ 57 -Werror -Wall -pedantic \ 58 @COMMON_INCLUDE@ \ 59 @LIBGUAC_INCLUDE@ 60 61guacd_LDADD = \ 62 @COMMON_LTLIB@ \ 63 @LIBGUAC_LTLIB@ 64 65guacd_LDFLAGS = \ 66 @PTHREAD_LIBS@ \ 67 @SSL_LIBS@ 68 69EXTRA_DIST = \ 70 init.d/guacd.in \ 71 systemd/guacd.service.in \ 72 man/guacd.8.in \ 73 man/guacd.conf.5.in 74 75CLEANFILES = $(init_SCRIPTS) $(systemd_UNITS) 76 77# Init script 78if ENABLE_INIT 79initdir = @init_dir@ 80init_SCRIPTS = init.d/guacd 81 82init.d/guacd: init.d/guacd.in 83 sed -e 's,[@]sbindir[@],$(sbindir),g' < init.d/guacd.in > init.d/guacd 84 chmod +x init.d/guacd 85endif 86 87# Systemd service 88if ENABLE_SYSTEMD 89systemddir = @systemd_dir@ 90systemd_DATA = systemd/guacd.service 91 92systemd/guacd.service: systemd/guacd.service.in 93 sed -e 's,[@]sbindir[@],$(sbindir),g' < systemd/guacd.service.in > systemd/guacd.service 94endif 95