Makefile revision a31148363f598def767ac48c5d82e1572e44b935
306N/A#
306N/A# CDDL HEADER START
306N/A#
306N/A# The contents of this file are subject to the terms of the
306N/A# Common Development and Distribution License (the "License").
306N/A# You may not use this file except in compliance with the License.
306N/A#
306N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
306N/A# or http://www.opensolaris.org/os/licensing.
306N/A# See the License for the specific language governing permissions
306N/A# and limitations under the License.
306N/A#
306N/A# When distributing Covered Code, include this CDDL HEADER in each
306N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
306N/A# If applicable, add the following below this CDDL HEADER, with the
306N/A# fields enclosed by brackets "[]" replaced with your own identifying
306N/A# information: Portions Copyright [yyyy] [name of copyright owner]
306N/A#
306N/A# CDDL HEADER END
306N/A#
306N/A#
306N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
844N/A# Use is subject to license terms.
306N/A#
306N/A# Copyright (c) 2010, Intel Corporation.
306N/A# All rights reserved.
306N/A#
306N/A# This makefile drives the production of the drmach_acpi loadable module.
306N/A#
306N/A# i86pc architecture dependent
306N/A#
306N/A
844N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
306N/A#
306N/AUTSBASE = ../..
306N/A
306N/A#
306N/A# Define the module and object file sets.
306N/A#
306N/AMODULE = drmach_acpi
306N/AOBJECTS = $(DRMACH_ACPI_OBJS:%=$(OBJS_DIR)/%)
306N/ALINTS = $(DRMACH_ACPI_OBJS:%.o=$(LINTS_DIR)/%.ln)
306N/AROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
306N/A
306N/A#
306N/A# Include common rules.
306N/A#
306N/Ainclude $(UTSBASE)/i86pc/Makefile.i86pc
306N/A
306N/A#
306N/A# Define targets
306N/A#
306N/AALL_TARGET = $(BINARY)
306N/ALINT_TARGET = $(MODULE).lint
306N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
306N/A
306N/A#
306N/A# Overrides
306N/A#
306N/ADEF_BUILDS = $(DEF_BUILDS64)
306N/AALL_BUILDS = $(ALL_BUILDS64)
306N/A
306N/A#
306N/A# lint pass one enforcement
306N/A#
306N/ACFLAGS += $(CCVERBOSE)
306N/A
306N/A#
# 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)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86pc/Makefile.targ