Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# CDDL HEADER START
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# The contents of this file are subject to the terms of the
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Common Development and Distribution License (the "License").
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# You may not use this file except in compliance with the License.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# or http://www.opensolaris.org/os/licensing.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# See the License for the specific language governing permissions
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# and limitations under the License.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# When distributing Covered Code, include this CDDL HEADER in each
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# If applicable, add the following below this CDDL HEADER, with the
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# fields enclosed by brackets "[]" replaced with your own identifying
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# information: Portions Copyright [yyyy] [name of copyright owner]
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# CDDL HEADER END
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Use is subject to license terms.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
2f54b716e4d3cb0dc99066638fed631e3cbec97cRichard Lowe#
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'Amore# This makefile drives the production of the sysctrl driver
2f54b716e4d3cb0dc99066638fed631e3cbec97cRichard Lowe# kernel module.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# sun4u implementation architecture dependent
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Path to the base of the uts directory tree (usually /usr/src/uts).
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonUTSBASE = ../../..
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Define the module and object file sets.
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonMODULE = sysctrl
95c635efb7c3b86efc493e0447eaec7aecca3f0fGarrett D'AmoreOBJECTS = $(SYSCTRL_OBJS:%=$(OBJS_DIR)/%)
2f54b716e4d3cb0dc99066638fed631e3cbec97cRichard LoweLINTS = $(SYSCTRL_OBJS:%.o=$(LINTS_DIR)/%.ln)
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# Include common rules.
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Loweinclude $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson# Define targets
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe#
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonALL_TARGET = $(BINARY)
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard LoweLINT_TARGET = $(MODULE).lint
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelsonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson
cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0mjnelson#
87ab362234f761757d96ff1a758ab5c3bd85ed83Richard Lowe# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# Define dependency on fhc
#
LDFLAGS += -dy -N drv/fhc
#
# 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)/sun4u/sunfire/Makefile.targ