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# 22*d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237b840e52Sphitran# Use is subject to license terms. 247b840e52Sphitran# 257b840e52Sphitran# ident "%Z%%M% %I% %E% SMI" 267b840e52Sphitran# 277b840e52Sphitran 287b840e52SphitranPROG = hald-addon-acpi 29*d2ec54f7SphitranOBJS = addon-acpi.o logger.o util_helper.o acpi.o util_pm.o 307b840e52SphitranSRCS = addon-acpi.c ../../hald/logger.c ../../hald/util_helper.c 317b840e52Sphitran 327b840e52Sphitraninclude ../../../Makefile.cmd 337b840e52Sphitraninclude ../../Makefile.hal 347b840e52Sphitran 357b840e52SphitranROOTCMDDIR = $(ROOTLIB_HAL) 367b840e52Sphitran 377b840e52SphitranLDLIBS += -lc -ldbus-1 -lhal -lglib-2.0 387b840e52Sphitran 397b840e52SphitranCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 407b840e52SphitranCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../hald 417b840e52SphitranC99MODE = $(C99_ENABLE) 427b840e52Sphitran 437b840e52Sphitran.KEEP_STATE: 447b840e52Sphitran 457b840e52Sphitranall: $(PROG) 467b840e52Sphitran 47*d2ec54f7Sphitranacpi.o: ../../utils/acpi.c 48*d2ec54f7Sphitran $(COMPILE.c) -o $@ ../../utils/acpi.c 497b840e52Sphitran $(POST_PROCESS_O) 507b840e52Sphitran 517b840e52Sphitranlogger.o: ../../hald/logger.c 527b840e52Sphitran $(COMPILE.c) -o $@ ../../hald/logger.c 537b840e52Sphitran $(POST_PROCESS_O) 547b840e52Sphitran 557b840e52Sphitranutil_helper.o: ../../hald/util_helper.c 567b840e52Sphitran $(COMPILE.c) -o $@ ../../hald/util_helper.c 577b840e52Sphitran $(POST_PROCESS_O) 587b840e52Sphitran 597b840e52Sphitranutil_pm.o: ../../hald/util_pm.c 607b840e52Sphitran $(COMPILE.c) -o $@ ../../hald/util_pm.c 617b840e52Sphitran $(POST_PROCESS_O) 627b840e52Sphitran 637b840e52Sphitran$(PROG): $(OBJS) 647b840e52Sphitran $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 657b840e52Sphitran $(POST_PROCESS) 667b840e52Sphitran 677b840e52Sphitraninstall: all $(ROOTCMD) 687b840e52Sphitran 697b840e52Sphitranclean: 707b840e52Sphitran $(RM) $(OBJS) $(PROG) 717b840e52Sphitran 727b840e52SphitranFRC: 737b840e52Sphitran 747b840e52Sphitraninclude ../../../Makefile.targ 75