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# 220f1702c5SYu Xiangning# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 230f1702c5SYu Xiangning# Use is subject to license terms. 240f1702c5SYu Xiangning# 250f1702c5SYu Xiangning# This makefile drives the production of the nca driver 260f1702c5SYu Xiangning# kernel module. 270f1702c5SYu Xiangning# 280f1702c5SYu Xiangning# intel architecture dependent 290f1702c5SYu Xiangning# 300f1702c5SYu Xiangning 310f1702c5SYu Xiangning# 320f1702c5SYu Xiangning# Path to the base of the uts directory tree (usually /usr/src/uts). 330f1702c5SYu Xiangning# 340f1702c5SYu XiangningUTSBASE = ../.. 350f1702c5SYu Xiangning 360f1702c5SYu Xiangning# 370f1702c5SYu Xiangning# Define the module and object file sets. 380f1702c5SYu Xiangning# 390f1702c5SYu XiangningMODULE = socksctp 400f1702c5SYu XiangningOBJECTS = $(SCTP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%) 410f1702c5SYu XiangningLINTS = $(SCTP_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 420f1702c5SYu XiangningROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 430f1702c5SYu Xiangning 440f1702c5SYu Xiangning# 450f1702c5SYu Xiangning# Include common rules. 460f1702c5SYu Xiangning# 470f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.intel 480f1702c5SYu Xiangning 490f1702c5SYu Xiangning# 500f1702c5SYu Xiangning# Define targets 510f1702c5SYu Xiangning# 520f1702c5SYu XiangningALL_TARGET = $(BINARY) 530f1702c5SYu XiangningLINT_TARGET = $(MODULE).lint 540f1702c5SYu XiangningINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 550f1702c5SYu Xiangning 560f1702c5SYu Xiangning# 570f1702c5SYu Xiangning# lint pass one enforcement and OS version 580f1702c5SYu Xiangning# 590f1702c5SYu XiangningCFLAGS += $(CCVERBOSE) 600f1702c5SYu Xiangning 610f1702c5SYu XiangningLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip 620f1702c5SYu Xiangning 630f1702c5SYu Xiangning# 640f1702c5SYu Xiangning# For now, disable these lint checks; maintainers should endeavor 650f1702c5SYu Xiangning# to investigate and remove these for maximum lint coverage. 660f1702c5SYu Xiangning# Please do not carry these forward to new Makefiles. 670f1702c5SYu Xiangning# 680f1702c5SYu XiangningLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 690f1702c5SYu XiangningLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 700f1702c5SYu Xiangning 71*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 72*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 73*7014882cSRichard Lowe 740f1702c5SYu Xiangning# 750f1702c5SYu Xiangning# Default build targets. 760f1702c5SYu Xiangning# 770f1702c5SYu Xiangning.KEEP_STATE: 780f1702c5SYu Xiangning 790f1702c5SYu Xiangningdef: $(DEF_DEPS) 800f1702c5SYu Xiangning 810f1702c5SYu Xiangningall: $(ALL_DEPS) 820f1702c5SYu Xiangning 830f1702c5SYu Xiangningclean: $(CLEAN_DEPS) 840f1702c5SYu Xiangning 850f1702c5SYu Xiangningclobber: $(CLOBBER_DEPS) 860f1702c5SYu Xiangning 870f1702c5SYu Xiangninglint: $(LINT_DEPS) 880f1702c5SYu Xiangning 890f1702c5SYu Xiangningmodlintlib: $(MODLINTLIB_DEPS) 900f1702c5SYu Xiangning 910f1702c5SYu Xiangningclean.lint: $(CLEAN_LINT_DEPS) 920f1702c5SYu Xiangning 930f1702c5SYu Xiangninginstall: $(INSTALL_DEPS) 940f1702c5SYu Xiangning 950f1702c5SYu Xiangning# 960f1702c5SYu Xiangning# Include common targets. 970f1702c5SYu Xiangning# 980f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.targ 99