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