Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
372N/A#
372N/A# CDDL HEADER START
372N/A#
372N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
810N/A# You may not use this file except in compliance with the License.
372N/A#
372N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
372N/A#pragma ident "%Z%%M% %I% %E% SMI"
372N/A#
372N/A# This makefile drives the production of the scsb driver kernel module
493N/A#
493N/A# sun4u implementation architecture dependent
372N/A#
372N/A
541N/A#
372N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
911N/A#
911N/AUTSBASE = ../../..
911N/A
911N/A#
372N/A# Define the module and object file sets.
493N/A#
493N/AMODULE = scsb
372N/AOBJECTS = $(SCSB_OBJS:%=$(OBJS_DIR)/%)
372N/ALINTS = $(SCSB_OBJS:%.o=$(LINTS_DIR)/%.ln)
460N/AROOTMODULE = $(ROOT_MONTECARLO_DRV_DIR)/$(MODULE)
372N/ACONF_SRCDIR = $(UTSBASE)/sun4u/montecarlo/io
372N/A
372N/A#
372N/A# Include common rules.
372N/A#
372N/Ainclude $(UTSBASE)/sun4u/montecarlo/Makefile.montecarlo
372N/A
372N/A#
372N/A# Define targets
372N/A#
837N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
837N/ALINT_TARGET = $(MODULE).lint
372N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
372N/A
372N/A#
372N/A# lint pass one enforcement
372N/A#
372N/ACFLAGS += $(CCVERBOSE) -DNORDICA_CP1500
372N/A
372N/A#
372N/A# Turn on doubleword alignment for 64 bit registers
372N/A#
372N/ACFLAGS += -dalign
372N/A
372N/A# Add our depedencies to LDFLAGS
837N/A#
837N/ALDFLAGS += -dy -Nmisc/hpcsvc -Nmisc/i2c_svc
837N/A
651N/A#
837N/A# Default build targets.
837N/A#
837N/A.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)
LINT_LIB_DIR = $(MONTECARLO_LINT_LIB_DIR)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/montecarlo/Makefile.targ
# Defines for local commands.
#
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Warlock targets
#
SCSB_FILES = $(SCSB_OBJS:%.o=%.ll)
warlock: $(MODULE).ok
%.ok: $(SCSB_FILES)
$(TOUCH) $@
%.ll: $(UTSBASE)/sun4u/montecarlo/io/%.c
$(WLCC) $(CFLAGS) $(CPPFLAGS) -DDEBUG -o $@ $<