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