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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
|
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
CLEANFILES =
macros = \
-DHELPER_PATH=\"$(pkglibexecdir)\" \
-DDOCS_PATH=\"$(docdir)\" \
-DAUTH_EXECUTABLE=\"@auth_executable@\" \
-DAUTHPROTO_EXECUTABLE=\"@authproto_executable@\" \
-DGLOBAL_SAVER_EXECUTABLE=\"@global_saver_executable@\" \
-DSAVER_EXECUTABLE=\"@saver_executable@\" \
-DPAM_SERVICE_NAME=\"@pam_service_name@\"
if HAVE_LIBBSD
macros += -DHAVE_LIBBSD
endif
if PAM_CHECK_ACCOUNT_TYPE
macros += -DPAM_CHECK_ACCOUNT_TYPE
endif
if HAVE_DPMS_EXT
macros += -DHAVE_DPMS_EXT
endif
if HAVE_FONTCONFIG
macros += -DHAVE_FONTCONFIG
endif
if HAVE_XSCREENSAVER_EXT
macros += -DHAVE_XSCREENSAVER_EXT
endif
if HAVE_XSYNC_EXT
macros += -DHAVE_XSYNC_EXT
endif
if HAVE_XCOMPOSITE_EXT
macros += -DHAVE_XCOMPOSITE_EXT
endif
if HAVE_XF86MISC_EXT
macros += -DHAVE_XF86MISC_EXT
endif
if HAVE_XFIXES_EXT
macros += -DHAVE_XFIXES_EXT
endif
if HAVE_XFT_EXT
macros += -DHAVE_XFT_EXT
endif
if HAVE_XRANDR_EXT
macros += -DHAVE_XRANDR_EXT
endif
if HAVE_XKB_EXT
macros += -DHAVE_XKB_EXT
endif
bin_PROGRAMS = \
xsecurelock
xsecurelock_SOURCES = \
auth_child.c auth_child.h \
env_settings.c env_settings.h \
logging.c logging.h \
mlock_page.h \
main.c \
saver_child.c saver_child.h \
unmap_all.c unmap_all.h \
util.c util.h \
version.c version.h \
wait_pgrp.c wait_pgrp.h \
wm_properties.c wm_properties.h \
xscreensaver_api.c xscreensaver_api.h \
incompatible_compositor.xbm
nodist_xsecurelock_SOURCES = \
env_helpstr.inc
xsecurelock_CPPFLAGS = $(macros) $(LIBBSD_CFLAGS)
xsecurelock_LDADD = $(LIBBSD_LIBS)
helpersdir = $(pkglibexecdir)
helpers_SCRIPTS = \
helpers/saver_blank
if HAVE_HTPASSWD
helpers_SCRIPTS += \
helpers/authproto_htpasswd
endif
if HAVE_MPLAYER
helpers_SCRIPTS += \
helpers/saver_mplayer
endif
if HAVE_MPV
helpers_SCRIPTS += \
helpers/saver_mpv
endif
if HAVE_PAMTESTER
helpers_SCRIPTS += \
helpers/authproto_pamtester
endif
if HAVE_XSCREENSAVER
helpers_SCRIPTS += \
helpers/saver_xscreensaver
endif
helpers_PROGRAMS = \
pgrp_placeholder
pgrp_placeholder_SOURCES = \
helpers/pgrp_placeholder.c
helpers_PROGRAMS += \
saver_multiplex
saver_multiplex_SOURCES = \
env_settings.c env_settings.h \
helpers/monitors.c helpers/monitors.h \
helpers/saver_multiplex.c \
logging.c logging.h \
saver_child.c saver_child.h \
wait_pgrp.c wait_pgrp.h \
wm_properties.c wm_properties.h \
xscreensaver_api.c xscreensaver_api.h
saver_multiplex_CPPFLAGS = $(macros)
helpers_PROGRAMS += \
dimmer
dimmer_SOURCES = \
env_settings.c env_settings.h \
helpers/dimmer.c \
logging.c logging.h \
wm_properties.c wm_properties.h
dimmer_CPPFLAGS = $(macros)
if HAVE_IDLE_TIMER
helpers_PROGRAMS += \
until_nonidle
until_nonidle_SOURCES = \
env_settings.c env_settings.h \
helpers/until_nonidle.c \
logging.c logging.h \
wait_pgrp.c wait_pgrp.h
until_nonidle_CPPFLAGS = $(macros)
endif
helpers_PROGRAMS += \
auth_x11
auth_x11_SOURCES = \
env_info.c env_info.h \
env_settings.c env_settings.h \
helpers/authproto.c helpers/authproto.h \
helpers/auth_x11.c \
helpers/monitors.c helpers/monitors.h \
logging.c logging.h \
mlock_page.h \
util.c util.h \
wait_pgrp.c wait_pgrp.h \
wm_properties.c wm_properties.h \
xscreensaver_api.c xscreensaver_api.h
auth_x11_CPPFLAGS = $(macros) $(FONTCONFIG_CFLAGS) $(XFT_CFLAGS) $(LIBBSD_CFLAGS)
auth_x11_LDADD = $(FONTCONFIG_LIBS) $(XFT_LIBS) $(LIBBSD_LIBS)
if HAVE_PAM
helpers_PROGRAMS += \
authproto_pam
authproto_pam_SOURCES = \
env_info.c env_info.h \
env_settings.c env_settings.h \
helpers/authproto.c helpers/authproto.h \
helpers/authproto_pam.c \
logging.c logging.h \
mlock_page.h \
util.c util.h
authproto_pam_CPPFLAGS = $(macros) $(LIBBSD_CFLAGS)
authproto_pam_LDADD = $(LIBBSD_LIBS)
endif
doc_DATA = \
CONTRIBUTING \
LICENSE \
README.md
if HAVE_PANDOC
man1_MANS = xsecurelock.1
xsecurelock.1.md: doc/xsecurelock.1.md README.md
{ \
grep -B 9999 'ENV VARIABLES HERE' doc/xsecurelock.1.md; \
grep -A 9999 'ENV VARIABLES START' README.md |\
grep -B 9999 'ENV VARIABLES END'; \
grep -A 9999 'ENV VARIABLES HERE' doc/xsecurelock.1.md; \
} > xsecurelock.1.md
xsecurelock.1: xsecurelock.1.md
$(path_to_pandoc) -s -f markdown -t man -o $@ $<
CLEANFILES += xsecurelock.1.md xsecurelock.1
endif
# Some tools that we sure don't wan to install
noinst_PROGRAMS = cat_authproto nvidia_break_compositor get_compositor remap_all
cat_authproto_SOURCES = \
logging.c logging.h \
helpers/authproto.c helpers/authproto.h \
test/cat_authproto.c
nvidia_break_compositor_SOURCES = \
test/nvidia_break_compositor.c
nvidia_break_compositor_CPPFLAGS = $(macros)
get_compositor_SOURCES = \
test/get_compositor.c
get_compositor_CPPFLAGS = $(macros)
remap_all_SOURCES= \
test/remap_all.c \
unmap_all.c unmap_all.h
remap_all_CPPFLAGS = $(macros)
FORCE:
version.c: FORCE
if [ -n "$(GIT_VERSION)" ]; then \
echo "const char *const git_version = \"$(GIT_VERSION)\";" \
> version.c; \
elif git describe --always --dirty >/dev/null 2>&1; then \
echo "const char *const git_version = \"` \
git describe --always --dirty \
`\";" > version.c; \
else \
: version.c must exist in non-git builds.; \
cat version.c; \
fi
.PRECIOUS: version.c # Old one is better than none.
env_helpstr.inc: README.md # Autogenerate for --help.
grep -A 9999 'ENV VARIABLES START' "$<" |\
grep -B 9999 'ENV VARIABLES END' |\
grep '^[ *]' |\
sed -e 's,\\\|",\\&,g; s,$$,\\n",; s,^,",;' > "$@"
xsecurelock-main.$(OBJEXT): env_helpstr.inc
EXTRA_DIST = \
CONTRIBUTING \
LICENSE \
README.md \
autogen.sh \
doc/xsecurelock.1.md \
ensure-documented-settings.sh \
helpers/saver_blank \
incompatible_compositor.xbm.sh \
run-iwyu.sh \
run-linters.sh \
test/*.c \
test/*.sh \
test/*.xdo \
version.c
examplesdir = $(docdir)/examples
dist_examples_DATA = \
doc/examples/saver_livestreams
if HAVE_DOXYGEN
doxyfile.stamp:
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
CLEANFILES += doxyfile.stamp
all-local: doxyfile.stamp
clean-local:
$(RM) -r $(top_srcdir)/doxy
endif
|