Makefile revision 2
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore#
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# CDDL HEADER START
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore#
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# The contents of this file are subject to the terms of the
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# Common Development and Distribution License (the "License").
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# You may not use this file except in compliance with the License.
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore#
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# See the License for the specific language governing permissions
cd21e7c548ae2a3b5e522244bf798f2a6b4ba02dGarrett D'Amore# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
b89e420ae1290e425c29db875ec0c0546006eec7Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a6ae009119d792a981d8b7153f8cb3851fe04ebbRobert Mustacchi# If applicable, add the following below this CDDL HEADER, with the
cfc3b49fd53fba13be205e2206e0ea3b36f5f2c7Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
f73e0305a745f17c6a584c4470f99ea1e023657fHans Rosenfeld# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePROG = hald-addon-cpufreq
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOBJS = addon-cpufreq.o logger.o adt_data.o
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSRCS = addon-cpufreq.c ../../hald/logger.c ../../utils/adt_data.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../../Makefile.cmd
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../Makefile.hal
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTCMDDIR = $(ROOTLIB_HAL)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCFLAGS += -I $(STUBROOT)/usr/include
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDLIBS += -lc -ldbus-1 -lhal -lglib-2.0 -ldbus-glib-1 -lpolkit -lbsm
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLDLIBS += -lnvpair $(ROOT)/lib/libpower.so.1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../hald
fa9922c2be34868be01989cef133828185b5c0bcRobert MustacchiCPPFLAGS += -I$(ROOT)/usr/include/libpolkit -g -W0,-noglobal
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweC99MODE = $(C99_ENABLE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe.KEEP_STATE:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweall:$(PROG)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowelogger.o: ../../hald/logger.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(COMPILE.c) -o $@ ../../hald/logger.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(POST_PROCESS_O)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweadt_data.o: ../../utils/adt_data.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(COMPILE.c) -o $@ ../../utils/adt_data.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(POST_PROCESS_O)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(PROG): $(OBJS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(POST_PROCESS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall: all $(ROOTCMD)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(RM) $(OBJS)
ebf4a993df0df43f7a5f7a6e512d1df78b9875c0Garrett D'Amore
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFRC:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../../../Makefile.targ
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe