Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER START
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# The contents of this file are subject to the terms of the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Common Development and Distribution License (the "License").
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You may not use this file except in compliance with the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# or http://www.opensolaris.org/os/licensing.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# See the License for the specific language governing permissions
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# and limitations under the License.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# When distributing Covered Code, include this CDDL HEADER in each
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# If applicable, add the following below this CDDL HEADER, with the
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# fields enclosed by brackets "[]" replaced with your own identifying
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# CDDL HEADER END
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Use is subject to license terms.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# ident "%Z%%M% %I% %E% SMI"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# This makefile drives the production of the OPL specific
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Olympus-C driver module.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# uts/sun4u/opl/olympus_c/Makefile
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Path to the base of the uts directory tree (usually /usr/src/uts).
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesUTSBASE = ../../..
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Define the module and object file sets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesMODULE = FJSV,SPARC64-VI
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOBJECTS = $(OLYMPUS_OBJS:%=$(OBJS_DIR)/%)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINTS = $(OLYMPUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesROOTMODULE = $(ROOT_OPL_CPU_DIR)/$(MODULE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCPU_DIR = .
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesHERE = ../olympus_c
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include common rules.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(UTSBASE)/sun4u/opl/Makefile.opl
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Override defaults
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCLEANFILES += $(CPULIB) $(SYM_MOD)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Define targets
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesALL_TARGET = $(SYM_MOD)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesLINT_TARGET = $(MODULE).lint
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Overrides
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesALL_BUILDS = $(ALL_BUILDSONLY64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesDEF_BUILDS = $(DEF_BUILDSONLY64)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCLEANLINTFILES += $(LINT32_FILES)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# lint pass one enforcement
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesOLYMPUS_C_DEFS += -DOLYMPUS_C
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCFLAGS += $(CCVERBOSE) $(OLYMPUS_C_DEFS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesCPPFLAGS += -DCPU_MODULE -DOLYMPUS_C
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesAS_CPPFLAGS += -DCPU_MODULE -DOLYMPUS_C
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Default build targets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes.KEEP_STATE:
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesall: $(ALL_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesdef: $(DEF_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclean: $(CLEAN_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclobber: $(CLOBBER_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholeslint: $(LINT_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesmodlintlib: $(MODLINTLIB_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesclean.lint: $(CLEAN_LINT_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinstall: $(INSTALL_DEPS)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(CPULIB): $(BINARY)
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes $(BUILD.SO) $(BINARY)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(SYM_MOD): $(UNIX_O) $(CPULIB)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes @$(ECHO) "resolving symbols against unix.o"
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes @(cd $(UNIX_DIR); pwd; \
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes$(ROOTSOFTLINKS): $(ROOTMODULE)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes $(RM) $@; $(SYMLINK) $(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes# Include common targets.
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes#
cb2846ded4de1abbb5934b92132baf826f1babfebnicholesinclude $(UTSBASE)/sun4u/opl/Makefile.targ
cb2846ded4de1abbb5934b92132baf826f1babfebnicholes