Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# You may not use this file except in compliance with the License.
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# or http://www.opensolaris.org/os/licensing.
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# See the License for the specific language governing permissions
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# and limitations under the License.
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# CDDL HEADER END
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# Use is subject to license terms.
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# This makefile drives the production of the opl_cfg Jupiter Bus
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt# Configurator
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver# sun4u implementation architecture dependent
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver# Path to the base of the uts directory tree (usually /usr/src/uts).
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon SchryverUTSBASE = ../..
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver# Define the module and object file sets.
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon SchryverMODULE = opl_cfg
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon SchryverOBJECTS = $(OPLCFG_OBJS:%=$(OBJS_DIR)/%)
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon SchryverLINTS = $(OPLCFG_OBJS:%.o=$(LINTS_DIR)/%.ln)
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon SchryverROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver
afaa290bb6acc504e93a0adbf20b6dd6c64e6d63Vernon Schryver#
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews# Include common rules.
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt#
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Huntinclude $(UTSBASE)/sun4u/Makefile.sun4u
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt#
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt# Define targets
421d4a06479e61fbdc35087f3c4abc9fe65ad72aEvan Hunt#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# module dependencies
#
LDFLAGS += -dy -Nmisc/fcodem -Nmisc/busra
#
# OPL specific header files
#
INC_PATH += -I$(UTSBASE)/sun4u/opl/
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# 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
CERRWARN += -_gcc=-Wno-uninitialized
#
# 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/Makefile.targ