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