xref: /illumos-gate/usr/src/uts/i86pc/cpudrv/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
15cff7825Smh27603#
25cff7825Smh27603# CDDL HEADER START
35cff7825Smh27603#
45cff7825Smh27603# The contents of this file are subject to the terms of the
55cff7825Smh27603# Common Development and Distribution License (the "License").
65cff7825Smh27603# You may not use this file except in compliance with the License.
75cff7825Smh27603#
85cff7825Smh27603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh27603# or http://www.opensolaris.org/os/licensing.
105cff7825Smh27603# See the License for the specific language governing permissions
115cff7825Smh27603# and limitations under the License.
125cff7825Smh27603#
135cff7825Smh27603# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh27603# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh27603# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh27603# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh27603# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh27603#
195cff7825Smh27603# CDDL HEADER END
205cff7825Smh27603#
215cff7825Smh27603#
22310da939SSurya Prakki# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
237b1019a6SJerry Jelinek# Copyright 2016, Joyent, Inc.
24fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
255cff7825Smh27603#
265cff7825Smh27603#	This makefile drives the production of the cpu driver
275cff7825Smh27603#	kernel module.
285cff7825Smh27603#
295cff7825Smh27603
305cff7825Smh27603#
315cff7825Smh27603#	Path to the base of the uts directory tree (usually /usr/src/uts).
325cff7825Smh27603#
335cff7825Smh27603UTSBASE	= ../..
345cff7825Smh27603
355cff7825Smh27603#
365cff7825Smh27603#	Define the module and object file sets.
375cff7825Smh27603#
385cff7825Smh27603MODULE		= cpudrv
395cff7825Smh27603OBJECTS		= $(CPUDRV_OBJS:%=$(OBJS_DIR)/%)
405cff7825Smh27603ROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
415cff7825Smh27603
425cff7825Smh27603#
435cff7825Smh27603#	Include common rules.
445cff7825Smh27603#
455cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.i86pc
465cff7825Smh27603
475cff7825Smh27603#
485cff7825Smh27603#	Define targets
495cff7825Smh27603#
505cff7825Smh27603ALL_TARGET	= $(BINARY)
515cff7825Smh27603INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
525cff7825Smh27603
535cff7825Smh27603CFLAGS += $(CCVERBOSE)
545cff7825Smh27603
55d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
567014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
577b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
587014882cSRichard Lowe
595cff7825Smh27603#
605cff7825Smh27603# Link to acpica for ACPI services
615cff7825Smh27603#
62*82d0151aSRichard LoweLDFLAGS		+= -N misc/acpica
635cff7825Smh27603
645cff7825Smh27603#
655cff7825Smh27603#	Default build targets.
665cff7825Smh27603#
675cff7825Smh27603.KEEP_STATE:
685cff7825Smh27603
695cff7825Smh27603def:		$(DEF_DEPS)
705cff7825Smh27603
715cff7825Smh27603all:		$(ALL_DEPS)
725cff7825Smh27603
735cff7825Smh27603clean:		$(CLEAN_DEPS)
745cff7825Smh27603
755cff7825Smh27603clobber:	$(CLOBBER_DEPS)
765cff7825Smh27603
775cff7825Smh27603install:	$(INSTALL_DEPS)
785cff7825Smh27603
795cff7825Smh27603#
805cff7825Smh27603#	Include common targets.
815cff7825Smh27603#
825cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.targ
83