1*d2ec54f7Sphitran# 2*d2ec54f7Sphitran# CDDL HEADER START 3*d2ec54f7Sphitran# 4*d2ec54f7Sphitran# The contents of this file are subject to the terms of the 5*d2ec54f7Sphitran# Common Development and Distribution License (the "License"). 6*d2ec54f7Sphitran# You may not use this file except in compliance with the License. 7*d2ec54f7Sphitran# 8*d2ec54f7Sphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*d2ec54f7Sphitran# or http://www.opensolaris.org/os/licensing. 10*d2ec54f7Sphitran# See the License for the specific language governing permissions 11*d2ec54f7Sphitran# and limitations under the License. 12*d2ec54f7Sphitran# 13*d2ec54f7Sphitran# When distributing Covered Code, include this CDDL HEADER in each 14*d2ec54f7Sphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*d2ec54f7Sphitran# If applicable, add the following below this CDDL HEADER, with the 16*d2ec54f7Sphitran# fields enclosed by brackets "[]" replaced with your own identifying 17*d2ec54f7Sphitran# information: Portions Copyright [yyyy] [name of copyright owner] 18*d2ec54f7Sphitran# 19*d2ec54f7Sphitran# CDDL HEADER END 20*d2ec54f7Sphitran# 21*d2ec54f7Sphitran# 22*d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*d2ec54f7Sphitran# Use is subject to license terms. 24*d2ec54f7Sphitran# 25*d2ec54f7Sphitran# ident "%Z%%M% %I% %E% SMI" 26*d2ec54f7Sphitran# 27*d2ec54f7Sphitran 28*d2ec54f7SphitranHAL_PROGS = hal-system-lcd-set-brightness-sunos \ 29*d2ec54f7Sphitran hal-system-lcd-get-brightness-sunos 30*d2ec54f7Sphitran 31*d2ec54f7SphitranHAL_SCRIPTS = hal-system-power-reboot-sunos hal-system-power-suspend-sunos \ 32*d2ec54f7Sphitran hal-system-power-hibernate-sunos hal-system-power-shutdown-sunos 33*d2ec54f7Sphitran 34*d2ec54f7SphitranOBJS = $(HAL_PROG:%=%.o) 35*d2ec54f7Sphitran 36*d2ec54f7SphitranCLOBBERFILES += $(HAL_PROGS) 37*d2ec54f7Sphitran 38*d2ec54f7Sphitraninclude ../../../Makefile.cmd 39*d2ec54f7Sphitraninclude ../../Makefile.hal 40*d2ec54f7Sphitran 41*d2ec54f7Sphitran$(HAL_PROGS) := LDLIBS += -lc $(ZIGNORE) -lglib-2.0 42*d2ec54f7Sphitran 43*d2ec54f7SphitranCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 44*d2ec54f7SphitranCPPFLAGS += -I$(ROOT)/usr/include/hal 45*d2ec54f7SphitranCPPFLAGS += -I$(ROOT)/usr/include/libpolkit 46*d2ec54f7SphitranC99MODE = $(C99_ENABLE) 47*d2ec54f7Sphitran 48*d2ec54f7SphitranROOTCMDDIR = $(ROOTLIB_HAL)/sunos 49*d2ec54f7SphitranROOTCMD = $(HAL_PROGS:%=$(ROOTCMDDIR)/%) \ 50*d2ec54f7Sphitran $(HAL_SCRIPTS:%=$(ROOTCMDDIR)/%) 51*d2ec54f7Sphitran 52*d2ec54f7Sphitran.KEEP_STATE: 53*d2ec54f7Sphitran 54*d2ec54f7Sphitranall: $(HAL_PROGS) $(HAL_SCRIPTS) 55*d2ec54f7Sphitran 56*d2ec54f7Sphitraninstall: all $(ROOTCMD) 57*d2ec54f7Sphitran 58*d2ec54f7Sphitranclean: 59*d2ec54f7Sphitran $(RM) $(OBJS) $(HAL_PROGS) $(HAL_SCRIPTS) 60*d2ec54f7Sphitran 61*d2ec54f7Sphitraninclude ../../../Makefile.targ 62