8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Permission is hereby granted, free of charge, to any person obtaining a
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# copy of this software and associated documentation files (the "Software"),
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to deal in the Software without restriction, including without limitation
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and/or sell copies of the Software, and to permit persons to whom the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Software is furnished to do so, subject to the following conditions:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The above copyright notice and this permission notice (including the next
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# paragraph) shall be included in all copies or substantial portions of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Software.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# DEALINGS IN THE SOFTWARE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterSRCS = dsession.c
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOBJS = $(SRCS:.c=.o)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBS = -lpciaccess
05ca76d5ae014644d576f679ef6aa50e50f9636fMark de Reeper
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterdsession: $(OBJS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(LD) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: dsession
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott mkdir -p $(DESTDIR)$(PREFIX)/lib/ConsoleKit
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott $(INSTALL) -m 0544 dsession $(DESTDIR)$(PREFIX)/lib/ConsoleKit
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster