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