17b840e52Sphitran# 27b840e52Sphitran# CDDL HEADER START 37b840e52Sphitran# 47b840e52Sphitran# The contents of this file are subject to the terms of the 57b840e52Sphitran# Common Development and Distribution License (the "License"). 67b840e52Sphitran# You may not use this file except in compliance with the License. 77b840e52Sphitran# 87b840e52Sphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97b840e52Sphitran# or http://www.opensolaris.org/os/licensing. 107b840e52Sphitran# See the License for the specific language governing permissions 117b840e52Sphitran# and limitations under the License. 127b840e52Sphitran# 137b840e52Sphitran# When distributing Covered Code, include this CDDL HEADER in each 147b840e52Sphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157b840e52Sphitran# If applicable, add the following below this CDDL HEADER, with the 167b840e52Sphitran# fields enclosed by brackets "[]" replaced with your own identifying 177b840e52Sphitran# information: Portions Copyright [yyyy] [name of copyright owner] 187b840e52Sphitran# 197b840e52Sphitran# CDDL HEADER END 207b840e52Sphitran# 217b840e52Sphitran# 22d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237b840e52Sphitran# Use is subject to license terms. 247b840e52Sphitran# 257b840e52Sphitran 26d2ec54f7SphitranHAL_PROGS = hal-system-lcd-set-brightness-sunos \ 27d2ec54f7Sphitran hal-system-lcd-get-brightness-sunos 287b840e52Sphitran 29d2ec54f7SphitranHAL_SCRIPTS = hal-system-power-reboot-sunos hal-system-power-suspend-sunos \ 30d2ec54f7Sphitran hal-system-power-hibernate-sunos hal-system-power-shutdown-sunos 317b840e52Sphitran 32d2ec54f7SphitranOBJS = $(HAL_PROG:%=%.o) 337b840e52Sphitran 34d2ec54f7SphitranCLOBBERFILES += $(HAL_PROGS) 357b840e52Sphitran 36d2ec54f7Sphitraninclude ../../../Makefile.cmd 37d2ec54f7Sphitraninclude ../../Makefile.hal 387b840e52Sphitran 39d2ec54f7Sphitran$(HAL_PROGS) := LDLIBS += -lc $(ZIGNORE) -lglib-2.0 407b840e52Sphitran 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) 467b840e52Sphitran 47*5801b0f0SToomas SoomeROOTCMDDIR = $(ROOTLIB_HAL)/sunos 48d2ec54f7SphitranROOTCMD = $(HAL_PROGS:%=$(ROOTCMDDIR)/%) \ 49d2ec54f7Sphitran $(HAL_SCRIPTS:%=$(ROOTCMDDIR)/%) 507b840e52Sphitran 51d2ec54f7Sphitran.KEEP_STATE: 527b840e52Sphitran 53d2ec54f7Sphitranall: $(HAL_PROGS) $(HAL_SCRIPTS) 547b840e52Sphitran 557b840e52Sphitraninstall: all $(ROOTCMD) 567b840e52Sphitran 577b840e52Sphitranclean: 58d2ec54f7Sphitran $(RM) $(OBJS) $(HAL_PROGS) $(HAL_SCRIPTS) 597b840e52Sphitran 607b840e52Sphitraninclude ../../../Makefile.targ 61