xref: /illumos-gate/usr/src/cmd/powertop/Makefile.com (revision d3b5f563)
1bcde4861SRafael Vanoni Polanczyk#
2bcde4861SRafael Vanoni Polanczyk# CDDL HEADER START
3bcde4861SRafael Vanoni Polanczyk#
4bcde4861SRafael Vanoni Polanczyk# The contents of this file are subject to the terms of the
5bcde4861SRafael Vanoni Polanczyk# Common Development and Distribution License (the "License").
6bcde4861SRafael Vanoni Polanczyk# You may not use this file except in compliance with the License.
7bcde4861SRafael Vanoni Polanczyk#
8bcde4861SRafael Vanoni Polanczyk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9bcde4861SRafael Vanoni Polanczyk# or http://www.opensolaris.org/os/licensing.
10bcde4861SRafael Vanoni Polanczyk# See the License for the specific language governing permissions
11bcde4861SRafael Vanoni Polanczyk# and limitations under the License.
12bcde4861SRafael Vanoni Polanczyk#
13bcde4861SRafael Vanoni Polanczyk# When distributing Covered Code, include this CDDL HEADER in each
14bcde4861SRafael Vanoni Polanczyk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15bcde4861SRafael Vanoni Polanczyk# If applicable, add the following below this CDDL HEADER, with the
16bcde4861SRafael Vanoni Polanczyk# fields enclosed by brackets "[]" replaced with your own identifying
17bcde4861SRafael Vanoni Polanczyk# information: Portions Copyright [yyyy] [name of copyright owner]
18bcde4861SRafael Vanoni Polanczyk#
19bcde4861SRafael Vanoni Polanczyk# CDDL HEADER END
20bcde4861SRafael Vanoni Polanczyk#
21e5bbdc06SRafael Vanoni# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22bcde4861SRafael Vanoni Polanczyk# Use is subject to license terms.
23bcde4861SRafael Vanoni Polanczyk#
245661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
25bcde4861SRafael Vanoni Polanczyk
26bcde4861SRafael Vanoni PolanczykPROG = powertop
27bcde4861SRafael Vanoni Polanczyk
28b47b5b34SRafael VanoniCOMMON_OBJS = $(PROG).o \
29b47b5b34SRafael Vanoni	display.o \
30b47b5b34SRafael Vanoni	battery.o \
31b47b5b34SRafael Vanoni	cpufreq.o \
32b47b5b34SRafael Vanoni	cpuidle.o \
33b47b5b34SRafael Vanoni	events.o \
34b47b5b34SRafael Vanoni	util.o \
35b47b5b34SRafael Vanoni	suggestions.o \
36b47b5b34SRafael Vanoni	turbo.o
37bcde4861SRafael Vanoni Polanczyk
38b47b5b34SRafael VanoniSRCS		= $(COMMON_OBJS:%.o=../common/%.c)
39bcde4861SRafael Vanoni Polanczyk
40b47b5b34SRafael Vanoniinclude ../../Makefile.cmd
41b47b5b34SRafael Vanoni.KEEP_STATE:
42bcde4861SRafael Vanoni Polanczyk
43b47b5b34SRafael VanoniCFLAGS		+= $(CCVERBOSE)
44b47b5b34SRafael VanoniCFLAGS64	+= $(CCVERBOSE)
457014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
46*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
475661bb76SJohn Levon
485661bb76SJohn LevonSMOFF += free
495661bb76SJohn Levon
50b47b5b34SRafael VanoniLDLIBS		+= -lcurses -ldtrace -lkstat
51bcde4861SRafael Vanoni Polanczyk
52b47b5b34SRafael VanoniFILEMODE	= 0555
53bcde4861SRafael Vanoni Polanczyk
54b47b5b34SRafael VanoniCLEANFILES	+= $(COMMON_OBJS)
55bcde4861SRafael Vanoni Polanczyk
56b47b5b34SRafael Vanoniall:	$(PROG)
57bcde4861SRafael Vanoni Polanczyk
58bcde4861SRafael Vanoni Polanczykclean:
59bcde4861SRafael Vanoni Polanczyk	$(RM) $(CLEANFILES)
60bcde4861SRafael Vanoni Polanczyk
61bcde4861SRafael Vanoni Polanczyklint:	lint_SRCS
62bcde4861SRafael Vanoni Polanczyk
63bcde4861SRafael Vanoni Polanczykinclude ../../Makefile.targ
64