xref: /titanic_41/usr/src/uts/sparc/socksctp/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
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		= socksctp
410f1702c5SYu XiangningOBJECTS		= $(SCTP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
420f1702c5SYu XiangningLINTS		= $(SCTP_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
620f1702c5SYu XiangningLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip
630f1702c5SYu Xiangning
640f1702c5SYu Xiangning#
650f1702c5SYu Xiangning# For now, disable these lint checks; maintainers should endeavor
660f1702c5SYu Xiangning# to investigate and remove these for maximum lint coverage.
670f1702c5SYu Xiangning# Please do not carry these forward to new Makefiles.
680f1702c5SYu Xiangning#
690f1702c5SYu XiangningLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
700f1702c5SYu XiangningLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
710f1702c5SYu Xiangning
72*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
73*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
74*7014882cSRichard Lowe
750f1702c5SYu Xiangning#
760f1702c5SYu Xiangning#	Default build targets.
770f1702c5SYu Xiangning#
780f1702c5SYu Xiangning.KEEP_STATE:
790f1702c5SYu Xiangning
800f1702c5SYu Xiangningdef:		$(DEF_DEPS)
810f1702c5SYu Xiangning
820f1702c5SYu Xiangningall:		$(ALL_DEPS)
830f1702c5SYu Xiangning
840f1702c5SYu Xiangningclean:		$(CLEAN_DEPS)
850f1702c5SYu Xiangning
860f1702c5SYu Xiangningclobber:	$(CLOBBER_DEPS)
870f1702c5SYu Xiangning
880f1702c5SYu Xiangninglint:		$(LINT_DEPS)
890f1702c5SYu Xiangning
900f1702c5SYu Xiangningmodlintlib:	$(MODLINTLIB_DEPS)
910f1702c5SYu Xiangning
920f1702c5SYu Xiangningclean.lint:	$(CLEAN_LINT_DEPS)
930f1702c5SYu Xiangning
940f1702c5SYu Xiangninginstall:	$(INSTALL_DEPS)
950f1702c5SYu Xiangning
960f1702c5SYu Xiangning#
970f1702c5SYu Xiangning#	Include common targets.
980f1702c5SYu Xiangning#
990f1702c5SYu Xiangninginclude $(UTSBASE)/sparc/Makefile.targ
100