1276N/A#
1026N/A# CDDL HEADER START
1276N/A#
1276N/A# The contents of this file are subject to the terms of the
1451N/A# Common Development and Distribution License (the "License").
1026N/A# You may not use this file except in compliance with the License.
1026N/A#
1026N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1026N/A# or http://www.opensolaris.org/os/licensing.
1026N/A# See the License for the specific language governing permissions
1026N/A# and limitations under the License.
1026N/A#
1026N/A# When distributing Covered Code, include this CDDL HEADER in each
1026N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1026N/A# If applicable, add the following below this CDDL HEADER, with the
1026N/A# fields enclosed by brackets "[]" replaced with your own identifying
1026N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1026N/A#
1026N/A# CDDL HEADER END
1026N/A#
1026N/A#
1026N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1026N/A# Use is subject to license terms.
1026N/A#
1026N/A# Copyright (c) 2010, Intel Corporation.
1026N/A# All rights reserved.
1026N/A#
1026N/A# Copyright 2016 Joyent, Inc.
1026N/A#
1026N/A# This makefile drives the production of the drmach_acpi loadable module.
1026N/A#
1408N/A# i86pc architecture dependent
1026N/A#
1026N/A
1408N/A#
1408N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1408N/A#
1026N/AUTSBASE = ../..
1377N/A
1408N/A#
1377N/A# Define the module and object file sets.
1302N/A#
1408N/AMODULE = drmach_acpi
1456N/AOBJECTS = $(DRMACH_ACPI_OBJS:%=$(OBJS_DIR)/%)
1302N/ALINTS = $(DRMACH_ACPI_OBJS:%.o=$(LINTS_DIR)/%.ln)
1026N/AROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
1026N/A
1026N/A#
1026N/A# Include common rules.
1276N/A#
1276N/Ainclude $(UTSBASE)/i86pc/Makefile.i86pc
1451N/A
1026N/A#
1418N/A# Define targets
1418N/A#
1418N/AALL_TARGET = $(BINARY)
1026N/ALINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides
#
DEF_BUILDS = $(DEF_BUILDS64)
ALL_BUILDS = $(ALL_BUILDS64)
$(OBJS_DIR)/drmach_acpi.o := CERRWARN += -_gcc=-Wno-unused-function
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# module dependencies
#
LDFLAGS += -dy -Nmisc/acpica -Nmisc/acpidev
CLEANFILES += $(DRMACH_GENERR)
CLEANFILES += $(DRMACH_IO)/drmach_err.c
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
# This build only 64-bit, but the lint32 below
# needs corresponding clean/clobber deps.
clean: $(CLEAN_DEPS) clean.debug32
clobber: $(CLOBBER_DEPS) clobber.debug32
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86pc/Makefile.targ