1*b9e93c10SJonathan Haslam# 2*b9e93c10SJonathan Haslam# CDDL HEADER START 3*b9e93c10SJonathan Haslam# 4*b9e93c10SJonathan Haslam# The contents of this file are subject to the terms of the 5*b9e93c10SJonathan Haslam# Common Development and Distribution License (the "License"). 6*b9e93c10SJonathan Haslam# You may not use this file except in compliance with the License. 7*b9e93c10SJonathan Haslam# 8*b9e93c10SJonathan Haslam# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*b9e93c10SJonathan Haslam# or http://www.opensolaris.org/os/licensing. 10*b9e93c10SJonathan Haslam# See the License for the specific language governing permissions 11*b9e93c10SJonathan Haslam# and limitations under the License. 12*b9e93c10SJonathan Haslam# 13*b9e93c10SJonathan Haslam# When distributing Covered Code, include this CDDL HEADER in each 14*b9e93c10SJonathan Haslam# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*b9e93c10SJonathan Haslam# If applicable, add the following below this CDDL HEADER, with the 16*b9e93c10SJonathan Haslam# fields enclosed by brackets "[]" replaced with your own identifying 17*b9e93c10SJonathan Haslam# information: Portions Copyright [yyyy] [name of copyright owner] 18*b9e93c10SJonathan Haslam# 19*b9e93c10SJonathan Haslam# CDDL HEADER END 20*b9e93c10SJonathan Haslam# 21*b9e93c10SJonathan Haslam 22*b9e93c10SJonathan Haslam# 23*b9e93c10SJonathan Haslam# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*b9e93c10SJonathan Haslam# Use is subject to license terms. 25*b9e93c10SJonathan Haslam# 26*b9e93c10SJonathan Haslam 27*b9e93c10SJonathan HaslamUTSBASE = ../.. 28*b9e93c10SJonathan Haslam 29*b9e93c10SJonathan HaslamMODULE = dcpc 30*b9e93c10SJonathan HaslamOBJECTS = $(DCPC_OBJS:%=$(OBJS_DIR)/%) 31*b9e93c10SJonathan HaslamLINTS = $(DCPC_OBJS:%.o=$(LINTS_DIR)/%.ln) 32*b9e93c10SJonathan HaslamROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 33*b9e93c10SJonathan HaslamROOTLINK = $(ROOT_DTRACE_DIR)/$(MODULE) 34*b9e93c10SJonathan HaslamCONF_SRCDIR = $(UTSBASE)/common/dtrace 35*b9e93c10SJonathan Haslam 36*b9e93c10SJonathan HaslamALL_TARGET = $(BINARY) $(SRC_CONFILE) 37*b9e93c10SJonathan HaslamLINT_TARGET = $(MODULE).lint 38*b9e93c10SJonathan HaslamINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE) 39*b9e93c10SJonathan Haslam 40*b9e93c10SJonathan Haslaminclude $(UTSBASE)/sparc/Makefile.sparc 41*b9e93c10SJonathan Haslam 42*b9e93c10SJonathan HaslamLDFLAGS += -dy -Ndrv/dtrace -Ndrv/cpc 43*b9e93c10SJonathan Haslam 44*b9e93c10SJonathan Haslam.KEEP_STATE: 45*b9e93c10SJonathan Haslam 46*b9e93c10SJonathan Haslamdef: $(DEF_DEPS) 47*b9e93c10SJonathan Haslam 48*b9e93c10SJonathan Haslamall: $(ALL_DEPS) 49*b9e93c10SJonathan Haslam 50*b9e93c10SJonathan Haslamclean: $(CLEAN_DEPS) 51*b9e93c10SJonathan Haslam 52*b9e93c10SJonathan Haslamclobber: $(CLOBBER_DEPS) 53*b9e93c10SJonathan Haslam 54*b9e93c10SJonathan Haslamlint: $(LINT_DEPS) 55*b9e93c10SJonathan Haslam 56*b9e93c10SJonathan Haslammodlintlib: $(MODLINTLIB_DEPS) 57*b9e93c10SJonathan Haslam 58*b9e93c10SJonathan Haslamclean.lint: $(CLEAN_LINT_DEPS) 59*b9e93c10SJonathan Haslam 60*b9e93c10SJonathan Haslaminstall: $(INSTALL_DEPS) 61*b9e93c10SJonathan Haslam 62*b9e93c10SJonathan Haslam$(ROOTLINK): $(ROOT_DTRACE_DIR) $(ROOTMODULE) 63*b9e93c10SJonathan Haslam -$(RM) $@; ln $(ROOTMODULE) $@ 64*b9e93c10SJonathan Haslam 65*b9e93c10SJonathan Haslaminclude $(UTSBASE)/sparc/Makefile.targ 66