xref: /illumos-gate/usr/src/uts/intel/socksctp/Makefile (revision 15f90b02bdacbf0ae47fa105944f15b6596f9748)
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#	intel architecture dependent
260f1702c5SYu Xiangning#
270f1702c5SYu Xiangning
280f1702c5SYu Xiangning#
290f1702c5SYu Xiangning#	Path to the base of the uts directory tree (usually /usr/src/uts).
300f1702c5SYu Xiangning#
310f1702c5SYu XiangningUTSBASE	= ../..
320f1702c5SYu Xiangning
330f1702c5SYu Xiangning#
340f1702c5SYu Xiangning#	Define the module and object file sets.
350f1702c5SYu Xiangning#
360f1702c5SYu XiangningMODULE		= socksctp
370f1702c5SYu XiangningOBJECTS		= $(SCTP_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
380f1702c5SYu XiangningROOTMODULE	= $(ROOT_SOCK_DIR)/$(MODULE)
390f1702c5SYu Xiangning
400f1702c5SYu Xiangning#
410f1702c5SYu Xiangning#	Include common rules.
420f1702c5SYu Xiangning#
430f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.intel
440f1702c5SYu Xiangning
450f1702c5SYu Xiangning#
460f1702c5SYu Xiangning#	Define targets
470f1702c5SYu Xiangning#
480f1702c5SYu XiangningALL_TARGET	= $(BINARY)
490f1702c5SYu XiangningINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
500f1702c5SYu Xiangning
51*82d0151aSRichard LoweLDFLAGS += -Nfs/sockfs -Ndrv/ip
520f1702c5SYu Xiangning
530f1702c5SYu Xiangning#
540aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
550aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
560f1702c5SYu Xiangning# Please do not carry these forward to new Makefiles.
570f1702c5SYu Xiangning#
580aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
60d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
617014882cSRichard Lowe
620f1702c5SYu Xiangning#
630f1702c5SYu Xiangning#	Default build targets.
640f1702c5SYu Xiangning#
650f1702c5SYu Xiangning.KEEP_STATE:
660f1702c5SYu Xiangning
670f1702c5SYu Xiangningdef:		$(DEF_DEPS)
680f1702c5SYu Xiangning
690f1702c5SYu Xiangningall:		$(ALL_DEPS)
700f1702c5SYu Xiangning
710f1702c5SYu Xiangningclean:		$(CLEAN_DEPS)
720f1702c5SYu Xiangning
730f1702c5SYu Xiangningclobber:	$(CLOBBER_DEPS)
740f1702c5SYu Xiangning
750f1702c5SYu Xiangninginstall:	$(INSTALL_DEPS)
760f1702c5SYu Xiangning
770f1702c5SYu Xiangning#
780f1702c5SYu Xiangning#	Include common targets.
790f1702c5SYu Xiangning#
800f1702c5SYu Xiangninginclude $(UTSBASE)/intel/Makefile.targ
81