Makefile revision 9a9ae70f32271d74856130e37667ca926b27feb4
6921N/A#
6921N/A# CDDL HEADER START
6921N/A#
6921N/A# The contents of this file are subject to the terms of the
6921N/A# Common Development and Distribution License (the "License").
6921N/A# You may not use this file except in compliance with the License.
6921N/A#
6921N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6921N/A# or http://www.opensolaris.org/os/licensing.
6921N/A# See the License for the specific language governing permissions
6921N/A# and limitations under the License.
6921N/A#
6921N/A# When distributing Covered Code, include this CDDL HEADER in each
6921N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6921N/A# If applicable, add the following below this CDDL HEADER, with the
6921N/A# fields enclosed by brackets "[]" replaced with your own identifying
6921N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6921N/A#
6921N/A# CDDL HEADER END
6921N/A#
6921N/A#
6921N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6921N/A# Use is subject to license terms.
6921N/A#
6921N/A
6921N/AUTSBASE = ../..
6921N/A
6921N/AMODULE = lx_systrace
6921N/AOBJECTS = $(LX_SYSTRACE_OBJS:%=$(OBJS_DIR)/%)
6921N/ALINTS = $(LX_SYSTRACE_OBJS:%.o=$(LINTS_DIR)/%.ln)
6921N/AROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
6921N/AROOTLINK = $(USR_DTRACE_DIR)/$(MODULE)
6921N/ACONF_SRCDIR = $(UTSBASE)/common/brand/lx/dtrace
6921N/A
6921N/Ainclude $(UTSBASE)/intel/Makefile.intel
6921N/A
6921N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
6921N/ALINT_TARGET = $(MODULE).lint
6921N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
6921N/A
6921N/ACPPFLAGS += -I$(UTSBASE)/common/brand/lx
6921N/A
6921N/ALDFLAGS += -dy -Ndrv/dtrace -Nbrand/lx_brand
6921N/A
6921N/A#
6921N/A# For now, disable these lint checks; maintainers should endeavor
6921N/A# to investigate and remove these for maximum lint coverage.
6921N/A# Please do not carry these forward to new Makefiles.
6921N/A#
6921N/ALINTTAGS += -erroff=E_STATIC_UNUSED
6921N/A
6921N/A.KEEP_STATE:
6921N/A
6921N/Adef: $(DEF_DEPS)
6921N/A
6921N/Aall: $(ALL_DEPS)
6921N/A
6921N/Aclean: $(CLEAN_DEPS)
6921N/A
6921N/Aclobber: $(CLOBBER_DEPS)
6921N/A
6921N/Alint: $(LINT_DEPS)
6921N/A
6921N/Amodlintlib: $(MODLINTLIB_DEPS)
6921N/A
6921N/Aclean.lint: $(CLEAN_LINT_DEPS)
6921N/A
6921N/Ainstall: $(INSTALL_DEPS)
6921N/A
6921N/A$(ROOTLINK): $(USR_DTRACE_DIR) $(ROOTMODULE)
6921N/A -$(RM) $@; ln $(ROOTMODULE) $@
6921N/A
6921N/Ainclude $(UTSBASE)/intel/Makefile.targ
6921N/A
6921N/A$(OBJS_DIR)/%.o: $(UTSBASE)/common/brand/lx/dtrace/%.c
6921N/A $(COMPILE.c) -o $@ $<
6921N/A $(CTFCONVERT_O)
6921N/A
6921N/A$(LINTS_DIR)/%.ln: $(UTSBASE)/common/brand/lx/dtrace/%.c
6921N/A @($(LHEAD) $(LINT.c) $< $(LTAIL))
6921N/A