Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# CDDL HEADER START
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# The contents of this file are subject to the terms of the
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Common Development and Distribution License, Version 1.0 only
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# (the "License"). You may not use this file except in compliance
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# with the License.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# or http://www.opensolaris.org/os/licensing.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# See the License for the specific language governing permissions
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# and limitations under the License.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# When distributing Covered Code, include this CDDL HEADER in each
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# If applicable, add the following below this CDDL HEADER, with the
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# fields enclosed by brackets "[]" replaced with your own identifying
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# information: Portions Copyright [yyyy] [name of copyright owner]
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# CDDL HEADER END
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Use is subject to license terms.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#ident "%Z%%M% %I% %E% SMI"
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# This makefile drives the production of the ttymux driver
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# kernel module.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# sparc implementation architecture dependent
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Path to the base of the uts directory tree (usually /usr/src/uts).
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottUTSBASE = ../..
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Define the module and object file sets.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottMODULE = ttymux
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottOBJECTS = $(TTYMUX_OBJS:%=$(OBJS_DIR)/%)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottLINTS = $(TTYMUX_OBJS:%.o=$(LINTS_DIR)/%.ln)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Include common rules.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottinclude $(UTSBASE)/sparc/Makefile.sparc
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#Overrides
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottALL_BUILDS = $(ALL_BUILDSONLY64)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottDEF_BUILDS = $(DEF_BUILDSONLY64)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottCLEANLINTFILES += $(LINT32_FILES)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Define targets
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottALL_TARGET = $(BINARY)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottLINT_TARGET = $(MODULE).lint
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Override defaults to build a unique, local modstubs.o.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottMODSTUBS_DIR = $(OBJS_DIR)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott$(MODSTUBS_O) := AS_CPPFLAGS += -DTTYMUX_MODULE
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottCLEANFILES += $(MODSTUBS_O)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# lint pass one enforcement
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert WapshottCFLAGS += $(CCVERBOSE)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Default build targets.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott.KEEP_STATE:
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottdef: $(DEF_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottall: $(ALL_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottclean: $(CLEAN_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottclobber: $(CLOBBER_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottlint: $(LINT_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottmodlintlib: $(MODLINTLIB_DEPS) lint32
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottclean.lint: $(CLEAN_LINT_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottinstall: $(INSTALL_DEPS)
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott# Include common targets.
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott#
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshottinclude $(UTSBASE)/sparc/Makefile.targ
35ab1c5bca11317474fe12bdd8d22c17cdaf2697Robert Wapshott