Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER START
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# The contents of this file are subject to the terms of the
8495845a800cf09321436aed996188c9a92cd647bnicholes# Common Development and Distribution License, Version 1.0 only
8495845a800cf09321436aed996188c9a92cd647bnicholes# (the "License"). You may not use this file except in compliance
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# with the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# or http://www.opensolaris.org/os/licensing.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# See the License for the specific language governing permissions
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# and limitations under the License.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg#
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# When distributing Covered Code, include this CDDL HEADER in each
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# If applicable, add the following below this CDDL HEADER, with the
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# fields enclosed by brackets "[]" replaced with your own identifying
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# information: Portions Copyright [yyyy] [name of copyright owner]
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# CDDL HEADER END
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# Use is subject to license terms.
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#pragma ident "%Z%%M% %I% %E% SMI"
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# This makefile drives the production of the trapstat kernel module.
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# sun4u implementation architecture dependent
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# Path to the base of the uts directory tree (usually /usr/src/uts).
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgUTSBASE = ../..
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg# Define the module and object file sets.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg#
8495845a800cf09321436aed996188c9a92cd647bnicholesMODULE = trapstat
8495845a800cf09321436aed996188c9a92cd647bnicholesOBJECTS = $(TRAPSTAT_OBJS:%=$(OBJS_DIR)/%)
8495845a800cf09321436aed996188c9a92cd647bnicholesLINTS = $(TRAPSTAT_OBJS:%.o=$(LINTS_DIR)/%.ln)
8495845a800cf09321436aed996188c9a92cd647bnicholesROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgCONF_SRCDIR = $(UTSBASE)/sun4/io
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg#
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg# Include common rules.
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg#
5594e2aca1550d202df69bf273a876de2ccf01d4fuankginclude $(UTSBASE)/sun4u/Makefile.sun4u
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Define targets
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesALL_TARGET = $(BINARY) $(SRC_CONFFILE)
c5ef27ed1cf15c6b6345335c51416d2ea36198bfbnicholesLINT_TARGET = $(MODULE).lint
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# lint pass one enforcement
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesCFLAGS += $(CCVERBOSE)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Default build targets.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes.KEEP_STATE:
8495845a800cf09321436aed996188c9a92cd647bnicholes
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgdef: $(DEF_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
5594e2aca1550d202df69bf273a876de2ccf01d4fuankgall: $(ALL_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesclean: $(CLEAN_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesclobber: $(CLOBBER_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholeslint: $(LINT_DEPS)
f43432d112920ab9af58aecc78d9fd5bacefc216fuankg
8495845a800cf09321436aed996188c9a92cd647bnicholesmodlintlib: $(MODLINTLIB_DEPS)
5594e2aca1550d202df69bf273a876de2ccf01d4fuankg
8495845a800cf09321436aed996188c9a92cd647bnicholesclean.lint: $(CLEAN_LINT_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinstall: $(INSTALL_DEPS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Include common targets.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(UTSBASE)/sun4u/Makefile.targ
8495845a800cf09321436aed996188c9a92cd647bnicholes