266 lines · 6.4 KB · Text
RawDownload
# 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_LIBBSDmacros += -DHAVE_LIBBSDendifif PAM_CHECK_ACCOUNT_TYPEmacros += -DPAM_CHECK_ACCOUNT_TYPEendifif HAVE_DPMS_EXTmacros += -DHAVE_DPMS_EXTendifif HAVE_FONTCONFIGmacros += -DHAVE_FONTCONFIGendifif HAVE_XSCREENSAVER_EXTmacros += -DHAVE_XSCREENSAVER_EXTendifif HAVE_XSYNC_EXTmacros += -DHAVE_XSYNC_EXTendifif HAVE_XCOMPOSITE_EXTmacros += -DHAVE_XCOMPOSITE_EXTendifif HAVE_XF86MISC_EXTmacros += -DHAVE_XF86MISC_EXTendifif HAVE_XFIXES_EXTmacros += -DHAVE_XFIXES_EXTendifif HAVE_XFT_EXTmacros += -DHAVE_XFT_EXTendifif HAVE_XRANDR_EXTmacros += -DHAVE_XRANDR_EXTendifif HAVE_XKB_EXTmacros += -DHAVE_XKB_EXTendif bin_PROGRAMS = \	xsecurelockxsecurelock_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.xbmnodist_xsecurelock_SOURCES = \	env_helpstr.incxsecurelock_CPPFLAGS = $(macros) $(LIBBSD_CFLAGS)xsecurelock_LDADD = $(LIBBSD_LIBS) helpersdir = $(pkglibexecdir)helpers_SCRIPTS = \	helpers/saver_blankif HAVE_HTPASSWDhelpers_SCRIPTS += \	helpers/authproto_htpasswdendifif HAVE_MPLAYERhelpers_SCRIPTS += \	helpers/saver_mplayerendifif HAVE_MPVhelpers_SCRIPTS += \	helpers/saver_mpvendifif HAVE_PAMTESTERhelpers_SCRIPTS += \	helpers/authproto_pamtesterendifif HAVE_XSCREENSAVERhelpers_SCRIPTS += \	helpers/saver_xscreensaverendif helpers_PROGRAMS = \	pgrp_placeholderpgrp_placeholder_SOURCES = \	helpers/pgrp_placeholder.c helpers_PROGRAMS += \	saver_multiplexsaver_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.hsaver_multiplex_CPPFLAGS = $(macros) helpers_PROGRAMS += \	dimmerdimmer_SOURCES = \	env_settings.c env_settings.h \	helpers/dimmer.c \	logging.c logging.h \	wm_properties.c wm_properties.hdimmer_CPPFLAGS = $(macros) if HAVE_IDLE_TIMERhelpers_PROGRAMS += \	until_nonidleuntil_nonidle_SOURCES = \	env_settings.c env_settings.h \	helpers/until_nonidle.c \	logging.c logging.h \	wait_pgrp.c wait_pgrp.huntil_nonidle_CPPFLAGS = $(macros)endif helpers_PROGRAMS += \	auth_x11auth_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.hauth_x11_CPPFLAGS = $(macros) $(FONTCONFIG_CFLAGS) $(XFT_CFLAGS) $(LIBBSD_CFLAGS)auth_x11_LDADD = $(FONTCONFIG_LIBS) $(XFT_LIBS) $(LIBBSD_LIBS) if HAVE_PAMhelpers_PROGRAMS += \	authproto_pamauthproto_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.hauthproto_pam_CPPFLAGS = $(macros) $(LIBBSD_CFLAGS)authproto_pam_LDADD = $(LIBBSD_LIBS)endif doc_DATA = \	CONTRIBUTING \	LICENSE \	README.md if HAVE_PANDOCman1_MANS = xsecurelock.1xsecurelock.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.mdxsecurelock.1: xsecurelock.1.md	$(path_to_pandoc) -s -f markdown -t man -o $@ $<CLEANFILES += xsecurelock.1.md xsecurelock.1endif # Some tools that we sure don't wan to installnoinst_PROGRAMS = cat_authproto nvidia_break_compositor get_compositor remap_allcat_authproto_SOURCES = \	logging.c logging.h \	helpers/authproto.c helpers/authproto.h \	test/cat_authproto.cnvidia_break_compositor_SOURCES = \	test/nvidia_break_compositor.cnvidia_break_compositor_CPPFLAGS = $(macros)get_compositor_SOURCES = \	test/get_compositor.cget_compositor_CPPFLAGS = $(macros)remap_all_SOURCES= \	test/remap_all.c \	unmap_all.c unmap_all.hremap_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)/examplesdist_examples_DATA = \	doc/examples/saver_livestreams if HAVE_DOXYGENdoxyfile.stamp:	$(DOXYGEN) Doxyfile	echo Timestamp > doxyfile.stamp CLEANFILES += doxyfile.stamp all-local: doxyfile.stamp clean-local:	$(RM) -r $(top_srcdir)/doxyendif