xref: /illumos-gate/usr/src/uts/i86pc/ppm/Makefile (revision 5cff782560a1c3cf913ba5574a5123a299f3315e)
1*5cff7825Smh27603#
2*5cff7825Smh27603# CDDL HEADER START
3*5cff7825Smh27603#
4*5cff7825Smh27603# The contents of this file are subject to the terms of the
5*5cff7825Smh27603# Common Development and Distribution License (the "License").
6*5cff7825Smh27603# You may not use this file except in compliance with the License.
7*5cff7825Smh27603#
8*5cff7825Smh27603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5cff7825Smh27603# or http://www.opensolaris.org/os/licensing.
10*5cff7825Smh27603# See the License for the specific language governing permissions
11*5cff7825Smh27603# and limitations under the License.
12*5cff7825Smh27603#
13*5cff7825Smh27603# When distributing Covered Code, include this CDDL HEADER in each
14*5cff7825Smh27603# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5cff7825Smh27603# If applicable, add the following below this CDDL HEADER, with the
16*5cff7825Smh27603# fields enclosed by brackets "[]" replaced with your own identifying
17*5cff7825Smh27603# information: Portions Copyright [yyyy] [name of copyright owner]
18*5cff7825Smh27603#
19*5cff7825Smh27603# CDDL HEADER END
20*5cff7825Smh27603#
21*5cff7825Smh27603#
22*5cff7825Smh27603# uts/i86pc/ppm/Makefile
23*5cff7825Smh27603#
24*5cff7825Smh27603# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25*5cff7825Smh27603# Use is subject to license terms.
26*5cff7825Smh27603#
27*5cff7825Smh27603#ident	"%Z%%M%	%I%	%E% SMI"
28*5cff7825Smh27603#
29*5cff7825Smh27603#	This makefile drives the production of the generic power managment
30*5cff7825Smh27603#	pseudo driver
31*5cff7825Smh27603#
32*5cff7825Smh27603#	i86pc implementation architecture dependent
33*5cff7825Smh27603#
34*5cff7825Smh27603
35*5cff7825Smh27603#
36*5cff7825Smh27603#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*5cff7825Smh27603#
38*5cff7825Smh27603UTSBASE	= ../..
39*5cff7825Smh27603
40*5cff7825Smh27603#
41*5cff7825Smh27603#	Define the module and object file sets.
42*5cff7825Smh27603#
43*5cff7825Smh27603MODULE		= ppm
44*5cff7825Smh27603OBJECTS		= $(PPM_OBJS:%=$(OBJS_DIR)/%)
45*5cff7825Smh27603LINTS		= $(PPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*5cff7825Smh27603ROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
47*5cff7825Smh27603CONF_SRCDIR	= $(UTSBASE)/i86pc/io
48*5cff7825Smh27603
49*5cff7825Smh27603#
50*5cff7825Smh27603#	Include common rules.
51*5cff7825Smh27603#
52*5cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.i86pc
53*5cff7825Smh27603
54*5cff7825Smh27603#
55*5cff7825Smh27603#	Define targets
56*5cff7825Smh27603#
57*5cff7825Smh27603ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
58*5cff7825Smh27603LINT_TARGET	= $(MODULE).lint
59*5cff7825Smh27603INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60*5cff7825Smh27603
61*5cff7825Smh27603#
62*5cff7825Smh27603# lint pass one enforcement
63*5cff7825Smh27603#
64*5cff7825Smh27603CFLAGS += $(CCVERBOSE)
65*5cff7825Smh27603
66*5cff7825Smh27603#
67*5cff7825Smh27603# Link to acpica for ACPI services
68*5cff7825Smh27603#
69*5cff7825Smh27603LDFLAGS	+= -dy -N misc/acpica
70*5cff7825Smh27603
71*5cff7825Smh27603#
72*5cff7825Smh27603#	Default build targets.
73*5cff7825Smh27603#
74*5cff7825Smh27603.KEEP_STATE:
75*5cff7825Smh27603
76*5cff7825Smh27603def:		$(DEF_DEPS)
77*5cff7825Smh27603
78*5cff7825Smh27603all:		$(ALL_DEPS)
79*5cff7825Smh27603
80*5cff7825Smh27603clean:		$(CLEAN_DEPS)
81*5cff7825Smh27603
82*5cff7825Smh27603clobber:	$(CLOBBER_DEPS)
83*5cff7825Smh27603
84*5cff7825Smh27603lint:		$(LINT_DEPS)
85*5cff7825Smh27603
86*5cff7825Smh27603modlintlib:	$(MODLINTLIB_DEPS)
87*5cff7825Smh27603
88*5cff7825Smh27603clean.lint:	$(CLEAN_LINT_DEPS)
89*5cff7825Smh27603
90*5cff7825Smh27603install:	$(INSTALL_DEPS) $(CONF_INSTALL_DEPS)
91*5cff7825Smh27603
92*5cff7825Smh27603#
93*5cff7825Smh27603#	Include common targets.
94*5cff7825Smh27603#
95*5cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.targ
96