xref: /titanic_50/usr/src/uts/intel/socksdp/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#	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		= socksdp
400f1702c5SYu XiangningOBJECTS		= $(SDP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
410f1702c5SYu XiangningLINTS		= $(SDP_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
61*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
63*7014882cSRichard Lowe
640f1702c5SYu XiangningLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/sdpib
650f1702c5SYu Xiangning
660f1702c5SYu Xiangning#
670f1702c5SYu Xiangning#	Default build targets.
680f1702c5SYu Xiangning#
690f1702c5SYu Xiangning.KEEP_STATE:
700f1702c5SYu Xiangning
710f1702c5SYu Xiangningdef:		$(DEF_DEPS)
720f1702c5SYu Xiangning
730f1702c5SYu Xiangningall:		$(ALL_DEPS)
740f1702c5SYu Xiangning
750f1702c5SYu Xiangningclean:		$(CLEAN_DEPS)
760f1702c5SYu Xiangning
770f1702c5SYu Xiangningclobber:	$(CLOBBER_DEPS)
780f1702c5SYu Xiangning
790f1702c5SYu Xiangninglint:		$(LINT_DEPS)
800f1702c5SYu Xiangning
810f1702c5SYu Xiangningmodlintlib:	$(MODLINTLIB_DEPS)
820f1702c5SYu Xiangning
830f1702c5SYu Xiangningclean.lint:	$(CLEAN_LINT_DEPS)
840f1702c5SYu Xiangning
850f1702c5SYu Xiangninginstall:	$(INSTALL_DEPS)
860f1702c5SYu Xiangning
870f1702c5SYu Xiangning#
880f1702c5SYu Xiangning#	Include common targets.
890f1702c5SYu Xiangning#
900f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.targ
91