Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# CDDL HEADER START
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# The contents of this file are subject to the terms of the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Common Development and Distribution License (the "License").
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# You may not use this file except in compliance with the License.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# or http://www.opensolaris.org/os/licensing.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# See the License for the specific language governing permissions
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# and limitations under the License.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# When distributing Covered Code, include this CDDL HEADER in each
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# If applicable, add the following below this CDDL HEADER, with the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# CDDL HEADER END
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Use is subject to license terms.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#ident "%Z%%M% %I% %E% SMI"
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# This makefile drives the production of the mc-opl driver kernel
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# module.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# sun4u oplimplementation architecture dependent
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# uts/sun4u/opl/mc-opl/Makefile
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#Path to the base of the uts directory tree(/usr/src/uts)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncUTSBASE = ../../..
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#Define the module and object file sets.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncMODULE = mc-opl
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncOBJECTS = $(MC_OPL_OBJS:%=$(OBJS_DIR)/%)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncLINTS = $(MC_OPL_OBJS:%.o=$(LINTS_DIR)/%.ln)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncROOTMODULE = $(ROOT_OPL_DRV_DIR)/$(MODULE)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCONF_SRCDIR = $(UTSBASE)/sun4u/opl/io
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Include common rules.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinclude $(UTSBASE)/sun4u/opl/Makefile.opl
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -I../sys
#
# Turn on doubleword alignment for 64 bit registers
#
# CFLAGS
# MC_EMULATION - emulate mac patrol registers
#
CFLAGS += -dalign -DMC_EMULATION
#CFLAGS += -dalign
#
# 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/opl/Makefile.targ