335N/A# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
1186N/A#
1186N/A# Permission is hereby granted, free of charge, to any person obtaining a
0N/A# copy of this software and associated documentation files (the "Software"),
0N/A# to deal in the Software without restriction, including without limitation
0N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
335N/A# and/or sell copies of the Software, and to permit persons to whom the
0N/A# Software is furnished to do so, subject to the following conditions:
0N/A#
0N/A# The above copyright notice and this permission notice (including the next
0N/A# paragraph) shall be included in all copies or substantial portions of the
0N/A# Software.
0N/A#
0N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0N/A# DEALINGS IN THE SOFTWARE.
1244N/A#
1186N/A
1186N/ASRCS = dispswitch.c
1368N/AOBJS = $(SRCS:.c=.o)
1368N/A
1186N/APKGS = 'xrandr >= 1.2.0' x11
1355N/APKG_CFLAGS = pkg-config --cflags $(PKGS)
1355N/APKG_LIBS = pkg-config --libs $(PKGS)
1186N/ACFLAGS += $(PKG_CFLAGS:sh)
1186N/ALIBS = $(PKG_LIBS:sh)
1186N/A
1186N/Adispswitch: $(OBJS)
1325N/A $(LD) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
1325N/A
1186N/Ainstall: dispswitch dispswitch.man gnome-dispswitch.desktop
1186N/A mkdir -p $(DESTDIR)$(PREFIX)/bin \
1186N/A $(DESTDIR)$(PREFIX)/share/man/man1 \
1186N/A $(DESTDIR)/etc/xdg/autostart
1186N/A $(INSTALL) -m 0555 dispswitch $(DESTDIR)$(PREFIX)/bin
1127N/A $(INSTALL) -m 0444 dispswitch.man \
0N/A $(DESTDIR)$(PREFIX)/share/man/man1/dispswitch.1
1186N/A $(INSTALL) -m 0444 gnome-dispswitch.desktop $(DESTDIR)/etc/xdg/autostart
1186N/A