2011-03-02 09:21:34 +00:00
|
|
|
#
|
2015-07-08 22:16:40 +00:00
|
|
|
# Copyright (C) 2015 Glyptodon LLC
|
2011-03-02 09:21:34 +00:00
|
|
|
#
|
2013-12-29 04:53:12 +00:00
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
2011-03-02 09:21:34 +00:00
|
|
|
#
|
2013-12-29 04:53:12 +00:00
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
2011-03-02 09:21:34 +00:00
|
|
|
#
|
2013-12-29 04:53:12 +00:00
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
# THE SOFTWARE.
|
2011-03-02 09:21:34 +00:00
|
|
|
#
|
2011-02-28 04:27:12 +00:00
|
|
|
|
2011-03-01 09:03:35 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2011-02-28 04:27:12 +00:00
|
|
|
|
2010-12-18 01:02:19 +00:00
|
|
|
sbin_PROGRAMS = guacd
|
2014-09-09 20:45:18 +00:00
|
|
|
|
|
|
|
man_MANS = \
|
|
|
|
man/guacd.8 \
|
|
|
|
man/guacd.conf.5
|
2011-02-28 04:27:12 +00:00
|
|
|
|
2014-09-08 17:25:23 +00:00
|
|
|
noinst_HEADERS = \
|
|
|
|
client.h \
|
|
|
|
client-map.h \
|
2014-09-08 18:09:29 +00:00
|
|
|
conf-args.h \
|
2014-09-08 17:26:49 +00:00
|
|
|
conf-file.h \
|
2014-09-08 17:25:23 +00:00
|
|
|
conf-parse.h \
|
2014-09-08 09:08:54 +00:00
|
|
|
log.h
|
|
|
|
|
2014-09-08 17:25:23 +00:00
|
|
|
guacd_SOURCES = \
|
|
|
|
daemon.c \
|
2015-07-08 22:16:40 +00:00
|
|
|
client.c \
|
|
|
|
client-map.c \
|
|
|
|
conf-args.c \
|
|
|
|
conf-file.c \
|
|
|
|
conf-parse.c \
|
|
|
|
log.c
|
|
|
|
|
|
|
|
guacd_CFLAGS = \
|
|
|
|
-Werror -Wall -pedantic \
|
|
|
|
@COMMON_INCLUDE@ \
|
|
|
|
@LIBGUAC_INCLUDE@
|
|
|
|
|
|
|
|
guacd_LDADD = \
|
|
|
|
@COMMON_LTLIB@ \
|
|
|
|
@LIBGUAC_LTLIB@
|
2014-09-08 09:08:54 +00:00
|
|
|
|
2015-07-08 22:16:40 +00:00
|
|
|
guacd_LDFLAGS = \
|
|
|
|
@PTHREAD_LIBS@ \
|
|
|
|
@SSL_LIBS@
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
init.d/guacd.in \
|
|
|
|
man/guacd.8 \
|
|
|
|
man/guacd.conf.5
|
2011-02-28 04:27:12 +00:00
|
|
|
|
|
|
|
CLEANFILES = $(init_SCRIPTS)
|
|
|
|
|
2013-07-22 03:10:37 +00:00
|
|
|
# SSL support
|
|
|
|
if ENABLE_SSL
|
|
|
|
noinst_HEADERS += socket-ssl.h
|
|
|
|
guacd_SOURCES += socket-ssl.c
|
|
|
|
endif
|
|
|
|
|
2013-07-08 17:35:56 +00:00
|
|
|
# Init script
|
|
|
|
if ENABLE_INIT
|
|
|
|
initdir = @init_dir@
|
|
|
|
init_SCRIPTS = init.d/guacd
|
|
|
|
|
2011-02-28 04:27:12 +00:00
|
|
|
init.d/guacd: init.d/guacd.in
|
2015-07-08 22:16:40 +00:00
|
|
|
sed -e 's,[@]sbindir[@],$(sbindir),g' < init.d/guacd.in > init.d/guacd
|
|
|
|
chmod +x init.d/guacd
|
2013-07-08 17:35:56 +00:00
|
|
|
endif
|
2011-02-28 04:27:12 +00:00
|
|
|
|