10f1702c5SYu Xiangning# 20f1702c5SYu Xiangning# CDDL HEADER START 30f1702c5SYu Xiangning# 40f1702c5SYu Xiangning# The contents of this file are subject to the terms of the 50f1702c5SYu Xiangning# Common Development and Distribution License (the "License"). 60f1702c5SYu Xiangning# You may not use this file except in compliance with the License. 70f1702c5SYu Xiangning# 80f1702c5SYu Xiangning# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90f1702c5SYu Xiangning# or http://www.opensolaris.org/os/licensing. 100f1702c5SYu Xiangning# See the License for the specific language governing permissions 110f1702c5SYu Xiangning# and limitations under the License. 120f1702c5SYu Xiangning# 130f1702c5SYu Xiangning# When distributing Covered Code, include this CDDL HEADER in each 140f1702c5SYu Xiangning# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150f1702c5SYu Xiangning# If applicable, add the following below this CDDL HEADER, with the 160f1702c5SYu Xiangning# fields enclosed by brackets "[]" replaced with your own identifying 170f1702c5SYu Xiangning# information: Portions Copyright [yyyy] [name of copyright owner] 180f1702c5SYu Xiangning# 190f1702c5SYu Xiangning# CDDL HEADER END 200f1702c5SYu Xiangning# 210f1702c5SYu Xiangning# 222876fe8aSLida.Horn# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230f1702c5SYu Xiangning# Use is subject to license terms. 240f1702c5SYu Xiangning 250f1702c5SYu Xiangning# 260f1702c5SYu Xiangning# This makefile drives the production of the nca driver 270f1702c5SYu Xiangning# kernel module. 280f1702c5SYu Xiangning# 290f1702c5SYu Xiangning# sparc architecture dependent 300f1702c5SYu Xiangning# 310f1702c5SYu Xiangning 320f1702c5SYu Xiangning# 330f1702c5SYu Xiangning# Path to the base of the uts directory tree (usually /usr/src/uts). 340f1702c5SYu Xiangning# 350f1702c5SYu XiangningUTSBASE = ../.. 360f1702c5SYu Xiangning 370f1702c5SYu Xiangning# 380f1702c5SYu Xiangning# Define the module and object file sets. 390f1702c5SYu Xiangning# 400f1702c5SYu XiangningMODULE = socksdp 410f1702c5SYu XiangningOBJECTS = $(SDP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%) 420f1702c5SYu XiangningLINTS = $(SDP_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 430f1702c5SYu XiangningROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 440f1702c5SYu Xiangning 450f1702c5SYu Xiangning# 460f1702c5SYu Xiangning# Include common rules. 470f1702c5SYu Xiangning# 480f1702c5SYu Xiangninginclude $(UTSBASE)/sparc/Makefile.sparc 490f1702c5SYu Xiangning 500f1702c5SYu Xiangning# 510f1702c5SYu Xiangning# Define targets 520f1702c5SYu Xiangning# 530f1702c5SYu XiangningALL_TARGET = $(BINARY) 540f1702c5SYu XiangningLINT_TARGET = $(MODULE).lint 550f1702c5SYu XiangningINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 560f1702c5SYu Xiangning 570f1702c5SYu Xiangning# 580f1702c5SYu Xiangning# lint pass one enforcement and OS version 590f1702c5SYu Xiangning# 600f1702c5SYu XiangningCFLAGS += $(CCVERBOSE) 610f1702c5SYu Xiangning 62*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 64*7014882cSRichard Lowe 652876fe8aSLida.HornLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/sdpib 660f1702c5SYu Xiangning 670f1702c5SYu Xiangning# 680f1702c5SYu Xiangning# Default build targets. 690f1702c5SYu Xiangning# 700f1702c5SYu Xiangning.KEEP_STATE: 710f1702c5SYu Xiangning 720f1702c5SYu Xiangningdef: $(DEF_DEPS) 730f1702c5SYu Xiangning 740f1702c5SYu Xiangningall: $(ALL_DEPS) 750f1702c5SYu Xiangning 760f1702c5SYu Xiangningclean: $(CLEAN_DEPS) 770f1702c5SYu Xiangning 780f1702c5SYu Xiangningclobber: $(CLOBBER_DEPS) 790f1702c5SYu Xiangning 800f1702c5SYu Xiangninglint: $(LINT_DEPS) 810f1702c5SYu Xiangning 820f1702c5SYu Xiangningmodlintlib: $(MODLINTLIB_DEPS) 830f1702c5SYu Xiangning 840f1702c5SYu Xiangningclean.lint: $(CLEAN_LINT_DEPS) 850f1702c5SYu Xiangning 860f1702c5SYu Xiangninginstall: $(INSTALL_DEPS) 870f1702c5SYu Xiangning 880f1702c5SYu Xiangning# 890f1702c5SYu Xiangning# Include common targets. 900f1702c5SYu Xiangning# 910f1702c5SYu Xiangninginclude $(UTSBASE)/sparc/Makefile.targ 92