1*6654Snp146283# 2*6654Snp146283# CDDL HEADER START 3*6654Snp146283# 4*6654Snp146283# The contents of this file are subject to the terms of the 5*6654Snp146283# Common Development and Distribution License (the "License"). 6*6654Snp146283# You may not use this file except in compliance with the License. 7*6654Snp146283# 8*6654Snp146283# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*6654Snp146283# or http://www.opensolaris.org/os/licensing. 10*6654Snp146283# See the License for the specific language governing permissions 11*6654Snp146283# and limitations under the License. 12*6654Snp146283# 13*6654Snp146283# When distributing Covered Code, include this CDDL HEADER in each 14*6654Snp146283# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*6654Snp146283# If applicable, add the following below this CDDL HEADER, with the 16*6654Snp146283# fields enclosed by brackets "[]" replaced with your own identifying 17*6654Snp146283# information: Portions Copyright [yyyy] [name of copyright owner] 18*6654Snp146283# 19*6654Snp146283# CDDL HEADER END 20*6654Snp146283 21*6654Snp146283# 22*6654Snp146283# 23*6654Snp146283# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*6654Snp146283# Use is subject to license terms. 25*6654Snp146283# 26*6654Snp146283#pragma ident "%Z%%M% %I% %E% SMI" 27*6654Snp146283# 28*6654Snp146283 29*6654Snp146283PROG = hald-addon-cpufreq 30*6654Snp146283OBJS = addon-cpufreq.o logger.o adt_data.o 31*6654Snp146283SRCS = addon-cpufreq.c ../../hald/logger.c ../../utils/adt_data.c 32*6654Snp146283 33*6654Snp146283include ../../../Makefile.cmd 34*6654Snp146283include ../../Makefile.hal 35*6654Snp146283 36*6654Snp146283ROOTCMDDIR = $(ROOTLIB_HAL) 37*6654Snp146283 38*6654Snp146283LDLIBS += -lc -ldbus-1 -lhal -lglib-2.0 -ldbus-glib-1 -lpolkit -lbsm 39*6654Snp146283 40*6654Snp146283CPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 41*6654Snp146283CPPFLAGS += -I$(ROOT)/usr/include/hal -I../../hald 42*6654Snp146283CPPFLAGS += -I$(ROOT)/usr/include/libpolkit -g 43*6654Snp146283C99MODE = $(C99_ENABLE) 44*6654Snp146283 45*6654Snp146283.KEEP_STATE: 46*6654Snp146283 47*6654Snp146283all:$(PROG) 48*6654Snp146283 49*6654Snp146283logger.o: ../../hald/logger.c 50*6654Snp146283 $(COMPILE.c) -o $@ ../../hald/logger.c 51*6654Snp146283 $(POST_PROCESS_O) 52*6654Snp146283 53*6654Snp146283adt_data.o: ../../utils/adt_data.c 54*6654Snp146283 $(COMPILE.c) -o $@ ../../utils/adt_data.c 55*6654Snp146283 $(POST_PROCESS_O) 56*6654Snp146283 57*6654Snp146283$(PROG): $(OBJS) 58*6654Snp146283 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 59*6654Snp146283 $(POST_PROCESS) 60*6654Snp146283 61*6654Snp146283install: all $(ROOTCMD) 62*6654Snp146283 63*6654Snp146283clean: 64*6654Snp146283 $(RM) $(OBJS) 65*6654Snp146283 66*6654Snp146283FRC: 67*6654Snp146283 68*6654Snp146283include ../../../Makefile.targ 69