Makefile revision d2ec54f7875f7e05edd56195adbeb593c947763f
546N/A#
546N/A# CDDL HEADER START
546N/A#
546N/A# The contents of this file are subject to the terms of the
851N/A# Common Development and Distribution License (the "License").
851N/A# You may not use this file except in compliance with the License.
546N/A#
546N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
546N/A# or http://www.opensolaris.org/os/licensing.
546N/A# See the License for the specific language governing permissions
546N/A# and limitations under the License.
546N/A#
546N/A# When distributing Covered Code, include this CDDL HEADER in each
546N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
546N/A# If applicable, add the following below this CDDL HEADER, with the
546N/A# fields enclosed by brackets "[]" replaced with your own identifying
546N/A# information: Portions Copyright [yyyy] [name of copyright owner]
546N/A#
546N/A# CDDL HEADER END
546N/A#
546N/A
546N/A#
546N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
546N/A# Use is subject to license terms.
546N/A#
546N/A# ident "%Z%%M% %I% %E% SMI"
546N/A#
546N/A
546N/A# This makefile drives the production of the acpi_drv
546N/A# driver kernel module.
546N/A#
546N/A# i86pc architecture dependent
851N/A#
546N/A
546N/A#
546N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
546N/A#
546N/AUTSBASE = ../..
546N/A
546N/A#
546N/A# Define the module and object file sets.
546N/A#
546N/AMODULE = acpi_drv
546N/AOBJECTS = $(ACPI_DRV_OBJS:%=$(OBJS_DIR)/%)
546N/ALINTS = $(ACPI_DRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
546N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
546N/ACONF_SRCDIR = $(UTSBASE)/i86pc/io/acpi_drv
546N/A
546N/A#
851N/A# Include common rules.
851N/A#
851N/Ainclude $(UTSBASE)/i86pc/Makefile.i86pc
#
# Define targets
#
ALL_TARGET = $(BINARY) $(CONFMOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
DEBUG_FLGS =
$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
CPPFLAGS += -DSUNDDI
LDFLAGS += -dy -N misc/acpica
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
# Overrides
#
C99LMODE= -Xc99=%all
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86pc/Makefile.targ